@happyvertical/smrt-reports 0.49.2 → 0.49.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@
2
2
  "version": "1.0.0",
3
3
  "timestamp": 0,
4
4
  "packageName": "@happyvertical/smrt-reports",
5
- "packageVersion": "0.49.2",
5
+ "packageVersion": "0.49.4",
6
6
  "objects": {
7
7
  "@happyvertical/smrt-reports:SmrtReport": {
8
8
  "name": "smrtreport",
@@ -179,6 +179,11 @@
179
179
  "name": "args",
180
180
  "type": "ReportRefreshJobArgs",
181
181
  "optional": true
182
+ },
183
+ {
184
+ "name": "context",
185
+ "type": "JobExecutionContext",
186
+ "optional": true
182
187
  }
183
188
  ],
184
189
  "returnType": "Promise<unknown>",
@@ -291,7 +296,8 @@
291
296
  "slug",
292
297
  "context"
293
298
  ],
294
- "unique": true
299
+ "unique": true,
300
+ "nullsNotDistinct": true
295
301
  },
296
302
  {
297
303
  "name": "_smrt_report_refresh_tasks_tenant_id_created_at_idx",
@@ -304,6 +310,135 @@
304
310
  "version": "c9142042"
305
311
  }
306
312
  },
313
+ "@happyvertical/smrt-reports:SmrtPrincipalReportRefreshTask": {
314
+ "name": "smrtprincipalreportrefreshtask",
315
+ "className": "SmrtPrincipalReportRefreshTask",
316
+ "qualifiedName": "@happyvertical/smrt-reports:SmrtPrincipalReportRefreshTask",
317
+ "collection": "smrtprincipalreportrefreshtasks",
318
+ "filePath": "/home/runner/work/smrt/smrt/packages/reports/src/scheduler.ts",
319
+ "packageName": "@happyvertical/smrt-reports",
320
+ "fields": {
321
+ "tenantId": {
322
+ "type": "text",
323
+ "required": false,
324
+ "_meta": {
325
+ "generated": true,
326
+ "source": "tenantScoped_decorator",
327
+ "sqlType": "UUID",
328
+ "__tenancy": {
329
+ "isTenantIdField": true,
330
+ "mode": "optional",
331
+ "field": "tenantId",
332
+ "autoFilter": true,
333
+ "autoPopulate": true,
334
+ "allowSuperAdminBypass": false
335
+ }
336
+ }
337
+ }
338
+ },
339
+ "methods": {
340
+ "run": {
341
+ "name": "run",
342
+ "async": true,
343
+ "parameters": [
344
+ {
345
+ "name": "args",
346
+ "type": "ReportRefreshJobArgs",
347
+ "optional": true
348
+ },
349
+ {
350
+ "name": "context",
351
+ "type": "JobExecutionContext",
352
+ "optional": true
353
+ }
354
+ ],
355
+ "returnType": "Promise<unknown>",
356
+ "isStatic": false,
357
+ "isPublic": true
358
+ }
359
+ },
360
+ "decoratorConfig": {
361
+ "tableName": "_smrt_principal_report_refresh_tasks",
362
+ "api": false,
363
+ "cli": {
364
+ "include": [
365
+ "list",
366
+ "get"
367
+ ],
368
+ "skipApiCheck": true,
369
+ "http": false
370
+ },
371
+ "mcp": false,
372
+ "tenantScoped": {
373
+ "mode": "optional"
374
+ },
375
+ "conflictColumns": [
376
+ "tenant_id",
377
+ "slug",
378
+ "context"
379
+ ]
380
+ },
381
+ "extends": "SmrtReportRefreshTask",
382
+ "exportName": "SmrtPrincipalReportRefreshTask",
383
+ "collectionExportName": "SmrtPrincipalReportRefreshTaskCollection",
384
+ "schema": {
385
+ "tableName": "_smrt_principal_report_refresh_tasks",
386
+ "ddl": "CREATE TABLE IF NOT EXISTS \"_smrt_principal_report_refresh_tasks\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID\n);",
387
+ "columns": {
388
+ "id": {
389
+ "type": "UUID",
390
+ "primaryKey": true,
391
+ "referenceKind": "id",
392
+ "notNull": true
393
+ },
394
+ "slug": {
395
+ "type": "TEXT",
396
+ "notNull": true
397
+ },
398
+ "context": {
399
+ "type": "TEXT",
400
+ "notNull": true,
401
+ "default": ""
402
+ },
403
+ "created_at": {
404
+ "type": "TIMESTAMP",
405
+ "notNull": true,
406
+ "default": "current_timestamp"
407
+ },
408
+ "updated_at": {
409
+ "type": "TIMESTAMP",
410
+ "notNull": true,
411
+ "default": "current_timestamp"
412
+ },
413
+ "tenant_id": {
414
+ "type": "UUID",
415
+ "referenceKind": "tenantId",
416
+ "notNull": false,
417
+ "unique": false
418
+ }
419
+ },
420
+ "indexes": [
421
+ {
422
+ "name": "_smrt_principal_report_refresh_tasks_slug_context_idx",
423
+ "columns": [
424
+ "tenant_id",
425
+ "slug",
426
+ "context"
427
+ ],
428
+ "unique": true,
429
+ "nullsNotDistinct": true
430
+ },
431
+ {
432
+ "name": "_smrt_principal_report_refresh_tasks_tenant_id_created_at_idx",
433
+ "columns": [
434
+ "tenant_id",
435
+ "created_at"
436
+ ]
437
+ }
438
+ ],
439
+ "version": "226a3b97"
440
+ }
441
+ },
307
442
  "@happyvertical/smrt-reports:SmrtReportRun": {
308
443
  "name": "smrtreportrun",
309
444
  "className": "SmrtReportRun",
@@ -613,7 +748,8 @@
613
748
  "slug",
614
749
  "context"
615
750
  ],
616
- "unique": true
751
+ "unique": true,
752
+ "nullsNotDistinct": true
617
753
  },
618
754
  {
619
755
  "name": "_smrt_report_runs_tenant_id_created_at_idx",
@@ -646,7 +782,7 @@
646
782
  "collectionExportName": "SmrtReportRunCollectionCollection",
647
783
  "schema": {
648
784
  "tableName": "_smrt_report_runs",
649
- "ddl": "CREATE TABLE IF NOT EXISTS \"_smrt_report_runs\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp\n);",
785
+ "ddl": "CREATE TABLE IF NOT EXISTS \"_smrt_report_runs\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"scope_key\" TEXT NOT NULL,\n \"report_class\" TEXT NOT NULL,\n \"source_class\" TEXT NOT NULL,\n \"mode\" TEXT NOT NULL,\n \"trigger\" TEXT NOT NULL,\n \"status\" TEXT NOT NULL,\n \"started_at\" TIMESTAMP NOT NULL,\n \"completed_at\" TIMESTAMP,\n \"row_count\" INTEGER NOT NULL,\n \"changed_group_count\" INTEGER NOT NULL,\n \"watermark_before\" TEXT,\n \"watermark_after\" TEXT,\n \"error\" TEXT,\n \"metadata\" JSON\n);",
650
786
  "columns": {
651
787
  "id": {
652
788
  "type": "UUID",
@@ -672,25 +808,104 @@
672
808
  "type": "TIMESTAMP",
673
809
  "notNull": true,
674
810
  "default": "current_timestamp"
811
+ },
812
+ "tenant_id": {
813
+ "type": "UUID",
814
+ "referenceKind": "tenantId",
815
+ "notNull": false,
816
+ "unique": false
817
+ },
818
+ "scope_key": {
819
+ "type": "TEXT",
820
+ "notNull": true,
821
+ "unique": false
822
+ },
823
+ "report_class": {
824
+ "type": "TEXT",
825
+ "notNull": true,
826
+ "unique": false
827
+ },
828
+ "source_class": {
829
+ "type": "TEXT",
830
+ "notNull": true,
831
+ "unique": false
832
+ },
833
+ "mode": {
834
+ "type": "TEXT",
835
+ "notNull": true,
836
+ "unique": false
837
+ },
838
+ "trigger": {
839
+ "type": "TEXT",
840
+ "notNull": true,
841
+ "unique": false
842
+ },
843
+ "status": {
844
+ "type": "TEXT",
845
+ "notNull": true,
846
+ "unique": false
847
+ },
848
+ "started_at": {
849
+ "type": "TIMESTAMP",
850
+ "notNull": true,
851
+ "unique": false
852
+ },
853
+ "completed_at": {
854
+ "type": "TIMESTAMP",
855
+ "notNull": false,
856
+ "unique": false
857
+ },
858
+ "row_count": {
859
+ "type": "INTEGER",
860
+ "notNull": true,
861
+ "unique": false
862
+ },
863
+ "changed_group_count": {
864
+ "type": "INTEGER",
865
+ "notNull": true,
866
+ "unique": false
867
+ },
868
+ "watermark_before": {
869
+ "type": "TEXT",
870
+ "notNull": false,
871
+ "unique": false
872
+ },
873
+ "watermark_after": {
874
+ "type": "TEXT",
875
+ "notNull": false,
876
+ "unique": false
877
+ },
878
+ "error": {
879
+ "type": "TEXT",
880
+ "notNull": false,
881
+ "unique": false
882
+ },
883
+ "metadata": {
884
+ "type": "JSON",
885
+ "notNull": false,
886
+ "unique": false
675
887
  }
676
888
  },
677
889
  "indexes": [
678
890
  {
679
891
  "name": "_smrt_report_runs_slug_context_idx",
680
892
  "columns": [
893
+ "tenant_id",
681
894
  "slug",
682
895
  "context"
683
896
  ],
684
- "unique": true
897
+ "unique": true,
898
+ "nullsNotDistinct": true
685
899
  },
686
900
  {
687
- "name": "_smrt_report_runs_created_at_idx",
901
+ "name": "_smrt_report_runs_tenant_id_created_at_idx",
688
902
  "columns": [
903
+ "tenant_id",
689
904
  "created_at"
690
905
  ]
691
906
  }
692
907
  ],
693
- "version": "f7804285"
908
+ "version": "54ff5048"
694
909
  }
695
910
  },
696
911
  "@happyvertical/smrt-reports:SmrtReportWatermark": {
@@ -925,7 +1140,7 @@
925
1140
  "collectionExportName": "SmrtReportWatermarkCollectionCollection",
926
1141
  "schema": {
927
1142
  "tableName": "_smrt_report_watermarks",
928
- "ddl": "CREATE TABLE IF NOT EXISTS \"_smrt_report_watermarks\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp\n);",
1143
+ "ddl": "CREATE TABLE IF NOT EXISTS \"_smrt_report_watermarks\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"scope_key\" TEXT NOT NULL,\n \"report_class\" TEXT NOT NULL,\n \"source_class\" TEXT NOT NULL,\n \"watermark_column\" TEXT NOT NULL,\n \"watermark_value\" TEXT,\n \"last_run_id\" TEXT\n);",
929
1144
  "columns": {
930
1145
  "id": {
931
1146
  "type": "UUID",
@@ -951,25 +1166,71 @@
951
1166
  "type": "TIMESTAMP",
952
1167
  "notNull": true,
953
1168
  "default": "current_timestamp"
1169
+ },
1170
+ "tenant_id": {
1171
+ "type": "UUID",
1172
+ "referenceKind": "tenantId",
1173
+ "notNull": false,
1174
+ "unique": false
1175
+ },
1176
+ "scope_key": {
1177
+ "type": "TEXT",
1178
+ "notNull": true,
1179
+ "unique": false
1180
+ },
1181
+ "report_class": {
1182
+ "type": "TEXT",
1183
+ "notNull": true,
1184
+ "unique": false
1185
+ },
1186
+ "source_class": {
1187
+ "type": "TEXT",
1188
+ "notNull": true,
1189
+ "unique": false
1190
+ },
1191
+ "watermark_column": {
1192
+ "type": "TEXT",
1193
+ "notNull": true,
1194
+ "unique": false
1195
+ },
1196
+ "watermark_value": {
1197
+ "type": "TEXT",
1198
+ "notNull": false,
1199
+ "unique": false
1200
+ },
1201
+ "last_run_id": {
1202
+ "type": "TEXT",
1203
+ "notNull": false,
1204
+ "unique": false
954
1205
  }
955
1206
  },
956
1207
  "indexes": [
1208
+ {
1209
+ "name": "_smrt_report_watermarks_report_class_scope_key_idx",
1210
+ "columns": [
1211
+ "report_class",
1212
+ "scope_key",
1213
+ "source_class",
1214
+ "watermark_column"
1215
+ ],
1216
+ "unique": true
1217
+ },
957
1218
  {
958
1219
  "name": "_smrt_report_watermarks_slug_context_idx",
959
1220
  "columns": [
960
1221
  "slug",
961
1222
  "context"
962
- ],
963
- "unique": true
1223
+ ]
964
1224
  },
965
1225
  {
966
- "name": "_smrt_report_watermarks_created_at_idx",
1226
+ "name": "_smrt_report_watermarks_tenant_id_created_at_idx",
967
1227
  "columns": [
1228
+ "tenant_id",
968
1229
  "created_at"
969
1230
  ]
970
1231
  }
971
1232
  ],
972
- "version": "f334c521"
1233
+ "version": "dac9d57a"
973
1234
  }
974
1235
  },
975
1236
  "@happyvertical/smrt-reports:SmrtReportLock": {
@@ -1190,7 +1451,7 @@
1190
1451
  "collectionExportName": "SmrtReportLockCollectionCollection",
1191
1452
  "schema": {
1192
1453
  "tableName": "_smrt_report_locks",
1193
- "ddl": "CREATE TABLE IF NOT EXISTS \"_smrt_report_locks\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp\n);",
1454
+ "ddl": "CREATE TABLE IF NOT EXISTS \"_smrt_report_locks\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"scope_key\" TEXT NOT NULL,\n \"report_class\" TEXT NOT NULL,\n \"owner_id\" TEXT,\n \"acquired_at\" TIMESTAMP,\n \"heartbeat_at\" TIMESTAMP,\n \"expires_at\" TIMESTAMP\n);",
1194
1455
  "columns": {
1195
1456
  "id": {
1196
1457
  "type": "UUID",
@@ -1216,25 +1477,69 @@
1216
1477
  "type": "TIMESTAMP",
1217
1478
  "notNull": true,
1218
1479
  "default": "current_timestamp"
1480
+ },
1481
+ "tenant_id": {
1482
+ "type": "UUID",
1483
+ "referenceKind": "tenantId",
1484
+ "notNull": false,
1485
+ "unique": false
1486
+ },
1487
+ "scope_key": {
1488
+ "type": "TEXT",
1489
+ "notNull": true,
1490
+ "unique": false
1491
+ },
1492
+ "report_class": {
1493
+ "type": "TEXT",
1494
+ "notNull": true,
1495
+ "unique": false
1496
+ },
1497
+ "owner_id": {
1498
+ "type": "TEXT",
1499
+ "notNull": false,
1500
+ "unique": false
1501
+ },
1502
+ "acquired_at": {
1503
+ "type": "TIMESTAMP",
1504
+ "notNull": false,
1505
+ "unique": false
1506
+ },
1507
+ "heartbeat_at": {
1508
+ "type": "TIMESTAMP",
1509
+ "notNull": false,
1510
+ "unique": false
1511
+ },
1512
+ "expires_at": {
1513
+ "type": "TIMESTAMP",
1514
+ "notNull": false,
1515
+ "unique": false
1219
1516
  }
1220
1517
  },
1221
1518
  "indexes": [
1519
+ {
1520
+ "name": "_smrt_report_locks_report_class_scope_key_idx",
1521
+ "columns": [
1522
+ "report_class",
1523
+ "scope_key"
1524
+ ],
1525
+ "unique": true
1526
+ },
1222
1527
  {
1223
1528
  "name": "_smrt_report_locks_slug_context_idx",
1224
1529
  "columns": [
1225
1530
  "slug",
1226
1531
  "context"
1227
- ],
1228
- "unique": true
1532
+ ]
1229
1533
  },
1230
1534
  {
1231
- "name": "_smrt_report_locks_created_at_idx",
1535
+ "name": "_smrt_report_locks_tenant_id_created_at_idx",
1232
1536
  "columns": [
1537
+ "tenant_id",
1233
1538
  "created_at"
1234
1539
  ]
1235
1540
  }
1236
1541
  ],
1237
- "version": "31c32d3d"
1542
+ "version": "4a2043f9"
1238
1543
  }
1239
1544
  },
1240
1545
  "@happyvertical/smrt-reports:SmrtReportSchedule": {
@@ -1680,7 +1985,7 @@
1680
1985
  "collectionExportName": "SmrtReportScheduleCollectionCollection",
1681
1986
  "schema": {
1682
1987
  "tableName": "_smrt_report_schedules",
1683
- "ddl": "CREATE TABLE IF NOT EXISTS \"_smrt_report_schedules\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp\n);",
1988
+ "ddl": "CREATE TABLE IF NOT EXISTS \"_smrt_report_schedules\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"scope_key\" TEXT NOT NULL,\n \"report_class\" TEXT NOT NULL,\n \"cron\" TEXT NOT NULL,\n \"trigger\" TEXT NOT NULL,\n \"mode\" TEXT NOT NULL,\n \"enabled\" BOOLEAN NOT NULL,\n \"status\" TEXT NOT NULL,\n \"next_run\" TIMESTAMP,\n \"last_run\" TIMESTAMP,\n \"last_status\" TEXT,\n \"last_error\" TEXT,\n \"run_count\" INTEGER NOT NULL,\n \"success_count\" INTEGER NOT NULL,\n \"failure_count\" INTEGER NOT NULL,\n \"running_count\" INTEGER NOT NULL,\n \"max_concurrent\" INTEGER NOT NULL,\n \"queue\" TEXT NOT NULL,\n \"priority\" INTEGER NOT NULL,\n \"timeout\" INTEGER NOT NULL\n);",
1684
1989
  "columns": {
1685
1990
  "id": {
1686
1991
  "type": "UUID",
@@ -1706,25 +2011,136 @@
1706
2011
  "type": "TIMESTAMP",
1707
2012
  "notNull": true,
1708
2013
  "default": "current_timestamp"
2014
+ },
2015
+ "tenant_id": {
2016
+ "type": "UUID",
2017
+ "referenceKind": "tenantId",
2018
+ "notNull": false,
2019
+ "unique": false
2020
+ },
2021
+ "scope_key": {
2022
+ "type": "TEXT",
2023
+ "notNull": true,
2024
+ "unique": false
2025
+ },
2026
+ "report_class": {
2027
+ "type": "TEXT",
2028
+ "notNull": true,
2029
+ "unique": false
2030
+ },
2031
+ "cron": {
2032
+ "type": "TEXT",
2033
+ "notNull": true,
2034
+ "unique": false
2035
+ },
2036
+ "trigger": {
2037
+ "type": "TEXT",
2038
+ "notNull": true,
2039
+ "unique": false
2040
+ },
2041
+ "mode": {
2042
+ "type": "TEXT",
2043
+ "notNull": true,
2044
+ "unique": false
2045
+ },
2046
+ "enabled": {
2047
+ "type": "BOOLEAN",
2048
+ "notNull": true,
2049
+ "unique": false
2050
+ },
2051
+ "status": {
2052
+ "type": "TEXT",
2053
+ "notNull": true,
2054
+ "unique": false
2055
+ },
2056
+ "next_run": {
2057
+ "type": "TIMESTAMP",
2058
+ "notNull": false,
2059
+ "unique": false
2060
+ },
2061
+ "last_run": {
2062
+ "type": "TIMESTAMP",
2063
+ "notNull": false,
2064
+ "unique": false
2065
+ },
2066
+ "last_status": {
2067
+ "type": "TEXT",
2068
+ "notNull": false,
2069
+ "unique": false
2070
+ },
2071
+ "last_error": {
2072
+ "type": "TEXT",
2073
+ "notNull": false,
2074
+ "unique": false
2075
+ },
2076
+ "run_count": {
2077
+ "type": "INTEGER",
2078
+ "notNull": true,
2079
+ "unique": false
2080
+ },
2081
+ "success_count": {
2082
+ "type": "INTEGER",
2083
+ "notNull": true,
2084
+ "unique": false
2085
+ },
2086
+ "failure_count": {
2087
+ "type": "INTEGER",
2088
+ "notNull": true,
2089
+ "unique": false
2090
+ },
2091
+ "running_count": {
2092
+ "type": "INTEGER",
2093
+ "notNull": true,
2094
+ "unique": false
2095
+ },
2096
+ "max_concurrent": {
2097
+ "type": "INTEGER",
2098
+ "notNull": true,
2099
+ "unique": false
2100
+ },
2101
+ "queue": {
2102
+ "type": "TEXT",
2103
+ "notNull": true,
2104
+ "unique": false
2105
+ },
2106
+ "priority": {
2107
+ "type": "INTEGER",
2108
+ "notNull": true,
2109
+ "unique": false
2110
+ },
2111
+ "timeout": {
2112
+ "type": "INTEGER",
2113
+ "notNull": true,
2114
+ "unique": false
1709
2115
  }
1710
2116
  },
1711
2117
  "indexes": [
2118
+ {
2119
+ "name": "_smrt_report_schedules_report_class_scope_key_idx",
2120
+ "columns": [
2121
+ "report_class",
2122
+ "scope_key",
2123
+ "cron",
2124
+ "mode"
2125
+ ],
2126
+ "unique": true
2127
+ },
1712
2128
  {
1713
2129
  "name": "_smrt_report_schedules_slug_context_idx",
1714
2130
  "columns": [
1715
2131
  "slug",
1716
2132
  "context"
1717
- ],
1718
- "unique": true
2133
+ ]
1719
2134
  },
1720
2135
  {
1721
- "name": "_smrt_report_schedules_created_at_idx",
2136
+ "name": "_smrt_report_schedules_tenant_id_created_at_idx",
1722
2137
  "columns": [
2138
+ "tenant_id",
1723
2139
  "created_at"
1724
2140
  ]
1725
2141
  }
1726
2142
  ],
1727
- "version": "437fad71"
2143
+ "version": "4b9f0e69"
1728
2144
  }
1729
2145
  }
1730
2146
  },