@happyvertical/smrt-education 0.60.2 → 0.60.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +2 -1
- package/README.md +2 -1
- package/agents/class-crunchlabs.md +21 -0
- package/agents/course-bundle-import.md +45 -0
- package/dist/catalog-service.d.ts.map +1 -1
- package/dist/chunks/{workbook-photo-service-DHP5ja82.js → workbook-photo-service-DGIkYT6Q.js} +35 -5
- package/dist/chunks/workbook-photo-service-DGIkYT6Q.js.map +1 -0
- package/dist/course-bundle-models.d.ts +34 -3
- package/dist/course-bundle-models.d.ts.map +1 -1
- package/dist/course-bundle-service.d.ts +36 -0
- package/dist/course-bundle-service.d.ts.map +1 -1
- package/dist/index.js +504 -29
- package/dist/index.js.map +1 -1
- package/dist/ingestion.js +1 -1
- package/dist/lesson-assets.d.ts +24 -0
- package/dist/lesson-assets.d.ts.map +1 -1
- package/dist/manifest.json +654 -53
- package/dist/smrt-knowledge.json +220 -13
- package/dist/sources/class-crunchlabs.d.ts +1 -1
- package/dist/sources/class-crunchlabs.d.ts.map +1 -1
- package/dist/submission-service.d.ts.map +1 -1
- package/package.json +8 -8
- package/dist/chunks/workbook-photo-service-DHP5ja82.js.map +0 -1
package/dist/manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"version": "1.0.0",
|
|
3
3
|
"timestamp": 0,
|
|
4
4
|
"packageName": "@happyvertical/smrt-education",
|
|
5
|
-
"packageVersion": "0.60.
|
|
5
|
+
"packageVersion": "0.60.3",
|
|
6
6
|
"objects": {
|
|
7
7
|
"@happyvertical/smrt-education:CatalogProviderCollection": {
|
|
8
8
|
"name": "catalogprovidercollection",
|
|
@@ -6359,7 +6359,7 @@
|
|
|
6359
6359
|
],
|
|
6360
6360
|
"schema": {
|
|
6361
6361
|
"tableName": "lesson_assets",
|
|
6362
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"lesson_assets\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"lesson_id\" UUID NOT NULL,\n \"asset_id\" UUID NOT NULL,\n \"relationship\" TEXT NOT NULL DEFAULT 'attachment',\n \"sort_order\" INTEGER NOT NULL DEFAULT 0,\n \"audience\" TEXT DEFAULT '',\n \"rendition\" TEXT DEFAULT '',\n \"rendition_of_asset_id\" UUID,\n \"thumbnail_asset_id\" UUID\n);",
|
|
6362
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"lesson_assets\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"lesson_id\" UUID NOT NULL,\n \"asset_id\" UUID NOT NULL,\n \"relationship\" TEXT NOT NULL DEFAULT 'attachment',\n \"sort_order\" INTEGER NOT NULL DEFAULT 0,\n \"audience\" TEXT DEFAULT '',\n \"rendition\" TEXT DEFAULT '',\n \"rendition_of_asset_id\" UUID,\n \"thumbnail_asset_id\" UUID,\n \"retired_at\" TIMESTAMP,\n \"source_import_id\" TEXT\n);",
|
|
6363
6363
|
"columns": {
|
|
6364
6364
|
"id": {
|
|
6365
6365
|
"type": "UUID",
|
|
@@ -6445,6 +6445,16 @@
|
|
|
6445
6445
|
"referenceKind": "crossPackageRef",
|
|
6446
6446
|
"notNull": false,
|
|
6447
6447
|
"unique": false
|
|
6448
|
+
},
|
|
6449
|
+
"retired_at": {
|
|
6450
|
+
"type": "TIMESTAMP",
|
|
6451
|
+
"notNull": false,
|
|
6452
|
+
"unique": false
|
|
6453
|
+
},
|
|
6454
|
+
"source_import_id": {
|
|
6455
|
+
"type": "TEXT",
|
|
6456
|
+
"notNull": false,
|
|
6457
|
+
"unique": false
|
|
6448
6458
|
}
|
|
6449
6459
|
},
|
|
6450
6460
|
"indexes": [
|
|
@@ -6498,7 +6508,7 @@
|
|
|
6498
6508
|
]
|
|
6499
6509
|
}
|
|
6500
6510
|
],
|
|
6501
|
-
"version": "
|
|
6511
|
+
"version": "127c095b"
|
|
6502
6512
|
},
|
|
6503
6513
|
"importPath": "@happyvertical/smrt-education"
|
|
6504
6514
|
},
|
|
@@ -16683,7 +16693,7 @@
|
|
|
16683
16693
|
"className": "CourseBundleAttachment",
|
|
16684
16694
|
"qualifiedName": "@happyvertical/smrt-education:CourseBundleAttachment",
|
|
16685
16695
|
"collection": "coursebundleattachments",
|
|
16686
|
-
"description": "
|
|
16696
|
+
"description": "Record that one imported bundle (a part of a unit) was attached to a family course (SMRT #4632). Unique per import, and per (course, part): a unit's parts merge into one course, each part once.",
|
|
16687
16697
|
"filePath": "/home/runner/work/smrt/smrt/packages/education/src/course-bundle-models.ts",
|
|
16688
16698
|
"packageName": "@happyvertical/smrt-education",
|
|
16689
16699
|
"fields": {
|
|
@@ -16752,6 +16762,25 @@
|
|
|
16752
16762
|
"isStatic": false,
|
|
16753
16763
|
"isPublic": true
|
|
16754
16764
|
},
|
|
16765
|
+
"supersedeWith": {
|
|
16766
|
+
"name": "supersedeWith",
|
|
16767
|
+
"async": true,
|
|
16768
|
+
"parameters": [
|
|
16769
|
+
{
|
|
16770
|
+
"name": "importId",
|
|
16771
|
+
"type": "string",
|
|
16772
|
+
"optional": false
|
|
16773
|
+
},
|
|
16774
|
+
{
|
|
16775
|
+
"name": "actorUserId",
|
|
16776
|
+
"type": "string",
|
|
16777
|
+
"optional": false
|
|
16778
|
+
}
|
|
16779
|
+
],
|
|
16780
|
+
"returnType": "Promise<this>",
|
|
16781
|
+
"isStatic": false,
|
|
16782
|
+
"isPublic": true
|
|
16783
|
+
},
|
|
16755
16784
|
"save": {
|
|
16756
16785
|
"name": "save",
|
|
16757
16786
|
"async": true,
|
|
@@ -17978,14 +18007,352 @@
|
|
|
17978
18007
|
"tenantScoped": {
|
|
17979
18008
|
"mode": "required"
|
|
17980
18009
|
}
|
|
17981
|
-
},
|
|
17982
|
-
"extends": "SmrtObject",
|
|
17983
|
-
"exportName": "CourseBundleUnit",
|
|
17984
|
-
"collectionExportName": "CourseBundleUnitCollection",
|
|
17985
|
-
"validationRules": [],
|
|
18010
|
+
},
|
|
18011
|
+
"extends": "SmrtObject",
|
|
18012
|
+
"exportName": "CourseBundleUnit",
|
|
18013
|
+
"collectionExportName": "CourseBundleUnitCollection",
|
|
18014
|
+
"validationRules": [],
|
|
18015
|
+
"schema": {
|
|
18016
|
+
"tableName": "course_bundle_units",
|
|
18017
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"course_bundle_units\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"unit_key\" TEXT,\n \"course_id\" TEXT\n);",
|
|
18018
|
+
"columns": {
|
|
18019
|
+
"id": {
|
|
18020
|
+
"type": "UUID",
|
|
18021
|
+
"primaryKey": true,
|
|
18022
|
+
"referenceKind": "id",
|
|
18023
|
+
"notNull": true
|
|
18024
|
+
},
|
|
18025
|
+
"slug": {
|
|
18026
|
+
"type": "TEXT",
|
|
18027
|
+
"notNull": true
|
|
18028
|
+
},
|
|
18029
|
+
"context": {
|
|
18030
|
+
"type": "TEXT",
|
|
18031
|
+
"notNull": true,
|
|
18032
|
+
"default": ""
|
|
18033
|
+
},
|
|
18034
|
+
"created_at": {
|
|
18035
|
+
"type": "TIMESTAMP",
|
|
18036
|
+
"notNull": true,
|
|
18037
|
+
"default": "current_timestamp"
|
|
18038
|
+
},
|
|
18039
|
+
"updated_at": {
|
|
18040
|
+
"type": "TIMESTAMP",
|
|
18041
|
+
"notNull": true,
|
|
18042
|
+
"default": "current_timestamp"
|
|
18043
|
+
},
|
|
18044
|
+
"tenant_id": {
|
|
18045
|
+
"type": "UUID",
|
|
18046
|
+
"referenceKind": "tenantId",
|
|
18047
|
+
"notNull": true,
|
|
18048
|
+
"unique": false
|
|
18049
|
+
},
|
|
18050
|
+
"unit_key": {
|
|
18051
|
+
"type": "TEXT",
|
|
18052
|
+
"notNull": false,
|
|
18053
|
+
"unique": false
|
|
18054
|
+
},
|
|
18055
|
+
"course_id": {
|
|
18056
|
+
"type": "TEXT",
|
|
18057
|
+
"notNull": false,
|
|
18058
|
+
"unique": false
|
|
18059
|
+
}
|
|
18060
|
+
},
|
|
18061
|
+
"indexes": [
|
|
18062
|
+
{
|
|
18063
|
+
"name": "course_bundle_units_tenant_id_unit_key_idx",
|
|
18064
|
+
"columns": [
|
|
18065
|
+
"tenant_id",
|
|
18066
|
+
"unit_key"
|
|
18067
|
+
],
|
|
18068
|
+
"unique": true,
|
|
18069
|
+
"nullsNotDistinct": true
|
|
18070
|
+
},
|
|
18071
|
+
{
|
|
18072
|
+
"name": "course_bundle_units_slug_context_idx",
|
|
18073
|
+
"columns": [
|
|
18074
|
+
"slug",
|
|
18075
|
+
"context"
|
|
18076
|
+
]
|
|
18077
|
+
},
|
|
18078
|
+
{
|
|
18079
|
+
"name": "course_bundle_units_unique",
|
|
18080
|
+
"columns": [
|
|
18081
|
+
"tenant_id",
|
|
18082
|
+
"unit_key"
|
|
18083
|
+
],
|
|
18084
|
+
"unique": true
|
|
18085
|
+
},
|
|
18086
|
+
{
|
|
18087
|
+
"name": "course_bundle_units_tenant_id_created_at_idx",
|
|
18088
|
+
"columns": [
|
|
18089
|
+
"tenant_id",
|
|
18090
|
+
"created_at"
|
|
18091
|
+
]
|
|
18092
|
+
}
|
|
18093
|
+
],
|
|
18094
|
+
"version": "66fbb11b"
|
|
18095
|
+
},
|
|
18096
|
+
"importPath": "@happyvertical/smrt-education"
|
|
18097
|
+
},
|
|
18098
|
+
"@happyvertical/smrt-education:CourseBundleUnitCollection": {
|
|
18099
|
+
"name": "coursebundleunitcollection",
|
|
18100
|
+
"className": "CourseBundleUnitCollection",
|
|
18101
|
+
"qualifiedName": "@happyvertical/smrt-education:CourseBundleUnitCollection",
|
|
18102
|
+
"collection": "coursebundleunits",
|
|
18103
|
+
"filePath": "/home/runner/work/smrt/smrt/packages/education/src/course-bundle-models.ts",
|
|
18104
|
+
"packageName": "@happyvertical/smrt-education",
|
|
18105
|
+
"fields": {},
|
|
18106
|
+
"methods": {},
|
|
18107
|
+
"decoratorConfig": {
|
|
18108
|
+
"tableName": "course_bundle_units",
|
|
18109
|
+
"api": false,
|
|
18110
|
+
"mcp": false,
|
|
18111
|
+
"cli": false
|
|
18112
|
+
},
|
|
18113
|
+
"extends": "SmrtCollection",
|
|
18114
|
+
"extendsTypeArg": "CourseBundleUnit",
|
|
18115
|
+
"exportName": "CourseBundleUnitCollection",
|
|
18116
|
+
"collectionExportName": "CourseBundleUnitCollectionCollection",
|
|
18117
|
+
"collectionOf": "@happyvertical/smrt-education:CourseBundleUnit",
|
|
18118
|
+
"inheritedExposure": [
|
|
18119
|
+
"api",
|
|
18120
|
+
"mcp",
|
|
18121
|
+
"cli"
|
|
18122
|
+
],
|
|
18123
|
+
"schema": {
|
|
18124
|
+
"tableName": "course_bundle_units",
|
|
18125
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"course_bundle_units\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"unit_key\" TEXT,\n \"course_id\" TEXT\n);",
|
|
18126
|
+
"columns": {
|
|
18127
|
+
"id": {
|
|
18128
|
+
"type": "UUID",
|
|
18129
|
+
"primaryKey": true,
|
|
18130
|
+
"referenceKind": "id",
|
|
18131
|
+
"notNull": true
|
|
18132
|
+
},
|
|
18133
|
+
"slug": {
|
|
18134
|
+
"type": "TEXT",
|
|
18135
|
+
"notNull": true
|
|
18136
|
+
},
|
|
18137
|
+
"context": {
|
|
18138
|
+
"type": "TEXT",
|
|
18139
|
+
"notNull": true,
|
|
18140
|
+
"default": ""
|
|
18141
|
+
},
|
|
18142
|
+
"created_at": {
|
|
18143
|
+
"type": "TIMESTAMP",
|
|
18144
|
+
"notNull": true,
|
|
18145
|
+
"default": "current_timestamp"
|
|
18146
|
+
},
|
|
18147
|
+
"updated_at": {
|
|
18148
|
+
"type": "TIMESTAMP",
|
|
18149
|
+
"notNull": true,
|
|
18150
|
+
"default": "current_timestamp"
|
|
18151
|
+
},
|
|
18152
|
+
"tenant_id": {
|
|
18153
|
+
"type": "UUID",
|
|
18154
|
+
"referenceKind": "tenantId",
|
|
18155
|
+
"notNull": true,
|
|
18156
|
+
"unique": false
|
|
18157
|
+
},
|
|
18158
|
+
"unit_key": {
|
|
18159
|
+
"type": "TEXT",
|
|
18160
|
+
"notNull": false,
|
|
18161
|
+
"unique": false
|
|
18162
|
+
},
|
|
18163
|
+
"course_id": {
|
|
18164
|
+
"type": "TEXT",
|
|
18165
|
+
"notNull": false,
|
|
18166
|
+
"unique": false
|
|
18167
|
+
}
|
|
18168
|
+
},
|
|
18169
|
+
"indexes": [
|
|
18170
|
+
{
|
|
18171
|
+
"name": "course_bundle_units_tenant_id_unit_key_idx",
|
|
18172
|
+
"columns": [
|
|
18173
|
+
"tenant_id",
|
|
18174
|
+
"unit_key"
|
|
18175
|
+
],
|
|
18176
|
+
"unique": true,
|
|
18177
|
+
"nullsNotDistinct": true
|
|
18178
|
+
},
|
|
18179
|
+
{
|
|
18180
|
+
"name": "course_bundle_units_slug_context_idx",
|
|
18181
|
+
"columns": [
|
|
18182
|
+
"slug",
|
|
18183
|
+
"context"
|
|
18184
|
+
]
|
|
18185
|
+
},
|
|
18186
|
+
{
|
|
18187
|
+
"name": "course_bundle_units_unique",
|
|
18188
|
+
"columns": [
|
|
18189
|
+
"tenant_id",
|
|
18190
|
+
"unit_key"
|
|
18191
|
+
],
|
|
18192
|
+
"unique": true
|
|
18193
|
+
},
|
|
18194
|
+
{
|
|
18195
|
+
"name": "course_bundle_units_tenant_id_created_at_idx",
|
|
18196
|
+
"columns": [
|
|
18197
|
+
"tenant_id",
|
|
18198
|
+
"created_at"
|
|
18199
|
+
]
|
|
18200
|
+
}
|
|
18201
|
+
],
|
|
18202
|
+
"version": "66fbb11b"
|
|
18203
|
+
},
|
|
18204
|
+
"importPath": "@happyvertical/smrt-education"
|
|
18205
|
+
},
|
|
18206
|
+
"@happyvertical/smrt-education:CourseBundleSupersession": {
|
|
18207
|
+
"name": "coursebundlesupersession",
|
|
18208
|
+
"className": "CourseBundleSupersession",
|
|
18209
|
+
"qualifiedName": "@happyvertical/smrt-education:CourseBundleSupersession",
|
|
18210
|
+
"collection": "coursebundlesupersessions",
|
|
18211
|
+
"description": "Append-only audit of a newer build taking over a part of an attached unit (SMRT #4645): which import replaced which, for which course and part, by whom and when.",
|
|
18212
|
+
"filePath": "/home/runner/work/smrt/smrt/packages/education/src/course-bundle-models.ts",
|
|
18213
|
+
"packageName": "@happyvertical/smrt-education",
|
|
18214
|
+
"fields": {
|
|
18215
|
+
"tenantId": {
|
|
18216
|
+
"type": "text",
|
|
18217
|
+
"required": true,
|
|
18218
|
+
"_meta": {
|
|
18219
|
+
"sqlType": "UUID",
|
|
18220
|
+
"__tenancy": {
|
|
18221
|
+
"isTenantIdField": true,
|
|
18222
|
+
"autoFilter": true,
|
|
18223
|
+
"required": true,
|
|
18224
|
+
"autoPopulate": true,
|
|
18225
|
+
"nullable": false,
|
|
18226
|
+
"mode": "required",
|
|
18227
|
+
"field": "tenantId",
|
|
18228
|
+
"allowSuperAdminBypass": false
|
|
18229
|
+
}
|
|
18230
|
+
}
|
|
18231
|
+
},
|
|
18232
|
+
"courseId": {
|
|
18233
|
+
"type": "foreignKey",
|
|
18234
|
+
"required": true,
|
|
18235
|
+
"related": "Course",
|
|
18236
|
+
"_meta": {
|
|
18237
|
+
"required": true
|
|
18238
|
+
}
|
|
18239
|
+
},
|
|
18240
|
+
"unitKey": {
|
|
18241
|
+
"type": "text",
|
|
18242
|
+
"required": false
|
|
18243
|
+
},
|
|
18244
|
+
"partIndex": {
|
|
18245
|
+
"type": "integer",
|
|
18246
|
+
"required": true,
|
|
18247
|
+
"default": 1
|
|
18248
|
+
},
|
|
18249
|
+
"importId": {
|
|
18250
|
+
"type": "foreignKey",
|
|
18251
|
+
"required": true,
|
|
18252
|
+
"related": "CourseBundleImport",
|
|
18253
|
+
"_meta": {
|
|
18254
|
+
"required": true
|
|
18255
|
+
}
|
|
18256
|
+
},
|
|
18257
|
+
"supersededImportId": {
|
|
18258
|
+
"type": "foreignKey",
|
|
18259
|
+
"required": true,
|
|
18260
|
+
"related": "CourseBundleImport",
|
|
18261
|
+
"_meta": {
|
|
18262
|
+
"required": true
|
|
18263
|
+
}
|
|
18264
|
+
},
|
|
18265
|
+
"supersededByUserId": {
|
|
18266
|
+
"type": "text",
|
|
18267
|
+
"required": false
|
|
18268
|
+
},
|
|
18269
|
+
"recordedAt": {
|
|
18270
|
+
"type": "text",
|
|
18271
|
+
"required": false
|
|
18272
|
+
}
|
|
18273
|
+
},
|
|
18274
|
+
"methods": {
|
|
18275
|
+
"delete": {
|
|
18276
|
+
"name": "delete",
|
|
18277
|
+
"async": true,
|
|
18278
|
+
"parameters": [],
|
|
18279
|
+
"returnType": "Promise<void>",
|
|
18280
|
+
"isStatic": false,
|
|
18281
|
+
"isPublic": true
|
|
18282
|
+
},
|
|
18283
|
+
"save": {
|
|
18284
|
+
"name": "save",
|
|
18285
|
+
"async": true,
|
|
18286
|
+
"parameters": [
|
|
18287
|
+
{
|
|
18288
|
+
"name": "options",
|
|
18289
|
+
"type": "SmrtSaveOptions",
|
|
18290
|
+
"optional": true
|
|
18291
|
+
}
|
|
18292
|
+
],
|
|
18293
|
+
"returnType": "Promise<this>",
|
|
18294
|
+
"isStatic": false,
|
|
18295
|
+
"isPublic": true
|
|
18296
|
+
}
|
|
18297
|
+
},
|
|
18298
|
+
"decoratorConfig": {
|
|
18299
|
+
"tableName": "course_bundle_supersessions",
|
|
18300
|
+
"conflictColumns": [
|
|
18301
|
+
"tenant_id",
|
|
18302
|
+
"superseded_import_id"
|
|
18303
|
+
],
|
|
18304
|
+
"indexes": [
|
|
18305
|
+
{
|
|
18306
|
+
"name": "course_bundle_supersessions_old_unique",
|
|
18307
|
+
"columns": [
|
|
18308
|
+
"tenantId",
|
|
18309
|
+
"supersededImportId"
|
|
18310
|
+
],
|
|
18311
|
+
"unique": true
|
|
18312
|
+
},
|
|
18313
|
+
{
|
|
18314
|
+
"name": "course_bundle_supersessions_new",
|
|
18315
|
+
"columns": [
|
|
18316
|
+
"tenantId",
|
|
18317
|
+
"importId"
|
|
18318
|
+
]
|
|
18319
|
+
}
|
|
18320
|
+
],
|
|
18321
|
+
"api": false,
|
|
18322
|
+
"mcp": false,
|
|
18323
|
+
"cli": false,
|
|
18324
|
+
"tenantScoped": {
|
|
18325
|
+
"mode": "required"
|
|
18326
|
+
}
|
|
18327
|
+
},
|
|
18328
|
+
"extends": "SmrtObject",
|
|
18329
|
+
"exportName": "CourseBundleSupersession",
|
|
18330
|
+
"collectionExportName": "CourseBundleSupersessionCollection",
|
|
18331
|
+
"validationRules": [
|
|
18332
|
+
{
|
|
18333
|
+
"field": "courseId",
|
|
18334
|
+
"rule": "required",
|
|
18335
|
+
"fieldType": "foreignKey"
|
|
18336
|
+
},
|
|
18337
|
+
{
|
|
18338
|
+
"field": "partIndex",
|
|
18339
|
+
"rule": "required",
|
|
18340
|
+
"fieldType": "integer"
|
|
18341
|
+
},
|
|
18342
|
+
{
|
|
18343
|
+
"field": "importId",
|
|
18344
|
+
"rule": "required",
|
|
18345
|
+
"fieldType": "foreignKey"
|
|
18346
|
+
},
|
|
18347
|
+
{
|
|
18348
|
+
"field": "supersededImportId",
|
|
18349
|
+
"rule": "required",
|
|
18350
|
+
"fieldType": "foreignKey"
|
|
18351
|
+
}
|
|
18352
|
+
],
|
|
17986
18353
|
"schema": {
|
|
17987
|
-
"tableName": "
|
|
17988
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"
|
|
18354
|
+
"tableName": "course_bundle_supersessions",
|
|
18355
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"course_bundle_supersessions\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"course_id\" UUID NOT NULL,\n \"unit_key\" TEXT,\n \"part_index\" INTEGER NOT NULL DEFAULT 1,\n \"import_id\" UUID NOT NULL,\n \"superseded_import_id\" UUID NOT NULL,\n \"superseded_by_user_id\" TEXT,\n \"recorded_at\" TEXT\n);",
|
|
17989
18356
|
"columns": {
|
|
17990
18357
|
"id": {
|
|
17991
18358
|
"type": "UUID",
|
|
@@ -18018,12 +18385,59 @@
|
|
|
18018
18385
|
"notNull": true,
|
|
18019
18386
|
"unique": false
|
|
18020
18387
|
},
|
|
18388
|
+
"course_id": {
|
|
18389
|
+
"type": "UUID",
|
|
18390
|
+
"referenceKind": "foreignKey",
|
|
18391
|
+
"notNull": true,
|
|
18392
|
+
"unique": false,
|
|
18393
|
+
"foreignKey": {
|
|
18394
|
+
"table": "courses",
|
|
18395
|
+
"column": "id",
|
|
18396
|
+
"onDelete": "NO ACTION",
|
|
18397
|
+
"onUpdate": "CASCADE"
|
|
18398
|
+
}
|
|
18399
|
+
},
|
|
18021
18400
|
"unit_key": {
|
|
18022
18401
|
"type": "TEXT",
|
|
18023
18402
|
"notNull": false,
|
|
18024
18403
|
"unique": false
|
|
18025
18404
|
},
|
|
18026
|
-
"
|
|
18405
|
+
"part_index": {
|
|
18406
|
+
"type": "INTEGER",
|
|
18407
|
+
"notNull": true,
|
|
18408
|
+
"unique": false,
|
|
18409
|
+
"default": 1
|
|
18410
|
+
},
|
|
18411
|
+
"import_id": {
|
|
18412
|
+
"type": "UUID",
|
|
18413
|
+
"referenceKind": "foreignKey",
|
|
18414
|
+
"notNull": true,
|
|
18415
|
+
"unique": false,
|
|
18416
|
+
"foreignKey": {
|
|
18417
|
+
"table": "course_bundle_imports",
|
|
18418
|
+
"column": "id",
|
|
18419
|
+
"onDelete": "NO ACTION",
|
|
18420
|
+
"onUpdate": "CASCADE"
|
|
18421
|
+
}
|
|
18422
|
+
},
|
|
18423
|
+
"superseded_import_id": {
|
|
18424
|
+
"type": "UUID",
|
|
18425
|
+
"referenceKind": "foreignKey",
|
|
18426
|
+
"notNull": true,
|
|
18427
|
+
"unique": false,
|
|
18428
|
+
"foreignKey": {
|
|
18429
|
+
"table": "course_bundle_imports",
|
|
18430
|
+
"column": "id",
|
|
18431
|
+
"onDelete": "CASCADE",
|
|
18432
|
+
"onUpdate": "CASCADE"
|
|
18433
|
+
}
|
|
18434
|
+
},
|
|
18435
|
+
"superseded_by_user_id": {
|
|
18436
|
+
"type": "TEXT",
|
|
18437
|
+
"notNull": false,
|
|
18438
|
+
"unique": false
|
|
18439
|
+
},
|
|
18440
|
+
"recorded_at": {
|
|
18027
18441
|
"type": "TEXT",
|
|
18028
18442
|
"notNull": false,
|
|
18029
18443
|
"unique": false
|
|
@@ -18031,69 +18445,93 @@
|
|
|
18031
18445
|
},
|
|
18032
18446
|
"indexes": [
|
|
18033
18447
|
{
|
|
18034
|
-
"name": "
|
|
18448
|
+
"name": "course_bundle_supersessions_tenant_id_superseded_import_id_idx",
|
|
18035
18449
|
"columns": [
|
|
18036
18450
|
"tenant_id",
|
|
18037
|
-
"
|
|
18451
|
+
"superseded_import_id"
|
|
18038
18452
|
],
|
|
18039
|
-
"unique": true
|
|
18040
|
-
"nullsNotDistinct": true
|
|
18453
|
+
"unique": true
|
|
18041
18454
|
},
|
|
18042
18455
|
{
|
|
18043
|
-
"name": "
|
|
18456
|
+
"name": "course_bundle_supersessions_slug_context_idx",
|
|
18044
18457
|
"columns": [
|
|
18045
18458
|
"slug",
|
|
18046
18459
|
"context"
|
|
18047
18460
|
]
|
|
18048
18461
|
},
|
|
18049
18462
|
{
|
|
18050
|
-
"name": "
|
|
18463
|
+
"name": "course_bundle_supersessions_old_unique",
|
|
18051
18464
|
"columns": [
|
|
18052
18465
|
"tenant_id",
|
|
18053
|
-
"
|
|
18466
|
+
"superseded_import_id"
|
|
18054
18467
|
],
|
|
18055
18468
|
"unique": true
|
|
18056
18469
|
},
|
|
18057
18470
|
{
|
|
18058
|
-
"name": "
|
|
18471
|
+
"name": "course_bundle_supersessions_new",
|
|
18472
|
+
"columns": [
|
|
18473
|
+
"tenant_id",
|
|
18474
|
+
"import_id"
|
|
18475
|
+
]
|
|
18476
|
+
},
|
|
18477
|
+
{
|
|
18478
|
+
"name": "course_bundle_supersessions_tenant_id_created_at_idx",
|
|
18059
18479
|
"columns": [
|
|
18060
18480
|
"tenant_id",
|
|
18061
18481
|
"created_at"
|
|
18062
18482
|
]
|
|
18483
|
+
},
|
|
18484
|
+
{
|
|
18485
|
+
"name": "course_bundle_supersessions_course_id_idx",
|
|
18486
|
+
"columns": [
|
|
18487
|
+
"course_id"
|
|
18488
|
+
]
|
|
18489
|
+
},
|
|
18490
|
+
{
|
|
18491
|
+
"name": "course_bundle_supersessions_import_id_idx",
|
|
18492
|
+
"columns": [
|
|
18493
|
+
"import_id"
|
|
18494
|
+
]
|
|
18495
|
+
},
|
|
18496
|
+
{
|
|
18497
|
+
"name": "course_bundle_supersessions_superseded_import_id_idx",
|
|
18498
|
+
"columns": [
|
|
18499
|
+
"superseded_import_id"
|
|
18500
|
+
]
|
|
18063
18501
|
}
|
|
18064
18502
|
],
|
|
18065
|
-
"version": "
|
|
18503
|
+
"version": "538280cd"
|
|
18066
18504
|
},
|
|
18067
18505
|
"importPath": "@happyvertical/smrt-education"
|
|
18068
18506
|
},
|
|
18069
|
-
"@happyvertical/smrt-education:
|
|
18070
|
-
"name": "
|
|
18071
|
-
"className": "
|
|
18072
|
-
"qualifiedName": "@happyvertical/smrt-education:
|
|
18073
|
-
"collection": "
|
|
18507
|
+
"@happyvertical/smrt-education:CourseBundleSupersessionCollection": {
|
|
18508
|
+
"name": "coursebundlesupersessioncollection",
|
|
18509
|
+
"className": "CourseBundleSupersessionCollection",
|
|
18510
|
+
"qualifiedName": "@happyvertical/smrt-education:CourseBundleSupersessionCollection",
|
|
18511
|
+
"collection": "coursebundlesupersessions",
|
|
18074
18512
|
"filePath": "/home/runner/work/smrt/smrt/packages/education/src/course-bundle-models.ts",
|
|
18075
18513
|
"packageName": "@happyvertical/smrt-education",
|
|
18076
18514
|
"fields": {},
|
|
18077
18515
|
"methods": {},
|
|
18078
18516
|
"decoratorConfig": {
|
|
18079
|
-
"tableName": "
|
|
18517
|
+
"tableName": "course_bundle_supersessions",
|
|
18080
18518
|
"api": false,
|
|
18081
18519
|
"mcp": false,
|
|
18082
18520
|
"cli": false
|
|
18083
18521
|
},
|
|
18084
18522
|
"extends": "SmrtCollection",
|
|
18085
|
-
"extendsTypeArg": "
|
|
18086
|
-
"exportName": "
|
|
18087
|
-
"collectionExportName": "
|
|
18088
|
-
"collectionOf": "@happyvertical/smrt-education:
|
|
18523
|
+
"extendsTypeArg": "CourseBundleSupersession",
|
|
18524
|
+
"exportName": "CourseBundleSupersessionCollection",
|
|
18525
|
+
"collectionExportName": "CourseBundleSupersessionCollectionCollection",
|
|
18526
|
+
"collectionOf": "@happyvertical/smrt-education:CourseBundleSupersession",
|
|
18089
18527
|
"inheritedExposure": [
|
|
18090
18528
|
"api",
|
|
18091
18529
|
"mcp",
|
|
18092
18530
|
"cli"
|
|
18093
18531
|
],
|
|
18094
18532
|
"schema": {
|
|
18095
|
-
"tableName": "
|
|
18096
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"
|
|
18533
|
+
"tableName": "course_bundle_supersessions",
|
|
18534
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"course_bundle_supersessions\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"course_id\" UUID NOT NULL,\n \"unit_key\" TEXT,\n \"part_index\" INTEGER NOT NULL DEFAULT 1,\n \"import_id\" UUID NOT NULL,\n \"superseded_import_id\" UUID NOT NULL,\n \"superseded_by_user_id\" TEXT,\n \"recorded_at\" TEXT\n);",
|
|
18097
18535
|
"columns": {
|
|
18098
18536
|
"id": {
|
|
18099
18537
|
"type": "UUID",
|
|
@@ -18126,12 +18564,59 @@
|
|
|
18126
18564
|
"notNull": true,
|
|
18127
18565
|
"unique": false
|
|
18128
18566
|
},
|
|
18567
|
+
"course_id": {
|
|
18568
|
+
"type": "UUID",
|
|
18569
|
+
"referenceKind": "foreignKey",
|
|
18570
|
+
"notNull": true,
|
|
18571
|
+
"unique": false,
|
|
18572
|
+
"foreignKey": {
|
|
18573
|
+
"table": "courses",
|
|
18574
|
+
"column": "id",
|
|
18575
|
+
"onDelete": "NO ACTION",
|
|
18576
|
+
"onUpdate": "CASCADE"
|
|
18577
|
+
}
|
|
18578
|
+
},
|
|
18129
18579
|
"unit_key": {
|
|
18130
18580
|
"type": "TEXT",
|
|
18131
18581
|
"notNull": false,
|
|
18132
18582
|
"unique": false
|
|
18133
18583
|
},
|
|
18134
|
-
"
|
|
18584
|
+
"part_index": {
|
|
18585
|
+
"type": "INTEGER",
|
|
18586
|
+
"notNull": true,
|
|
18587
|
+
"unique": false,
|
|
18588
|
+
"default": 1
|
|
18589
|
+
},
|
|
18590
|
+
"import_id": {
|
|
18591
|
+
"type": "UUID",
|
|
18592
|
+
"referenceKind": "foreignKey",
|
|
18593
|
+
"notNull": true,
|
|
18594
|
+
"unique": false,
|
|
18595
|
+
"foreignKey": {
|
|
18596
|
+
"table": "course_bundle_imports",
|
|
18597
|
+
"column": "id",
|
|
18598
|
+
"onDelete": "NO ACTION",
|
|
18599
|
+
"onUpdate": "CASCADE"
|
|
18600
|
+
}
|
|
18601
|
+
},
|
|
18602
|
+
"superseded_import_id": {
|
|
18603
|
+
"type": "UUID",
|
|
18604
|
+
"referenceKind": "foreignKey",
|
|
18605
|
+
"notNull": true,
|
|
18606
|
+
"unique": false,
|
|
18607
|
+
"foreignKey": {
|
|
18608
|
+
"table": "course_bundle_imports",
|
|
18609
|
+
"column": "id",
|
|
18610
|
+
"onDelete": "CASCADE",
|
|
18611
|
+
"onUpdate": "CASCADE"
|
|
18612
|
+
}
|
|
18613
|
+
},
|
|
18614
|
+
"superseded_by_user_id": {
|
|
18615
|
+
"type": "TEXT",
|
|
18616
|
+
"notNull": false,
|
|
18617
|
+
"unique": false
|
|
18618
|
+
},
|
|
18619
|
+
"recorded_at": {
|
|
18135
18620
|
"type": "TEXT",
|
|
18136
18621
|
"notNull": false,
|
|
18137
18622
|
"unique": false
|
|
@@ -18139,38 +18624,62 @@
|
|
|
18139
18624
|
},
|
|
18140
18625
|
"indexes": [
|
|
18141
18626
|
{
|
|
18142
|
-
"name": "
|
|
18627
|
+
"name": "course_bundle_supersessions_tenant_id_superseded_import_id_idx",
|
|
18143
18628
|
"columns": [
|
|
18144
18629
|
"tenant_id",
|
|
18145
|
-
"
|
|
18630
|
+
"superseded_import_id"
|
|
18146
18631
|
],
|
|
18147
|
-
"unique": true
|
|
18148
|
-
"nullsNotDistinct": true
|
|
18632
|
+
"unique": true
|
|
18149
18633
|
},
|
|
18150
18634
|
{
|
|
18151
|
-
"name": "
|
|
18635
|
+
"name": "course_bundle_supersessions_slug_context_idx",
|
|
18152
18636
|
"columns": [
|
|
18153
18637
|
"slug",
|
|
18154
18638
|
"context"
|
|
18155
18639
|
]
|
|
18156
18640
|
},
|
|
18157
18641
|
{
|
|
18158
|
-
"name": "
|
|
18642
|
+
"name": "course_bundle_supersessions_old_unique",
|
|
18159
18643
|
"columns": [
|
|
18160
18644
|
"tenant_id",
|
|
18161
|
-
"
|
|
18645
|
+
"superseded_import_id"
|
|
18162
18646
|
],
|
|
18163
18647
|
"unique": true
|
|
18164
18648
|
},
|
|
18165
18649
|
{
|
|
18166
|
-
"name": "
|
|
18650
|
+
"name": "course_bundle_supersessions_new",
|
|
18651
|
+
"columns": [
|
|
18652
|
+
"tenant_id",
|
|
18653
|
+
"import_id"
|
|
18654
|
+
]
|
|
18655
|
+
},
|
|
18656
|
+
{
|
|
18657
|
+
"name": "course_bundle_supersessions_tenant_id_created_at_idx",
|
|
18167
18658
|
"columns": [
|
|
18168
18659
|
"tenant_id",
|
|
18169
18660
|
"created_at"
|
|
18170
18661
|
]
|
|
18662
|
+
},
|
|
18663
|
+
{
|
|
18664
|
+
"name": "course_bundle_supersessions_course_id_idx",
|
|
18665
|
+
"columns": [
|
|
18666
|
+
"course_id"
|
|
18667
|
+
]
|
|
18668
|
+
},
|
|
18669
|
+
{
|
|
18670
|
+
"name": "course_bundle_supersessions_import_id_idx",
|
|
18671
|
+
"columns": [
|
|
18672
|
+
"import_id"
|
|
18673
|
+
]
|
|
18674
|
+
},
|
|
18675
|
+
{
|
|
18676
|
+
"name": "course_bundle_supersessions_superseded_import_id_idx",
|
|
18677
|
+
"columns": [
|
|
18678
|
+
"superseded_import_id"
|
|
18679
|
+
]
|
|
18171
18680
|
}
|
|
18172
18681
|
],
|
|
18173
|
-
"version": "
|
|
18682
|
+
"version": "538280cd"
|
|
18174
18683
|
},
|
|
18175
18684
|
"importPath": "@happyvertical/smrt-education"
|
|
18176
18685
|
},
|
|
@@ -30563,6 +31072,20 @@
|
|
|
30563
31072
|
"_meta": {
|
|
30564
31073
|
"nullable": true
|
|
30565
31074
|
}
|
|
31075
|
+
},
|
|
31076
|
+
"retiredAt": {
|
|
31077
|
+
"type": "datetime",
|
|
31078
|
+
"required": false,
|
|
31079
|
+
"_meta": {
|
|
31080
|
+
"nullable": true
|
|
31081
|
+
}
|
|
31082
|
+
},
|
|
31083
|
+
"sourceImportId": {
|
|
31084
|
+
"type": "text",
|
|
31085
|
+
"required": false,
|
|
31086
|
+
"_meta": {
|
|
31087
|
+
"nullable": true
|
|
31088
|
+
}
|
|
30566
31089
|
}
|
|
30567
31090
|
},
|
|
30568
31091
|
"methods": {
|
|
@@ -30623,7 +31146,7 @@
|
|
|
30623
31146
|
],
|
|
30624
31147
|
"schema": {
|
|
30625
31148
|
"tableName": "lesson_assets",
|
|
30626
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"lesson_assets\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"lesson_id\" UUID NOT NULL,\n \"asset_id\" UUID NOT NULL,\n \"relationship\" TEXT NOT NULL DEFAULT 'attachment',\n \"sort_order\" INTEGER NOT NULL DEFAULT 0,\n \"audience\" TEXT DEFAULT '',\n \"rendition\" TEXT DEFAULT '',\n \"rendition_of_asset_id\" UUID,\n \"thumbnail_asset_id\" UUID\n);",
|
|
31149
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"lesson_assets\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"lesson_id\" UUID NOT NULL,\n \"asset_id\" UUID NOT NULL,\n \"relationship\" TEXT NOT NULL DEFAULT 'attachment',\n \"sort_order\" INTEGER NOT NULL DEFAULT 0,\n \"audience\" TEXT DEFAULT '',\n \"rendition\" TEXT DEFAULT '',\n \"rendition_of_asset_id\" UUID,\n \"thumbnail_asset_id\" UUID,\n \"retired_at\" TIMESTAMP,\n \"source_import_id\" TEXT\n);",
|
|
30627
31150
|
"columns": {
|
|
30628
31151
|
"id": {
|
|
30629
31152
|
"type": "UUID",
|
|
@@ -30709,6 +31232,16 @@
|
|
|
30709
31232
|
"referenceKind": "crossPackageRef",
|
|
30710
31233
|
"notNull": false,
|
|
30711
31234
|
"unique": false
|
|
31235
|
+
},
|
|
31236
|
+
"retired_at": {
|
|
31237
|
+
"type": "TIMESTAMP",
|
|
31238
|
+
"notNull": false,
|
|
31239
|
+
"unique": false
|
|
31240
|
+
},
|
|
31241
|
+
"source_import_id": {
|
|
31242
|
+
"type": "TEXT",
|
|
31243
|
+
"notNull": false,
|
|
31244
|
+
"unique": false
|
|
30712
31245
|
}
|
|
30713
31246
|
},
|
|
30714
31247
|
"indexes": [
|
|
@@ -30762,7 +31295,7 @@
|
|
|
30762
31295
|
]
|
|
30763
31296
|
}
|
|
30764
31297
|
],
|
|
30765
|
-
"version": "
|
|
31298
|
+
"version": "127c095b"
|
|
30766
31299
|
},
|
|
30767
31300
|
"importPath": "@happyvertical/smrt-education"
|
|
30768
31301
|
},
|
|
@@ -30853,6 +31386,20 @@
|
|
|
30853
31386
|
"_meta": {
|
|
30854
31387
|
"nullable": true
|
|
30855
31388
|
}
|
|
31389
|
+
},
|
|
31390
|
+
"retiredAt": {
|
|
31391
|
+
"type": "datetime",
|
|
31392
|
+
"required": false,
|
|
31393
|
+
"_meta": {
|
|
31394
|
+
"nullable": true
|
|
31395
|
+
}
|
|
31396
|
+
},
|
|
31397
|
+
"sourceImportId": {
|
|
31398
|
+
"type": "text",
|
|
31399
|
+
"required": false,
|
|
31400
|
+
"_meta": {
|
|
31401
|
+
"nullable": true
|
|
31402
|
+
}
|
|
30856
31403
|
}
|
|
30857
31404
|
},
|
|
30858
31405
|
"methods": {
|
|
@@ -30914,7 +31461,7 @@
|
|
|
30914
31461
|
],
|
|
30915
31462
|
"schema": {
|
|
30916
31463
|
"tableName": "course_assets",
|
|
30917
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"course_assets\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"course_id\" UUID NOT NULL,\n \"asset_id\" UUID NOT NULL,\n \"relationship\" TEXT NOT NULL DEFAULT 'attachment',\n \"audience\" TEXT DEFAULT '',\n \"title\" TEXT,\n \"sort_order\" INTEGER NOT NULL DEFAULT 0,\n \"rendition\" TEXT DEFAULT '',\n \"rendition_of_asset_id\" UUID,\n \"thumbnail_asset_id\" UUID\n);",
|
|
31464
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"course_assets\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"course_id\" UUID NOT NULL,\n \"asset_id\" UUID NOT NULL,\n \"relationship\" TEXT NOT NULL DEFAULT 'attachment',\n \"audience\" TEXT DEFAULT '',\n \"title\" TEXT,\n \"sort_order\" INTEGER NOT NULL DEFAULT 0,\n \"rendition\" TEXT DEFAULT '',\n \"rendition_of_asset_id\" UUID,\n \"thumbnail_asset_id\" UUID,\n \"retired_at\" TIMESTAMP,\n \"source_import_id\" TEXT\n);",
|
|
30918
31465
|
"columns": {
|
|
30919
31466
|
"id": {
|
|
30920
31467
|
"type": "UUID",
|
|
@@ -31005,6 +31552,16 @@
|
|
|
31005
31552
|
"referenceKind": "crossPackageRef",
|
|
31006
31553
|
"notNull": false,
|
|
31007
31554
|
"unique": false
|
|
31555
|
+
},
|
|
31556
|
+
"retired_at": {
|
|
31557
|
+
"type": "TIMESTAMP",
|
|
31558
|
+
"notNull": false,
|
|
31559
|
+
"unique": false
|
|
31560
|
+
},
|
|
31561
|
+
"source_import_id": {
|
|
31562
|
+
"type": "TEXT",
|
|
31563
|
+
"notNull": false,
|
|
31564
|
+
"unique": false
|
|
31008
31565
|
}
|
|
31009
31566
|
},
|
|
31010
31567
|
"indexes": [
|
|
@@ -31058,7 +31615,7 @@
|
|
|
31058
31615
|
]
|
|
31059
31616
|
}
|
|
31060
31617
|
],
|
|
31061
|
-
"version": "
|
|
31618
|
+
"version": "408f71bc"
|
|
31062
31619
|
},
|
|
31063
31620
|
"importPath": "@happyvertical/smrt-education"
|
|
31064
31621
|
},
|
|
@@ -31089,7 +31646,7 @@
|
|
|
31089
31646
|
],
|
|
31090
31647
|
"schema": {
|
|
31091
31648
|
"tableName": "course_assets",
|
|
31092
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"course_assets\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"course_id\" UUID NOT NULL,\n \"asset_id\" UUID NOT NULL,\n \"relationship\" TEXT NOT NULL DEFAULT 'attachment',\n \"audience\" TEXT DEFAULT '',\n \"title\" TEXT,\n \"sort_order\" INTEGER NOT NULL DEFAULT 0,\n \"rendition\" TEXT DEFAULT '',\n \"rendition_of_asset_id\" UUID,\n \"thumbnail_asset_id\" UUID\n);",
|
|
31649
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"course_assets\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"course_id\" UUID NOT NULL,\n \"asset_id\" UUID NOT NULL,\n \"relationship\" TEXT NOT NULL DEFAULT 'attachment',\n \"audience\" TEXT DEFAULT '',\n \"title\" TEXT,\n \"sort_order\" INTEGER NOT NULL DEFAULT 0,\n \"rendition\" TEXT DEFAULT '',\n \"rendition_of_asset_id\" UUID,\n \"thumbnail_asset_id\" UUID,\n \"retired_at\" TIMESTAMP,\n \"source_import_id\" TEXT\n);",
|
|
31093
31650
|
"columns": {
|
|
31094
31651
|
"id": {
|
|
31095
31652
|
"type": "UUID",
|
|
@@ -31180,6 +31737,16 @@
|
|
|
31180
31737
|
"referenceKind": "crossPackageRef",
|
|
31181
31738
|
"notNull": false,
|
|
31182
31739
|
"unique": false
|
|
31740
|
+
},
|
|
31741
|
+
"retired_at": {
|
|
31742
|
+
"type": "TIMESTAMP",
|
|
31743
|
+
"notNull": false,
|
|
31744
|
+
"unique": false
|
|
31745
|
+
},
|
|
31746
|
+
"source_import_id": {
|
|
31747
|
+
"type": "TEXT",
|
|
31748
|
+
"notNull": false,
|
|
31749
|
+
"unique": false
|
|
31183
31750
|
}
|
|
31184
31751
|
},
|
|
31185
31752
|
"indexes": [
|
|
@@ -31233,7 +31800,7 @@
|
|
|
31233
31800
|
]
|
|
31234
31801
|
}
|
|
31235
31802
|
],
|
|
31236
|
-
"version": "
|
|
31803
|
+
"version": "408f71bc"
|
|
31237
31804
|
},
|
|
31238
31805
|
"importPath": "@happyvertical/smrt-education"
|
|
31239
31806
|
},
|
|
@@ -31299,6 +31866,20 @@
|
|
|
31299
31866
|
"guardian",
|
|
31300
31867
|
""
|
|
31301
31868
|
]
|
|
31869
|
+
},
|
|
31870
|
+
"retiredAt": {
|
|
31871
|
+
"type": "datetime",
|
|
31872
|
+
"required": false,
|
|
31873
|
+
"_meta": {
|
|
31874
|
+
"nullable": true
|
|
31875
|
+
}
|
|
31876
|
+
},
|
|
31877
|
+
"sourceImportId": {
|
|
31878
|
+
"type": "text",
|
|
31879
|
+
"required": false,
|
|
31880
|
+
"_meta": {
|
|
31881
|
+
"nullable": true
|
|
31882
|
+
}
|
|
31302
31883
|
}
|
|
31303
31884
|
},
|
|
31304
31885
|
"methods": {
|
|
@@ -31350,7 +31931,7 @@
|
|
|
31350
31931
|
],
|
|
31351
31932
|
"schema": {
|
|
31352
31933
|
"tableName": "lesson_external_videos",
|
|
31353
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"lesson_external_videos\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"lesson_id\" UUID NOT NULL,\n \"provider\" TEXT DEFAULT 'youtube',\n \"video_id\" TEXT,\n \"title\" TEXT,\n \"step_order\" INTEGER NOT NULL DEFAULT 0,\n \"audience\" TEXT DEFAULT ''\n);",
|
|
31934
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"lesson_external_videos\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"lesson_id\" UUID NOT NULL,\n \"provider\" TEXT DEFAULT 'youtube',\n \"video_id\" TEXT,\n \"title\" TEXT,\n \"step_order\" INTEGER NOT NULL DEFAULT 0,\n \"audience\" TEXT DEFAULT '',\n \"retired_at\" TIMESTAMP,\n \"source_import_id\" TEXT\n);",
|
|
31354
31935
|
"columns": {
|
|
31355
31936
|
"id": {
|
|
31356
31937
|
"type": "UUID",
|
|
@@ -31422,6 +32003,16 @@
|
|
|
31422
32003
|
"notNull": false,
|
|
31423
32004
|
"unique": false,
|
|
31424
32005
|
"default": ""
|
|
32006
|
+
},
|
|
32007
|
+
"retired_at": {
|
|
32008
|
+
"type": "TIMESTAMP",
|
|
32009
|
+
"notNull": false,
|
|
32010
|
+
"unique": false
|
|
32011
|
+
},
|
|
32012
|
+
"source_import_id": {
|
|
32013
|
+
"type": "TEXT",
|
|
32014
|
+
"notNull": false,
|
|
32015
|
+
"unique": false
|
|
31425
32016
|
}
|
|
31426
32017
|
},
|
|
31427
32018
|
"indexes": [
|
|
@@ -31457,7 +32048,7 @@
|
|
|
31457
32048
|
]
|
|
31458
32049
|
}
|
|
31459
32050
|
],
|
|
31460
|
-
"version": "
|
|
32051
|
+
"version": "013a310f"
|
|
31461
32052
|
},
|
|
31462
32053
|
"importPath": "@happyvertical/smrt-education"
|
|
31463
32054
|
},
|
|
@@ -31488,7 +32079,7 @@
|
|
|
31488
32079
|
],
|
|
31489
32080
|
"schema": {
|
|
31490
32081
|
"tableName": "lesson_external_videos",
|
|
31491
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"lesson_external_videos\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"lesson_id\" UUID NOT NULL,\n \"provider\" TEXT DEFAULT 'youtube',\n \"video_id\" TEXT,\n \"title\" TEXT,\n \"step_order\" INTEGER NOT NULL DEFAULT 0,\n \"audience\" TEXT DEFAULT ''\n);",
|
|
32082
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"lesson_external_videos\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"lesson_id\" UUID NOT NULL,\n \"provider\" TEXT DEFAULT 'youtube',\n \"video_id\" TEXT,\n \"title\" TEXT,\n \"step_order\" INTEGER NOT NULL DEFAULT 0,\n \"audience\" TEXT DEFAULT '',\n \"retired_at\" TIMESTAMP,\n \"source_import_id\" TEXT\n);",
|
|
31492
32083
|
"columns": {
|
|
31493
32084
|
"id": {
|
|
31494
32085
|
"type": "UUID",
|
|
@@ -31560,6 +32151,16 @@
|
|
|
31560
32151
|
"notNull": false,
|
|
31561
32152
|
"unique": false,
|
|
31562
32153
|
"default": ""
|
|
32154
|
+
},
|
|
32155
|
+
"retired_at": {
|
|
32156
|
+
"type": "TIMESTAMP",
|
|
32157
|
+
"notNull": false,
|
|
32158
|
+
"unique": false
|
|
32159
|
+
},
|
|
32160
|
+
"source_import_id": {
|
|
32161
|
+
"type": "TEXT",
|
|
32162
|
+
"notNull": false,
|
|
32163
|
+
"unique": false
|
|
31563
32164
|
}
|
|
31564
32165
|
},
|
|
31565
32166
|
"indexes": [
|
|
@@ -31595,7 +32196,7 @@
|
|
|
31595
32196
|
]
|
|
31596
32197
|
}
|
|
31597
32198
|
],
|
|
31598
|
-
"version": "
|
|
32199
|
+
"version": "013a310f"
|
|
31599
32200
|
},
|
|
31600
32201
|
"importPath": "@happyvertical/smrt-education"
|
|
31601
32202
|
},
|