@happyvertical/smrt-education 0.60.2 → 0.60.4
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 +56 -1
- package/agents/lesson-materials.md +1 -1
- package/dist/catalog-service.d.ts.map +1 -1
- package/dist/chunks/{workbook-photo-service-DHP5ja82.js → workbook-photo-service-wqZZWGLb.js} +42 -6
- package/dist/chunks/workbook-photo-service-wqZZWGLb.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 +43 -0
- package/dist/course-bundle-service.d.ts.map +1 -1
- package/dist/index.js +530 -31
- package/dist/index.js.map +1 -1
- package/dist/ingestion.js +1 -1
- package/dist/lesson-assets.d.ts +30 -0
- package/dist/lesson-assets.d.ts.map +1 -1
- package/dist/manifest.json +665 -46
- package/dist/smrt-knowledge.json +229 -15
- 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.4",
|
|
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 \"title\" TEXT,\n \"retired_at\" TIMESTAMP,\n \"source_import_id\" TEXT\n);",
|
|
6363
6363
|
"columns": {
|
|
6364
6364
|
"id": {
|
|
6365
6365
|
"type": "UUID",
|
|
@@ -6445,6 +6445,21 @@
|
|
|
6445
6445
|
"referenceKind": "crossPackageRef",
|
|
6446
6446
|
"notNull": false,
|
|
6447
6447
|
"unique": false
|
|
6448
|
+
},
|
|
6449
|
+
"title": {
|
|
6450
|
+
"type": "TEXT",
|
|
6451
|
+
"notNull": false,
|
|
6452
|
+
"unique": false
|
|
6453
|
+
},
|
|
6454
|
+
"retired_at": {
|
|
6455
|
+
"type": "TIMESTAMP",
|
|
6456
|
+
"notNull": false,
|
|
6457
|
+
"unique": false
|
|
6458
|
+
},
|
|
6459
|
+
"source_import_id": {
|
|
6460
|
+
"type": "TEXT",
|
|
6461
|
+
"notNull": false,
|
|
6462
|
+
"unique": false
|
|
6448
6463
|
}
|
|
6449
6464
|
},
|
|
6450
6465
|
"indexes": [
|
|
@@ -6498,7 +6513,7 @@
|
|
|
6498
6513
|
]
|
|
6499
6514
|
}
|
|
6500
6515
|
],
|
|
6501
|
-
"version": "
|
|
6516
|
+
"version": "6c7cadc6"
|
|
6502
6517
|
},
|
|
6503
6518
|
"importPath": "@happyvertical/smrt-education"
|
|
6504
6519
|
},
|
|
@@ -16683,7 +16698,7 @@
|
|
|
16683
16698
|
"className": "CourseBundleAttachment",
|
|
16684
16699
|
"qualifiedName": "@happyvertical/smrt-education:CourseBundleAttachment",
|
|
16685
16700
|
"collection": "coursebundleattachments",
|
|
16686
|
-
"description": "
|
|
16701
|
+
"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
16702
|
"filePath": "/home/runner/work/smrt/smrt/packages/education/src/course-bundle-models.ts",
|
|
16688
16703
|
"packageName": "@happyvertical/smrt-education",
|
|
16689
16704
|
"fields": {
|
|
@@ -16752,6 +16767,25 @@
|
|
|
16752
16767
|
"isStatic": false,
|
|
16753
16768
|
"isPublic": true
|
|
16754
16769
|
},
|
|
16770
|
+
"supersedeWith": {
|
|
16771
|
+
"name": "supersedeWith",
|
|
16772
|
+
"async": true,
|
|
16773
|
+
"parameters": [
|
|
16774
|
+
{
|
|
16775
|
+
"name": "importId",
|
|
16776
|
+
"type": "string",
|
|
16777
|
+
"optional": false
|
|
16778
|
+
},
|
|
16779
|
+
{
|
|
16780
|
+
"name": "actorUserId",
|
|
16781
|
+
"type": "string",
|
|
16782
|
+
"optional": false
|
|
16783
|
+
}
|
|
16784
|
+
],
|
|
16785
|
+
"returnType": "Promise<this>",
|
|
16786
|
+
"isStatic": false,
|
|
16787
|
+
"isPublic": true
|
|
16788
|
+
},
|
|
16755
16789
|
"save": {
|
|
16756
16790
|
"name": "save",
|
|
16757
16791
|
"async": true,
|
|
@@ -18023,7 +18057,392 @@
|
|
|
18023
18057
|
"notNull": false,
|
|
18024
18058
|
"unique": false
|
|
18025
18059
|
},
|
|
18026
|
-
"course_id": {
|
|
18060
|
+
"course_id": {
|
|
18061
|
+
"type": "TEXT",
|
|
18062
|
+
"notNull": false,
|
|
18063
|
+
"unique": false
|
|
18064
|
+
}
|
|
18065
|
+
},
|
|
18066
|
+
"indexes": [
|
|
18067
|
+
{
|
|
18068
|
+
"name": "course_bundle_units_tenant_id_unit_key_idx",
|
|
18069
|
+
"columns": [
|
|
18070
|
+
"tenant_id",
|
|
18071
|
+
"unit_key"
|
|
18072
|
+
],
|
|
18073
|
+
"unique": true,
|
|
18074
|
+
"nullsNotDistinct": true
|
|
18075
|
+
},
|
|
18076
|
+
{
|
|
18077
|
+
"name": "course_bundle_units_slug_context_idx",
|
|
18078
|
+
"columns": [
|
|
18079
|
+
"slug",
|
|
18080
|
+
"context"
|
|
18081
|
+
]
|
|
18082
|
+
},
|
|
18083
|
+
{
|
|
18084
|
+
"name": "course_bundle_units_unique",
|
|
18085
|
+
"columns": [
|
|
18086
|
+
"tenant_id",
|
|
18087
|
+
"unit_key"
|
|
18088
|
+
],
|
|
18089
|
+
"unique": true
|
|
18090
|
+
},
|
|
18091
|
+
{
|
|
18092
|
+
"name": "course_bundle_units_tenant_id_created_at_idx",
|
|
18093
|
+
"columns": [
|
|
18094
|
+
"tenant_id",
|
|
18095
|
+
"created_at"
|
|
18096
|
+
]
|
|
18097
|
+
}
|
|
18098
|
+
],
|
|
18099
|
+
"version": "66fbb11b"
|
|
18100
|
+
},
|
|
18101
|
+
"importPath": "@happyvertical/smrt-education"
|
|
18102
|
+
},
|
|
18103
|
+
"@happyvertical/smrt-education:CourseBundleUnitCollection": {
|
|
18104
|
+
"name": "coursebundleunitcollection",
|
|
18105
|
+
"className": "CourseBundleUnitCollection",
|
|
18106
|
+
"qualifiedName": "@happyvertical/smrt-education:CourseBundleUnitCollection",
|
|
18107
|
+
"collection": "coursebundleunits",
|
|
18108
|
+
"filePath": "/home/runner/work/smrt/smrt/packages/education/src/course-bundle-models.ts",
|
|
18109
|
+
"packageName": "@happyvertical/smrt-education",
|
|
18110
|
+
"fields": {},
|
|
18111
|
+
"methods": {},
|
|
18112
|
+
"decoratorConfig": {
|
|
18113
|
+
"tableName": "course_bundle_units",
|
|
18114
|
+
"api": false,
|
|
18115
|
+
"mcp": false,
|
|
18116
|
+
"cli": false
|
|
18117
|
+
},
|
|
18118
|
+
"extends": "SmrtCollection",
|
|
18119
|
+
"extendsTypeArg": "CourseBundleUnit",
|
|
18120
|
+
"exportName": "CourseBundleUnitCollection",
|
|
18121
|
+
"collectionExportName": "CourseBundleUnitCollectionCollection",
|
|
18122
|
+
"collectionOf": "@happyvertical/smrt-education:CourseBundleUnit",
|
|
18123
|
+
"inheritedExposure": [
|
|
18124
|
+
"api",
|
|
18125
|
+
"mcp",
|
|
18126
|
+
"cli"
|
|
18127
|
+
],
|
|
18128
|
+
"schema": {
|
|
18129
|
+
"tableName": "course_bundle_units",
|
|
18130
|
+
"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);",
|
|
18131
|
+
"columns": {
|
|
18132
|
+
"id": {
|
|
18133
|
+
"type": "UUID",
|
|
18134
|
+
"primaryKey": true,
|
|
18135
|
+
"referenceKind": "id",
|
|
18136
|
+
"notNull": true
|
|
18137
|
+
},
|
|
18138
|
+
"slug": {
|
|
18139
|
+
"type": "TEXT",
|
|
18140
|
+
"notNull": true
|
|
18141
|
+
},
|
|
18142
|
+
"context": {
|
|
18143
|
+
"type": "TEXT",
|
|
18144
|
+
"notNull": true,
|
|
18145
|
+
"default": ""
|
|
18146
|
+
},
|
|
18147
|
+
"created_at": {
|
|
18148
|
+
"type": "TIMESTAMP",
|
|
18149
|
+
"notNull": true,
|
|
18150
|
+
"default": "current_timestamp"
|
|
18151
|
+
},
|
|
18152
|
+
"updated_at": {
|
|
18153
|
+
"type": "TIMESTAMP",
|
|
18154
|
+
"notNull": true,
|
|
18155
|
+
"default": "current_timestamp"
|
|
18156
|
+
},
|
|
18157
|
+
"tenant_id": {
|
|
18158
|
+
"type": "UUID",
|
|
18159
|
+
"referenceKind": "tenantId",
|
|
18160
|
+
"notNull": true,
|
|
18161
|
+
"unique": false
|
|
18162
|
+
},
|
|
18163
|
+
"unit_key": {
|
|
18164
|
+
"type": "TEXT",
|
|
18165
|
+
"notNull": false,
|
|
18166
|
+
"unique": false
|
|
18167
|
+
},
|
|
18168
|
+
"course_id": {
|
|
18169
|
+
"type": "TEXT",
|
|
18170
|
+
"notNull": false,
|
|
18171
|
+
"unique": false
|
|
18172
|
+
}
|
|
18173
|
+
},
|
|
18174
|
+
"indexes": [
|
|
18175
|
+
{
|
|
18176
|
+
"name": "course_bundle_units_tenant_id_unit_key_idx",
|
|
18177
|
+
"columns": [
|
|
18178
|
+
"tenant_id",
|
|
18179
|
+
"unit_key"
|
|
18180
|
+
],
|
|
18181
|
+
"unique": true,
|
|
18182
|
+
"nullsNotDistinct": true
|
|
18183
|
+
},
|
|
18184
|
+
{
|
|
18185
|
+
"name": "course_bundle_units_slug_context_idx",
|
|
18186
|
+
"columns": [
|
|
18187
|
+
"slug",
|
|
18188
|
+
"context"
|
|
18189
|
+
]
|
|
18190
|
+
},
|
|
18191
|
+
{
|
|
18192
|
+
"name": "course_bundle_units_unique",
|
|
18193
|
+
"columns": [
|
|
18194
|
+
"tenant_id",
|
|
18195
|
+
"unit_key"
|
|
18196
|
+
],
|
|
18197
|
+
"unique": true
|
|
18198
|
+
},
|
|
18199
|
+
{
|
|
18200
|
+
"name": "course_bundle_units_tenant_id_created_at_idx",
|
|
18201
|
+
"columns": [
|
|
18202
|
+
"tenant_id",
|
|
18203
|
+
"created_at"
|
|
18204
|
+
]
|
|
18205
|
+
}
|
|
18206
|
+
],
|
|
18207
|
+
"version": "66fbb11b"
|
|
18208
|
+
},
|
|
18209
|
+
"importPath": "@happyvertical/smrt-education"
|
|
18210
|
+
},
|
|
18211
|
+
"@happyvertical/smrt-education:CourseBundleSupersession": {
|
|
18212
|
+
"name": "coursebundlesupersession",
|
|
18213
|
+
"className": "CourseBundleSupersession",
|
|
18214
|
+
"qualifiedName": "@happyvertical/smrt-education:CourseBundleSupersession",
|
|
18215
|
+
"collection": "coursebundlesupersessions",
|
|
18216
|
+
"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.",
|
|
18217
|
+
"filePath": "/home/runner/work/smrt/smrt/packages/education/src/course-bundle-models.ts",
|
|
18218
|
+
"packageName": "@happyvertical/smrt-education",
|
|
18219
|
+
"fields": {
|
|
18220
|
+
"tenantId": {
|
|
18221
|
+
"type": "text",
|
|
18222
|
+
"required": true,
|
|
18223
|
+
"_meta": {
|
|
18224
|
+
"sqlType": "UUID",
|
|
18225
|
+
"__tenancy": {
|
|
18226
|
+
"isTenantIdField": true,
|
|
18227
|
+
"autoFilter": true,
|
|
18228
|
+
"required": true,
|
|
18229
|
+
"autoPopulate": true,
|
|
18230
|
+
"nullable": false,
|
|
18231
|
+
"mode": "required",
|
|
18232
|
+
"field": "tenantId",
|
|
18233
|
+
"allowSuperAdminBypass": false
|
|
18234
|
+
}
|
|
18235
|
+
}
|
|
18236
|
+
},
|
|
18237
|
+
"courseId": {
|
|
18238
|
+
"type": "foreignKey",
|
|
18239
|
+
"required": true,
|
|
18240
|
+
"related": "Course",
|
|
18241
|
+
"_meta": {
|
|
18242
|
+
"required": true
|
|
18243
|
+
}
|
|
18244
|
+
},
|
|
18245
|
+
"unitKey": {
|
|
18246
|
+
"type": "text",
|
|
18247
|
+
"required": false
|
|
18248
|
+
},
|
|
18249
|
+
"partIndex": {
|
|
18250
|
+
"type": "integer",
|
|
18251
|
+
"required": true,
|
|
18252
|
+
"default": 1
|
|
18253
|
+
},
|
|
18254
|
+
"importId": {
|
|
18255
|
+
"type": "foreignKey",
|
|
18256
|
+
"required": true,
|
|
18257
|
+
"related": "CourseBundleImport",
|
|
18258
|
+
"_meta": {
|
|
18259
|
+
"required": true
|
|
18260
|
+
}
|
|
18261
|
+
},
|
|
18262
|
+
"supersededImportId": {
|
|
18263
|
+
"type": "foreignKey",
|
|
18264
|
+
"required": true,
|
|
18265
|
+
"related": "CourseBundleImport",
|
|
18266
|
+
"_meta": {
|
|
18267
|
+
"required": true
|
|
18268
|
+
}
|
|
18269
|
+
},
|
|
18270
|
+
"supersededByUserId": {
|
|
18271
|
+
"type": "text",
|
|
18272
|
+
"required": false
|
|
18273
|
+
},
|
|
18274
|
+
"recordedAt": {
|
|
18275
|
+
"type": "text",
|
|
18276
|
+
"required": false
|
|
18277
|
+
}
|
|
18278
|
+
},
|
|
18279
|
+
"methods": {
|
|
18280
|
+
"delete": {
|
|
18281
|
+
"name": "delete",
|
|
18282
|
+
"async": true,
|
|
18283
|
+
"parameters": [],
|
|
18284
|
+
"returnType": "Promise<void>",
|
|
18285
|
+
"isStatic": false,
|
|
18286
|
+
"isPublic": true
|
|
18287
|
+
},
|
|
18288
|
+
"save": {
|
|
18289
|
+
"name": "save",
|
|
18290
|
+
"async": true,
|
|
18291
|
+
"parameters": [
|
|
18292
|
+
{
|
|
18293
|
+
"name": "options",
|
|
18294
|
+
"type": "SmrtSaveOptions",
|
|
18295
|
+
"optional": true
|
|
18296
|
+
}
|
|
18297
|
+
],
|
|
18298
|
+
"returnType": "Promise<this>",
|
|
18299
|
+
"isStatic": false,
|
|
18300
|
+
"isPublic": true
|
|
18301
|
+
}
|
|
18302
|
+
},
|
|
18303
|
+
"decoratorConfig": {
|
|
18304
|
+
"tableName": "course_bundle_supersessions",
|
|
18305
|
+
"conflictColumns": [
|
|
18306
|
+
"tenant_id",
|
|
18307
|
+
"superseded_import_id"
|
|
18308
|
+
],
|
|
18309
|
+
"indexes": [
|
|
18310
|
+
{
|
|
18311
|
+
"name": "course_bundle_supersessions_old_unique",
|
|
18312
|
+
"columns": [
|
|
18313
|
+
"tenantId",
|
|
18314
|
+
"supersededImportId"
|
|
18315
|
+
],
|
|
18316
|
+
"unique": true
|
|
18317
|
+
},
|
|
18318
|
+
{
|
|
18319
|
+
"name": "course_bundle_supersessions_new",
|
|
18320
|
+
"columns": [
|
|
18321
|
+
"tenantId",
|
|
18322
|
+
"importId"
|
|
18323
|
+
]
|
|
18324
|
+
}
|
|
18325
|
+
],
|
|
18326
|
+
"api": false,
|
|
18327
|
+
"mcp": false,
|
|
18328
|
+
"cli": false,
|
|
18329
|
+
"tenantScoped": {
|
|
18330
|
+
"mode": "required"
|
|
18331
|
+
}
|
|
18332
|
+
},
|
|
18333
|
+
"extends": "SmrtObject",
|
|
18334
|
+
"exportName": "CourseBundleSupersession",
|
|
18335
|
+
"collectionExportName": "CourseBundleSupersessionCollection",
|
|
18336
|
+
"validationRules": [
|
|
18337
|
+
{
|
|
18338
|
+
"field": "courseId",
|
|
18339
|
+
"rule": "required",
|
|
18340
|
+
"fieldType": "foreignKey"
|
|
18341
|
+
},
|
|
18342
|
+
{
|
|
18343
|
+
"field": "partIndex",
|
|
18344
|
+
"rule": "required",
|
|
18345
|
+
"fieldType": "integer"
|
|
18346
|
+
},
|
|
18347
|
+
{
|
|
18348
|
+
"field": "importId",
|
|
18349
|
+
"rule": "required",
|
|
18350
|
+
"fieldType": "foreignKey"
|
|
18351
|
+
},
|
|
18352
|
+
{
|
|
18353
|
+
"field": "supersededImportId",
|
|
18354
|
+
"rule": "required",
|
|
18355
|
+
"fieldType": "foreignKey"
|
|
18356
|
+
}
|
|
18357
|
+
],
|
|
18358
|
+
"schema": {
|
|
18359
|
+
"tableName": "course_bundle_supersessions",
|
|
18360
|
+
"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);",
|
|
18361
|
+
"columns": {
|
|
18362
|
+
"id": {
|
|
18363
|
+
"type": "UUID",
|
|
18364
|
+
"primaryKey": true,
|
|
18365
|
+
"referenceKind": "id",
|
|
18366
|
+
"notNull": true
|
|
18367
|
+
},
|
|
18368
|
+
"slug": {
|
|
18369
|
+
"type": "TEXT",
|
|
18370
|
+
"notNull": true
|
|
18371
|
+
},
|
|
18372
|
+
"context": {
|
|
18373
|
+
"type": "TEXT",
|
|
18374
|
+
"notNull": true,
|
|
18375
|
+
"default": ""
|
|
18376
|
+
},
|
|
18377
|
+
"created_at": {
|
|
18378
|
+
"type": "TIMESTAMP",
|
|
18379
|
+
"notNull": true,
|
|
18380
|
+
"default": "current_timestamp"
|
|
18381
|
+
},
|
|
18382
|
+
"updated_at": {
|
|
18383
|
+
"type": "TIMESTAMP",
|
|
18384
|
+
"notNull": true,
|
|
18385
|
+
"default": "current_timestamp"
|
|
18386
|
+
},
|
|
18387
|
+
"tenant_id": {
|
|
18388
|
+
"type": "UUID",
|
|
18389
|
+
"referenceKind": "tenantId",
|
|
18390
|
+
"notNull": true,
|
|
18391
|
+
"unique": false
|
|
18392
|
+
},
|
|
18393
|
+
"course_id": {
|
|
18394
|
+
"type": "UUID",
|
|
18395
|
+
"referenceKind": "foreignKey",
|
|
18396
|
+
"notNull": true,
|
|
18397
|
+
"unique": false,
|
|
18398
|
+
"foreignKey": {
|
|
18399
|
+
"table": "courses",
|
|
18400
|
+
"column": "id",
|
|
18401
|
+
"onDelete": "NO ACTION",
|
|
18402
|
+
"onUpdate": "CASCADE"
|
|
18403
|
+
}
|
|
18404
|
+
},
|
|
18405
|
+
"unit_key": {
|
|
18406
|
+
"type": "TEXT",
|
|
18407
|
+
"notNull": false,
|
|
18408
|
+
"unique": false
|
|
18409
|
+
},
|
|
18410
|
+
"part_index": {
|
|
18411
|
+
"type": "INTEGER",
|
|
18412
|
+
"notNull": true,
|
|
18413
|
+
"unique": false,
|
|
18414
|
+
"default": 1
|
|
18415
|
+
},
|
|
18416
|
+
"import_id": {
|
|
18417
|
+
"type": "UUID",
|
|
18418
|
+
"referenceKind": "foreignKey",
|
|
18419
|
+
"notNull": true,
|
|
18420
|
+
"unique": false,
|
|
18421
|
+
"foreignKey": {
|
|
18422
|
+
"table": "course_bundle_imports",
|
|
18423
|
+
"column": "id",
|
|
18424
|
+
"onDelete": "NO ACTION",
|
|
18425
|
+
"onUpdate": "CASCADE"
|
|
18426
|
+
}
|
|
18427
|
+
},
|
|
18428
|
+
"superseded_import_id": {
|
|
18429
|
+
"type": "UUID",
|
|
18430
|
+
"referenceKind": "foreignKey",
|
|
18431
|
+
"notNull": true,
|
|
18432
|
+
"unique": false,
|
|
18433
|
+
"foreignKey": {
|
|
18434
|
+
"table": "course_bundle_imports",
|
|
18435
|
+
"column": "id",
|
|
18436
|
+
"onDelete": "CASCADE",
|
|
18437
|
+
"onUpdate": "CASCADE"
|
|
18438
|
+
}
|
|
18439
|
+
},
|
|
18440
|
+
"superseded_by_user_id": {
|
|
18441
|
+
"type": "TEXT",
|
|
18442
|
+
"notNull": false,
|
|
18443
|
+
"unique": false
|
|
18444
|
+
},
|
|
18445
|
+
"recorded_at": {
|
|
18027
18446
|
"type": "TEXT",
|
|
18028
18447
|
"notNull": false,
|
|
18029
18448
|
"unique": false
|
|
@@ -18031,69 +18450,93 @@
|
|
|
18031
18450
|
},
|
|
18032
18451
|
"indexes": [
|
|
18033
18452
|
{
|
|
18034
|
-
"name": "
|
|
18453
|
+
"name": "course_bundle_supersessions_tenant_id_superseded_import_id_idx",
|
|
18035
18454
|
"columns": [
|
|
18036
18455
|
"tenant_id",
|
|
18037
|
-
"
|
|
18456
|
+
"superseded_import_id"
|
|
18038
18457
|
],
|
|
18039
|
-
"unique": true
|
|
18040
|
-
"nullsNotDistinct": true
|
|
18458
|
+
"unique": true
|
|
18041
18459
|
},
|
|
18042
18460
|
{
|
|
18043
|
-
"name": "
|
|
18461
|
+
"name": "course_bundle_supersessions_slug_context_idx",
|
|
18044
18462
|
"columns": [
|
|
18045
18463
|
"slug",
|
|
18046
18464
|
"context"
|
|
18047
18465
|
]
|
|
18048
18466
|
},
|
|
18049
18467
|
{
|
|
18050
|
-
"name": "
|
|
18468
|
+
"name": "course_bundle_supersessions_old_unique",
|
|
18051
18469
|
"columns": [
|
|
18052
18470
|
"tenant_id",
|
|
18053
|
-
"
|
|
18471
|
+
"superseded_import_id"
|
|
18054
18472
|
],
|
|
18055
18473
|
"unique": true
|
|
18056
18474
|
},
|
|
18057
18475
|
{
|
|
18058
|
-
"name": "
|
|
18476
|
+
"name": "course_bundle_supersessions_new",
|
|
18477
|
+
"columns": [
|
|
18478
|
+
"tenant_id",
|
|
18479
|
+
"import_id"
|
|
18480
|
+
]
|
|
18481
|
+
},
|
|
18482
|
+
{
|
|
18483
|
+
"name": "course_bundle_supersessions_tenant_id_created_at_idx",
|
|
18059
18484
|
"columns": [
|
|
18060
18485
|
"tenant_id",
|
|
18061
18486
|
"created_at"
|
|
18062
18487
|
]
|
|
18488
|
+
},
|
|
18489
|
+
{
|
|
18490
|
+
"name": "course_bundle_supersessions_course_id_idx",
|
|
18491
|
+
"columns": [
|
|
18492
|
+
"course_id"
|
|
18493
|
+
]
|
|
18494
|
+
},
|
|
18495
|
+
{
|
|
18496
|
+
"name": "course_bundle_supersessions_import_id_idx",
|
|
18497
|
+
"columns": [
|
|
18498
|
+
"import_id"
|
|
18499
|
+
]
|
|
18500
|
+
},
|
|
18501
|
+
{
|
|
18502
|
+
"name": "course_bundle_supersessions_superseded_import_id_idx",
|
|
18503
|
+
"columns": [
|
|
18504
|
+
"superseded_import_id"
|
|
18505
|
+
]
|
|
18063
18506
|
}
|
|
18064
18507
|
],
|
|
18065
|
-
"version": "
|
|
18508
|
+
"version": "538280cd"
|
|
18066
18509
|
},
|
|
18067
18510
|
"importPath": "@happyvertical/smrt-education"
|
|
18068
18511
|
},
|
|
18069
|
-
"@happyvertical/smrt-education:
|
|
18070
|
-
"name": "
|
|
18071
|
-
"className": "
|
|
18072
|
-
"qualifiedName": "@happyvertical/smrt-education:
|
|
18073
|
-
"collection": "
|
|
18512
|
+
"@happyvertical/smrt-education:CourseBundleSupersessionCollection": {
|
|
18513
|
+
"name": "coursebundlesupersessioncollection",
|
|
18514
|
+
"className": "CourseBundleSupersessionCollection",
|
|
18515
|
+
"qualifiedName": "@happyvertical/smrt-education:CourseBundleSupersessionCollection",
|
|
18516
|
+
"collection": "coursebundlesupersessions",
|
|
18074
18517
|
"filePath": "/home/runner/work/smrt/smrt/packages/education/src/course-bundle-models.ts",
|
|
18075
18518
|
"packageName": "@happyvertical/smrt-education",
|
|
18076
18519
|
"fields": {},
|
|
18077
18520
|
"methods": {},
|
|
18078
18521
|
"decoratorConfig": {
|
|
18079
|
-
"tableName": "
|
|
18522
|
+
"tableName": "course_bundle_supersessions",
|
|
18080
18523
|
"api": false,
|
|
18081
18524
|
"mcp": false,
|
|
18082
18525
|
"cli": false
|
|
18083
18526
|
},
|
|
18084
18527
|
"extends": "SmrtCollection",
|
|
18085
|
-
"extendsTypeArg": "
|
|
18086
|
-
"exportName": "
|
|
18087
|
-
"collectionExportName": "
|
|
18088
|
-
"collectionOf": "@happyvertical/smrt-education:
|
|
18528
|
+
"extendsTypeArg": "CourseBundleSupersession",
|
|
18529
|
+
"exportName": "CourseBundleSupersessionCollection",
|
|
18530
|
+
"collectionExportName": "CourseBundleSupersessionCollectionCollection",
|
|
18531
|
+
"collectionOf": "@happyvertical/smrt-education:CourseBundleSupersession",
|
|
18089
18532
|
"inheritedExposure": [
|
|
18090
18533
|
"api",
|
|
18091
18534
|
"mcp",
|
|
18092
18535
|
"cli"
|
|
18093
18536
|
],
|
|
18094
18537
|
"schema": {
|
|
18095
|
-
"tableName": "
|
|
18096
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"
|
|
18538
|
+
"tableName": "course_bundle_supersessions",
|
|
18539
|
+
"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
18540
|
"columns": {
|
|
18098
18541
|
"id": {
|
|
18099
18542
|
"type": "UUID",
|
|
@@ -18126,12 +18569,59 @@
|
|
|
18126
18569
|
"notNull": true,
|
|
18127
18570
|
"unique": false
|
|
18128
18571
|
},
|
|
18572
|
+
"course_id": {
|
|
18573
|
+
"type": "UUID",
|
|
18574
|
+
"referenceKind": "foreignKey",
|
|
18575
|
+
"notNull": true,
|
|
18576
|
+
"unique": false,
|
|
18577
|
+
"foreignKey": {
|
|
18578
|
+
"table": "courses",
|
|
18579
|
+
"column": "id",
|
|
18580
|
+
"onDelete": "NO ACTION",
|
|
18581
|
+
"onUpdate": "CASCADE"
|
|
18582
|
+
}
|
|
18583
|
+
},
|
|
18129
18584
|
"unit_key": {
|
|
18130
18585
|
"type": "TEXT",
|
|
18131
18586
|
"notNull": false,
|
|
18132
18587
|
"unique": false
|
|
18133
18588
|
},
|
|
18134
|
-
"
|
|
18589
|
+
"part_index": {
|
|
18590
|
+
"type": "INTEGER",
|
|
18591
|
+
"notNull": true,
|
|
18592
|
+
"unique": false,
|
|
18593
|
+
"default": 1
|
|
18594
|
+
},
|
|
18595
|
+
"import_id": {
|
|
18596
|
+
"type": "UUID",
|
|
18597
|
+
"referenceKind": "foreignKey",
|
|
18598
|
+
"notNull": true,
|
|
18599
|
+
"unique": false,
|
|
18600
|
+
"foreignKey": {
|
|
18601
|
+
"table": "course_bundle_imports",
|
|
18602
|
+
"column": "id",
|
|
18603
|
+
"onDelete": "NO ACTION",
|
|
18604
|
+
"onUpdate": "CASCADE"
|
|
18605
|
+
}
|
|
18606
|
+
},
|
|
18607
|
+
"superseded_import_id": {
|
|
18608
|
+
"type": "UUID",
|
|
18609
|
+
"referenceKind": "foreignKey",
|
|
18610
|
+
"notNull": true,
|
|
18611
|
+
"unique": false,
|
|
18612
|
+
"foreignKey": {
|
|
18613
|
+
"table": "course_bundle_imports",
|
|
18614
|
+
"column": "id",
|
|
18615
|
+
"onDelete": "CASCADE",
|
|
18616
|
+
"onUpdate": "CASCADE"
|
|
18617
|
+
}
|
|
18618
|
+
},
|
|
18619
|
+
"superseded_by_user_id": {
|
|
18620
|
+
"type": "TEXT",
|
|
18621
|
+
"notNull": false,
|
|
18622
|
+
"unique": false
|
|
18623
|
+
},
|
|
18624
|
+
"recorded_at": {
|
|
18135
18625
|
"type": "TEXT",
|
|
18136
18626
|
"notNull": false,
|
|
18137
18627
|
"unique": false
|
|
@@ -18139,38 +18629,62 @@
|
|
|
18139
18629
|
},
|
|
18140
18630
|
"indexes": [
|
|
18141
18631
|
{
|
|
18142
|
-
"name": "
|
|
18632
|
+
"name": "course_bundle_supersessions_tenant_id_superseded_import_id_idx",
|
|
18143
18633
|
"columns": [
|
|
18144
18634
|
"tenant_id",
|
|
18145
|
-
"
|
|
18635
|
+
"superseded_import_id"
|
|
18146
18636
|
],
|
|
18147
|
-
"unique": true
|
|
18148
|
-
"nullsNotDistinct": true
|
|
18637
|
+
"unique": true
|
|
18149
18638
|
},
|
|
18150
18639
|
{
|
|
18151
|
-
"name": "
|
|
18640
|
+
"name": "course_bundle_supersessions_slug_context_idx",
|
|
18152
18641
|
"columns": [
|
|
18153
18642
|
"slug",
|
|
18154
18643
|
"context"
|
|
18155
18644
|
]
|
|
18156
18645
|
},
|
|
18157
18646
|
{
|
|
18158
|
-
"name": "
|
|
18647
|
+
"name": "course_bundle_supersessions_old_unique",
|
|
18159
18648
|
"columns": [
|
|
18160
18649
|
"tenant_id",
|
|
18161
|
-
"
|
|
18650
|
+
"superseded_import_id"
|
|
18162
18651
|
],
|
|
18163
18652
|
"unique": true
|
|
18164
18653
|
},
|
|
18165
18654
|
{
|
|
18166
|
-
"name": "
|
|
18655
|
+
"name": "course_bundle_supersessions_new",
|
|
18656
|
+
"columns": [
|
|
18657
|
+
"tenant_id",
|
|
18658
|
+
"import_id"
|
|
18659
|
+
]
|
|
18660
|
+
},
|
|
18661
|
+
{
|
|
18662
|
+
"name": "course_bundle_supersessions_tenant_id_created_at_idx",
|
|
18167
18663
|
"columns": [
|
|
18168
18664
|
"tenant_id",
|
|
18169
18665
|
"created_at"
|
|
18170
18666
|
]
|
|
18667
|
+
},
|
|
18668
|
+
{
|
|
18669
|
+
"name": "course_bundle_supersessions_course_id_idx",
|
|
18670
|
+
"columns": [
|
|
18671
|
+
"course_id"
|
|
18672
|
+
]
|
|
18673
|
+
},
|
|
18674
|
+
{
|
|
18675
|
+
"name": "course_bundle_supersessions_import_id_idx",
|
|
18676
|
+
"columns": [
|
|
18677
|
+
"import_id"
|
|
18678
|
+
]
|
|
18679
|
+
},
|
|
18680
|
+
{
|
|
18681
|
+
"name": "course_bundle_supersessions_superseded_import_id_idx",
|
|
18682
|
+
"columns": [
|
|
18683
|
+
"superseded_import_id"
|
|
18684
|
+
]
|
|
18171
18685
|
}
|
|
18172
18686
|
],
|
|
18173
|
-
"version": "
|
|
18687
|
+
"version": "538280cd"
|
|
18174
18688
|
},
|
|
18175
18689
|
"importPath": "@happyvertical/smrt-education"
|
|
18176
18690
|
},
|
|
@@ -30563,6 +31077,27 @@
|
|
|
30563
31077
|
"_meta": {
|
|
30564
31078
|
"nullable": true
|
|
30565
31079
|
}
|
|
31080
|
+
},
|
|
31081
|
+
"title": {
|
|
31082
|
+
"type": "text",
|
|
31083
|
+
"required": false,
|
|
31084
|
+
"_meta": {
|
|
31085
|
+
"nullable": true
|
|
31086
|
+
}
|
|
31087
|
+
},
|
|
31088
|
+
"retiredAt": {
|
|
31089
|
+
"type": "datetime",
|
|
31090
|
+
"required": false,
|
|
31091
|
+
"_meta": {
|
|
31092
|
+
"nullable": true
|
|
31093
|
+
}
|
|
31094
|
+
},
|
|
31095
|
+
"sourceImportId": {
|
|
31096
|
+
"type": "text",
|
|
31097
|
+
"required": false,
|
|
31098
|
+
"_meta": {
|
|
31099
|
+
"nullable": true
|
|
31100
|
+
}
|
|
30566
31101
|
}
|
|
30567
31102
|
},
|
|
30568
31103
|
"methods": {
|
|
@@ -30599,6 +31134,7 @@
|
|
|
30599
31134
|
"extends": "SmrtObject",
|
|
30600
31135
|
"exportName": "LessonAsset",
|
|
30601
31136
|
"collectionExportName": "LessonAssetCollection",
|
|
31137
|
+
"displayLabelField": "title",
|
|
30602
31138
|
"validationRules": [
|
|
30603
31139
|
{
|
|
30604
31140
|
"field": "lessonId",
|
|
@@ -30623,7 +31159,7 @@
|
|
|
30623
31159
|
],
|
|
30624
31160
|
"schema": {
|
|
30625
31161
|
"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);",
|
|
31162
|
+
"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 \"title\" TEXT,\n \"retired_at\" TIMESTAMP,\n \"source_import_id\" TEXT\n);",
|
|
30627
31163
|
"columns": {
|
|
30628
31164
|
"id": {
|
|
30629
31165
|
"type": "UUID",
|
|
@@ -30709,6 +31245,21 @@
|
|
|
30709
31245
|
"referenceKind": "crossPackageRef",
|
|
30710
31246
|
"notNull": false,
|
|
30711
31247
|
"unique": false
|
|
31248
|
+
},
|
|
31249
|
+
"title": {
|
|
31250
|
+
"type": "TEXT",
|
|
31251
|
+
"notNull": false,
|
|
31252
|
+
"unique": false
|
|
31253
|
+
},
|
|
31254
|
+
"retired_at": {
|
|
31255
|
+
"type": "TIMESTAMP",
|
|
31256
|
+
"notNull": false,
|
|
31257
|
+
"unique": false
|
|
31258
|
+
},
|
|
31259
|
+
"source_import_id": {
|
|
31260
|
+
"type": "TEXT",
|
|
31261
|
+
"notNull": false,
|
|
31262
|
+
"unique": false
|
|
30712
31263
|
}
|
|
30713
31264
|
},
|
|
30714
31265
|
"indexes": [
|
|
@@ -30762,7 +31313,7 @@
|
|
|
30762
31313
|
]
|
|
30763
31314
|
}
|
|
30764
31315
|
],
|
|
30765
|
-
"version": "
|
|
31316
|
+
"version": "6c7cadc6"
|
|
30766
31317
|
},
|
|
30767
31318
|
"importPath": "@happyvertical/smrt-education"
|
|
30768
31319
|
},
|
|
@@ -30853,6 +31404,20 @@
|
|
|
30853
31404
|
"_meta": {
|
|
30854
31405
|
"nullable": true
|
|
30855
31406
|
}
|
|
31407
|
+
},
|
|
31408
|
+
"retiredAt": {
|
|
31409
|
+
"type": "datetime",
|
|
31410
|
+
"required": false,
|
|
31411
|
+
"_meta": {
|
|
31412
|
+
"nullable": true
|
|
31413
|
+
}
|
|
31414
|
+
},
|
|
31415
|
+
"sourceImportId": {
|
|
31416
|
+
"type": "text",
|
|
31417
|
+
"required": false,
|
|
31418
|
+
"_meta": {
|
|
31419
|
+
"nullable": true
|
|
31420
|
+
}
|
|
30856
31421
|
}
|
|
30857
31422
|
},
|
|
30858
31423
|
"methods": {
|
|
@@ -30914,7 +31479,7 @@
|
|
|
30914
31479
|
],
|
|
30915
31480
|
"schema": {
|
|
30916
31481
|
"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);",
|
|
31482
|
+
"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
31483
|
"columns": {
|
|
30919
31484
|
"id": {
|
|
30920
31485
|
"type": "UUID",
|
|
@@ -31005,6 +31570,16 @@
|
|
|
31005
31570
|
"referenceKind": "crossPackageRef",
|
|
31006
31571
|
"notNull": false,
|
|
31007
31572
|
"unique": false
|
|
31573
|
+
},
|
|
31574
|
+
"retired_at": {
|
|
31575
|
+
"type": "TIMESTAMP",
|
|
31576
|
+
"notNull": false,
|
|
31577
|
+
"unique": false
|
|
31578
|
+
},
|
|
31579
|
+
"source_import_id": {
|
|
31580
|
+
"type": "TEXT",
|
|
31581
|
+
"notNull": false,
|
|
31582
|
+
"unique": false
|
|
31008
31583
|
}
|
|
31009
31584
|
},
|
|
31010
31585
|
"indexes": [
|
|
@@ -31058,7 +31633,7 @@
|
|
|
31058
31633
|
]
|
|
31059
31634
|
}
|
|
31060
31635
|
],
|
|
31061
|
-
"version": "
|
|
31636
|
+
"version": "408f71bc"
|
|
31062
31637
|
},
|
|
31063
31638
|
"importPath": "@happyvertical/smrt-education"
|
|
31064
31639
|
},
|
|
@@ -31089,7 +31664,7 @@
|
|
|
31089
31664
|
],
|
|
31090
31665
|
"schema": {
|
|
31091
31666
|
"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);",
|
|
31667
|
+
"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
31668
|
"columns": {
|
|
31094
31669
|
"id": {
|
|
31095
31670
|
"type": "UUID",
|
|
@@ -31180,6 +31755,16 @@
|
|
|
31180
31755
|
"referenceKind": "crossPackageRef",
|
|
31181
31756
|
"notNull": false,
|
|
31182
31757
|
"unique": false
|
|
31758
|
+
},
|
|
31759
|
+
"retired_at": {
|
|
31760
|
+
"type": "TIMESTAMP",
|
|
31761
|
+
"notNull": false,
|
|
31762
|
+
"unique": false
|
|
31763
|
+
},
|
|
31764
|
+
"source_import_id": {
|
|
31765
|
+
"type": "TEXT",
|
|
31766
|
+
"notNull": false,
|
|
31767
|
+
"unique": false
|
|
31183
31768
|
}
|
|
31184
31769
|
},
|
|
31185
31770
|
"indexes": [
|
|
@@ -31233,7 +31818,7 @@
|
|
|
31233
31818
|
]
|
|
31234
31819
|
}
|
|
31235
31820
|
],
|
|
31236
|
-
"version": "
|
|
31821
|
+
"version": "408f71bc"
|
|
31237
31822
|
},
|
|
31238
31823
|
"importPath": "@happyvertical/smrt-education"
|
|
31239
31824
|
},
|
|
@@ -31299,6 +31884,20 @@
|
|
|
31299
31884
|
"guardian",
|
|
31300
31885
|
""
|
|
31301
31886
|
]
|
|
31887
|
+
},
|
|
31888
|
+
"retiredAt": {
|
|
31889
|
+
"type": "datetime",
|
|
31890
|
+
"required": false,
|
|
31891
|
+
"_meta": {
|
|
31892
|
+
"nullable": true
|
|
31893
|
+
}
|
|
31894
|
+
},
|
|
31895
|
+
"sourceImportId": {
|
|
31896
|
+
"type": "text",
|
|
31897
|
+
"required": false,
|
|
31898
|
+
"_meta": {
|
|
31899
|
+
"nullable": true
|
|
31900
|
+
}
|
|
31302
31901
|
}
|
|
31303
31902
|
},
|
|
31304
31903
|
"methods": {
|
|
@@ -31350,7 +31949,7 @@
|
|
|
31350
31949
|
],
|
|
31351
31950
|
"schema": {
|
|
31352
31951
|
"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);",
|
|
31952
|
+
"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
31953
|
"columns": {
|
|
31355
31954
|
"id": {
|
|
31356
31955
|
"type": "UUID",
|
|
@@ -31422,6 +32021,16 @@
|
|
|
31422
32021
|
"notNull": false,
|
|
31423
32022
|
"unique": false,
|
|
31424
32023
|
"default": ""
|
|
32024
|
+
},
|
|
32025
|
+
"retired_at": {
|
|
32026
|
+
"type": "TIMESTAMP",
|
|
32027
|
+
"notNull": false,
|
|
32028
|
+
"unique": false
|
|
32029
|
+
},
|
|
32030
|
+
"source_import_id": {
|
|
32031
|
+
"type": "TEXT",
|
|
32032
|
+
"notNull": false,
|
|
32033
|
+
"unique": false
|
|
31425
32034
|
}
|
|
31426
32035
|
},
|
|
31427
32036
|
"indexes": [
|
|
@@ -31457,7 +32066,7 @@
|
|
|
31457
32066
|
]
|
|
31458
32067
|
}
|
|
31459
32068
|
],
|
|
31460
|
-
"version": "
|
|
32069
|
+
"version": "013a310f"
|
|
31461
32070
|
},
|
|
31462
32071
|
"importPath": "@happyvertical/smrt-education"
|
|
31463
32072
|
},
|
|
@@ -31488,7 +32097,7 @@
|
|
|
31488
32097
|
],
|
|
31489
32098
|
"schema": {
|
|
31490
32099
|
"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);",
|
|
32100
|
+
"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
32101
|
"columns": {
|
|
31493
32102
|
"id": {
|
|
31494
32103
|
"type": "UUID",
|
|
@@ -31560,6 +32169,16 @@
|
|
|
31560
32169
|
"notNull": false,
|
|
31561
32170
|
"unique": false,
|
|
31562
32171
|
"default": ""
|
|
32172
|
+
},
|
|
32173
|
+
"retired_at": {
|
|
32174
|
+
"type": "TIMESTAMP",
|
|
32175
|
+
"notNull": false,
|
|
32176
|
+
"unique": false
|
|
32177
|
+
},
|
|
32178
|
+
"source_import_id": {
|
|
32179
|
+
"type": "TEXT",
|
|
32180
|
+
"notNull": false,
|
|
32181
|
+
"unique": false
|
|
31563
32182
|
}
|
|
31564
32183
|
},
|
|
31565
32184
|
"indexes": [
|
|
@@ -31595,7 +32214,7 @@
|
|
|
31595
32214
|
]
|
|
31596
32215
|
}
|
|
31597
32216
|
],
|
|
31598
|
-
"version": "
|
|
32217
|
+
"version": "013a310f"
|
|
31599
32218
|
},
|
|
31600
32219
|
"importPath": "@happyvertical/smrt-education"
|
|
31601
32220
|
},
|