@happyvertical/smrt-video 0.40.70 → 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.70",
5
+ "packageVersion": "0.41.0",
6
6
  "objects": {
7
7
  "@happyvertical/smrt-video:CharacterAsset": {
8
8
  "name": "characterasset",
@@ -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"
@@ -962,13 +982,74 @@
962
982
  ]
963
983
  },
964
984
  {
965
- "name": "assets_tenant_id_idx",
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",
966
1047
  "columns": [
967
- "tenant_id"
1048
+ "video_shot_id"
968
1049
  ]
969
1050
  }
970
1051
  ],
971
- "version": "bd73b723"
1052
+ "version": "d51e6489"
972
1053
  }
973
1054
  },
974
1055
  "@happyvertical/smrt-video:CharacterOwnedAssetCollection": {
@@ -1132,12 +1213,6 @@
1132
1213
  }
1133
1214
  },
1134
1215
  "indexes": [
1135
- {
1136
- "name": "character_assets_id_idx",
1137
- "columns": [
1138
- "id"
1139
- ]
1140
- },
1141
1216
  {
1142
1217
  "name": "character_assets_slug_context_idx",
1143
1218
  "columns": [
@@ -1145,6 +1220,12 @@
1145
1220
  "context"
1146
1221
  ],
1147
1222
  "unique": true
1223
+ },
1224
+ {
1225
+ "name": "character_assets_created_at_idx",
1226
+ "columns": [
1227
+ "created_at"
1228
+ ]
1148
1229
  }
1149
1230
  ],
1150
1231
  "version": "3c2836ae"
@@ -1305,12 +1386,6 @@
1305
1386
  }
1306
1387
  },
1307
1388
  "indexes": [
1308
- {
1309
- "name": "character_assets_id_idx",
1310
- "columns": [
1311
- "id"
1312
- ]
1313
- },
1314
1389
  {
1315
1390
  "name": "character_assets_character_id_asset_id_idx",
1316
1391
  "columns": [
@@ -1321,9 +1396,23 @@
1321
1396
  "unique": true
1322
1397
  },
1323
1398
  {
1324
- "name": "character_assets_tenant_id_idx",
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",
1325
1407
  "columns": [
1326
- "tenant_id"
1408
+ "tenant_id",
1409
+ "created_at"
1410
+ ]
1411
+ },
1412
+ {
1413
+ "name": "character_assets_asset_id_idx",
1414
+ "columns": [
1415
+ "asset_id"
1327
1416
  ]
1328
1417
  }
1329
1418
  ],
@@ -2001,7 +2090,13 @@
2001
2090
  "cli": true,
2002
2091
  "tenantScoped": {
2003
2092
  "mode": "optional"
2004
- }
2093
+ },
2094
+ "conflictColumns": [
2095
+ "tenant_id",
2096
+ "slug",
2097
+ "context",
2098
+ "_meta_type"
2099
+ ]
2005
2100
  },
2006
2101
  "extends": "SmrtObject",
2007
2102
  "exportName": "Character",
@@ -2103,15 +2198,10 @@
2103
2198
  }
2104
2199
  },
2105
2200
  "indexes": [
2106
- {
2107
- "name": "characters_id_idx",
2108
- "columns": [
2109
- "id"
2110
- ]
2111
- },
2112
2201
  {
2113
2202
  "name": "characters_slug_context_meta_type_idx",
2114
2203
  "columns": [
2204
+ "tenant_id",
2115
2205
  "slug",
2116
2206
  "context",
2117
2207
  "_meta_type"
@@ -2125,9 +2215,46 @@
2125
2215
  ]
2126
2216
  },
2127
2217
  {
2128
- "name": "characters_tenant_id_idx",
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",
2129
2256
  "columns": [
2130
- "tenant_id"
2257
+ "profile_id"
2131
2258
  ]
2132
2259
  }
2133
2260
  ],
@@ -2224,12 +2351,6 @@
2224
2351
  }
2225
2352
  },
2226
2353
  "indexes": [
2227
- {
2228
- "name": "character_collections_id_idx",
2229
- "columns": [
2230
- "id"
2231
- ]
2232
- },
2233
2354
  {
2234
2355
  "name": "character_collections_slug_context_idx",
2235
2356
  "columns": [
@@ -2237,6 +2358,12 @@
2237
2358
  "context"
2238
2359
  ],
2239
2360
  "unique": true
2361
+ },
2362
+ {
2363
+ "name": "character_collections_created_at_idx",
2364
+ "columns": [
2365
+ "created_at"
2366
+ ]
2240
2367
  }
2241
2368
  ],
2242
2369
  "version": "876075e3"
@@ -2834,7 +2961,13 @@
2834
2961
  "cli": true,
2835
2962
  "tenantScoped": {
2836
2963
  "mode": "optional"
2837
- }
2964
+ },
2965
+ "conflictColumns": [
2966
+ "tenant_id",
2967
+ "slug",
2968
+ "context",
2969
+ "_meta_type"
2970
+ ]
2838
2971
  },
2839
2972
  "extends": "SmrtObject",
2840
2973
  "exportName": "CompositeJob",
@@ -2930,15 +3063,10 @@
2930
3063
  }
2931
3064
  },
2932
3065
  "indexes": [
2933
- {
2934
- "name": "composite_jobs_id_idx",
2935
- "columns": [
2936
- "id"
2937
- ]
2938
- },
2939
3066
  {
2940
3067
  "name": "composite_jobs_slug_context_meta_type_idx",
2941
3068
  "columns": [
3069
+ "tenant_id",
2942
3070
  "slug",
2943
3071
  "context",
2944
3072
  "_meta_type"
@@ -2952,9 +3080,28 @@
2952
3080
  ]
2953
3081
  },
2954
3082
  {
2955
- "name": "composite_jobs_tenant_id_idx",
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",
2956
3103
  "columns": [
2957
- "tenant_id"
3104
+ "output_asset_id"
2958
3105
  ]
2959
3106
  }
2960
3107
  ],
@@ -3780,7 +3927,7 @@
3780
3927
  ],
3781
3928
  "schema": {
3782
3929
  "tableName": "assets",
3783
- "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);",
3784
3931
  "columns": {
3785
3932
  "id": {
3786
3933
  "type": "UUID",
@@ -3885,7 +4032,7 @@
3885
4032
  "type": "TEXT",
3886
4033
  "notNull": false
3887
4034
  },
3888
- "performer_id": {
4035
+ "character_id": {
3889
4036
  "type": "UUID",
3890
4037
  "referenceKind": "foreignKey",
3891
4038
  "notNull": false
@@ -3893,19 +4040,39 @@
3893
4040
  "role": {
3894
4041
  "type": "TEXT",
3895
4042
  "notNull": false,
3896
- "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
3897
4069
  }
3898
4070
  },
3899
4071
  "indexes": [
3900
- {
3901
- "name": "assets_id_idx",
3902
- "columns": [
3903
- "id"
3904
- ]
3905
- },
3906
4072
  {
3907
4073
  "name": "assets_slug_context_meta_type_idx",
3908
4074
  "columns": [
4075
+ "tenant_id",
3909
4076
  "slug",
3910
4077
  "context",
3911
4078
  "_meta_type"
@@ -3919,13 +4086,74 @@
3919
4086
  ]
3920
4087
  },
3921
4088
  {
3922
- "name": "assets_tenant_id_idx",
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",
3923
4151
  "columns": [
3924
- "tenant_id"
4152
+ "video_shot_id"
3925
4153
  ]
3926
4154
  }
3927
4155
  ],
3928
- "version": "704401ae"
4156
+ "version": "d51e6489"
3929
4157
  }
3930
4158
  },
3931
4159
  "@happyvertical/smrt-video:PerformerOwnedAssetCollection": {
@@ -4089,12 +4317,6 @@
4089
4317
  }
4090
4318
  },
4091
4319
  "indexes": [
4092
- {
4093
- "name": "performer_assets_id_idx",
4094
- "columns": [
4095
- "id"
4096
- ]
4097
- },
4098
4320
  {
4099
4321
  "name": "performer_assets_slug_context_idx",
4100
4322
  "columns": [
@@ -4102,6 +4324,12 @@
4102
4324
  "context"
4103
4325
  ],
4104
4326
  "unique": true
4327
+ },
4328
+ {
4329
+ "name": "performer_assets_created_at_idx",
4330
+ "columns": [
4331
+ "created_at"
4332
+ ]
4105
4333
  }
4106
4334
  ],
4107
4335
  "version": "591e6fb2"
@@ -4262,12 +4490,6 @@
4262
4490
  }
4263
4491
  },
4264
4492
  "indexes": [
4265
- {
4266
- "name": "performer_assets_id_idx",
4267
- "columns": [
4268
- "id"
4269
- ]
4270
- },
4271
4493
  {
4272
4494
  "name": "performer_assets_performer_id_asset_id_idx",
4273
4495
  "columns": [
@@ -4278,9 +4500,23 @@
4278
4500
  "unique": true
4279
4501
  },
4280
4502
  {
4281
- "name": "performer_assets_tenant_id_idx",
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",
4282
4518
  "columns": [
4283
- "tenant_id"
4519
+ "asset_id"
4284
4520
  ]
4285
4521
  }
4286
4522
  ],
@@ -4943,7 +5179,13 @@
4943
5179
  "cli": true,
4944
5180
  "tenantScoped": {
4945
5181
  "mode": "optional"
4946
- }
5182
+ },
5183
+ "conflictColumns": [
5184
+ "tenant_id",
5185
+ "slug",
5186
+ "context",
5187
+ "_meta_type"
5188
+ ]
4947
5189
  },
4948
5190
  "extends": "SmrtObject",
4949
5191
  "exportName": "Performer",
@@ -5030,15 +5272,10 @@
5030
5272
  }
5031
5273
  },
5032
5274
  "indexes": [
5033
- {
5034
- "name": "performers_id_idx",
5035
- "columns": [
5036
- "id"
5037
- ]
5038
- },
5039
5275
  {
5040
5276
  "name": "performers_slug_context_meta_type_idx",
5041
5277
  "columns": [
5278
+ "tenant_id",
5042
5279
  "slug",
5043
5280
  "context",
5044
5281
  "_meta_type"
@@ -5052,13 +5289,32 @@
5052
5289
  ]
5053
5290
  },
5054
5291
  {
5055
- "name": "performers_tenant_id_idx",
5292
+ "name": "performers_tenant_id_created_at_idx",
5056
5293
  "columns": [
5057
- "tenant_id"
5294
+ "tenant_id",
5295
+ "created_at"
5058
5296
  ]
5059
- }
5060
- ],
5061
- "version": "09b53659"
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
+ ]
5315
+ }
5316
+ ],
5317
+ "version": "09b53659"
5062
5318
  }
5063
5319
  },
5064
5320
  "@happyvertical/smrt-video:SceneAsset": {
@@ -5880,7 +6136,7 @@
5880
6136
  ],
5881
6137
  "schema": {
5882
6138
  "tableName": "assets",
5883
- "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);",
5884
6140
  "columns": {
5885
6141
  "id": {
5886
6142
  "type": "UUID",
@@ -5985,7 +6241,7 @@
5985
6241
  "type": "TEXT",
5986
6242
  "notNull": false
5987
6243
  },
5988
- "scene_id": {
6244
+ "character_id": {
5989
6245
  "type": "UUID",
5990
6246
  "referenceKind": "foreignKey",
5991
6247
  "notNull": false
@@ -5993,19 +6249,39 @@
5993
6249
  "role": {
5994
6250
  "type": "TEXT",
5995
6251
  "notNull": false,
5996
- "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
5997
6278
  }
5998
6279
  },
5999
6280
  "indexes": [
6000
- {
6001
- "name": "assets_id_idx",
6002
- "columns": [
6003
- "id"
6004
- ]
6005
- },
6006
6281
  {
6007
6282
  "name": "assets_slug_context_meta_type_idx",
6008
6283
  "columns": [
6284
+ "tenant_id",
6009
6285
  "slug",
6010
6286
  "context",
6011
6287
  "_meta_type"
@@ -6019,13 +6295,74 @@
6019
6295
  ]
6020
6296
  },
6021
6297
  {
6022
- "name": "assets_tenant_id_idx",
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",
6023
6324
  "columns": [
6024
- "tenant_id"
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"
6025
6362
  ]
6026
6363
  }
6027
6364
  ],
6028
- "version": "b4b376b9"
6365
+ "version": "d51e6489"
6029
6366
  }
6030
6367
  },
6031
6368
  "@happyvertical/smrt-video:SceneOwnedAssetCollection": {
@@ -6189,12 +6526,6 @@
6189
6526
  }
6190
6527
  },
6191
6528
  "indexes": [
6192
- {
6193
- "name": "scene_assets_id_idx",
6194
- "columns": [
6195
- "id"
6196
- ]
6197
- },
6198
6529
  {
6199
6530
  "name": "scene_assets_slug_context_idx",
6200
6531
  "columns": [
@@ -6202,6 +6533,12 @@
6202
6533
  "context"
6203
6534
  ],
6204
6535
  "unique": true
6536
+ },
6537
+ {
6538
+ "name": "scene_assets_created_at_idx",
6539
+ "columns": [
6540
+ "created_at"
6541
+ ]
6205
6542
  }
6206
6543
  ],
6207
6544
  "version": "f41476c0"
@@ -6362,12 +6699,6 @@
6362
6699
  }
6363
6700
  },
6364
6701
  "indexes": [
6365
- {
6366
- "name": "scene_assets_id_idx",
6367
- "columns": [
6368
- "id"
6369
- ]
6370
- },
6371
6702
  {
6372
6703
  "name": "scene_assets_scene_id_asset_id_idx",
6373
6704
  "columns": [
@@ -6378,9 +6709,23 @@
6378
6709
  "unique": true
6379
6710
  },
6380
6711
  {
6381
- "name": "scene_assets_tenant_id_idx",
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",
6382
6727
  "columns": [
6383
- "tenant_id"
6728
+ "asset_id"
6384
6729
  ]
6385
6730
  }
6386
6731
  ],
@@ -7052,7 +7397,13 @@
7052
7397
  "cli": true,
7053
7398
  "tenantScoped": {
7054
7399
  "mode": "optional"
7055
- }
7400
+ },
7401
+ "conflictColumns": [
7402
+ "tenant_id",
7403
+ "slug",
7404
+ "context",
7405
+ "_meta_type"
7406
+ ]
7056
7407
  },
7057
7408
  "extends": "SmrtObject",
7058
7409
  "exportName": "Scene",
@@ -7148,15 +7499,10 @@
7148
7499
  }
7149
7500
  },
7150
7501
  "indexes": [
7151
- {
7152
- "name": "scenes_id_idx",
7153
- "columns": [
7154
- "id"
7155
- ]
7156
- },
7157
7502
  {
7158
7503
  "name": "scenes_slug_context_meta_type_idx",
7159
7504
  "columns": [
7505
+ "tenant_id",
7160
7506
  "slug",
7161
7507
  "context",
7162
7508
  "_meta_type"
@@ -7170,9 +7516,16 @@
7170
7516
  ]
7171
7517
  },
7172
7518
  {
7173
- "name": "scenes_tenant_id_idx",
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",
7174
7527
  "columns": [
7175
- "tenant_id"
7528
+ "source_asset_id"
7176
7529
  ]
7177
7530
  }
7178
7531
  ],
@@ -7998,7 +8351,7 @@
7998
8351
  ],
7999
8352
  "schema": {
8000
8353
  "tableName": "assets",
8001
- "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);",
8002
8355
  "columns": {
8003
8356
  "id": {
8004
8357
  "type": "UUID",
@@ -8103,7 +8456,7 @@
8103
8456
  "type": "TEXT",
8104
8457
  "notNull": false
8105
8458
  },
8106
- "video_composition_id": {
8459
+ "character_id": {
8107
8460
  "type": "UUID",
8108
8461
  "referenceKind": "foreignKey",
8109
8462
  "notNull": false
@@ -8111,19 +8464,39 @@
8111
8464
  "role": {
8112
8465
  "type": "TEXT",
8113
8466
  "notNull": false,
8114
- "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
8115
8493
  }
8116
8494
  },
8117
8495
  "indexes": [
8118
- {
8119
- "name": "assets_id_idx",
8120
- "columns": [
8121
- "id"
8122
- ]
8123
- },
8124
8496
  {
8125
8497
  "name": "assets_slug_context_meta_type_idx",
8126
8498
  "columns": [
8499
+ "tenant_id",
8127
8500
  "slug",
8128
8501
  "context",
8129
8502
  "_meta_type"
@@ -8137,13 +8510,74 @@
8137
8510
  ]
8138
8511
  },
8139
8512
  {
8140
- "name": "assets_tenant_id_idx",
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",
8141
8575
  "columns": [
8142
- "tenant_id"
8576
+ "video_shot_id"
8143
8577
  ]
8144
8578
  }
8145
8579
  ],
8146
- "version": "fb41bd45"
8580
+ "version": "d51e6489"
8147
8581
  }
8148
8582
  },
8149
8583
  "@happyvertical/smrt-video:VideoComposition": {
@@ -9670,7 +10104,7 @@
9670
10104
  ],
9671
10105
  "schema": {
9672
10106
  "tableName": "contents",
9673
- "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);",
9674
10108
  "columns": {
9675
10109
  "id": {
9676
10110
  "type": "UUID",
@@ -9825,68 +10259,248 @@
9825
10259
  "type": "INTEGER",
9826
10260
  "notNull": false,
9827
10261
  "default": 0
9828
- }
9829
- },
9830
- "indexes": [
9831
- {
9832
- "name": "contents_id_idx",
9833
- "columns": [
9834
- "id"
9835
- ]
9836
10262
  },
9837
- {
9838
- "name": "contents_slug_context_meta_type_idx",
9839
- "columns": [
9840
- "slug",
9841
- "context",
9842
- "_meta_type"
9843
- ],
9844
- "unique": true
10263
+ "composition_id": {
10264
+ "type": "UUID",
10265
+ "referenceKind": "foreignKey",
10266
+ "notNull": false
9845
10267
  },
9846
- {
9847
- "name": "contents_meta_type_idx",
9848
- "columns": [
9849
- "_meta_type"
9850
- ]
10268
+ "position": {
10269
+ "type": "INTEGER",
10270
+ "notNull": false,
10271
+ "default": 0
9851
10272
  },
9852
- {
9853
- "name": "contents_tenant_id_idx",
9854
- "columns": [
9855
- "tenant_id"
9856
- ]
9857
- }
9858
- ],
9859
- "version": "f9833f21"
9860
- }
9861
- },
9862
- "@happyvertical/smrt-video:VideoCompositionCollection": {
9863
- "name": "videocompositioncollection",
9864
- "className": "VideoCompositionCollection",
9865
- "qualifiedName": "@happyvertical/smrt-video:VideoCompositionCollection",
9866
- "collection": "contents",
9867
- "filePath": "/home/runner/_work/smrt/smrt/packages/video/src/video-compositions.ts",
9868
- "packageName": "@happyvertical/smrt-video",
9869
- "fields": {},
9870
- "methods": {
9871
- "findByRenderStatus": {
9872
- "name": "findByRenderStatus",
9873
- "async": true,
9874
- "parameters": [
9875
- {
9876
- "name": "renderStatus",
9877
- "type": "RenderStatus",
9878
- "optional": false
9879
- }
9880
- ],
9881
- "returnType": "Promise<VideoComposition[]>",
9882
- "isStatic": false,
9883
- "isPublic": true
9884
- },
9885
- "findReady": {
9886
- "name": "findReady",
9887
- "async": true,
9888
- "parameters": [],
9889
- "returnType": "Promise<VideoComposition[]>",
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": [
10413
+ "_meta_type"
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
+ ]
10471
+ }
10472
+ ],
10473
+ "version": "a23a4918"
10474
+ }
10475
+ },
10476
+ "@happyvertical/smrt-video:VideoCompositionCollection": {
10477
+ "name": "videocompositioncollection",
10478
+ "className": "VideoCompositionCollection",
10479
+ "qualifiedName": "@happyvertical/smrt-video:VideoCompositionCollection",
10480
+ "collection": "contents",
10481
+ "filePath": "/home/runner/_work/smrt/smrt/packages/video/src/video-compositions.ts",
10482
+ "packageName": "@happyvertical/smrt-video",
10483
+ "fields": {},
10484
+ "methods": {
10485
+ "findByRenderStatus": {
10486
+ "name": "findByRenderStatus",
10487
+ "async": true,
10488
+ "parameters": [
10489
+ {
10490
+ "name": "renderStatus",
10491
+ "type": "RenderStatus",
10492
+ "optional": false
10493
+ }
10494
+ ],
10495
+ "returnType": "Promise<VideoComposition[]>",
10496
+ "isStatic": false,
10497
+ "isPublic": true
10498
+ },
10499
+ "findReady": {
10500
+ "name": "findReady",
10501
+ "async": true,
10502
+ "parameters": [],
10503
+ "returnType": "Promise<VideoComposition[]>",
9890
10504
  "isStatic": false,
9891
10505
  "isPublic": true
9892
10506
  }
@@ -9929,12 +10543,6 @@
9929
10543
  }
9930
10544
  },
9931
10545
  "indexes": [
9932
- {
9933
- "name": "contents_id_idx",
9934
- "columns": [
9935
- "id"
9936
- ]
9937
- },
9938
10546
  {
9939
10547
  "name": "contents_slug_context_idx",
9940
10548
  "columns": [
@@ -9942,6 +10550,12 @@
9942
10550
  "context"
9943
10551
  ],
9944
10552
  "unique": true
10553
+ },
10554
+ {
10555
+ "name": "contents_created_at_idx",
10556
+ "columns": [
10557
+ "created_at"
10558
+ ]
9945
10559
  }
9946
10560
  ],
9947
10561
  "version": "5cc43cec"
@@ -10766,7 +11380,7 @@
10766
11380
  ],
10767
11381
  "schema": {
10768
11382
  "tableName": "assets",
10769
- "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);",
10770
11384
  "columns": {
10771
11385
  "id": {
10772
11386
  "type": "UUID",
@@ -10871,7 +11485,7 @@
10871
11485
  "type": "TEXT",
10872
11486
  "notNull": false
10873
11487
  },
10874
- "video_sequence_id": {
11488
+ "character_id": {
10875
11489
  "type": "UUID",
10876
11490
  "referenceKind": "foreignKey",
10877
11491
  "notNull": false
@@ -10879,19 +11493,39 @@
10879
11493
  "role": {
10880
11494
  "type": "TEXT",
10881
11495
  "notNull": false,
10882
- "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
10883
11522
  }
10884
11523
  },
10885
11524
  "indexes": [
10886
- {
10887
- "name": "assets_id_idx",
10888
- "columns": [
10889
- "id"
10890
- ]
10891
- },
10892
11525
  {
10893
11526
  "name": "assets_slug_context_meta_type_idx",
10894
11527
  "columns": [
11528
+ "tenant_id",
10895
11529
  "slug",
10896
11530
  "context",
10897
11531
  "_meta_type"
@@ -10905,13 +11539,74 @@
10905
11539
  ]
10906
11540
  },
10907
11541
  {
10908
- "name": "assets_tenant_id_idx",
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",
10909
11568
  "columns": [
10910
- "tenant_id"
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"
10911
11606
  ]
10912
11607
  }
10913
11608
  ],
10914
- "version": "70fcce02"
11609
+ "version": "d51e6489"
10915
11610
  }
10916
11611
  },
10917
11612
  "@happyvertical/smrt-video:VideoSequence": {
@@ -12433,7 +13128,7 @@
12433
13128
  ],
12434
13129
  "schema": {
12435
13130
  "tableName": "contents",
12436
- "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);",
12437
13132
  "columns": {
12438
13133
  "id": {
12439
13134
  "type": "UUID",
@@ -12559,6 +13254,36 @@
12559
13254
  "referenceKind": "crossPackageRef",
12560
13255
  "notNull": false
12561
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
+ },
12562
13287
  "composition_id": {
12563
13288
  "type": "UUID",
12564
13289
  "referenceKind": "foreignKey",
@@ -12569,32 +13294,137 @@
12569
13294
  "notNull": false,
12570
13295
  "default": 0
12571
13296
  },
12572
- "duration_in_frames": {
13297
+ "transition_type": {
13298
+ "type": "TEXT",
13299
+ "notNull": false,
13300
+ "default": "none"
13301
+ },
13302
+ "transition_duration_frames": {
12573
13303
  "type": "INTEGER",
12574
13304
  "notNull": false,
12575
13305
  "default": 0
12576
13306
  },
12577
- "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": {
12578
13328
  "type": "TEXT",
12579
13329
  "notNull": false,
12580
- "default": "none"
13330
+ "default": ""
12581
13331
  },
12582
- "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": {
13348
+ "type": "INTEGER",
13349
+ "notNull": false,
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": {
12583
13409
  "type": "INTEGER",
12584
13410
  "notNull": false,
12585
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
12586
13421
  }
12587
13422
  },
12588
13423
  "indexes": [
12589
- {
12590
- "name": "contents_id_idx",
12591
- "columns": [
12592
- "id"
12593
- ]
12594
- },
12595
13424
  {
12596
13425
  "name": "contents_slug_context_meta_type_idx",
12597
13426
  "columns": [
13427
+ "tenant_id",
12598
13428
  "slug",
12599
13429
  "context",
12600
13430
  "_meta_type"
@@ -12602,19 +13432,69 @@
12602
13432
  "unique": true
12603
13433
  },
12604
13434
  {
12605
- "name": "contents_meta_type_idx",
13435
+ "name": "contents_meta_type_idx",
13436
+ "columns": [
13437
+ "_meta_type"
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",
12606
13486
  "columns": [
12607
- "_meta_type"
13487
+ "voice_profile_id"
12608
13488
  ]
12609
13489
  },
12610
13490
  {
12611
- "name": "contents_tenant_id_idx",
13491
+ "name": "contents_audio_asset_id_idx",
12612
13492
  "columns": [
12613
- "tenant_id"
13493
+ "audio_asset_id"
12614
13494
  ]
12615
13495
  }
12616
13496
  ],
12617
- "version": "cfe02d11"
13497
+ "version": "a23a4918"
12618
13498
  }
12619
13499
  },
12620
13500
  "@happyvertical/smrt-video:VideoSequenceCollection": {
@@ -12687,12 +13567,6 @@
12687
13567
  }
12688
13568
  },
12689
13569
  "indexes": [
12690
- {
12691
- "name": "contents_id_idx",
12692
- "columns": [
12693
- "id"
12694
- ]
12695
- },
12696
13570
  {
12697
13571
  "name": "contents_slug_context_idx",
12698
13572
  "columns": [
@@ -12700,6 +13574,12 @@
12700
13574
  "context"
12701
13575
  ],
12702
13576
  "unique": true
13577
+ },
13578
+ {
13579
+ "name": "contents_created_at_idx",
13580
+ "columns": [
13581
+ "created_at"
13582
+ ]
12703
13583
  }
12704
13584
  ],
12705
13585
  "version": "dbf0e6ae"
@@ -13524,7 +14404,7 @@
13524
14404
  ],
13525
14405
  "schema": {
13526
14406
  "tableName": "assets",
13527
- "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);",
13528
14408
  "columns": {
13529
14409
  "id": {
13530
14410
  "type": "UUID",
@@ -13629,7 +14509,7 @@
13629
14509
  "type": "TEXT",
13630
14510
  "notNull": false
13631
14511
  },
13632
- "video_shot_id": {
14512
+ "character_id": {
13633
14513
  "type": "UUID",
13634
14514
  "referenceKind": "foreignKey",
13635
14515
  "notNull": false
@@ -13637,19 +14517,39 @@
13637
14517
  "role": {
13638
14518
  "type": "TEXT",
13639
14519
  "notNull": false,
13640
- "default": "video"
14520
+ "default": "seed-image"
14521
+ },
14522
+ "performer_id": {
14523
+ "type": "UUID",
14524
+ "referenceKind": "foreignKey",
14525
+ "notNull": false
14526
+ },
14527
+ "scene_id": {
14528
+ "type": "UUID",
14529
+ "referenceKind": "foreignKey",
14530
+ "notNull": false
14531
+ },
14532
+ "video_composition_id": {
14533
+ "type": "UUID",
14534
+ "referenceKind": "foreignKey",
14535
+ "notNull": false
14536
+ },
14537
+ "video_sequence_id": {
14538
+ "type": "UUID",
14539
+ "referenceKind": "foreignKey",
14540
+ "notNull": false
14541
+ },
14542
+ "video_shot_id": {
14543
+ "type": "UUID",
14544
+ "referenceKind": "foreignKey",
14545
+ "notNull": false
13641
14546
  }
13642
14547
  },
13643
14548
  "indexes": [
13644
- {
13645
- "name": "assets_id_idx",
13646
- "columns": [
13647
- "id"
13648
- ]
13649
- },
13650
14549
  {
13651
14550
  "name": "assets_slug_context_meta_type_idx",
13652
14551
  "columns": [
14552
+ "tenant_id",
13653
14553
  "slug",
13654
14554
  "context",
13655
14555
  "_meta_type"
@@ -13663,13 +14563,74 @@
13663
14563
  ]
13664
14564
  },
13665
14565
  {
13666
- "name": "assets_tenant_id_idx",
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",
13667
14598
  "columns": [
13668
- "tenant_id"
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"
13669
14630
  ]
13670
14631
  }
13671
14632
  ],
13672
- "version": "a41a8d65"
14633
+ "version": "d51e6489"
13673
14634
  }
13674
14635
  },
13675
14636
  "@happyvertical/smrt-video:VideoShotCharacter": {
@@ -14243,7 +15204,13 @@
14243
15204
  "cli": true,
14244
15205
  "tenantScoped": {
14245
15206
  "mode": "optional"
14246
- }
15207
+ },
15208
+ "conflictColumns": [
15209
+ "tenant_id",
15210
+ "slug",
15211
+ "context",
15212
+ "_meta_type"
15213
+ ]
14247
15214
  },
14248
15215
  "extends": "SmrtObject",
14249
15216
  "exportName": "VideoShotCharacter",
@@ -14324,15 +15291,10 @@
14324
15291
  }
14325
15292
  },
14326
15293
  "indexes": [
14327
- {
14328
- "name": "video_shot_characters_id_idx",
14329
- "columns": [
14330
- "id"
14331
- ]
14332
- },
14333
15294
  {
14334
15295
  "name": "video_shot_characters_slug_context_meta_type_idx",
14335
15296
  "columns": [
15297
+ "tenant_id",
14336
15298
  "slug",
14337
15299
  "context",
14338
15300
  "_meta_type"
@@ -14346,9 +15308,22 @@
14346
15308
  ]
14347
15309
  },
14348
15310
  {
14349
- "name": "video_shot_characters_tenant_id_idx",
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",
14350
15325
  "columns": [
14351
- "tenant_id"
15326
+ "character_id"
14352
15327
  ]
14353
15328
  }
14354
15329
  ],
@@ -14429,12 +15404,6 @@
14429
15404
  }
14430
15405
  },
14431
15406
  "indexes": [
14432
- {
14433
- "name": "video_shot_character_collections_id_idx",
14434
- "columns": [
14435
- "id"
14436
- ]
14437
- },
14438
15407
  {
14439
15408
  "name": "video_shot_character_collections_slug_context_idx",
14440
15409
  "columns": [
@@ -14442,6 +15411,12 @@
14442
15411
  "context"
14443
15412
  ],
14444
15413
  "unique": true
15414
+ },
15415
+ {
15416
+ "name": "video_shot_character_collections_created_at_idx",
15417
+ "columns": [
15418
+ "created_at"
15419
+ ]
14445
15420
  }
14446
15421
  ],
14447
15422
  "version": "13ff658b"
@@ -16022,7 +16997,7 @@
16022
16997
  ],
16023
16998
  "schema": {
16024
16999
  "tableName": "contents",
16025
- "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);",
16026
17001
  "columns": {
16027
17002
  "id": {
16028
17003
  "type": "UUID",
@@ -16148,12 +17123,37 @@
16148
17123
  "referenceKind": "crossPackageRef",
16149
17124
  "notNull": false
16150
17125
  },
16151
- "sequence_id": {
16152
- "type": "UUID",
16153
- "referenceKind": "foreignKey",
16154
- "notNull": false
17126
+ "fps": {
17127
+ "type": "INTEGER",
17128
+ "notNull": false,
17129
+ "default": 30
16155
17130
  },
16156
- "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": {
16157
17157
  "type": "UUID",
16158
17158
  "referenceKind": "foreignKey",
16159
17159
  "notNull": false
@@ -16163,11 +17163,26 @@
16163
17163
  "notNull": false,
16164
17164
  "default": 0
16165
17165
  },
16166
- "duration_in_frames": {
17166
+ "transition_type": {
17167
+ "type": "TEXT",
17168
+ "notNull": false,
17169
+ "default": "none"
17170
+ },
17171
+ "transition_duration_frames": {
16167
17172
  "type": "INTEGER",
16168
17173
  "notNull": false,
16169
17174
  "default": 0
16170
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
+ },
16171
17186
  "trim_before_frames": {
16172
17187
  "type": "INTEGER",
16173
17188
  "notNull": false,
@@ -16214,18 +17229,71 @@
16214
17229
  "video_metadata": {
16215
17230
  "type": "JSON",
16216
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
16217
17290
  }
16218
17291
  },
16219
17292
  "indexes": [
16220
- {
16221
- "name": "contents_id_idx",
16222
- "columns": [
16223
- "id"
16224
- ]
16225
- },
16226
17293
  {
16227
17294
  "name": "contents_slug_context_meta_type_idx",
16228
17295
  "columns": [
17296
+ "tenant_id",
16229
17297
  "slug",
16230
17298
  "context",
16231
17299
  "_meta_type"
@@ -16239,13 +17307,63 @@
16239
17307
  ]
16240
17308
  },
16241
17309
  {
16242
- "name": "contents_tenant_id_idx",
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",
16243
17361
  "columns": [
16244
- "tenant_id"
17362
+ "audio_asset_id"
16245
17363
  ]
16246
17364
  }
16247
17365
  ],
16248
- "version": "fca1d6e3"
17366
+ "version": "a23a4918"
16249
17367
  }
16250
17368
  },
16251
17369
  "@happyvertical/smrt-video:VideoShotCollection": {
@@ -16332,12 +17450,6 @@
16332
17450
  }
16333
17451
  },
16334
17452
  "indexes": [
16335
- {
16336
- "name": "contents_id_idx",
16337
- "columns": [
16338
- "id"
16339
- ]
16340
- },
16341
17453
  {
16342
17454
  "name": "contents_slug_context_idx",
16343
17455
  "columns": [
@@ -16345,6 +17457,12 @@
16345
17457
  "context"
16346
17458
  ],
16347
17459
  "unique": true
17460
+ },
17461
+ {
17462
+ "name": "contents_created_at_idx",
17463
+ "columns": [
17464
+ "created_at"
17465
+ ]
16348
17466
  }
16349
17467
  ],
16350
17468
  "version": "282633f1"
@@ -16946,7 +18064,13 @@
16946
18064
  "cli": true,
16947
18065
  "tenantScoped": {
16948
18066
  "mode": "optional"
16949
- }
18067
+ },
18068
+ "conflictColumns": [
18069
+ "tenant_id",
18070
+ "slug",
18071
+ "context",
18072
+ "_meta_type"
18073
+ ]
16950
18074
  },
16951
18075
  "extends": "SmrtObject",
16952
18076
  "exportName": "VideoWorkflow",
@@ -17032,15 +18156,10 @@
17032
18156
  }
17033
18157
  },
17034
18158
  "indexes": [
17035
- {
17036
- "name": "video_workflows_id_idx",
17037
- "columns": [
17038
- "id"
17039
- ]
17040
- },
17041
18159
  {
17042
18160
  "name": "video_workflows_slug_context_meta_type_idx",
17043
18161
  "columns": [
18162
+ "tenant_id",
17044
18163
  "slug",
17045
18164
  "context",
17046
18165
  "_meta_type"
@@ -17054,9 +18173,10 @@
17054
18173
  ]
17055
18174
  },
17056
18175
  {
17057
- "name": "video_workflows_tenant_id_idx",
18176
+ "name": "video_workflows_tenant_id_created_at_idx",
17058
18177
  "columns": [
17059
- "tenant_id"
18178
+ "tenant_id",
18179
+ "created_at"
17060
18180
  ]
17061
18181
  }
17062
18182
  ],