@happyvertical/smrt-video 0.40.69 → 0.41.0

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.
@@ -2,7 +2,7 @@
2
2
  "version": "1.0.0",
3
3
  "timestamp": 0,
4
4
  "packageName": "@happyvertical/smrt-video",
5
- "packageVersion": "0.40.69",
5
+ "packageVersion": "0.41.0",
6
6
  "objects": {
7
7
  "@happyvertical/smrt-video:CharacterAsset": {
8
8
  "name": "characterasset",
@@ -114,7 +114,7 @@
114
114
  "characterId": {
115
115
  "type": "foreignKey",
116
116
  "required": false,
117
- "related": "() => Character"
117
+ "related": "Character"
118
118
  },
119
119
  "role": {
120
120
  "type": "text",
@@ -823,7 +823,7 @@
823
823
  ],
824
824
  "schema": {
825
825
  "tableName": "assets",
826
- "ddl": "CREATE TABLE IF NOT EXISTS \"assets\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"name\" TEXT,\n \"source_uri\" TEXT,\n \"mime_type\" TEXT,\n \"description\" TEXT,\n \"metadata\" TEXT,\n \"version\" INTEGER DEFAULT 1,\n \"primary_version_id\" UUID,\n \"type_slug\" TEXT,\n \"status_slug\" TEXT,\n \"owner_profile_id\" UUID,\n \"source_asset_id\" UUID,\n \"folder_id\" UUID,\n \"source_type\" TEXT,\n \"external_id\" TEXT,\n \"external_refs\" TEXT,\n \"character_id\" UUID,\n \"role\" TEXT DEFAULT 'seed-image'\n);",
826
+ "ddl": "CREATE TABLE IF NOT EXISTS \"assets\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"name\" TEXT,\n \"source_uri\" TEXT,\n \"mime_type\" TEXT,\n \"description\" TEXT,\n \"metadata\" TEXT,\n \"version\" INTEGER DEFAULT 1,\n \"primary_version_id\" UUID,\n \"type_slug\" TEXT,\n \"status_slug\" TEXT,\n \"owner_profile_id\" UUID,\n \"source_asset_id\" UUID,\n \"folder_id\" UUID,\n \"source_type\" TEXT,\n \"external_id\" TEXT,\n \"external_refs\" TEXT,\n \"character_id\" UUID,\n \"role\" TEXT DEFAULT 'seed-image',\n \"performer_id\" UUID,\n \"scene_id\" UUID,\n \"video_composition_id\" UUID,\n \"video_sequence_id\" UUID,\n \"video_shot_id\" UUID\n);",
827
827
  "columns": {
828
828
  "id": {
829
829
  "type": "UUID",
@@ -937,18 +937,38 @@
937
937
  "type": "TEXT",
938
938
  "notNull": false,
939
939
  "default": "seed-image"
940
+ },
941
+ "performer_id": {
942
+ "type": "UUID",
943
+ "referenceKind": "foreignKey",
944
+ "notNull": false
945
+ },
946
+ "scene_id": {
947
+ "type": "UUID",
948
+ "referenceKind": "foreignKey",
949
+ "notNull": false
950
+ },
951
+ "video_composition_id": {
952
+ "type": "UUID",
953
+ "referenceKind": "foreignKey",
954
+ "notNull": false
955
+ },
956
+ "video_sequence_id": {
957
+ "type": "UUID",
958
+ "referenceKind": "foreignKey",
959
+ "notNull": false
960
+ },
961
+ "video_shot_id": {
962
+ "type": "UUID",
963
+ "referenceKind": "foreignKey",
964
+ "notNull": false
940
965
  }
941
966
  },
942
967
  "indexes": [
943
- {
944
- "name": "assets_id_idx",
945
- "columns": [
946
- "id"
947
- ]
948
- },
949
968
  {
950
969
  "name": "assets_slug_context_meta_type_idx",
951
970
  "columns": [
971
+ "tenant_id",
952
972
  "slug",
953
973
  "context",
954
974
  "_meta_type"
@@ -960,9 +980,76 @@
960
980
  "columns": [
961
981
  "_meta_type"
962
982
  ]
983
+ },
984
+ {
985
+ "name": "assets_tenant_id_created_at_idx",
986
+ "columns": [
987
+ "tenant_id",
988
+ "created_at"
989
+ ]
990
+ },
991
+ {
992
+ "name": "assets_primary_version_id_idx",
993
+ "columns": [
994
+ "primary_version_id"
995
+ ]
996
+ },
997
+ {
998
+ "name": "assets_owner_profile_id_idx",
999
+ "columns": [
1000
+ "owner_profile_id"
1001
+ ]
1002
+ },
1003
+ {
1004
+ "name": "assets_source_asset_id_idx",
1005
+ "columns": [
1006
+ "source_asset_id"
1007
+ ]
1008
+ },
1009
+ {
1010
+ "name": "assets_folder_id_idx",
1011
+ "columns": [
1012
+ "folder_id"
1013
+ ]
1014
+ },
1015
+ {
1016
+ "name": "assets_character_id_idx",
1017
+ "columns": [
1018
+ "character_id"
1019
+ ]
1020
+ },
1021
+ {
1022
+ "name": "assets_performer_id_idx",
1023
+ "columns": [
1024
+ "performer_id"
1025
+ ]
1026
+ },
1027
+ {
1028
+ "name": "assets_scene_id_idx",
1029
+ "columns": [
1030
+ "scene_id"
1031
+ ]
1032
+ },
1033
+ {
1034
+ "name": "assets_video_composition_id_idx",
1035
+ "columns": [
1036
+ "video_composition_id"
1037
+ ]
1038
+ },
1039
+ {
1040
+ "name": "assets_video_sequence_id_idx",
1041
+ "columns": [
1042
+ "video_sequence_id"
1043
+ ]
1044
+ },
1045
+ {
1046
+ "name": "assets_video_shot_id_idx",
1047
+ "columns": [
1048
+ "video_shot_id"
1049
+ ]
963
1050
  }
964
1051
  ],
965
- "version": "bd73b723"
1052
+ "version": "d51e6489"
966
1053
  }
967
1054
  },
968
1055
  "@happyvertical/smrt-video:CharacterOwnedAssetCollection": {
@@ -1126,12 +1213,6 @@
1126
1213
  }
1127
1214
  },
1128
1215
  "indexes": [
1129
- {
1130
- "name": "character_assets_id_idx",
1131
- "columns": [
1132
- "id"
1133
- ]
1134
- },
1135
1216
  {
1136
1217
  "name": "character_assets_slug_context_idx",
1137
1218
  "columns": [
@@ -1139,6 +1220,12 @@
1139
1220
  "context"
1140
1221
  ],
1141
1222
  "unique": true
1223
+ },
1224
+ {
1225
+ "name": "character_assets_created_at_idx",
1226
+ "columns": [
1227
+ "created_at"
1228
+ ]
1142
1229
  }
1143
1230
  ],
1144
1231
  "version": "3c2836ae"
@@ -1173,7 +1260,7 @@
1173
1260
  "characterId": {
1174
1261
  "type": "foreignKey",
1175
1262
  "required": true,
1176
- "related": "() => Character",
1263
+ "related": "Character",
1177
1264
  "_meta": {
1178
1265
  "required": true
1179
1266
  }
@@ -1299,12 +1386,6 @@
1299
1386
  }
1300
1387
  },
1301
1388
  "indexes": [
1302
- {
1303
- "name": "character_assets_id_idx",
1304
- "columns": [
1305
- "id"
1306
- ]
1307
- },
1308
1389
  {
1309
1390
  "name": "character_assets_character_id_asset_id_idx",
1310
1391
  "columns": [
@@ -1313,6 +1394,26 @@
1313
1394
  "role"
1314
1395
  ],
1315
1396
  "unique": true
1397
+ },
1398
+ {
1399
+ "name": "character_assets_slug_context_idx",
1400
+ "columns": [
1401
+ "slug",
1402
+ "context"
1403
+ ]
1404
+ },
1405
+ {
1406
+ "name": "character_assets_tenant_id_created_at_idx",
1407
+ "columns": [
1408
+ "tenant_id",
1409
+ "created_at"
1410
+ ]
1411
+ },
1412
+ {
1413
+ "name": "character_assets_asset_id_idx",
1414
+ "columns": [
1415
+ "asset_id"
1416
+ ]
1316
1417
  }
1317
1418
  ],
1318
1419
  "version": "2d52a1f3"
@@ -1388,12 +1489,12 @@
1388
1489
  "performerId": {
1389
1490
  "type": "foreignKey",
1390
1491
  "required": false,
1391
- "related": "() => Performer"
1492
+ "related": "Performer"
1392
1493
  },
1393
1494
  "defaultSceneId": {
1394
1495
  "type": "foreignKey",
1395
1496
  "required": false,
1396
- "related": "() => Scene"
1497
+ "related": "Scene"
1397
1498
  },
1398
1499
  "sceneConfigs": {
1399
1500
  "type": "json",
@@ -1989,7 +2090,13 @@
1989
2090
  "cli": true,
1990
2091
  "tenantScoped": {
1991
2092
  "mode": "optional"
1992
- }
2093
+ },
2094
+ "conflictColumns": [
2095
+ "tenant_id",
2096
+ "slug",
2097
+ "context",
2098
+ "_meta_type"
2099
+ ]
1993
2100
  },
1994
2101
  "extends": "SmrtObject",
1995
2102
  "exportName": "Character",
@@ -2091,15 +2198,10 @@
2091
2198
  }
2092
2199
  },
2093
2200
  "indexes": [
2094
- {
2095
- "name": "characters_id_idx",
2096
- "columns": [
2097
- "id"
2098
- ]
2099
- },
2100
2201
  {
2101
2202
  "name": "characters_slug_context_meta_type_idx",
2102
2203
  "columns": [
2204
+ "tenant_id",
2103
2205
  "slug",
2104
2206
  "context",
2105
2207
  "_meta_type"
@@ -2111,6 +2213,49 @@
2111
2213
  "columns": [
2112
2214
  "_meta_type"
2113
2215
  ]
2216
+ },
2217
+ {
2218
+ "name": "characters_tenant_id_created_at_idx",
2219
+ "columns": [
2220
+ "tenant_id",
2221
+ "created_at"
2222
+ ]
2223
+ },
2224
+ {
2225
+ "name": "characters_image_asset_id_idx",
2226
+ "columns": [
2227
+ "image_asset_id"
2228
+ ]
2229
+ },
2230
+ {
2231
+ "name": "characters_base_motion_asset_id_idx",
2232
+ "columns": [
2233
+ "base_motion_asset_id"
2234
+ ]
2235
+ },
2236
+ {
2237
+ "name": "characters_voice_profile_id_idx",
2238
+ "columns": [
2239
+ "voice_profile_id"
2240
+ ]
2241
+ },
2242
+ {
2243
+ "name": "characters_performer_id_idx",
2244
+ "columns": [
2245
+ "performer_id"
2246
+ ]
2247
+ },
2248
+ {
2249
+ "name": "characters_default_scene_id_idx",
2250
+ "columns": [
2251
+ "default_scene_id"
2252
+ ]
2253
+ },
2254
+ {
2255
+ "name": "characters_profile_id_idx",
2256
+ "columns": [
2257
+ "profile_id"
2258
+ ]
2114
2259
  }
2115
2260
  ],
2116
2261
  "version": "d311bd3d"
@@ -2206,12 +2351,6 @@
2206
2351
  }
2207
2352
  },
2208
2353
  "indexes": [
2209
- {
2210
- "name": "character_collections_id_idx",
2211
- "columns": [
2212
- "id"
2213
- ]
2214
- },
2215
2354
  {
2216
2355
  "name": "character_collections_slug_context_idx",
2217
2356
  "columns": [
@@ -2219,6 +2358,12 @@
2219
2358
  "context"
2220
2359
  ],
2221
2360
  "unique": true
2361
+ },
2362
+ {
2363
+ "name": "character_collections_created_at_idx",
2364
+ "columns": [
2365
+ "created_at"
2366
+ ]
2222
2367
  }
2223
2368
  ],
2224
2369
  "version": "876075e3"
@@ -2266,7 +2411,7 @@
2266
2411
  "sceneId": {
2267
2412
  "type": "foreignKey",
2268
2413
  "required": false,
2269
- "related": "() => Scene"
2414
+ "related": "Scene"
2270
2415
  },
2271
2416
  "viewpointId": {
2272
2417
  "type": "text",
@@ -2816,7 +2961,13 @@
2816
2961
  "cli": true,
2817
2962
  "tenantScoped": {
2818
2963
  "mode": "optional"
2819
- }
2964
+ },
2965
+ "conflictColumns": [
2966
+ "tenant_id",
2967
+ "slug",
2968
+ "context",
2969
+ "_meta_type"
2970
+ ]
2820
2971
  },
2821
2972
  "extends": "SmrtObject",
2822
2973
  "exportName": "CompositeJob",
@@ -2912,15 +3063,10 @@
2912
3063
  }
2913
3064
  },
2914
3065
  "indexes": [
2915
- {
2916
- "name": "composite_jobs_id_idx",
2917
- "columns": [
2918
- "id"
2919
- ]
2920
- },
2921
3066
  {
2922
3067
  "name": "composite_jobs_slug_context_meta_type_idx",
2923
3068
  "columns": [
3069
+ "tenant_id",
2924
3070
  "slug",
2925
3071
  "context",
2926
3072
  "_meta_type"
@@ -2932,6 +3078,31 @@
2932
3078
  "columns": [
2933
3079
  "_meta_type"
2934
3080
  ]
3081
+ },
3082
+ {
3083
+ "name": "composite_jobs_tenant_id_created_at_idx",
3084
+ "columns": [
3085
+ "tenant_id",
3086
+ "created_at"
3087
+ ]
3088
+ },
3089
+ {
3090
+ "name": "composite_jobs_character_video_asset_id_idx",
3091
+ "columns": [
3092
+ "character_video_asset_id"
3093
+ ]
3094
+ },
3095
+ {
3096
+ "name": "composite_jobs_scene_id_idx",
3097
+ "columns": [
3098
+ "scene_id"
3099
+ ]
3100
+ },
3101
+ {
3102
+ "name": "composite_jobs_output_asset_id_idx",
3103
+ "columns": [
3104
+ "output_asset_id"
3105
+ ]
2935
3106
  }
2936
3107
  ],
2937
3108
  "version": "4589bed0"
@@ -3047,7 +3218,7 @@
3047
3218
  "performerId": {
3048
3219
  "type": "foreignKey",
3049
3220
  "required": false,
3050
- "related": "() => Performer"
3221
+ "related": "Performer"
3051
3222
  },
3052
3223
  "role": {
3053
3224
  "type": "text",
@@ -3756,7 +3927,7 @@
3756
3927
  ],
3757
3928
  "schema": {
3758
3929
  "tableName": "assets",
3759
- "ddl": "CREATE TABLE IF NOT EXISTS \"assets\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"name\" TEXT,\n \"source_uri\" TEXT,\n \"mime_type\" TEXT,\n \"description\" TEXT,\n \"metadata\" TEXT,\n \"version\" INTEGER DEFAULT 1,\n \"primary_version_id\" UUID,\n \"type_slug\" TEXT,\n \"status_slug\" TEXT,\n \"owner_profile_id\" UUID,\n \"source_asset_id\" UUID,\n \"folder_id\" UUID,\n \"source_type\" TEXT,\n \"external_id\" TEXT,\n \"external_refs\" TEXT,\n \"performer_id\" UUID,\n \"role\" TEXT DEFAULT 'reference'\n);",
3930
+ "ddl": "CREATE TABLE IF NOT EXISTS \"assets\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"name\" TEXT,\n \"source_uri\" TEXT,\n \"mime_type\" TEXT,\n \"description\" TEXT,\n \"metadata\" TEXT,\n \"version\" INTEGER DEFAULT 1,\n \"primary_version_id\" UUID,\n \"type_slug\" TEXT,\n \"status_slug\" TEXT,\n \"owner_profile_id\" UUID,\n \"source_asset_id\" UUID,\n \"folder_id\" UUID,\n \"source_type\" TEXT,\n \"external_id\" TEXT,\n \"external_refs\" TEXT,\n \"character_id\" UUID,\n \"role\" TEXT DEFAULT 'seed-image',\n \"performer_id\" UUID,\n \"scene_id\" UUID,\n \"video_composition_id\" UUID,\n \"video_sequence_id\" UUID,\n \"video_shot_id\" UUID\n);",
3760
3931
  "columns": {
3761
3932
  "id": {
3762
3933
  "type": "UUID",
@@ -3861,7 +4032,7 @@
3861
4032
  "type": "TEXT",
3862
4033
  "notNull": false
3863
4034
  },
3864
- "performer_id": {
4035
+ "character_id": {
3865
4036
  "type": "UUID",
3866
4037
  "referenceKind": "foreignKey",
3867
4038
  "notNull": false
@@ -3869,19 +4040,39 @@
3869
4040
  "role": {
3870
4041
  "type": "TEXT",
3871
4042
  "notNull": false,
3872
- "default": "reference"
4043
+ "default": "seed-image"
4044
+ },
4045
+ "performer_id": {
4046
+ "type": "UUID",
4047
+ "referenceKind": "foreignKey",
4048
+ "notNull": false
4049
+ },
4050
+ "scene_id": {
4051
+ "type": "UUID",
4052
+ "referenceKind": "foreignKey",
4053
+ "notNull": false
4054
+ },
4055
+ "video_composition_id": {
4056
+ "type": "UUID",
4057
+ "referenceKind": "foreignKey",
4058
+ "notNull": false
4059
+ },
4060
+ "video_sequence_id": {
4061
+ "type": "UUID",
4062
+ "referenceKind": "foreignKey",
4063
+ "notNull": false
4064
+ },
4065
+ "video_shot_id": {
4066
+ "type": "UUID",
4067
+ "referenceKind": "foreignKey",
4068
+ "notNull": false
3873
4069
  }
3874
4070
  },
3875
4071
  "indexes": [
3876
- {
3877
- "name": "assets_id_idx",
3878
- "columns": [
3879
- "id"
3880
- ]
3881
- },
3882
4072
  {
3883
4073
  "name": "assets_slug_context_meta_type_idx",
3884
4074
  "columns": [
4075
+ "tenant_id",
3885
4076
  "slug",
3886
4077
  "context",
3887
4078
  "_meta_type"
@@ -3893,9 +4084,76 @@
3893
4084
  "columns": [
3894
4085
  "_meta_type"
3895
4086
  ]
4087
+ },
4088
+ {
4089
+ "name": "assets_tenant_id_created_at_idx",
4090
+ "columns": [
4091
+ "tenant_id",
4092
+ "created_at"
4093
+ ]
4094
+ },
4095
+ {
4096
+ "name": "assets_primary_version_id_idx",
4097
+ "columns": [
4098
+ "primary_version_id"
4099
+ ]
4100
+ },
4101
+ {
4102
+ "name": "assets_owner_profile_id_idx",
4103
+ "columns": [
4104
+ "owner_profile_id"
4105
+ ]
4106
+ },
4107
+ {
4108
+ "name": "assets_source_asset_id_idx",
4109
+ "columns": [
4110
+ "source_asset_id"
4111
+ ]
4112
+ },
4113
+ {
4114
+ "name": "assets_folder_id_idx",
4115
+ "columns": [
4116
+ "folder_id"
4117
+ ]
4118
+ },
4119
+ {
4120
+ "name": "assets_character_id_idx",
4121
+ "columns": [
4122
+ "character_id"
4123
+ ]
4124
+ },
4125
+ {
4126
+ "name": "assets_performer_id_idx",
4127
+ "columns": [
4128
+ "performer_id"
4129
+ ]
4130
+ },
4131
+ {
4132
+ "name": "assets_scene_id_idx",
4133
+ "columns": [
4134
+ "scene_id"
4135
+ ]
4136
+ },
4137
+ {
4138
+ "name": "assets_video_composition_id_idx",
4139
+ "columns": [
4140
+ "video_composition_id"
4141
+ ]
4142
+ },
4143
+ {
4144
+ "name": "assets_video_sequence_id_idx",
4145
+ "columns": [
4146
+ "video_sequence_id"
4147
+ ]
4148
+ },
4149
+ {
4150
+ "name": "assets_video_shot_id_idx",
4151
+ "columns": [
4152
+ "video_shot_id"
4153
+ ]
3896
4154
  }
3897
4155
  ],
3898
- "version": "704401ae"
4156
+ "version": "d51e6489"
3899
4157
  }
3900
4158
  },
3901
4159
  "@happyvertical/smrt-video:PerformerOwnedAssetCollection": {
@@ -4059,12 +4317,6 @@
4059
4317
  }
4060
4318
  },
4061
4319
  "indexes": [
4062
- {
4063
- "name": "performer_assets_id_idx",
4064
- "columns": [
4065
- "id"
4066
- ]
4067
- },
4068
4320
  {
4069
4321
  "name": "performer_assets_slug_context_idx",
4070
4322
  "columns": [
@@ -4072,6 +4324,12 @@
4072
4324
  "context"
4073
4325
  ],
4074
4326
  "unique": true
4327
+ },
4328
+ {
4329
+ "name": "performer_assets_created_at_idx",
4330
+ "columns": [
4331
+ "created_at"
4332
+ ]
4075
4333
  }
4076
4334
  ],
4077
4335
  "version": "591e6fb2"
@@ -4106,7 +4364,7 @@
4106
4364
  "performerId": {
4107
4365
  "type": "foreignKey",
4108
4366
  "required": true,
4109
- "related": "() => Performer",
4367
+ "related": "Performer",
4110
4368
  "_meta": {
4111
4369
  "required": true
4112
4370
  }
@@ -4232,12 +4490,6 @@
4232
4490
  }
4233
4491
  },
4234
4492
  "indexes": [
4235
- {
4236
- "name": "performer_assets_id_idx",
4237
- "columns": [
4238
- "id"
4239
- ]
4240
- },
4241
4493
  {
4242
4494
  "name": "performer_assets_performer_id_asset_id_idx",
4243
4495
  "columns": [
@@ -4246,7 +4498,27 @@
4246
4498
  "role"
4247
4499
  ],
4248
4500
  "unique": true
4249
- }
4501
+ },
4502
+ {
4503
+ "name": "performer_assets_slug_context_idx",
4504
+ "columns": [
4505
+ "slug",
4506
+ "context"
4507
+ ]
4508
+ },
4509
+ {
4510
+ "name": "performer_assets_tenant_id_created_at_idx",
4511
+ "columns": [
4512
+ "tenant_id",
4513
+ "created_at"
4514
+ ]
4515
+ },
4516
+ {
4517
+ "name": "performer_assets_asset_id_idx",
4518
+ "columns": [
4519
+ "asset_id"
4520
+ ]
4521
+ }
4250
4522
  ],
4251
4523
  "version": "a685d7c4"
4252
4524
  }
@@ -4907,7 +5179,13 @@
4907
5179
  "cli": true,
4908
5180
  "tenantScoped": {
4909
5181
  "mode": "optional"
4910
- }
5182
+ },
5183
+ "conflictColumns": [
5184
+ "tenant_id",
5185
+ "slug",
5186
+ "context",
5187
+ "_meta_type"
5188
+ ]
4911
5189
  },
4912
5190
  "extends": "SmrtObject",
4913
5191
  "exportName": "Performer",
@@ -4994,15 +5272,10 @@
4994
5272
  }
4995
5273
  },
4996
5274
  "indexes": [
4997
- {
4998
- "name": "performers_id_idx",
4999
- "columns": [
5000
- "id"
5001
- ]
5002
- },
5003
5275
  {
5004
5276
  "name": "performers_slug_context_meta_type_idx",
5005
5277
  "columns": [
5278
+ "tenant_id",
5006
5279
  "slug",
5007
5280
  "context",
5008
5281
  "_meta_type"
@@ -5014,6 +5287,31 @@
5014
5287
  "columns": [
5015
5288
  "_meta_type"
5016
5289
  ]
5290
+ },
5291
+ {
5292
+ "name": "performers_tenant_id_created_at_idx",
5293
+ "columns": [
5294
+ "tenant_id",
5295
+ "created_at"
5296
+ ]
5297
+ },
5298
+ {
5299
+ "name": "performers_seed_image_asset_id_idx",
5300
+ "columns": [
5301
+ "seed_image_asset_id"
5302
+ ]
5303
+ },
5304
+ {
5305
+ "name": "performers_voice_profile_id_idx",
5306
+ "columns": [
5307
+ "voice_profile_id"
5308
+ ]
5309
+ },
5310
+ {
5311
+ "name": "performers_profile_id_idx",
5312
+ "columns": [
5313
+ "profile_id"
5314
+ ]
5017
5315
  }
5018
5316
  ],
5019
5317
  "version": "09b53659"
@@ -5129,7 +5427,7 @@
5129
5427
  "sceneId": {
5130
5428
  "type": "foreignKey",
5131
5429
  "required": false,
5132
- "related": "() => Scene"
5430
+ "related": "Scene"
5133
5431
  },
5134
5432
  "role": {
5135
5433
  "type": "text",
@@ -5838,7 +6136,7 @@
5838
6136
  ],
5839
6137
  "schema": {
5840
6138
  "tableName": "assets",
5841
- "ddl": "CREATE TABLE IF NOT EXISTS \"assets\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"name\" TEXT,\n \"source_uri\" TEXT,\n \"mime_type\" TEXT,\n \"description\" TEXT,\n \"metadata\" TEXT,\n \"version\" INTEGER DEFAULT 1,\n \"primary_version_id\" UUID,\n \"type_slug\" TEXT,\n \"status_slug\" TEXT,\n \"owner_profile_id\" UUID,\n \"source_asset_id\" UUID,\n \"folder_id\" UUID,\n \"source_type\" TEXT,\n \"external_id\" TEXT,\n \"external_refs\" TEXT,\n \"scene_id\" UUID,\n \"role\" TEXT DEFAULT 'source'\n);",
6139
+ "ddl": "CREATE TABLE IF NOT EXISTS \"assets\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"name\" TEXT,\n \"source_uri\" TEXT,\n \"mime_type\" TEXT,\n \"description\" TEXT,\n \"metadata\" TEXT,\n \"version\" INTEGER DEFAULT 1,\n \"primary_version_id\" UUID,\n \"type_slug\" TEXT,\n \"status_slug\" TEXT,\n \"owner_profile_id\" UUID,\n \"source_asset_id\" UUID,\n \"folder_id\" UUID,\n \"source_type\" TEXT,\n \"external_id\" TEXT,\n \"external_refs\" TEXT,\n \"character_id\" UUID,\n \"role\" TEXT DEFAULT 'seed-image',\n \"performer_id\" UUID,\n \"scene_id\" UUID,\n \"video_composition_id\" UUID,\n \"video_sequence_id\" UUID,\n \"video_shot_id\" UUID\n);",
5842
6140
  "columns": {
5843
6141
  "id": {
5844
6142
  "type": "UUID",
@@ -5943,7 +6241,7 @@
5943
6241
  "type": "TEXT",
5944
6242
  "notNull": false
5945
6243
  },
5946
- "scene_id": {
6244
+ "character_id": {
5947
6245
  "type": "UUID",
5948
6246
  "referenceKind": "foreignKey",
5949
6247
  "notNull": false
@@ -5951,19 +6249,39 @@
5951
6249
  "role": {
5952
6250
  "type": "TEXT",
5953
6251
  "notNull": false,
5954
- "default": "source"
6252
+ "default": "seed-image"
6253
+ },
6254
+ "performer_id": {
6255
+ "type": "UUID",
6256
+ "referenceKind": "foreignKey",
6257
+ "notNull": false
6258
+ },
6259
+ "scene_id": {
6260
+ "type": "UUID",
6261
+ "referenceKind": "foreignKey",
6262
+ "notNull": false
6263
+ },
6264
+ "video_composition_id": {
6265
+ "type": "UUID",
6266
+ "referenceKind": "foreignKey",
6267
+ "notNull": false
6268
+ },
6269
+ "video_sequence_id": {
6270
+ "type": "UUID",
6271
+ "referenceKind": "foreignKey",
6272
+ "notNull": false
6273
+ },
6274
+ "video_shot_id": {
6275
+ "type": "UUID",
6276
+ "referenceKind": "foreignKey",
6277
+ "notNull": false
5955
6278
  }
5956
6279
  },
5957
6280
  "indexes": [
5958
- {
5959
- "name": "assets_id_idx",
5960
- "columns": [
5961
- "id"
5962
- ]
5963
- },
5964
6281
  {
5965
6282
  "name": "assets_slug_context_meta_type_idx",
5966
6283
  "columns": [
6284
+ "tenant_id",
5967
6285
  "slug",
5968
6286
  "context",
5969
6287
  "_meta_type"
@@ -5975,9 +6293,76 @@
5975
6293
  "columns": [
5976
6294
  "_meta_type"
5977
6295
  ]
6296
+ },
6297
+ {
6298
+ "name": "assets_tenant_id_created_at_idx",
6299
+ "columns": [
6300
+ "tenant_id",
6301
+ "created_at"
6302
+ ]
6303
+ },
6304
+ {
6305
+ "name": "assets_primary_version_id_idx",
6306
+ "columns": [
6307
+ "primary_version_id"
6308
+ ]
6309
+ },
6310
+ {
6311
+ "name": "assets_owner_profile_id_idx",
6312
+ "columns": [
6313
+ "owner_profile_id"
6314
+ ]
6315
+ },
6316
+ {
6317
+ "name": "assets_source_asset_id_idx",
6318
+ "columns": [
6319
+ "source_asset_id"
6320
+ ]
6321
+ },
6322
+ {
6323
+ "name": "assets_folder_id_idx",
6324
+ "columns": [
6325
+ "folder_id"
6326
+ ]
6327
+ },
6328
+ {
6329
+ "name": "assets_character_id_idx",
6330
+ "columns": [
6331
+ "character_id"
6332
+ ]
6333
+ },
6334
+ {
6335
+ "name": "assets_performer_id_idx",
6336
+ "columns": [
6337
+ "performer_id"
6338
+ ]
6339
+ },
6340
+ {
6341
+ "name": "assets_scene_id_idx",
6342
+ "columns": [
6343
+ "scene_id"
6344
+ ]
6345
+ },
6346
+ {
6347
+ "name": "assets_video_composition_id_idx",
6348
+ "columns": [
6349
+ "video_composition_id"
6350
+ ]
6351
+ },
6352
+ {
6353
+ "name": "assets_video_sequence_id_idx",
6354
+ "columns": [
6355
+ "video_sequence_id"
6356
+ ]
6357
+ },
6358
+ {
6359
+ "name": "assets_video_shot_id_idx",
6360
+ "columns": [
6361
+ "video_shot_id"
6362
+ ]
5978
6363
  }
5979
6364
  ],
5980
- "version": "b4b376b9"
6365
+ "version": "d51e6489"
5981
6366
  }
5982
6367
  },
5983
6368
  "@happyvertical/smrt-video:SceneOwnedAssetCollection": {
@@ -6141,12 +6526,6 @@
6141
6526
  }
6142
6527
  },
6143
6528
  "indexes": [
6144
- {
6145
- "name": "scene_assets_id_idx",
6146
- "columns": [
6147
- "id"
6148
- ]
6149
- },
6150
6529
  {
6151
6530
  "name": "scene_assets_slug_context_idx",
6152
6531
  "columns": [
@@ -6154,6 +6533,12 @@
6154
6533
  "context"
6155
6534
  ],
6156
6535
  "unique": true
6536
+ },
6537
+ {
6538
+ "name": "scene_assets_created_at_idx",
6539
+ "columns": [
6540
+ "created_at"
6541
+ ]
6157
6542
  }
6158
6543
  ],
6159
6544
  "version": "f41476c0"
@@ -6188,7 +6573,7 @@
6188
6573
  "sceneId": {
6189
6574
  "type": "foreignKey",
6190
6575
  "required": true,
6191
- "related": "() => Scene",
6576
+ "related": "Scene",
6192
6577
  "_meta": {
6193
6578
  "required": true
6194
6579
  }
@@ -6314,12 +6699,6 @@
6314
6699
  }
6315
6700
  },
6316
6701
  "indexes": [
6317
- {
6318
- "name": "scene_assets_id_idx",
6319
- "columns": [
6320
- "id"
6321
- ]
6322
- },
6323
6702
  {
6324
6703
  "name": "scene_assets_scene_id_asset_id_idx",
6325
6704
  "columns": [
@@ -6328,6 +6707,26 @@
6328
6707
  "role"
6329
6708
  ],
6330
6709
  "unique": true
6710
+ },
6711
+ {
6712
+ "name": "scene_assets_slug_context_idx",
6713
+ "columns": [
6714
+ "slug",
6715
+ "context"
6716
+ ]
6717
+ },
6718
+ {
6719
+ "name": "scene_assets_tenant_id_created_at_idx",
6720
+ "columns": [
6721
+ "tenant_id",
6722
+ "created_at"
6723
+ ]
6724
+ },
6725
+ {
6726
+ "name": "scene_assets_asset_id_idx",
6727
+ "columns": [
6728
+ "asset_id"
6729
+ ]
6331
6730
  }
6332
6731
  ],
6333
6732
  "version": "84806270"
@@ -6998,7 +7397,13 @@
6998
7397
  "cli": true,
6999
7398
  "tenantScoped": {
7000
7399
  "mode": "optional"
7001
- }
7400
+ },
7401
+ "conflictColumns": [
7402
+ "tenant_id",
7403
+ "slug",
7404
+ "context",
7405
+ "_meta_type"
7406
+ ]
7002
7407
  },
7003
7408
  "extends": "SmrtObject",
7004
7409
  "exportName": "Scene",
@@ -7094,15 +7499,10 @@
7094
7499
  }
7095
7500
  },
7096
7501
  "indexes": [
7097
- {
7098
- "name": "scenes_id_idx",
7099
- "columns": [
7100
- "id"
7101
- ]
7102
- },
7103
7502
  {
7104
7503
  "name": "scenes_slug_context_meta_type_idx",
7105
7504
  "columns": [
7505
+ "tenant_id",
7106
7506
  "slug",
7107
7507
  "context",
7108
7508
  "_meta_type"
@@ -7114,6 +7514,19 @@
7114
7514
  "columns": [
7115
7515
  "_meta_type"
7116
7516
  ]
7517
+ },
7518
+ {
7519
+ "name": "scenes_tenant_id_created_at_idx",
7520
+ "columns": [
7521
+ "tenant_id",
7522
+ "created_at"
7523
+ ]
7524
+ },
7525
+ {
7526
+ "name": "scenes_source_asset_id_idx",
7527
+ "columns": [
7528
+ "source_asset_id"
7529
+ ]
7117
7530
  }
7118
7531
  ],
7119
7532
  "version": "10393bea"
@@ -7229,7 +7642,7 @@
7229
7642
  "videoCompositionId": {
7230
7643
  "type": "foreignKey",
7231
7644
  "required": false,
7232
- "related": "() => VideoComposition"
7645
+ "related": "VideoComposition"
7233
7646
  },
7234
7647
  "role": {
7235
7648
  "type": "text",
@@ -7938,7 +8351,7 @@
7938
8351
  ],
7939
8352
  "schema": {
7940
8353
  "tableName": "assets",
7941
- "ddl": "CREATE TABLE IF NOT EXISTS \"assets\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"name\" TEXT,\n \"source_uri\" TEXT,\n \"mime_type\" TEXT,\n \"description\" TEXT,\n \"metadata\" TEXT,\n \"version\" INTEGER DEFAULT 1,\n \"primary_version_id\" UUID,\n \"type_slug\" TEXT,\n \"status_slug\" TEXT,\n \"owner_profile_id\" UUID,\n \"source_asset_id\" UUID,\n \"folder_id\" UUID,\n \"source_type\" TEXT,\n \"external_id\" TEXT,\n \"external_refs\" TEXT,\n \"video_composition_id\" UUID,\n \"role\" TEXT DEFAULT 'video'\n);",
8354
+ "ddl": "CREATE TABLE IF NOT EXISTS \"assets\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"name\" TEXT,\n \"source_uri\" TEXT,\n \"mime_type\" TEXT,\n \"description\" TEXT,\n \"metadata\" TEXT,\n \"version\" INTEGER DEFAULT 1,\n \"primary_version_id\" UUID,\n \"type_slug\" TEXT,\n \"status_slug\" TEXT,\n \"owner_profile_id\" UUID,\n \"source_asset_id\" UUID,\n \"folder_id\" UUID,\n \"source_type\" TEXT,\n \"external_id\" TEXT,\n \"external_refs\" TEXT,\n \"character_id\" UUID,\n \"role\" TEXT DEFAULT 'seed-image',\n \"performer_id\" UUID,\n \"scene_id\" UUID,\n \"video_composition_id\" UUID,\n \"video_sequence_id\" UUID,\n \"video_shot_id\" UUID\n);",
7942
8355
  "columns": {
7943
8356
  "id": {
7944
8357
  "type": "UUID",
@@ -8043,7 +8456,7 @@
8043
8456
  "type": "TEXT",
8044
8457
  "notNull": false
8045
8458
  },
8046
- "video_composition_id": {
8459
+ "character_id": {
8047
8460
  "type": "UUID",
8048
8461
  "referenceKind": "foreignKey",
8049
8462
  "notNull": false
@@ -8051,19 +8464,39 @@
8051
8464
  "role": {
8052
8465
  "type": "TEXT",
8053
8466
  "notNull": false,
8054
- "default": "video"
8467
+ "default": "seed-image"
8468
+ },
8469
+ "performer_id": {
8470
+ "type": "UUID",
8471
+ "referenceKind": "foreignKey",
8472
+ "notNull": false
8473
+ },
8474
+ "scene_id": {
8475
+ "type": "UUID",
8476
+ "referenceKind": "foreignKey",
8477
+ "notNull": false
8478
+ },
8479
+ "video_composition_id": {
8480
+ "type": "UUID",
8481
+ "referenceKind": "foreignKey",
8482
+ "notNull": false
8483
+ },
8484
+ "video_sequence_id": {
8485
+ "type": "UUID",
8486
+ "referenceKind": "foreignKey",
8487
+ "notNull": false
8488
+ },
8489
+ "video_shot_id": {
8490
+ "type": "UUID",
8491
+ "referenceKind": "foreignKey",
8492
+ "notNull": false
8055
8493
  }
8056
8494
  },
8057
8495
  "indexes": [
8058
- {
8059
- "name": "assets_id_idx",
8060
- "columns": [
8061
- "id"
8062
- ]
8063
- },
8064
8496
  {
8065
8497
  "name": "assets_slug_context_meta_type_idx",
8066
8498
  "columns": [
8499
+ "tenant_id",
8067
8500
  "slug",
8068
8501
  "context",
8069
8502
  "_meta_type"
@@ -8075,9 +8508,76 @@
8075
8508
  "columns": [
8076
8509
  "_meta_type"
8077
8510
  ]
8511
+ },
8512
+ {
8513
+ "name": "assets_tenant_id_created_at_idx",
8514
+ "columns": [
8515
+ "tenant_id",
8516
+ "created_at"
8517
+ ]
8518
+ },
8519
+ {
8520
+ "name": "assets_primary_version_id_idx",
8521
+ "columns": [
8522
+ "primary_version_id"
8523
+ ]
8524
+ },
8525
+ {
8526
+ "name": "assets_owner_profile_id_idx",
8527
+ "columns": [
8528
+ "owner_profile_id"
8529
+ ]
8530
+ },
8531
+ {
8532
+ "name": "assets_source_asset_id_idx",
8533
+ "columns": [
8534
+ "source_asset_id"
8535
+ ]
8536
+ },
8537
+ {
8538
+ "name": "assets_folder_id_idx",
8539
+ "columns": [
8540
+ "folder_id"
8541
+ ]
8542
+ },
8543
+ {
8544
+ "name": "assets_character_id_idx",
8545
+ "columns": [
8546
+ "character_id"
8547
+ ]
8548
+ },
8549
+ {
8550
+ "name": "assets_performer_id_idx",
8551
+ "columns": [
8552
+ "performer_id"
8553
+ ]
8554
+ },
8555
+ {
8556
+ "name": "assets_scene_id_idx",
8557
+ "columns": [
8558
+ "scene_id"
8559
+ ]
8560
+ },
8561
+ {
8562
+ "name": "assets_video_composition_id_idx",
8563
+ "columns": [
8564
+ "video_composition_id"
8565
+ ]
8566
+ },
8567
+ {
8568
+ "name": "assets_video_sequence_id_idx",
8569
+ "columns": [
8570
+ "video_sequence_id"
8571
+ ]
8572
+ },
8573
+ {
8574
+ "name": "assets_video_shot_id_idx",
8575
+ "columns": [
8576
+ "video_shot_id"
8577
+ ]
8078
8578
  }
8079
8579
  ],
8080
- "version": "fb41bd45"
8580
+ "version": "d51e6489"
8081
8581
  }
8082
8582
  },
8083
8583
  "@happyvertical/smrt-video:VideoComposition": {
@@ -9604,7 +10104,7 @@
9604
10104
  ],
9605
10105
  "schema": {
9606
10106
  "tableName": "contents",
9607
- "ddl": "CREATE TABLE IF NOT EXISTS \"contents\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"type\" TEXT,\n \"variant\" TEXT,\n \"file_key\" TEXT,\n \"author\" TEXT,\n \"name\" TEXT DEFAULT '',\n \"title\" TEXT,\n \"description\" TEXT,\n \"body\" TEXT,\n \"body_format\" TEXT,\n \"publish_date\" TIMESTAMP,\n \"url\" TEXT,\n \"source\" TEXT,\n \"original_url\" TEXT,\n \"language\" TEXT,\n \"tags\" JSON DEFAULT '[]',\n \"category\" TEXT,\n \"status\" TEXT DEFAULT 'draft',\n \"state\" TEXT DEFAULT 'active',\n \"metadata\" JSON DEFAULT '{}',\n \"thumbnail_asset_id\" UUID,\n \"fps\" INTEGER DEFAULT 30,\n \"width\" INTEGER DEFAULT 1920,\n \"height\" INTEGER DEFAULT 1080,\n \"duration_in_frames\" INTEGER DEFAULT 0,\n \"render_status\" TEXT DEFAULT 'draft',\n \"render_progress\" INTEGER DEFAULT 0\n);",
10107
+ "ddl": "CREATE TABLE IF NOT EXISTS \"contents\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"type\" TEXT,\n \"variant\" TEXT,\n \"file_key\" TEXT,\n \"author\" TEXT,\n \"name\" TEXT DEFAULT '',\n \"title\" TEXT,\n \"description\" TEXT,\n \"body\" TEXT,\n \"body_format\" TEXT,\n \"publish_date\" TIMESTAMP,\n \"url\" TEXT,\n \"source\" TEXT,\n \"original_url\" TEXT,\n \"language\" TEXT,\n \"tags\" JSON DEFAULT '[]',\n \"category\" TEXT,\n \"status\" TEXT DEFAULT 'draft',\n \"state\" TEXT DEFAULT 'active',\n \"metadata\" JSON DEFAULT '{}',\n \"thumbnail_asset_id\" UUID,\n \"fps\" INTEGER DEFAULT 30,\n \"width\" INTEGER DEFAULT 1920,\n \"height\" INTEGER DEFAULT 1080,\n \"duration_in_frames\" INTEGER DEFAULT 0,\n \"render_status\" TEXT DEFAULT 'draft',\n \"render_progress\" INTEGER DEFAULT 0,\n \"composition_id\" UUID,\n \"position\" INTEGER DEFAULT 0,\n \"transition_type\" TEXT DEFAULT 'none',\n \"transition_duration_frames\" INTEGER DEFAULT 0,\n \"sequence_id\" UUID,\n \"scene_id\" UUID,\n \"trim_before_frames\" INTEGER DEFAULT 0,\n \"trim_after_frames\" INTEGER DEFAULT 0,\n \"script_text\" TEXT DEFAULT '',\n \"script_word_count\" INTEGER DEFAULT 0,\n \"target_duration\" INTEGER DEFAULT 30,\n \"shot_status\" TEXT DEFAULT 'draft',\n \"progress\" INTEGER DEFAULT 0,\n \"error_message\" TEXT,\n \"status_message\" TEXT,\n \"video_metadata\" JSON,\n \"feed_source_id\" UUID,\n \"source_guid\" TEXT,\n \"source_name\" TEXT,\n \"source_homepage_url\" TEXT,\n \"external_url\" TEXT,\n \"original_published_at\" TIMESTAMP,\n \"dedupe_key\" TEXT,\n \"voice_profile_id\" UUID,\n \"source_text\" TEXT DEFAULT '',\n \"audio_asset_id\" UUID,\n \"duration\" INTEGER DEFAULT 0,\n \"word_timings\" JSON DEFAULT '[]',\n \"audio_metadata\" JSON\n);",
9608
10108
  "columns": {
9609
10109
  "id": {
9610
10110
  "type": "UUID",
@@ -9759,32 +10259,218 @@
9759
10259
  "type": "INTEGER",
9760
10260
  "notNull": false,
9761
10261
  "default": 0
9762
- }
9763
- },
9764
- "indexes": [
9765
- {
9766
- "name": "contents_id_idx",
9767
- "columns": [
9768
- "id"
9769
- ]
9770
10262
  },
9771
- {
9772
- "name": "contents_slug_context_meta_type_idx",
9773
- "columns": [
9774
- "slug",
9775
- "context",
9776
- "_meta_type"
9777
- ],
9778
- "unique": true
10263
+ "composition_id": {
10264
+ "type": "UUID",
10265
+ "referenceKind": "foreignKey",
10266
+ "notNull": false
9779
10267
  },
9780
- {
9781
- "name": "contents_meta_type_idx",
9782
- "columns": [
10268
+ "position": {
10269
+ "type": "INTEGER",
10270
+ "notNull": false,
10271
+ "default": 0
10272
+ },
10273
+ "transition_type": {
10274
+ "type": "TEXT",
10275
+ "notNull": false,
10276
+ "default": "none"
10277
+ },
10278
+ "transition_duration_frames": {
10279
+ "type": "INTEGER",
10280
+ "notNull": false,
10281
+ "default": 0
10282
+ },
10283
+ "sequence_id": {
10284
+ "type": "UUID",
10285
+ "referenceKind": "foreignKey",
10286
+ "notNull": false
10287
+ },
10288
+ "scene_id": {
10289
+ "type": "UUID",
10290
+ "referenceKind": "foreignKey",
10291
+ "notNull": false
10292
+ },
10293
+ "trim_before_frames": {
10294
+ "type": "INTEGER",
10295
+ "notNull": false,
10296
+ "default": 0
10297
+ },
10298
+ "trim_after_frames": {
10299
+ "type": "INTEGER",
10300
+ "notNull": false,
10301
+ "default": 0
10302
+ },
10303
+ "script_text": {
10304
+ "type": "TEXT",
10305
+ "notNull": false,
10306
+ "default": ""
10307
+ },
10308
+ "script_word_count": {
10309
+ "type": "INTEGER",
10310
+ "notNull": false,
10311
+ "default": 0
10312
+ },
10313
+ "target_duration": {
10314
+ "type": "INTEGER",
10315
+ "notNull": false,
10316
+ "default": 30
10317
+ },
10318
+ "shot_status": {
10319
+ "type": "TEXT",
10320
+ "notNull": false,
10321
+ "default": "draft"
10322
+ },
10323
+ "progress": {
10324
+ "type": "INTEGER",
10325
+ "notNull": false,
10326
+ "default": 0
10327
+ },
10328
+ "error_message": {
10329
+ "type": "TEXT",
10330
+ "notNull": false
10331
+ },
10332
+ "status_message": {
10333
+ "type": "TEXT",
10334
+ "notNull": false
10335
+ },
10336
+ "video_metadata": {
10337
+ "type": "JSON",
10338
+ "notNull": false
10339
+ },
10340
+ "feed_source_id": {
10341
+ "type": "UUID",
10342
+ "referenceKind": "foreignKey",
10343
+ "notNull": false
10344
+ },
10345
+ "source_guid": {
10346
+ "type": "TEXT",
10347
+ "notNull": false
10348
+ },
10349
+ "source_name": {
10350
+ "type": "TEXT",
10351
+ "notNull": false
10352
+ },
10353
+ "source_homepage_url": {
10354
+ "type": "TEXT",
10355
+ "notNull": false
10356
+ },
10357
+ "external_url": {
10358
+ "type": "TEXT",
10359
+ "notNull": false
10360
+ },
10361
+ "original_published_at": {
10362
+ "type": "TIMESTAMP",
10363
+ "notNull": false
10364
+ },
10365
+ "dedupe_key": {
10366
+ "type": "TEXT",
10367
+ "notNull": false
10368
+ },
10369
+ "voice_profile_id": {
10370
+ "type": "UUID",
10371
+ "referenceKind": "foreignKey",
10372
+ "notNull": false
10373
+ },
10374
+ "source_text": {
10375
+ "type": "TEXT",
10376
+ "notNull": false,
10377
+ "default": ""
10378
+ },
10379
+ "audio_asset_id": {
10380
+ "type": "UUID",
10381
+ "referenceKind": "crossPackageRef",
10382
+ "notNull": false
10383
+ },
10384
+ "duration": {
10385
+ "type": "INTEGER",
10386
+ "notNull": false,
10387
+ "default": 0
10388
+ },
10389
+ "word_timings": {
10390
+ "type": "JSON",
10391
+ "notNull": false,
10392
+ "default": []
10393
+ },
10394
+ "audio_metadata": {
10395
+ "type": "JSON",
10396
+ "notNull": false
10397
+ }
10398
+ },
10399
+ "indexes": [
10400
+ {
10401
+ "name": "contents_slug_context_meta_type_idx",
10402
+ "columns": [
10403
+ "tenant_id",
10404
+ "slug",
10405
+ "context",
10406
+ "_meta_type"
10407
+ ],
10408
+ "unique": true
10409
+ },
10410
+ {
10411
+ "name": "contents_meta_type_idx",
10412
+ "columns": [
9783
10413
  "_meta_type"
9784
10414
  ]
10415
+ },
10416
+ {
10417
+ "name": "contents_tenant_id_publish_date_idx",
10418
+ "columns": [
10419
+ "tenant_id",
10420
+ "publish_date"
10421
+ ]
10422
+ },
10423
+ {
10424
+ "name": "contents_tenant_id_created_at_idx",
10425
+ "columns": [
10426
+ "tenant_id",
10427
+ "created_at"
10428
+ ]
10429
+ },
10430
+ {
10431
+ "name": "contents_thumbnail_asset_id_idx",
10432
+ "columns": [
10433
+ "thumbnail_asset_id"
10434
+ ]
10435
+ },
10436
+ {
10437
+ "name": "contents_composition_id_idx",
10438
+ "columns": [
10439
+ "composition_id"
10440
+ ]
10441
+ },
10442
+ {
10443
+ "name": "contents_sequence_id_idx",
10444
+ "columns": [
10445
+ "sequence_id"
10446
+ ]
10447
+ },
10448
+ {
10449
+ "name": "contents_scene_id_idx",
10450
+ "columns": [
10451
+ "scene_id"
10452
+ ]
10453
+ },
10454
+ {
10455
+ "name": "contents_feed_source_id_idx",
10456
+ "columns": [
10457
+ "feed_source_id"
10458
+ ]
10459
+ },
10460
+ {
10461
+ "name": "contents_voice_profile_id_idx",
10462
+ "columns": [
10463
+ "voice_profile_id"
10464
+ ]
10465
+ },
10466
+ {
10467
+ "name": "contents_audio_asset_id_idx",
10468
+ "columns": [
10469
+ "audio_asset_id"
10470
+ ]
9785
10471
  }
9786
10472
  ],
9787
- "version": "f9833f21"
10473
+ "version": "a23a4918"
9788
10474
  }
9789
10475
  },
9790
10476
  "@happyvertical/smrt-video:VideoCompositionCollection": {
@@ -9857,12 +10543,6 @@
9857
10543
  }
9858
10544
  },
9859
10545
  "indexes": [
9860
- {
9861
- "name": "contents_id_idx",
9862
- "columns": [
9863
- "id"
9864
- ]
9865
- },
9866
10546
  {
9867
10547
  "name": "contents_slug_context_idx",
9868
10548
  "columns": [
@@ -9870,6 +10550,12 @@
9870
10550
  "context"
9871
10551
  ],
9872
10552
  "unique": true
10553
+ },
10554
+ {
10555
+ "name": "contents_created_at_idx",
10556
+ "columns": [
10557
+ "created_at"
10558
+ ]
9873
10559
  }
9874
10560
  ],
9875
10561
  "version": "5cc43cec"
@@ -9985,7 +10671,7 @@
9985
10671
  "videoSequenceId": {
9986
10672
  "type": "foreignKey",
9987
10673
  "required": false,
9988
- "related": "() => VideoSequence"
10674
+ "related": "VideoSequence"
9989
10675
  },
9990
10676
  "role": {
9991
10677
  "type": "text",
@@ -10694,7 +11380,7 @@
10694
11380
  ],
10695
11381
  "schema": {
10696
11382
  "tableName": "assets",
10697
- "ddl": "CREATE TABLE IF NOT EXISTS \"assets\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"name\" TEXT,\n \"source_uri\" TEXT,\n \"mime_type\" TEXT,\n \"description\" TEXT,\n \"metadata\" TEXT,\n \"version\" INTEGER DEFAULT 1,\n \"primary_version_id\" UUID,\n \"type_slug\" TEXT,\n \"status_slug\" TEXT,\n \"owner_profile_id\" UUID,\n \"source_asset_id\" UUID,\n \"folder_id\" UUID,\n \"source_type\" TEXT,\n \"external_id\" TEXT,\n \"external_refs\" TEXT,\n \"video_sequence_id\" UUID,\n \"role\" TEXT DEFAULT 'video'\n);",
11383
+ "ddl": "CREATE TABLE IF NOT EXISTS \"assets\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"name\" TEXT,\n \"source_uri\" TEXT,\n \"mime_type\" TEXT,\n \"description\" TEXT,\n \"metadata\" TEXT,\n \"version\" INTEGER DEFAULT 1,\n \"primary_version_id\" UUID,\n \"type_slug\" TEXT,\n \"status_slug\" TEXT,\n \"owner_profile_id\" UUID,\n \"source_asset_id\" UUID,\n \"folder_id\" UUID,\n \"source_type\" TEXT,\n \"external_id\" TEXT,\n \"external_refs\" TEXT,\n \"character_id\" UUID,\n \"role\" TEXT DEFAULT 'seed-image',\n \"performer_id\" UUID,\n \"scene_id\" UUID,\n \"video_composition_id\" UUID,\n \"video_sequence_id\" UUID,\n \"video_shot_id\" UUID\n);",
10698
11384
  "columns": {
10699
11385
  "id": {
10700
11386
  "type": "UUID",
@@ -10799,7 +11485,7 @@
10799
11485
  "type": "TEXT",
10800
11486
  "notNull": false
10801
11487
  },
10802
- "video_sequence_id": {
11488
+ "character_id": {
10803
11489
  "type": "UUID",
10804
11490
  "referenceKind": "foreignKey",
10805
11491
  "notNull": false
@@ -10807,19 +11493,39 @@
10807
11493
  "role": {
10808
11494
  "type": "TEXT",
10809
11495
  "notNull": false,
10810
- "default": "video"
11496
+ "default": "seed-image"
11497
+ },
11498
+ "performer_id": {
11499
+ "type": "UUID",
11500
+ "referenceKind": "foreignKey",
11501
+ "notNull": false
11502
+ },
11503
+ "scene_id": {
11504
+ "type": "UUID",
11505
+ "referenceKind": "foreignKey",
11506
+ "notNull": false
11507
+ },
11508
+ "video_composition_id": {
11509
+ "type": "UUID",
11510
+ "referenceKind": "foreignKey",
11511
+ "notNull": false
11512
+ },
11513
+ "video_sequence_id": {
11514
+ "type": "UUID",
11515
+ "referenceKind": "foreignKey",
11516
+ "notNull": false
11517
+ },
11518
+ "video_shot_id": {
11519
+ "type": "UUID",
11520
+ "referenceKind": "foreignKey",
11521
+ "notNull": false
10811
11522
  }
10812
11523
  },
10813
11524
  "indexes": [
10814
- {
10815
- "name": "assets_id_idx",
10816
- "columns": [
10817
- "id"
10818
- ]
10819
- },
10820
11525
  {
10821
11526
  "name": "assets_slug_context_meta_type_idx",
10822
11527
  "columns": [
11528
+ "tenant_id",
10823
11529
  "slug",
10824
11530
  "context",
10825
11531
  "_meta_type"
@@ -10831,9 +11537,76 @@
10831
11537
  "columns": [
10832
11538
  "_meta_type"
10833
11539
  ]
11540
+ },
11541
+ {
11542
+ "name": "assets_tenant_id_created_at_idx",
11543
+ "columns": [
11544
+ "tenant_id",
11545
+ "created_at"
11546
+ ]
11547
+ },
11548
+ {
11549
+ "name": "assets_primary_version_id_idx",
11550
+ "columns": [
11551
+ "primary_version_id"
11552
+ ]
11553
+ },
11554
+ {
11555
+ "name": "assets_owner_profile_id_idx",
11556
+ "columns": [
11557
+ "owner_profile_id"
11558
+ ]
11559
+ },
11560
+ {
11561
+ "name": "assets_source_asset_id_idx",
11562
+ "columns": [
11563
+ "source_asset_id"
11564
+ ]
11565
+ },
11566
+ {
11567
+ "name": "assets_folder_id_idx",
11568
+ "columns": [
11569
+ "folder_id"
11570
+ ]
11571
+ },
11572
+ {
11573
+ "name": "assets_character_id_idx",
11574
+ "columns": [
11575
+ "character_id"
11576
+ ]
11577
+ },
11578
+ {
11579
+ "name": "assets_performer_id_idx",
11580
+ "columns": [
11581
+ "performer_id"
11582
+ ]
11583
+ },
11584
+ {
11585
+ "name": "assets_scene_id_idx",
11586
+ "columns": [
11587
+ "scene_id"
11588
+ ]
11589
+ },
11590
+ {
11591
+ "name": "assets_video_composition_id_idx",
11592
+ "columns": [
11593
+ "video_composition_id"
11594
+ ]
11595
+ },
11596
+ {
11597
+ "name": "assets_video_sequence_id_idx",
11598
+ "columns": [
11599
+ "video_sequence_id"
11600
+ ]
11601
+ },
11602
+ {
11603
+ "name": "assets_video_shot_id_idx",
11604
+ "columns": [
11605
+ "video_shot_id"
11606
+ ]
10834
11607
  }
10835
11608
  ],
10836
- "version": "70fcce02"
11609
+ "version": "d51e6489"
10837
11610
  }
10838
11611
  },
10839
11612
  "@happyvertical/smrt-video:VideoSequence": {
@@ -12355,7 +13128,7 @@
12355
13128
  ],
12356
13129
  "schema": {
12357
13130
  "tableName": "contents",
12358
- "ddl": "CREATE TABLE IF NOT EXISTS \"contents\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"type\" TEXT,\n \"variant\" TEXT,\n \"file_key\" TEXT,\n \"author\" TEXT,\n \"name\" TEXT DEFAULT '',\n \"title\" TEXT,\n \"description\" TEXT,\n \"body\" TEXT,\n \"body_format\" TEXT,\n \"publish_date\" TIMESTAMP,\n \"url\" TEXT,\n \"source\" TEXT,\n \"original_url\" TEXT,\n \"language\" TEXT,\n \"tags\" JSON DEFAULT '[]',\n \"category\" TEXT,\n \"status\" TEXT DEFAULT 'draft',\n \"state\" TEXT DEFAULT 'active',\n \"metadata\" JSON DEFAULT '{}',\n \"thumbnail_asset_id\" UUID,\n \"composition_id\" UUID,\n \"position\" INTEGER DEFAULT 0,\n \"duration_in_frames\" INTEGER DEFAULT 0,\n \"transition_type\" TEXT DEFAULT 'none',\n \"transition_duration_frames\" INTEGER DEFAULT 0\n);",
13131
+ "ddl": "CREATE TABLE IF NOT EXISTS \"contents\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"type\" TEXT,\n \"variant\" TEXT,\n \"file_key\" TEXT,\n \"author\" TEXT,\n \"name\" TEXT DEFAULT '',\n \"title\" TEXT,\n \"description\" TEXT,\n \"body\" TEXT,\n \"body_format\" TEXT,\n \"publish_date\" TIMESTAMP,\n \"url\" TEXT,\n \"source\" TEXT,\n \"original_url\" TEXT,\n \"language\" TEXT,\n \"tags\" JSON DEFAULT '[]',\n \"category\" TEXT,\n \"status\" TEXT DEFAULT 'draft',\n \"state\" TEXT DEFAULT 'active',\n \"metadata\" JSON DEFAULT '{}',\n \"thumbnail_asset_id\" UUID,\n \"fps\" INTEGER DEFAULT 30,\n \"width\" INTEGER DEFAULT 1920,\n \"height\" INTEGER DEFAULT 1080,\n \"duration_in_frames\" INTEGER DEFAULT 0,\n \"render_status\" TEXT DEFAULT 'draft',\n \"render_progress\" INTEGER DEFAULT 0,\n \"composition_id\" UUID,\n \"position\" INTEGER DEFAULT 0,\n \"transition_type\" TEXT DEFAULT 'none',\n \"transition_duration_frames\" INTEGER DEFAULT 0,\n \"sequence_id\" UUID,\n \"scene_id\" UUID,\n \"trim_before_frames\" INTEGER DEFAULT 0,\n \"trim_after_frames\" INTEGER DEFAULT 0,\n \"script_text\" TEXT DEFAULT '',\n \"script_word_count\" INTEGER DEFAULT 0,\n \"target_duration\" INTEGER DEFAULT 30,\n \"shot_status\" TEXT DEFAULT 'draft',\n \"progress\" INTEGER DEFAULT 0,\n \"error_message\" TEXT,\n \"status_message\" TEXT,\n \"video_metadata\" JSON,\n \"feed_source_id\" UUID,\n \"source_guid\" TEXT,\n \"source_name\" TEXT,\n \"source_homepage_url\" TEXT,\n \"external_url\" TEXT,\n \"original_published_at\" TIMESTAMP,\n \"dedupe_key\" TEXT,\n \"voice_profile_id\" UUID,\n \"source_text\" TEXT DEFAULT '',\n \"audio_asset_id\" UUID,\n \"duration\" INTEGER DEFAULT 0,\n \"word_timings\" JSON DEFAULT '[]',\n \"audio_metadata\" JSON\n);",
12359
13132
  "columns": {
12360
13133
  "id": {
12361
13134
  "type": "UUID",
@@ -12481,6 +13254,36 @@
12481
13254
  "referenceKind": "crossPackageRef",
12482
13255
  "notNull": false
12483
13256
  },
13257
+ "fps": {
13258
+ "type": "INTEGER",
13259
+ "notNull": false,
13260
+ "default": 30
13261
+ },
13262
+ "width": {
13263
+ "type": "INTEGER",
13264
+ "notNull": false,
13265
+ "default": 1920
13266
+ },
13267
+ "height": {
13268
+ "type": "INTEGER",
13269
+ "notNull": false,
13270
+ "default": 1080
13271
+ },
13272
+ "duration_in_frames": {
13273
+ "type": "INTEGER",
13274
+ "notNull": false,
13275
+ "default": 0
13276
+ },
13277
+ "render_status": {
13278
+ "type": "TEXT",
13279
+ "notNull": false,
13280
+ "default": "draft"
13281
+ },
13282
+ "render_progress": {
13283
+ "type": "INTEGER",
13284
+ "notNull": false,
13285
+ "default": 0
13286
+ },
12484
13287
  "composition_id": {
12485
13288
  "type": "UUID",
12486
13289
  "referenceKind": "foreignKey",
@@ -12491,32 +13294,137 @@
12491
13294
  "notNull": false,
12492
13295
  "default": 0
12493
13296
  },
12494
- "duration_in_frames": {
13297
+ "transition_type": {
13298
+ "type": "TEXT",
13299
+ "notNull": false,
13300
+ "default": "none"
13301
+ },
13302
+ "transition_duration_frames": {
12495
13303
  "type": "INTEGER",
12496
13304
  "notNull": false,
12497
13305
  "default": 0
12498
13306
  },
12499
- "transition_type": {
13307
+ "sequence_id": {
13308
+ "type": "UUID",
13309
+ "referenceKind": "foreignKey",
13310
+ "notNull": false
13311
+ },
13312
+ "scene_id": {
13313
+ "type": "UUID",
13314
+ "referenceKind": "foreignKey",
13315
+ "notNull": false
13316
+ },
13317
+ "trim_before_frames": {
13318
+ "type": "INTEGER",
13319
+ "notNull": false,
13320
+ "default": 0
13321
+ },
13322
+ "trim_after_frames": {
13323
+ "type": "INTEGER",
13324
+ "notNull": false,
13325
+ "default": 0
13326
+ },
13327
+ "script_text": {
12500
13328
  "type": "TEXT",
12501
13329
  "notNull": false,
12502
- "default": "none"
13330
+ "default": ""
12503
13331
  },
12504
- "transition_duration_frames": {
13332
+ "script_word_count": {
13333
+ "type": "INTEGER",
13334
+ "notNull": false,
13335
+ "default": 0
13336
+ },
13337
+ "target_duration": {
13338
+ "type": "INTEGER",
13339
+ "notNull": false,
13340
+ "default": 30
13341
+ },
13342
+ "shot_status": {
13343
+ "type": "TEXT",
13344
+ "notNull": false,
13345
+ "default": "draft"
13346
+ },
13347
+ "progress": {
12505
13348
  "type": "INTEGER",
12506
13349
  "notNull": false,
12507
13350
  "default": 0
13351
+ },
13352
+ "error_message": {
13353
+ "type": "TEXT",
13354
+ "notNull": false
13355
+ },
13356
+ "status_message": {
13357
+ "type": "TEXT",
13358
+ "notNull": false
13359
+ },
13360
+ "video_metadata": {
13361
+ "type": "JSON",
13362
+ "notNull": false
13363
+ },
13364
+ "feed_source_id": {
13365
+ "type": "UUID",
13366
+ "referenceKind": "foreignKey",
13367
+ "notNull": false
13368
+ },
13369
+ "source_guid": {
13370
+ "type": "TEXT",
13371
+ "notNull": false
13372
+ },
13373
+ "source_name": {
13374
+ "type": "TEXT",
13375
+ "notNull": false
13376
+ },
13377
+ "source_homepage_url": {
13378
+ "type": "TEXT",
13379
+ "notNull": false
13380
+ },
13381
+ "external_url": {
13382
+ "type": "TEXT",
13383
+ "notNull": false
13384
+ },
13385
+ "original_published_at": {
13386
+ "type": "TIMESTAMP",
13387
+ "notNull": false
13388
+ },
13389
+ "dedupe_key": {
13390
+ "type": "TEXT",
13391
+ "notNull": false
13392
+ },
13393
+ "voice_profile_id": {
13394
+ "type": "UUID",
13395
+ "referenceKind": "foreignKey",
13396
+ "notNull": false
13397
+ },
13398
+ "source_text": {
13399
+ "type": "TEXT",
13400
+ "notNull": false,
13401
+ "default": ""
13402
+ },
13403
+ "audio_asset_id": {
13404
+ "type": "UUID",
13405
+ "referenceKind": "crossPackageRef",
13406
+ "notNull": false
13407
+ },
13408
+ "duration": {
13409
+ "type": "INTEGER",
13410
+ "notNull": false,
13411
+ "default": 0
13412
+ },
13413
+ "word_timings": {
13414
+ "type": "JSON",
13415
+ "notNull": false,
13416
+ "default": []
13417
+ },
13418
+ "audio_metadata": {
13419
+ "type": "JSON",
13420
+ "notNull": false
12508
13421
  }
12509
13422
  },
12510
13423
  "indexes": [
12511
- {
12512
- "name": "contents_id_idx",
12513
- "columns": [
12514
- "id"
12515
- ]
12516
- },
12517
13424
  {
12518
13425
  "name": "contents_slug_context_meta_type_idx",
12519
13426
  "columns": [
13427
+ "tenant_id",
12520
13428
  "slug",
12521
13429
  "context",
12522
13430
  "_meta_type"
@@ -12528,9 +13436,65 @@
12528
13436
  "columns": [
12529
13437
  "_meta_type"
12530
13438
  ]
13439
+ },
13440
+ {
13441
+ "name": "contents_tenant_id_publish_date_idx",
13442
+ "columns": [
13443
+ "tenant_id",
13444
+ "publish_date"
13445
+ ]
13446
+ },
13447
+ {
13448
+ "name": "contents_tenant_id_created_at_idx",
13449
+ "columns": [
13450
+ "tenant_id",
13451
+ "created_at"
13452
+ ]
13453
+ },
13454
+ {
13455
+ "name": "contents_thumbnail_asset_id_idx",
13456
+ "columns": [
13457
+ "thumbnail_asset_id"
13458
+ ]
13459
+ },
13460
+ {
13461
+ "name": "contents_composition_id_idx",
13462
+ "columns": [
13463
+ "composition_id"
13464
+ ]
13465
+ },
13466
+ {
13467
+ "name": "contents_sequence_id_idx",
13468
+ "columns": [
13469
+ "sequence_id"
13470
+ ]
13471
+ },
13472
+ {
13473
+ "name": "contents_scene_id_idx",
13474
+ "columns": [
13475
+ "scene_id"
13476
+ ]
13477
+ },
13478
+ {
13479
+ "name": "contents_feed_source_id_idx",
13480
+ "columns": [
13481
+ "feed_source_id"
13482
+ ]
13483
+ },
13484
+ {
13485
+ "name": "contents_voice_profile_id_idx",
13486
+ "columns": [
13487
+ "voice_profile_id"
13488
+ ]
13489
+ },
13490
+ {
13491
+ "name": "contents_audio_asset_id_idx",
13492
+ "columns": [
13493
+ "audio_asset_id"
13494
+ ]
12531
13495
  }
12532
13496
  ],
12533
- "version": "cfe02d11"
13497
+ "version": "a23a4918"
12534
13498
  }
12535
13499
  },
12536
13500
  "@happyvertical/smrt-video:VideoSequenceCollection": {
@@ -12603,12 +13567,6 @@
12603
13567
  }
12604
13568
  },
12605
13569
  "indexes": [
12606
- {
12607
- "name": "contents_id_idx",
12608
- "columns": [
12609
- "id"
12610
- ]
12611
- },
12612
13570
  {
12613
13571
  "name": "contents_slug_context_idx",
12614
13572
  "columns": [
@@ -12616,6 +13574,12 @@
12616
13574
  "context"
12617
13575
  ],
12618
13576
  "unique": true
13577
+ },
13578
+ {
13579
+ "name": "contents_created_at_idx",
13580
+ "columns": [
13581
+ "created_at"
13582
+ ]
12619
13583
  }
12620
13584
  ],
12621
13585
  "version": "dbf0e6ae"
@@ -12731,7 +13695,7 @@
12731
13695
  "videoShotId": {
12732
13696
  "type": "foreignKey",
12733
13697
  "required": false,
12734
- "related": "() => VideoShot"
13698
+ "related": "VideoShot"
12735
13699
  },
12736
13700
  "role": {
12737
13701
  "type": "text",
@@ -13440,7 +14404,7 @@
13440
14404
  ],
13441
14405
  "schema": {
13442
14406
  "tableName": "assets",
13443
- "ddl": "CREATE TABLE IF NOT EXISTS \"assets\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"name\" TEXT,\n \"source_uri\" TEXT,\n \"mime_type\" TEXT,\n \"description\" TEXT,\n \"metadata\" TEXT,\n \"version\" INTEGER DEFAULT 1,\n \"primary_version_id\" UUID,\n \"type_slug\" TEXT,\n \"status_slug\" TEXT,\n \"owner_profile_id\" UUID,\n \"source_asset_id\" UUID,\n \"folder_id\" UUID,\n \"source_type\" TEXT,\n \"external_id\" TEXT,\n \"external_refs\" TEXT,\n \"video_shot_id\" UUID,\n \"role\" TEXT DEFAULT 'video'\n);",
14407
+ "ddl": "CREATE TABLE IF NOT EXISTS \"assets\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"name\" TEXT,\n \"source_uri\" TEXT,\n \"mime_type\" TEXT,\n \"description\" TEXT,\n \"metadata\" TEXT,\n \"version\" INTEGER DEFAULT 1,\n \"primary_version_id\" UUID,\n \"type_slug\" TEXT,\n \"status_slug\" TEXT,\n \"owner_profile_id\" UUID,\n \"source_asset_id\" UUID,\n \"folder_id\" UUID,\n \"source_type\" TEXT,\n \"external_id\" TEXT,\n \"external_refs\" TEXT,\n \"character_id\" UUID,\n \"role\" TEXT DEFAULT 'seed-image',\n \"performer_id\" UUID,\n \"scene_id\" UUID,\n \"video_composition_id\" UUID,\n \"video_sequence_id\" UUID,\n \"video_shot_id\" UUID\n);",
13444
14408
  "columns": {
13445
14409
  "id": {
13446
14410
  "type": "UUID",
@@ -13523,49 +14487,69 @@
13523
14487
  "referenceKind": "crossPackageRef",
13524
14488
  "notNull": false
13525
14489
  },
13526
- "source_asset_id": {
14490
+ "source_asset_id": {
14491
+ "type": "UUID",
14492
+ "referenceKind": "foreignKey",
14493
+ "notNull": false
14494
+ },
14495
+ "folder_id": {
14496
+ "type": "UUID",
14497
+ "referenceKind": "foreignKey",
14498
+ "notNull": false
14499
+ },
14500
+ "source_type": {
14501
+ "type": "TEXT",
14502
+ "notNull": false
14503
+ },
14504
+ "external_id": {
14505
+ "type": "TEXT",
14506
+ "notNull": false
14507
+ },
14508
+ "external_refs": {
14509
+ "type": "TEXT",
14510
+ "notNull": false
14511
+ },
14512
+ "character_id": {
14513
+ "type": "UUID",
14514
+ "referenceKind": "foreignKey",
14515
+ "notNull": false
14516
+ },
14517
+ "role": {
14518
+ "type": "TEXT",
14519
+ "notNull": false,
14520
+ "default": "seed-image"
14521
+ },
14522
+ "performer_id": {
13527
14523
  "type": "UUID",
13528
14524
  "referenceKind": "foreignKey",
13529
14525
  "notNull": false
13530
14526
  },
13531
- "folder_id": {
14527
+ "scene_id": {
13532
14528
  "type": "UUID",
13533
14529
  "referenceKind": "foreignKey",
13534
14530
  "notNull": false
13535
14531
  },
13536
- "source_type": {
13537
- "type": "TEXT",
13538
- "notNull": false
13539
- },
13540
- "external_id": {
13541
- "type": "TEXT",
14532
+ "video_composition_id": {
14533
+ "type": "UUID",
14534
+ "referenceKind": "foreignKey",
13542
14535
  "notNull": false
13543
14536
  },
13544
- "external_refs": {
13545
- "type": "TEXT",
14537
+ "video_sequence_id": {
14538
+ "type": "UUID",
14539
+ "referenceKind": "foreignKey",
13546
14540
  "notNull": false
13547
14541
  },
13548
14542
  "video_shot_id": {
13549
14543
  "type": "UUID",
13550
14544
  "referenceKind": "foreignKey",
13551
14545
  "notNull": false
13552
- },
13553
- "role": {
13554
- "type": "TEXT",
13555
- "notNull": false,
13556
- "default": "video"
13557
14546
  }
13558
14547
  },
13559
14548
  "indexes": [
13560
- {
13561
- "name": "assets_id_idx",
13562
- "columns": [
13563
- "id"
13564
- ]
13565
- },
13566
14549
  {
13567
14550
  "name": "assets_slug_context_meta_type_idx",
13568
14551
  "columns": [
14552
+ "tenant_id",
13569
14553
  "slug",
13570
14554
  "context",
13571
14555
  "_meta_type"
@@ -13577,9 +14561,76 @@
13577
14561
  "columns": [
13578
14562
  "_meta_type"
13579
14563
  ]
14564
+ },
14565
+ {
14566
+ "name": "assets_tenant_id_created_at_idx",
14567
+ "columns": [
14568
+ "tenant_id",
14569
+ "created_at"
14570
+ ]
14571
+ },
14572
+ {
14573
+ "name": "assets_primary_version_id_idx",
14574
+ "columns": [
14575
+ "primary_version_id"
14576
+ ]
14577
+ },
14578
+ {
14579
+ "name": "assets_owner_profile_id_idx",
14580
+ "columns": [
14581
+ "owner_profile_id"
14582
+ ]
14583
+ },
14584
+ {
14585
+ "name": "assets_source_asset_id_idx",
14586
+ "columns": [
14587
+ "source_asset_id"
14588
+ ]
14589
+ },
14590
+ {
14591
+ "name": "assets_folder_id_idx",
14592
+ "columns": [
14593
+ "folder_id"
14594
+ ]
14595
+ },
14596
+ {
14597
+ "name": "assets_character_id_idx",
14598
+ "columns": [
14599
+ "character_id"
14600
+ ]
14601
+ },
14602
+ {
14603
+ "name": "assets_performer_id_idx",
14604
+ "columns": [
14605
+ "performer_id"
14606
+ ]
14607
+ },
14608
+ {
14609
+ "name": "assets_scene_id_idx",
14610
+ "columns": [
14611
+ "scene_id"
14612
+ ]
14613
+ },
14614
+ {
14615
+ "name": "assets_video_composition_id_idx",
14616
+ "columns": [
14617
+ "video_composition_id"
14618
+ ]
14619
+ },
14620
+ {
14621
+ "name": "assets_video_sequence_id_idx",
14622
+ "columns": [
14623
+ "video_sequence_id"
14624
+ ]
14625
+ },
14626
+ {
14627
+ "name": "assets_video_shot_id_idx",
14628
+ "columns": [
14629
+ "video_shot_id"
14630
+ ]
13580
14631
  }
13581
14632
  ],
13582
- "version": "a41a8d65"
14633
+ "version": "d51e6489"
13583
14634
  }
13584
14635
  },
13585
14636
  "@happyvertical/smrt-video:VideoShotCharacter": {
@@ -13619,7 +14670,7 @@
13619
14670
  "videoShotId": {
13620
14671
  "type": "foreignKey",
13621
14672
  "required": true,
13622
- "related": "() => VideoShot",
14673
+ "related": "VideoShot",
13623
14674
  "_meta": {
13624
14675
  "required": true
13625
14676
  }
@@ -13627,7 +14678,7 @@
13627
14678
  "characterId": {
13628
14679
  "type": "foreignKey",
13629
14680
  "required": true,
13630
- "related": "() => Character",
14681
+ "related": "Character",
13631
14682
  "_meta": {
13632
14683
  "required": true
13633
14684
  }
@@ -14153,7 +15204,13 @@
14153
15204
  "cli": true,
14154
15205
  "tenantScoped": {
14155
15206
  "mode": "optional"
14156
- }
15207
+ },
15208
+ "conflictColumns": [
15209
+ "tenant_id",
15210
+ "slug",
15211
+ "context",
15212
+ "_meta_type"
15213
+ ]
14157
15214
  },
14158
15215
  "extends": "SmrtObject",
14159
15216
  "exportName": "VideoShotCharacter",
@@ -14234,15 +15291,10 @@
14234
15291
  }
14235
15292
  },
14236
15293
  "indexes": [
14237
- {
14238
- "name": "video_shot_characters_id_idx",
14239
- "columns": [
14240
- "id"
14241
- ]
14242
- },
14243
15294
  {
14244
15295
  "name": "video_shot_characters_slug_context_meta_type_idx",
14245
15296
  "columns": [
15297
+ "tenant_id",
14246
15298
  "slug",
14247
15299
  "context",
14248
15300
  "_meta_type"
@@ -14254,6 +15306,25 @@
14254
15306
  "columns": [
14255
15307
  "_meta_type"
14256
15308
  ]
15309
+ },
15310
+ {
15311
+ "name": "video_shot_characters_tenant_id_created_at_idx",
15312
+ "columns": [
15313
+ "tenant_id",
15314
+ "created_at"
15315
+ ]
15316
+ },
15317
+ {
15318
+ "name": "video_shot_characters_video_shot_id_idx",
15319
+ "columns": [
15320
+ "video_shot_id"
15321
+ ]
15322
+ },
15323
+ {
15324
+ "name": "video_shot_characters_character_id_idx",
15325
+ "columns": [
15326
+ "character_id"
15327
+ ]
14257
15328
  }
14258
15329
  ],
14259
15330
  "version": "0a085dc1"
@@ -14333,12 +15404,6 @@
14333
15404
  }
14334
15405
  },
14335
15406
  "indexes": [
14336
- {
14337
- "name": "video_shot_character_collections_id_idx",
14338
- "columns": [
14339
- "id"
14340
- ]
14341
- },
14342
15407
  {
14343
15408
  "name": "video_shot_character_collections_slug_context_idx",
14344
15409
  "columns": [
@@ -14346,6 +15411,12 @@
14346
15411
  "context"
14347
15412
  ],
14348
15413
  "unique": true
15414
+ },
15415
+ {
15416
+ "name": "video_shot_character_collections_created_at_idx",
15417
+ "columns": [
15418
+ "created_at"
15419
+ ]
14349
15420
  }
14350
15421
  ],
14351
15422
  "version": "13ff658b"
@@ -14476,12 +15547,12 @@
14476
15547
  "sequenceId": {
14477
15548
  "type": "foreignKey",
14478
15549
  "required": false,
14479
- "related": "() => VideoSequence"
15550
+ "related": "VideoSequence"
14480
15551
  },
14481
15552
  "sceneId": {
14482
15553
  "type": "foreignKey",
14483
15554
  "required": false,
14484
- "related": "() => Scene"
15555
+ "related": "Scene"
14485
15556
  },
14486
15557
  "position": {
14487
15558
  "type": "integer",
@@ -15926,7 +16997,7 @@
15926
16997
  ],
15927
16998
  "schema": {
15928
16999
  "tableName": "contents",
15929
- "ddl": "CREATE TABLE IF NOT EXISTS \"contents\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"type\" TEXT,\n \"variant\" TEXT,\n \"file_key\" TEXT,\n \"author\" TEXT,\n \"name\" TEXT DEFAULT '',\n \"title\" TEXT,\n \"description\" TEXT,\n \"body\" TEXT,\n \"body_format\" TEXT,\n \"publish_date\" TIMESTAMP,\n \"url\" TEXT,\n \"source\" TEXT,\n \"original_url\" TEXT,\n \"language\" TEXT,\n \"tags\" JSON DEFAULT '[]',\n \"category\" TEXT,\n \"status\" TEXT DEFAULT 'draft',\n \"state\" TEXT DEFAULT 'active',\n \"metadata\" JSON DEFAULT '{}',\n \"thumbnail_asset_id\" UUID,\n \"sequence_id\" UUID,\n \"scene_id\" UUID,\n \"position\" INTEGER DEFAULT 0,\n \"duration_in_frames\" INTEGER DEFAULT 0,\n \"trim_before_frames\" INTEGER DEFAULT 0,\n \"trim_after_frames\" INTEGER DEFAULT 0,\n \"script_text\" TEXT DEFAULT '',\n \"script_word_count\" INTEGER DEFAULT 0,\n \"target_duration\" INTEGER DEFAULT 30,\n \"shot_status\" TEXT DEFAULT 'draft',\n \"progress\" INTEGER DEFAULT 0,\n \"error_message\" TEXT,\n \"status_message\" TEXT,\n \"video_metadata\" JSON\n);",
17000
+ "ddl": "CREATE TABLE IF NOT EXISTS \"contents\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"type\" TEXT,\n \"variant\" TEXT,\n \"file_key\" TEXT,\n \"author\" TEXT,\n \"name\" TEXT DEFAULT '',\n \"title\" TEXT,\n \"description\" TEXT,\n \"body\" TEXT,\n \"body_format\" TEXT,\n \"publish_date\" TIMESTAMP,\n \"url\" TEXT,\n \"source\" TEXT,\n \"original_url\" TEXT,\n \"language\" TEXT,\n \"tags\" JSON DEFAULT '[]',\n \"category\" TEXT,\n \"status\" TEXT DEFAULT 'draft',\n \"state\" TEXT DEFAULT 'active',\n \"metadata\" JSON DEFAULT '{}',\n \"thumbnail_asset_id\" UUID,\n \"fps\" INTEGER DEFAULT 30,\n \"width\" INTEGER DEFAULT 1920,\n \"height\" INTEGER DEFAULT 1080,\n \"duration_in_frames\" INTEGER DEFAULT 0,\n \"render_status\" TEXT DEFAULT 'draft',\n \"render_progress\" INTEGER DEFAULT 0,\n \"composition_id\" UUID,\n \"position\" INTEGER DEFAULT 0,\n \"transition_type\" TEXT DEFAULT 'none',\n \"transition_duration_frames\" INTEGER DEFAULT 0,\n \"sequence_id\" UUID,\n \"scene_id\" UUID,\n \"trim_before_frames\" INTEGER DEFAULT 0,\n \"trim_after_frames\" INTEGER DEFAULT 0,\n \"script_text\" TEXT DEFAULT '',\n \"script_word_count\" INTEGER DEFAULT 0,\n \"target_duration\" INTEGER DEFAULT 30,\n \"shot_status\" TEXT DEFAULT 'draft',\n \"progress\" INTEGER DEFAULT 0,\n \"error_message\" TEXT,\n \"status_message\" TEXT,\n \"video_metadata\" JSON,\n \"feed_source_id\" UUID,\n \"source_guid\" TEXT,\n \"source_name\" TEXT,\n \"source_homepage_url\" TEXT,\n \"external_url\" TEXT,\n \"original_published_at\" TIMESTAMP,\n \"dedupe_key\" TEXT,\n \"voice_profile_id\" UUID,\n \"source_text\" TEXT DEFAULT '',\n \"audio_asset_id\" UUID,\n \"duration\" INTEGER DEFAULT 0,\n \"word_timings\" JSON DEFAULT '[]',\n \"audio_metadata\" JSON\n);",
15930
17001
  "columns": {
15931
17002
  "id": {
15932
17003
  "type": "UUID",
@@ -16052,12 +17123,37 @@
16052
17123
  "referenceKind": "crossPackageRef",
16053
17124
  "notNull": false
16054
17125
  },
16055
- "sequence_id": {
16056
- "type": "UUID",
16057
- "referenceKind": "foreignKey",
16058
- "notNull": false
17126
+ "fps": {
17127
+ "type": "INTEGER",
17128
+ "notNull": false,
17129
+ "default": 30
16059
17130
  },
16060
- "scene_id": {
17131
+ "width": {
17132
+ "type": "INTEGER",
17133
+ "notNull": false,
17134
+ "default": 1920
17135
+ },
17136
+ "height": {
17137
+ "type": "INTEGER",
17138
+ "notNull": false,
17139
+ "default": 1080
17140
+ },
17141
+ "duration_in_frames": {
17142
+ "type": "INTEGER",
17143
+ "notNull": false,
17144
+ "default": 0
17145
+ },
17146
+ "render_status": {
17147
+ "type": "TEXT",
17148
+ "notNull": false,
17149
+ "default": "draft"
17150
+ },
17151
+ "render_progress": {
17152
+ "type": "INTEGER",
17153
+ "notNull": false,
17154
+ "default": 0
17155
+ },
17156
+ "composition_id": {
16061
17157
  "type": "UUID",
16062
17158
  "referenceKind": "foreignKey",
16063
17159
  "notNull": false
@@ -16067,11 +17163,26 @@
16067
17163
  "notNull": false,
16068
17164
  "default": 0
16069
17165
  },
16070
- "duration_in_frames": {
17166
+ "transition_type": {
17167
+ "type": "TEXT",
17168
+ "notNull": false,
17169
+ "default": "none"
17170
+ },
17171
+ "transition_duration_frames": {
16071
17172
  "type": "INTEGER",
16072
17173
  "notNull": false,
16073
17174
  "default": 0
16074
17175
  },
17176
+ "sequence_id": {
17177
+ "type": "UUID",
17178
+ "referenceKind": "foreignKey",
17179
+ "notNull": false
17180
+ },
17181
+ "scene_id": {
17182
+ "type": "UUID",
17183
+ "referenceKind": "foreignKey",
17184
+ "notNull": false
17185
+ },
16075
17186
  "trim_before_frames": {
16076
17187
  "type": "INTEGER",
16077
17188
  "notNull": false,
@@ -16118,18 +17229,71 @@
16118
17229
  "video_metadata": {
16119
17230
  "type": "JSON",
16120
17231
  "notNull": false
17232
+ },
17233
+ "feed_source_id": {
17234
+ "type": "UUID",
17235
+ "referenceKind": "foreignKey",
17236
+ "notNull": false
17237
+ },
17238
+ "source_guid": {
17239
+ "type": "TEXT",
17240
+ "notNull": false
17241
+ },
17242
+ "source_name": {
17243
+ "type": "TEXT",
17244
+ "notNull": false
17245
+ },
17246
+ "source_homepage_url": {
17247
+ "type": "TEXT",
17248
+ "notNull": false
17249
+ },
17250
+ "external_url": {
17251
+ "type": "TEXT",
17252
+ "notNull": false
17253
+ },
17254
+ "original_published_at": {
17255
+ "type": "TIMESTAMP",
17256
+ "notNull": false
17257
+ },
17258
+ "dedupe_key": {
17259
+ "type": "TEXT",
17260
+ "notNull": false
17261
+ },
17262
+ "voice_profile_id": {
17263
+ "type": "UUID",
17264
+ "referenceKind": "foreignKey",
17265
+ "notNull": false
17266
+ },
17267
+ "source_text": {
17268
+ "type": "TEXT",
17269
+ "notNull": false,
17270
+ "default": ""
17271
+ },
17272
+ "audio_asset_id": {
17273
+ "type": "UUID",
17274
+ "referenceKind": "crossPackageRef",
17275
+ "notNull": false
17276
+ },
17277
+ "duration": {
17278
+ "type": "INTEGER",
17279
+ "notNull": false,
17280
+ "default": 0
17281
+ },
17282
+ "word_timings": {
17283
+ "type": "JSON",
17284
+ "notNull": false,
17285
+ "default": []
17286
+ },
17287
+ "audio_metadata": {
17288
+ "type": "JSON",
17289
+ "notNull": false
16121
17290
  }
16122
17291
  },
16123
17292
  "indexes": [
16124
- {
16125
- "name": "contents_id_idx",
16126
- "columns": [
16127
- "id"
16128
- ]
16129
- },
16130
17293
  {
16131
17294
  "name": "contents_slug_context_meta_type_idx",
16132
17295
  "columns": [
17296
+ "tenant_id",
16133
17297
  "slug",
16134
17298
  "context",
16135
17299
  "_meta_type"
@@ -16141,9 +17305,65 @@
16141
17305
  "columns": [
16142
17306
  "_meta_type"
16143
17307
  ]
17308
+ },
17309
+ {
17310
+ "name": "contents_tenant_id_publish_date_idx",
17311
+ "columns": [
17312
+ "tenant_id",
17313
+ "publish_date"
17314
+ ]
17315
+ },
17316
+ {
17317
+ "name": "contents_tenant_id_created_at_idx",
17318
+ "columns": [
17319
+ "tenant_id",
17320
+ "created_at"
17321
+ ]
17322
+ },
17323
+ {
17324
+ "name": "contents_thumbnail_asset_id_idx",
17325
+ "columns": [
17326
+ "thumbnail_asset_id"
17327
+ ]
17328
+ },
17329
+ {
17330
+ "name": "contents_composition_id_idx",
17331
+ "columns": [
17332
+ "composition_id"
17333
+ ]
17334
+ },
17335
+ {
17336
+ "name": "contents_sequence_id_idx",
17337
+ "columns": [
17338
+ "sequence_id"
17339
+ ]
17340
+ },
17341
+ {
17342
+ "name": "contents_scene_id_idx",
17343
+ "columns": [
17344
+ "scene_id"
17345
+ ]
17346
+ },
17347
+ {
17348
+ "name": "contents_feed_source_id_idx",
17349
+ "columns": [
17350
+ "feed_source_id"
17351
+ ]
17352
+ },
17353
+ {
17354
+ "name": "contents_voice_profile_id_idx",
17355
+ "columns": [
17356
+ "voice_profile_id"
17357
+ ]
17358
+ },
17359
+ {
17360
+ "name": "contents_audio_asset_id_idx",
17361
+ "columns": [
17362
+ "audio_asset_id"
17363
+ ]
16144
17364
  }
16145
17365
  ],
16146
- "version": "fca1d6e3"
17366
+ "version": "a23a4918"
16147
17367
  }
16148
17368
  },
16149
17369
  "@happyvertical/smrt-video:VideoShotCollection": {
@@ -16230,12 +17450,6 @@
16230
17450
  }
16231
17451
  },
16232
17452
  "indexes": [
16233
- {
16234
- "name": "contents_id_idx",
16235
- "columns": [
16236
- "id"
16237
- ]
16238
- },
16239
17453
  {
16240
17454
  "name": "contents_slug_context_idx",
16241
17455
  "columns": [
@@ -16243,6 +17457,12 @@
16243
17457
  "context"
16244
17458
  ],
16245
17459
  "unique": true
17460
+ },
17461
+ {
17462
+ "name": "contents_created_at_idx",
17463
+ "columns": [
17464
+ "created_at"
17465
+ ]
16246
17466
  }
16247
17467
  ],
16248
17468
  "version": "282633f1"
@@ -16844,7 +18064,13 @@
16844
18064
  "cli": true,
16845
18065
  "tenantScoped": {
16846
18066
  "mode": "optional"
16847
- }
18067
+ },
18068
+ "conflictColumns": [
18069
+ "tenant_id",
18070
+ "slug",
18071
+ "context",
18072
+ "_meta_type"
18073
+ ]
16848
18074
  },
16849
18075
  "extends": "SmrtObject",
16850
18076
  "exportName": "VideoWorkflow",
@@ -16930,15 +18156,10 @@
16930
18156
  }
16931
18157
  },
16932
18158
  "indexes": [
16933
- {
16934
- "name": "video_workflows_id_idx",
16935
- "columns": [
16936
- "id"
16937
- ]
16938
- },
16939
18159
  {
16940
18160
  "name": "video_workflows_slug_context_meta_type_idx",
16941
18161
  "columns": [
18162
+ "tenant_id",
16942
18163
  "slug",
16943
18164
  "context",
16944
18165
  "_meta_type"
@@ -16950,6 +18171,13 @@
16950
18171
  "columns": [
16951
18172
  "_meta_type"
16952
18173
  ]
18174
+ },
18175
+ {
18176
+ "name": "video_workflows_tenant_id_created_at_idx",
18177
+ "columns": [
18178
+ "tenant_id",
18179
+ "created_at"
18180
+ ]
16953
18181
  }
16954
18182
  ],
16955
18183
  "version": "46fc51f8"