@prisma/orm-extension-supabase 8.0.0-rc.2-dev.3 → 8.0.0-rc.20-dev.1

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.
@@ -1,5 +1,5 @@
1
- //#region ../../../3-extensions/supabase/dist/contract-DFQ5w0dT.mjs
2
- var version = "8.0.0-rc.2-dev.3";
1
+ //#region ../../../3-extensions/supabase/dist/contract-BqK3CKbC.mjs
2
+ var version = "8.0.0-rc.20-dev.1";
3
3
  var contract_default = {
4
4
  schemaVersion: "1",
5
5
  targetFamily: "sql",
@@ -146,7 +146,7 @@ var contract_default = {
146
146
  "createdAt": {
147
147
  "nullable": true,
148
148
  "type": {
149
- "codecId": "pg/timestamptz@1",
149
+ "codecId": "pg/timestamptz-temporal@1",
150
150
  "kind": "scalar"
151
151
  }
152
152
  },
@@ -168,7 +168,8 @@ var contract_default = {
168
168
  "nullable": false,
169
169
  "type": {
170
170
  "codecId": "sql/varchar@1",
171
- "kind": "scalar"
171
+ "kind": "scalar",
172
+ "typeParams": { "length": 64 }
172
173
  }
173
174
  },
174
175
  "payload": {
@@ -197,7 +198,7 @@ var contract_default = {
197
198
  "createdAt": {
198
199
  "nullable": true,
199
200
  "type": {
200
- "codecId": "pg/timestamptz@1",
201
+ "codecId": "pg/timestamptz-temporal@1",
201
202
  "kind": "scalar"
202
203
  }
203
204
  },
@@ -225,7 +226,7 @@ var contract_default = {
225
226
  "lastSignInAt": {
226
227
  "nullable": true,
227
228
  "type": {
228
- "codecId": "pg/timestamptz@1",
229
+ "codecId": "pg/timestamptz-temporal@1",
229
230
  "kind": "scalar"
230
231
  }
231
232
  },
@@ -246,7 +247,7 @@ var contract_default = {
246
247
  "updatedAt": {
247
248
  "nullable": true,
248
249
  "type": {
249
- "codecId": "pg/timestamptz@1",
250
+ "codecId": "pg/timestamptz-temporal@1",
250
251
  "kind": "scalar"
251
252
  }
252
253
  },
@@ -260,6 +261,7 @@ var contract_default = {
260
261
  },
261
262
  "relations": { "user": {
262
263
  "cardinality": "N:1",
264
+ "nullable": false,
263
265
  "on": {
264
266
  "localFields": ["userId"],
265
267
  "targetFields": ["id"]
@@ -298,7 +300,7 @@ var contract_default = {
298
300
  "createdAt": {
299
301
  "nullable": true,
300
302
  "type": {
301
- "codecId": "pg/timestamptz@1",
303
+ "codecId": "pg/timestamptz-temporal@1",
302
304
  "kind": "scalar"
303
305
  }
304
306
  },
@@ -326,7 +328,7 @@ var contract_default = {
326
328
  "notAfter": {
327
329
  "nullable": true,
328
330
  "type": {
329
- "codecId": "pg/timestamptz@1",
331
+ "codecId": "pg/timestamptz-temporal@1",
330
332
  "kind": "scalar"
331
333
  }
332
334
  },
@@ -354,7 +356,7 @@ var contract_default = {
354
356
  "refreshedAt": {
355
357
  "nullable": true,
356
358
  "type": {
357
- "codecId": "pg/timestamp@1",
359
+ "codecId": "pg/timestamp-temporal@1",
358
360
  "kind": "scalar"
359
361
  }
360
362
  },
@@ -375,7 +377,7 @@ var contract_default = {
375
377
  "updatedAt": {
376
378
  "nullable": true,
377
379
  "type": {
378
- "codecId": "pg/timestamptz@1",
380
+ "codecId": "pg/timestamptz-temporal@1",
379
381
  "kind": "scalar"
380
382
  }
381
383
  },
@@ -408,6 +410,7 @@ var contract_default = {
408
410
  },
409
411
  "oauthClient": {
410
412
  "cardinality": "N:1",
413
+ "nullable": true,
411
414
  "on": {
412
415
  "localFields": ["oauthClientId"],
413
416
  "targetFields": ["id"]
@@ -430,6 +433,7 @@ var contract_default = {
430
433
  },
431
434
  "user": {
432
435
  "cardinality": "N:1",
436
+ "nullable": false,
433
437
  "on": {
434
438
  "localFields": ["userId"],
435
439
  "targetFields": ["id"]
@@ -468,20 +472,21 @@ var contract_default = {
468
472
  "nullable": true,
469
473
  "type": {
470
474
  "codecId": "sql/varchar@1",
471
- "kind": "scalar"
475
+ "kind": "scalar",
476
+ "typeParams": { "length": 255 }
472
477
  }
473
478
  },
474
479
  "bannedUntil": {
475
480
  "nullable": true,
476
481
  "type": {
477
- "codecId": "pg/timestamptz@1",
482
+ "codecId": "pg/timestamptz-temporal@1",
478
483
  "kind": "scalar"
479
484
  }
480
485
  },
481
486
  "confirmationSentAt": {
482
487
  "nullable": true,
483
488
  "type": {
484
- "codecId": "pg/timestamptz@1",
489
+ "codecId": "pg/timestamptz-temporal@1",
485
490
  "kind": "scalar"
486
491
  }
487
492
  },
@@ -489,27 +494,28 @@ var contract_default = {
489
494
  "nullable": true,
490
495
  "type": {
491
496
  "codecId": "sql/varchar@1",
492
- "kind": "scalar"
497
+ "kind": "scalar",
498
+ "typeParams": { "length": 255 }
493
499
  }
494
500
  },
495
501
  "confirmedAt": {
496
502
  "nullable": true,
497
503
  "type": {
498
- "codecId": "pg/timestamptz@1",
504
+ "codecId": "pg/timestamptz-temporal@1",
499
505
  "kind": "scalar"
500
506
  }
501
507
  },
502
508
  "createdAt": {
503
509
  "nullable": true,
504
510
  "type": {
505
- "codecId": "pg/timestamptz@1",
511
+ "codecId": "pg/timestamptz-temporal@1",
506
512
  "kind": "scalar"
507
513
  }
508
514
  },
509
515
  "deletedAt": {
510
516
  "nullable": true,
511
517
  "type": {
512
- "codecId": "pg/timestamptz@1",
518
+ "codecId": "pg/timestamptz-temporal@1",
513
519
  "kind": "scalar"
514
520
  }
515
521
  },
@@ -517,14 +523,16 @@ var contract_default = {
517
523
  "nullable": true,
518
524
  "type": {
519
525
  "codecId": "sql/varchar@1",
520
- "kind": "scalar"
526
+ "kind": "scalar",
527
+ "typeParams": { "length": 255 }
521
528
  }
522
529
  },
523
530
  "emailChange": {
524
531
  "nullable": true,
525
532
  "type": {
526
533
  "codecId": "sql/varchar@1",
527
- "kind": "scalar"
534
+ "kind": "scalar",
535
+ "typeParams": { "length": 255 }
528
536
  }
529
537
  },
530
538
  "emailChangeConfirmStatus": {
@@ -537,7 +545,7 @@ var contract_default = {
537
545
  "emailChangeSentAt": {
538
546
  "nullable": true,
539
547
  "type": {
540
- "codecId": "pg/timestamptz@1",
548
+ "codecId": "pg/timestamptz-temporal@1",
541
549
  "kind": "scalar"
542
550
  }
543
551
  },
@@ -545,20 +553,22 @@ var contract_default = {
545
553
  "nullable": true,
546
554
  "type": {
547
555
  "codecId": "sql/varchar@1",
548
- "kind": "scalar"
556
+ "kind": "scalar",
557
+ "typeParams": { "length": 255 }
549
558
  }
550
559
  },
551
560
  "emailChangeTokenNew": {
552
561
  "nullable": true,
553
562
  "type": {
554
563
  "codecId": "sql/varchar@1",
555
- "kind": "scalar"
564
+ "kind": "scalar",
565
+ "typeParams": { "length": 255 }
556
566
  }
557
567
  },
558
568
  "emailConfirmedAt": {
559
569
  "nullable": true,
560
570
  "type": {
561
- "codecId": "pg/timestamptz@1",
571
+ "codecId": "pg/timestamptz-temporal@1",
562
572
  "kind": "scalar"
563
573
  }
564
574
  },
@@ -566,7 +576,8 @@ var contract_default = {
566
576
  "nullable": true,
567
577
  "type": {
568
578
  "codecId": "sql/varchar@1",
569
- "kind": "scalar"
579
+ "kind": "scalar",
580
+ "typeParams": { "length": 255 }
570
581
  }
571
582
  },
572
583
  "id": {
@@ -586,7 +597,7 @@ var contract_default = {
586
597
  "invitedAt": {
587
598
  "nullable": true,
588
599
  "type": {
589
- "codecId": "pg/timestamptz@1",
600
+ "codecId": "pg/timestamptz-temporal@1",
590
601
  "kind": "scalar"
591
602
  }
592
603
  },
@@ -614,7 +625,7 @@ var contract_default = {
614
625
  "lastSignInAt": {
615
626
  "nullable": true,
616
627
  "type": {
617
- "codecId": "pg/timestamptz@1",
628
+ "codecId": "pg/timestamptz-temporal@1",
618
629
  "kind": "scalar"
619
630
  }
620
631
  },
@@ -635,7 +646,7 @@ var contract_default = {
635
646
  "phoneChangeSentAt": {
636
647
  "nullable": true,
637
648
  "type": {
638
- "codecId": "pg/timestamptz@1",
649
+ "codecId": "pg/timestamptz-temporal@1",
639
650
  "kind": "scalar"
640
651
  }
641
652
  },
@@ -643,13 +654,14 @@ var contract_default = {
643
654
  "nullable": true,
644
655
  "type": {
645
656
  "codecId": "sql/varchar@1",
646
- "kind": "scalar"
657
+ "kind": "scalar",
658
+ "typeParams": { "length": 255 }
647
659
  }
648
660
  },
649
661
  "phoneConfirmedAt": {
650
662
  "nullable": true,
651
663
  "type": {
652
- "codecId": "pg/timestamptz@1",
664
+ "codecId": "pg/timestamptz-temporal@1",
653
665
  "kind": "scalar"
654
666
  }
655
667
  },
@@ -670,7 +682,7 @@ var contract_default = {
670
682
  "reauthenticationSentAt": {
671
683
  "nullable": true,
672
684
  "type": {
673
- "codecId": "pg/timestamptz@1",
685
+ "codecId": "pg/timestamptz-temporal@1",
674
686
  "kind": "scalar"
675
687
  }
676
688
  },
@@ -678,13 +690,14 @@ var contract_default = {
678
690
  "nullable": true,
679
691
  "type": {
680
692
  "codecId": "sql/varchar@1",
681
- "kind": "scalar"
693
+ "kind": "scalar",
694
+ "typeParams": { "length": 255 }
682
695
  }
683
696
  },
684
697
  "recoverySentAt": {
685
698
  "nullable": true,
686
699
  "type": {
687
- "codecId": "pg/timestamptz@1",
700
+ "codecId": "pg/timestamptz-temporal@1",
688
701
  "kind": "scalar"
689
702
  }
690
703
  },
@@ -692,20 +705,22 @@ var contract_default = {
692
705
  "nullable": true,
693
706
  "type": {
694
707
  "codecId": "sql/varchar@1",
695
- "kind": "scalar"
708
+ "kind": "scalar",
709
+ "typeParams": { "length": 255 }
696
710
  }
697
711
  },
698
712
  "role": {
699
713
  "nullable": true,
700
714
  "type": {
701
715
  "codecId": "sql/varchar@1",
702
- "kind": "scalar"
716
+ "kind": "scalar",
717
+ "typeParams": { "length": 255 }
703
718
  }
704
719
  },
705
720
  "updatedAt": {
706
721
  "nullable": true,
707
722
  "type": {
708
- "codecId": "pg/timestamptz@1",
723
+ "codecId": "pg/timestamptz-temporal@1",
709
724
  "kind": "scalar"
710
725
  }
711
726
  }
@@ -845,7 +860,7 @@ var contract_default = {
845
860
  "CustomOauthProviders": {
846
861
  "fields": {
847
862
  "acceptableClientIds": {
848
- "many": true,
863
+ "many": { "elementNullable": true },
849
864
  "nullable": false,
850
865
  "type": {
851
866
  "codecId": "pg/text@1",
@@ -897,14 +912,14 @@ var contract_default = {
897
912
  "createdAt": {
898
913
  "nullable": false,
899
914
  "type": {
900
- "codecId": "pg/timestamptz@1",
915
+ "codecId": "pg/timestamptz-temporal@1",
901
916
  "kind": "scalar"
902
917
  }
903
918
  },
904
919
  "discoveryCachedAt": {
905
920
  "nullable": true,
906
921
  "type": {
907
- "codecId": "pg/timestamptz@1",
922
+ "codecId": "pg/timestamptz-temporal@1",
908
923
  "kind": "scalar"
909
924
  }
910
925
  },
@@ -979,7 +994,7 @@ var contract_default = {
979
994
  }
980
995
  },
981
996
  "scopes": {
982
- "many": true,
997
+ "many": { "elementNullable": true },
983
998
  "nullable": false,
984
999
  "type": {
985
1000
  "codecId": "pg/text@1",
@@ -1003,7 +1018,7 @@ var contract_default = {
1003
1018
  "updatedAt": {
1004
1019
  "nullable": false,
1005
1020
  "type": {
1006
- "codecId": "pg/timestamptz@1",
1021
+ "codecId": "pg/timestamptz-temporal@1",
1007
1022
  "kind": "scalar"
1008
1023
  }
1009
1024
  },
@@ -1059,7 +1074,7 @@ var contract_default = {
1059
1074
  "authCodeIssuedAt": {
1060
1075
  "nullable": true,
1061
1076
  "type": {
1062
- "codecId": "pg/timestamptz@1",
1077
+ "codecId": "pg/timestamptz-temporal@1",
1063
1078
  "kind": "scalar"
1064
1079
  }
1065
1080
  },
@@ -1088,7 +1103,7 @@ var contract_default = {
1088
1103
  "createdAt": {
1089
1104
  "nullable": true,
1090
1105
  "type": {
1091
- "codecId": "pg/timestamptz@1",
1106
+ "codecId": "pg/timestamptz-temporal@1",
1092
1107
  "kind": "scalar"
1093
1108
  }
1094
1109
  },
@@ -1158,7 +1173,7 @@ var contract_default = {
1158
1173
  "updatedAt": {
1159
1174
  "nullable": true,
1160
1175
  "type": {
1161
- "codecId": "pg/timestamptz@1",
1176
+ "codecId": "pg/timestamptz-temporal@1",
1162
1177
  "kind": "scalar"
1163
1178
  }
1164
1179
  },
@@ -1210,7 +1225,7 @@ var contract_default = {
1210
1225
  "createdAt": {
1211
1226
  "nullable": true,
1212
1227
  "type": {
1213
- "codecId": "pg/timestamptz@1",
1228
+ "codecId": "pg/timestamptz-temporal@1",
1214
1229
  "kind": "scalar"
1215
1230
  }
1216
1231
  },
@@ -1231,7 +1246,7 @@ var contract_default = {
1231
1246
  "updatedAt": {
1232
1247
  "nullable": true,
1233
1248
  "type": {
1234
- "codecId": "pg/timestamptz@1",
1249
+ "codecId": "pg/timestamptz-temporal@1",
1235
1250
  "kind": "scalar"
1236
1251
  }
1237
1252
  },
@@ -1268,7 +1283,7 @@ var contract_default = {
1268
1283
  "createdAt": {
1269
1284
  "nullable": false,
1270
1285
  "type": {
1271
- "codecId": "pg/timestamptz@1",
1286
+ "codecId": "pg/timestamptz-temporal@1",
1272
1287
  "kind": "scalar"
1273
1288
  }
1274
1289
  },
@@ -1289,13 +1304,14 @@ var contract_default = {
1289
1304
  "updatedAt": {
1290
1305
  "nullable": false,
1291
1306
  "type": {
1292
- "codecId": "pg/timestamptz@1",
1307
+ "codecId": "pg/timestamptz-temporal@1",
1293
1308
  "kind": "scalar"
1294
1309
  }
1295
1310
  }
1296
1311
  },
1297
1312
  "relations": { "session": {
1298
1313
  "cardinality": "N:1",
1314
+ "nullable": false,
1299
1315
  "on": {
1300
1316
  "localFields": ["sessionId"],
1301
1317
  "targetFields": ["id"]
@@ -1322,7 +1338,7 @@ var contract_default = {
1322
1338
  "createdAt": {
1323
1339
  "nullable": false,
1324
1340
  "type": {
1325
- "codecId": "pg/timestamptz@1",
1341
+ "codecId": "pg/timestamptz-temporal@1",
1326
1342
  "kind": "scalar"
1327
1343
  }
1328
1344
  },
@@ -1357,7 +1373,7 @@ var contract_default = {
1357
1373
  "verifiedAt": {
1358
1374
  "nullable": true,
1359
1375
  "type": {
1360
- "codecId": "pg/timestamptz@1",
1376
+ "codecId": "pg/timestamptz-temporal@1",
1361
1377
  "kind": "scalar"
1362
1378
  }
1363
1379
  },
@@ -1371,6 +1387,7 @@ var contract_default = {
1371
1387
  },
1372
1388
  "relations": { "factor": {
1373
1389
  "cardinality": "N:1",
1390
+ "nullable": false,
1374
1391
  "on": {
1375
1392
  "localFields": ["factorId"],
1376
1393
  "targetFields": ["id"]
@@ -1399,7 +1416,7 @@ var contract_default = {
1399
1416
  "createdAt": {
1400
1417
  "nullable": false,
1401
1418
  "type": {
1402
- "codecId": "pg/timestamptz@1",
1419
+ "codecId": "pg/timestamptz-temporal@1",
1403
1420
  "kind": "scalar"
1404
1421
  }
1405
1422
  },
@@ -1428,7 +1445,7 @@ var contract_default = {
1428
1445
  "lastChallengedAt": {
1429
1446
  "nullable": true,
1430
1447
  "type": {
1431
- "codecId": "pg/timestamptz@1",
1448
+ "codecId": "pg/timestamptz-temporal@1",
1432
1449
  "kind": "scalar"
1433
1450
  }
1434
1451
  },
@@ -1464,7 +1481,7 @@ var contract_default = {
1464
1481
  "updatedAt": {
1465
1482
  "nullable": false,
1466
1483
  "type": {
1467
- "codecId": "pg/timestamptz@1",
1484
+ "codecId": "pg/timestamptz-temporal@1",
1468
1485
  "kind": "scalar"
1469
1486
  }
1470
1487
  },
@@ -1504,6 +1521,7 @@ var contract_default = {
1504
1521
  },
1505
1522
  "user": {
1506
1523
  "cardinality": "N:1",
1524
+ "nullable": false,
1507
1525
  "on": {
1508
1526
  "localFields": ["userId"],
1509
1527
  "targetFields": ["id"]
@@ -1539,7 +1557,7 @@ var contract_default = {
1539
1557
  "approvedAt": {
1540
1558
  "nullable": true,
1541
1559
  "type": {
1542
- "codecId": "pg/timestamptz@1",
1560
+ "codecId": "pg/timestamptz-temporal@1",
1543
1561
  "kind": "scalar"
1544
1562
  }
1545
1563
  },
@@ -1582,14 +1600,14 @@ var contract_default = {
1582
1600
  "createdAt": {
1583
1601
  "nullable": false,
1584
1602
  "type": {
1585
- "codecId": "pg/timestamptz@1",
1603
+ "codecId": "pg/timestamptz-temporal@1",
1586
1604
  "kind": "scalar"
1587
1605
  }
1588
1606
  },
1589
1607
  "expiresAt": {
1590
1608
  "nullable": false,
1591
1609
  "type": {
1592
- "codecId": "pg/timestamptz@1",
1610
+ "codecId": "pg/timestamptz-temporal@1",
1593
1611
  "kind": "scalar"
1594
1612
  }
1595
1613
  },
@@ -1662,6 +1680,7 @@ var contract_default = {
1662
1680
  "relations": {
1663
1681
  "client": {
1664
1682
  "cardinality": "N:1",
1683
+ "nullable": false,
1665
1684
  "on": {
1666
1685
  "localFields": ["clientId"],
1667
1686
  "targetFields": ["id"]
@@ -1673,6 +1692,7 @@ var contract_default = {
1673
1692
  },
1674
1693
  "user": {
1675
1694
  "cardinality": "N:1",
1695
+ "nullable": true,
1676
1696
  "on": {
1677
1697
  "localFields": ["userId"],
1678
1698
  "targetFields": ["id"]
@@ -1719,7 +1739,7 @@ var contract_default = {
1719
1739
  "createdAt": {
1720
1740
  "nullable": false,
1721
1741
  "type": {
1722
- "codecId": "pg/timestamptz@1",
1742
+ "codecId": "pg/timestamptz-temporal@1",
1723
1743
  "kind": "scalar"
1724
1744
  }
1725
1745
  },
@@ -1784,14 +1804,14 @@ var contract_default = {
1784
1804
  "createdAt": {
1785
1805
  "nullable": false,
1786
1806
  "type": {
1787
- "codecId": "pg/timestamptz@1",
1807
+ "codecId": "pg/timestamptz-temporal@1",
1788
1808
  "kind": "scalar"
1789
1809
  }
1790
1810
  },
1791
1811
  "deletedAt": {
1792
1812
  "nullable": true,
1793
1813
  "type": {
1794
- "codecId": "pg/timestamptz@1",
1814
+ "codecId": "pg/timestamptz-temporal@1",
1795
1815
  "kind": "scalar"
1796
1816
  }
1797
1817
  },
@@ -1841,7 +1861,7 @@ var contract_default = {
1841
1861
  "updatedAt": {
1842
1862
  "nullable": false,
1843
1863
  "type": {
1844
- "codecId": "pg/timestamptz@1",
1864
+ "codecId": "pg/timestamptz-temporal@1",
1845
1865
  "kind": "scalar"
1846
1866
  }
1847
1867
  }
@@ -1913,7 +1933,7 @@ var contract_default = {
1913
1933
  "grantedAt": {
1914
1934
  "nullable": false,
1915
1935
  "type": {
1916
- "codecId": "pg/timestamptz@1",
1936
+ "codecId": "pg/timestamptz-temporal@1",
1917
1937
  "kind": "scalar"
1918
1938
  }
1919
1939
  },
@@ -1927,7 +1947,7 @@ var contract_default = {
1927
1947
  "revokedAt": {
1928
1948
  "nullable": true,
1929
1949
  "type": {
1930
- "codecId": "pg/timestamptz@1",
1950
+ "codecId": "pg/timestamptz-temporal@1",
1931
1951
  "kind": "scalar"
1932
1952
  }
1933
1953
  },
@@ -1949,6 +1969,7 @@ var contract_default = {
1949
1969
  "relations": {
1950
1970
  "client": {
1951
1971
  "cardinality": "N:1",
1972
+ "nullable": false,
1952
1973
  "on": {
1953
1974
  "localFields": ["clientId"],
1954
1975
  "targetFields": ["id"]
@@ -1960,6 +1981,7 @@ var contract_default = {
1960
1981
  },
1961
1982
  "user": {
1962
1983
  "cardinality": "N:1",
1984
+ "nullable": false,
1963
1985
  "on": {
1964
1986
  "localFields": ["userId"],
1965
1987
  "targetFields": ["id"]
@@ -1988,7 +2010,7 @@ var contract_default = {
1988
2010
  "createdAt": {
1989
2011
  "nullable": false,
1990
2012
  "type": {
1991
- "codecId": "pg/timestamp@1",
2013
+ "codecId": "pg/timestamp-temporal@1",
1992
2014
  "kind": "scalar"
1993
2015
  }
1994
2016
  },
@@ -2024,7 +2046,7 @@ var contract_default = {
2024
2046
  "updatedAt": {
2025
2047
  "nullable": false,
2026
2048
  "type": {
2027
- "codecId": "pg/timestamp@1",
2049
+ "codecId": "pg/timestamp-temporal@1",
2028
2050
  "kind": "scalar"
2029
2051
  }
2030
2052
  },
@@ -2038,6 +2060,7 @@ var contract_default = {
2038
2060
  },
2039
2061
  "relations": { "user": {
2040
2062
  "cardinality": "N:1",
2063
+ "nullable": false,
2041
2064
  "on": {
2042
2065
  "localFields": ["userId"],
2043
2066
  "targetFields": ["id"]
@@ -2066,7 +2089,7 @@ var contract_default = {
2066
2089
  "createdAt": {
2067
2090
  "nullable": true,
2068
2091
  "type": {
2069
- "codecId": "pg/timestamptz@1",
2092
+ "codecId": "pg/timestamptz-temporal@1",
2070
2093
  "kind": "scalar"
2071
2094
  }
2072
2095
  },
@@ -2088,7 +2111,8 @@ var contract_default = {
2088
2111
  "nullable": true,
2089
2112
  "type": {
2090
2113
  "codecId": "sql/varchar@1",
2091
- "kind": "scalar"
2114
+ "kind": "scalar",
2115
+ "typeParams": { "length": 255 }
2092
2116
  }
2093
2117
  },
2094
2118
  "revoked": {
@@ -2109,13 +2133,14 @@ var contract_default = {
2109
2133
  "nullable": true,
2110
2134
  "type": {
2111
2135
  "codecId": "sql/varchar@1",
2112
- "kind": "scalar"
2136
+ "kind": "scalar",
2137
+ "typeParams": { "length": 255 }
2113
2138
  }
2114
2139
  },
2115
2140
  "updatedAt": {
2116
2141
  "nullable": true,
2117
2142
  "type": {
2118
- "codecId": "pg/timestamptz@1",
2143
+ "codecId": "pg/timestamptz-temporal@1",
2119
2144
  "kind": "scalar"
2120
2145
  }
2121
2146
  },
@@ -2123,12 +2148,14 @@ var contract_default = {
2123
2148
  "nullable": true,
2124
2149
  "type": {
2125
2150
  "codecId": "sql/varchar@1",
2126
- "kind": "scalar"
2151
+ "kind": "scalar",
2152
+ "typeParams": { "length": 255 }
2127
2153
  }
2128
2154
  }
2129
2155
  },
2130
2156
  "relations": { "session": {
2131
2157
  "cardinality": "N:1",
2158
+ "nullable": true,
2132
2159
  "on": {
2133
2160
  "localFields": ["sessionId"],
2134
2161
  "targetFields": ["id"]
@@ -2166,7 +2193,7 @@ var contract_default = {
2166
2193
  "createdAt": {
2167
2194
  "nullable": true,
2168
2195
  "type": {
2169
- "codecId": "pg/timestamptz@1",
2196
+ "codecId": "pg/timestamptz-temporal@1",
2170
2197
  "kind": "scalar"
2171
2198
  }
2172
2199
  },
@@ -2215,13 +2242,14 @@ var contract_default = {
2215
2242
  "updatedAt": {
2216
2243
  "nullable": true,
2217
2244
  "type": {
2218
- "codecId": "pg/timestamptz@1",
2245
+ "codecId": "pg/timestamptz-temporal@1",
2219
2246
  "kind": "scalar"
2220
2247
  }
2221
2248
  }
2222
2249
  },
2223
2250
  "relations": { "ssoProvider": {
2224
2251
  "cardinality": "N:1",
2252
+ "nullable": false,
2225
2253
  "on": {
2226
2254
  "localFields": ["ssoProviderId"],
2227
2255
  "targetFields": ["id"]
@@ -2252,7 +2280,7 @@ var contract_default = {
2252
2280
  "createdAt": {
2253
2281
  "nullable": true,
2254
2282
  "type": {
2255
- "codecId": "pg/timestamptz@1",
2283
+ "codecId": "pg/timestamptz-temporal@1",
2256
2284
  "kind": "scalar"
2257
2285
  }
2258
2286
  },
@@ -2301,7 +2329,7 @@ var contract_default = {
2301
2329
  "updatedAt": {
2302
2330
  "nullable": true,
2303
2331
  "type": {
2304
- "codecId": "pg/timestamptz@1",
2332
+ "codecId": "pg/timestamptz-temporal@1",
2305
2333
  "kind": "scalar"
2306
2334
  }
2307
2335
  }
@@ -2309,6 +2337,7 @@ var contract_default = {
2309
2337
  "relations": {
2310
2338
  "flowState": {
2311
2339
  "cardinality": "N:1",
2340
+ "nullable": true,
2312
2341
  "on": {
2313
2342
  "localFields": ["flowStateId"],
2314
2343
  "targetFields": ["id"]
@@ -2320,6 +2349,7 @@ var contract_default = {
2320
2349
  },
2321
2350
  "ssoProvider": {
2322
2351
  "cardinality": "N:1",
2352
+ "nullable": false,
2323
2353
  "on": {
2324
2354
  "localFields": ["ssoProviderId"],
2325
2355
  "targetFields": ["id"]
@@ -2350,7 +2380,8 @@ var contract_default = {
2350
2380
  "nullable": false,
2351
2381
  "type": {
2352
2382
  "codecId": "sql/varchar@1",
2353
- "kind": "scalar"
2383
+ "kind": "scalar",
2384
+ "typeParams": { "length": 255 }
2354
2385
  }
2355
2386
  } },
2356
2387
  "relations": {},
@@ -2365,7 +2396,7 @@ var contract_default = {
2365
2396
  "createdAt": {
2366
2397
  "nullable": true,
2367
2398
  "type": {
2368
- "codecId": "pg/timestamptz@1",
2399
+ "codecId": "pg/timestamptz-temporal@1",
2369
2400
  "kind": "scalar"
2370
2401
  }
2371
2402
  },
@@ -2393,13 +2424,14 @@ var contract_default = {
2393
2424
  "updatedAt": {
2394
2425
  "nullable": true,
2395
2426
  "type": {
2396
- "codecId": "pg/timestamptz@1",
2427
+ "codecId": "pg/timestamptz-temporal@1",
2397
2428
  "kind": "scalar"
2398
2429
  }
2399
2430
  }
2400
2431
  },
2401
2432
  "relations": { "ssoProvider": {
2402
2433
  "cardinality": "N:1",
2434
+ "nullable": false,
2403
2435
  "on": {
2404
2436
  "localFields": ["ssoProviderId"],
2405
2437
  "targetFields": ["id"]
@@ -2426,7 +2458,7 @@ var contract_default = {
2426
2458
  "createdAt": {
2427
2459
  "nullable": true,
2428
2460
  "type": {
2429
- "codecId": "pg/timestamptz@1",
2461
+ "codecId": "pg/timestamptz-temporal@1",
2430
2462
  "kind": "scalar"
2431
2463
  }
2432
2464
  },
@@ -2454,7 +2486,7 @@ var contract_default = {
2454
2486
  "updatedAt": {
2455
2487
  "nullable": true,
2456
2488
  "type": {
2457
- "codecId": "pg/timestamptz@1",
2489
+ "codecId": "pg/timestamptz-temporal@1",
2458
2490
  "kind": "scalar"
2459
2491
  }
2460
2492
  }
@@ -2518,14 +2550,14 @@ var contract_default = {
2518
2550
  "createdAt": {
2519
2551
  "nullable": false,
2520
2552
  "type": {
2521
- "codecId": "pg/timestamptz@1",
2553
+ "codecId": "pg/timestamptz-temporal@1",
2522
2554
  "kind": "scalar"
2523
2555
  }
2524
2556
  },
2525
2557
  "expiresAt": {
2526
2558
  "nullable": false,
2527
2559
  "type": {
2528
- "codecId": "pg/timestamptz@1",
2560
+ "codecId": "pg/timestamptz-temporal@1",
2529
2561
  "kind": "scalar"
2530
2562
  }
2531
2563
  },
@@ -2553,6 +2585,7 @@ var contract_default = {
2553
2585
  },
2554
2586
  "relations": { "user": {
2555
2587
  "cardinality": "N:1",
2588
+ "nullable": true,
2556
2589
  "on": {
2557
2590
  "localFields": ["userId"],
2558
2591
  "targetFields": ["id"]
@@ -2608,7 +2641,7 @@ var contract_default = {
2608
2641
  "createdAt": {
2609
2642
  "nullable": false,
2610
2643
  "type": {
2611
- "codecId": "pg/timestamptz@1",
2644
+ "codecId": "pg/timestamptz-temporal@1",
2612
2645
  "kind": "scalar"
2613
2646
  }
2614
2647
  },
@@ -2636,7 +2669,7 @@ var contract_default = {
2636
2669
  "lastUsedAt": {
2637
2670
  "nullable": true,
2638
2671
  "type": {
2639
- "codecId": "pg/timestamptz@1",
2672
+ "codecId": "pg/timestamptz-temporal@1",
2640
2673
  "kind": "scalar"
2641
2674
  }
2642
2675
  },
@@ -2664,7 +2697,7 @@ var contract_default = {
2664
2697
  "updatedAt": {
2665
2698
  "nullable": false,
2666
2699
  "type": {
2667
- "codecId": "pg/timestamptz@1",
2700
+ "codecId": "pg/timestamptz-temporal@1",
2668
2701
  "kind": "scalar"
2669
2702
  }
2670
2703
  },
@@ -2678,6 +2711,7 @@ var contract_default = {
2678
2711
  },
2679
2712
  "relations": { "user": {
2680
2713
  "cardinality": "N:1",
2714
+ "nullable": false,
2681
2715
  "on": {
2682
2716
  "localFields": ["userId"],
2683
2717
  "targetFields": ["id"]
@@ -2723,14 +2757,14 @@ var contract_default = {
2723
2757
  "createdAt": {
2724
2758
  "nullable": false,
2725
2759
  "type": {
2726
- "codecId": "pg/timestamptz@1",
2760
+ "codecId": "pg/timestamptz-temporal@1",
2727
2761
  "kind": "scalar"
2728
2762
  }
2729
2763
  },
2730
2764
  "deletedAt": {
2731
2765
  "nullable": true,
2732
2766
  "type": {
2733
- "codecId": "pg/timestamptz@1",
2767
+ "codecId": "pg/timestamptz-temporal@1",
2734
2768
  "kind": "scalar"
2735
2769
  }
2736
2770
  },
@@ -2758,7 +2792,7 @@ var contract_default = {
2758
2792
  "updatedAt": {
2759
2793
  "nullable": false,
2760
2794
  "type": {
2761
- "codecId": "pg/timestamptz@1",
2795
+ "codecId": "pg/timestamptz-temporal@1",
2762
2796
  "kind": "scalar"
2763
2797
  }
2764
2798
  }
@@ -2814,7 +2848,7 @@ var contract_default = {
2814
2848
  "createdAt": {
2815
2849
  "nullable": false,
2816
2850
  "type": {
2817
- "codecId": "pg/timestamptz@1",
2851
+ "codecId": "pg/timestamptz-temporal@1",
2818
2852
  "kind": "scalar"
2819
2853
  }
2820
2854
  },
@@ -2828,7 +2862,7 @@ var contract_default = {
2828
2862
  "updatedAt": {
2829
2863
  "nullable": false,
2830
2864
  "type": {
2831
- "codecId": "pg/timestamptz@1",
2865
+ "codecId": "pg/timestamptz-temporal@1",
2832
2866
  "kind": "scalar"
2833
2867
  }
2834
2868
  }
@@ -2874,7 +2908,7 @@ var contract_default = {
2874
2908
  "createdAt": {
2875
2909
  "nullable": false,
2876
2910
  "type": {
2877
- "codecId": "pg/timestamptz@1",
2911
+ "codecId": "pg/timestamptz-temporal@1",
2878
2912
  "kind": "scalar"
2879
2913
  }
2880
2914
  },
@@ -2902,7 +2936,7 @@ var contract_default = {
2902
2936
  "updatedAt": {
2903
2937
  "nullable": false,
2904
2938
  "type": {
2905
- "codecId": "pg/timestamptz@1",
2939
+ "codecId": "pg/timestamptz-temporal@1",
2906
2940
  "kind": "scalar"
2907
2941
  }
2908
2942
  }
@@ -2910,6 +2944,7 @@ var contract_default = {
2910
2944
  "relations": {
2911
2945
  "catalog": {
2912
2946
  "cardinality": "N:1",
2947
+ "nullable": false,
2913
2948
  "on": {
2914
2949
  "localFields": ["catalogId"],
2915
2950
  "targetFields": ["id"]
@@ -2964,7 +2999,7 @@ var contract_default = {
2964
2999
  "createdAt": {
2965
3000
  "nullable": false,
2966
3001
  "type": {
2967
- "codecId": "pg/timestamptz@1",
3002
+ "codecId": "pg/timestamptz-temporal@1",
2968
3003
  "kind": "scalar"
2969
3004
  }
2970
3005
  },
@@ -3020,7 +3055,7 @@ var contract_default = {
3020
3055
  "updatedAt": {
3021
3056
  "nullable": false,
3022
3057
  "type": {
3023
- "codecId": "pg/timestamptz@1",
3058
+ "codecId": "pg/timestamptz-temporal@1",
3024
3059
  "kind": "scalar"
3025
3060
  }
3026
3061
  }
@@ -3028,6 +3063,7 @@ var contract_default = {
3028
3063
  "relations": {
3029
3064
  "catalog": {
3030
3065
  "cardinality": "N:1",
3066
+ "nullable": false,
3031
3067
  "on": {
3032
3068
  "localFields": ["catalogId"],
3033
3069
  "targetFields": ["id"]
@@ -3039,6 +3075,7 @@ var contract_default = {
3039
3075
  },
3040
3076
  "namespace": {
3041
3077
  "cardinality": "N:1",
3078
+ "nullable": false,
3042
3079
  "on": {
3043
3080
  "localFields": ["namespaceId"],
3044
3081
  "targetFields": ["id"]
@@ -3072,7 +3109,7 @@ var contract_default = {
3072
3109
  "executedAt": {
3073
3110
  "nullable": true,
3074
3111
  "type": {
3075
- "codecId": "pg/timestamp@1",
3112
+ "codecId": "pg/timestamp-temporal@1",
3076
3113
  "kind": "scalar"
3077
3114
  }
3078
3115
  },
@@ -3080,7 +3117,8 @@ var contract_default = {
3080
3117
  "nullable": false,
3081
3118
  "type": {
3082
3119
  "codecId": "sql/varchar@1",
3083
- "kind": "scalar"
3120
+ "kind": "scalar",
3121
+ "typeParams": { "length": 40 }
3084
3122
  }
3085
3123
  },
3086
3124
  "id": {
@@ -3094,7 +3132,8 @@ var contract_default = {
3094
3132
  "nullable": false,
3095
3133
  "type": {
3096
3134
  "codecId": "sql/varchar@1",
3097
- "kind": "scalar"
3135
+ "kind": "scalar",
3136
+ "typeParams": { "length": 100 }
3098
3137
  }
3099
3138
  }
3100
3139
  },
@@ -3122,7 +3161,7 @@ var contract_default = {
3122
3161
  "createdAt": {
3123
3162
  "nullable": false,
3124
3163
  "type": {
3125
- "codecId": "pg/timestamptz@1",
3164
+ "codecId": "pg/timestamptz-temporal@1",
3126
3165
  "kind": "scalar"
3127
3166
  }
3128
3167
  },
@@ -3186,6 +3225,7 @@ var contract_default = {
3186
3225
  "relations": {
3187
3226
  "bucket": {
3188
3227
  "cardinality": "N:1",
3228
+ "nullable": false,
3189
3229
  "on": {
3190
3230
  "localFields": ["bucketId"],
3191
3231
  "targetFields": ["id"]
@@ -3236,7 +3276,7 @@ var contract_default = {
3236
3276
  "createdAt": {
3237
3277
  "nullable": false,
3238
3278
  "type": {
3239
- "codecId": "pg/timestamptz@1",
3279
+ "codecId": "pg/timestamptz-temporal@1",
3240
3280
  "kind": "scalar"
3241
3281
  }
3242
3282
  },
@@ -3300,6 +3340,7 @@ var contract_default = {
3300
3340
  "relations": {
3301
3341
  "bucket": {
3302
3342
  "cardinality": "N:1",
3343
+ "nullable": false,
3303
3344
  "on": {
3304
3345
  "localFields": ["bucketId"],
3305
3346
  "targetFields": ["id"]
@@ -3311,6 +3352,7 @@ var contract_default = {
3311
3352
  },
3312
3353
  "upload": {
3313
3354
  "cardinality": "N:1",
3355
+ "nullable": false,
3314
3356
  "on": {
3315
3357
  "localFields": ["uploadId"],
3316
3358
  "targetFields": ["id"]
@@ -3348,6 +3390,14 @@ var contract_default = {
3348
3390
  "typeParams": { "typeName": "storage.buckettype" }
3349
3391
  }
3350
3392
  },
3393
+ "allowedMimeTypes": {
3394
+ "many": { "elementNullable": true },
3395
+ "nullable": true,
3396
+ "type": {
3397
+ "codecId": "pg/text@1",
3398
+ "kind": "scalar"
3399
+ }
3400
+ },
3351
3401
  "avifAutodetection": {
3352
3402
  "nullable": true,
3353
3403
  "type": {
@@ -3358,7 +3408,7 @@ var contract_default = {
3358
3408
  "createdAt": {
3359
3409
  "nullable": true,
3360
3410
  "type": {
3361
- "codecId": "pg/timestamptz@1",
3411
+ "codecId": "pg/timestamptz-temporal@1",
3362
3412
  "kind": "scalar"
3363
3413
  }
3364
3414
  },
@@ -3407,7 +3457,7 @@ var contract_default = {
3407
3457
  "updatedAt": {
3408
3458
  "nullable": true,
3409
3459
  "type": {
3410
- "codecId": "pg/timestamptz@1",
3460
+ "codecId": "pg/timestamptz-temporal@1",
3411
3461
  "kind": "scalar"
3412
3462
  }
3413
3463
  }
@@ -3450,6 +3500,7 @@ var contract_default = {
3450
3500
  "storage": {
3451
3501
  "fields": {
3452
3502
  "_type": { "column": "type" },
3503
+ "allowedMimeTypes": { "column": "allowed_mime_types" },
3453
3504
  "avifAutodetection": { "column": "avif_autodetection" },
3454
3505
  "createdAt": { "column": "created_at" },
3455
3506
  "fileSizeLimit": { "column": "file_size_limit" },
@@ -3476,7 +3527,7 @@ var contract_default = {
3476
3527
  "createdAt": {
3477
3528
  "nullable": true,
3478
3529
  "type": {
3479
- "codecId": "pg/timestamptz@1",
3530
+ "codecId": "pg/timestamptz-temporal@1",
3480
3531
  "kind": "scalar"
3481
3532
  }
3482
3533
  },
@@ -3490,7 +3541,7 @@ var contract_default = {
3490
3541
  "lastAccessedAt": {
3491
3542
  "nullable": true,
3492
3543
  "type": {
3493
- "codecId": "pg/timestamptz@1",
3544
+ "codecId": "pg/timestamptz-temporal@1",
3494
3545
  "kind": "scalar"
3495
3546
  }
3496
3547
  },
@@ -3522,10 +3573,18 @@ var contract_default = {
3522
3573
  "kind": "scalar"
3523
3574
  }
3524
3575
  },
3576
+ "pathTokens": {
3577
+ "many": { "elementNullable": true },
3578
+ "nullable": true,
3579
+ "type": {
3580
+ "codecId": "pg/text@1",
3581
+ "kind": "scalar"
3582
+ }
3583
+ },
3525
3584
  "updatedAt": {
3526
3585
  "nullable": true,
3527
3586
  "type": {
3528
- "codecId": "pg/timestamptz@1",
3587
+ "codecId": "pg/timestamptz-temporal@1",
3529
3588
  "kind": "scalar"
3530
3589
  }
3531
3590
  },
@@ -3546,6 +3605,7 @@ var contract_default = {
3546
3605
  },
3547
3606
  "relations": { "bucket": {
3548
3607
  "cardinality": "N:1",
3608
+ "nullable": true,
3549
3609
  "on": {
3550
3610
  "localFields": ["bucketId"],
3551
3611
  "targetFields": ["id"]
@@ -3565,6 +3625,7 @@ var contract_default = {
3565
3625
  "name": { "column": "name" },
3566
3626
  "owner": { "column": "owner" },
3567
3627
  "ownerId": { "column": "owner_id" },
3628
+ "pathTokens": { "column": "path_tokens" },
3568
3629
  "updatedAt": { "column": "updated_at" },
3569
3630
  "userMetadata": { "column": "user_metadata" },
3570
3631
  "version": { "column": "version" }
@@ -3585,7 +3646,7 @@ var contract_default = {
3585
3646
  "createdAt": {
3586
3647
  "nullable": false,
3587
3648
  "type": {
3588
- "codecId": "pg/timestamptz@1",
3649
+ "codecId": "pg/timestamptz-temporal@1",
3589
3650
  "kind": "scalar"
3590
3651
  }
3591
3652
  },
@@ -3634,13 +3695,14 @@ var contract_default = {
3634
3695
  "updatedAt": {
3635
3696
  "nullable": false,
3636
3697
  "type": {
3637
- "codecId": "pg/timestamptz@1",
3698
+ "codecId": "pg/timestamptz-temporal@1",
3638
3699
  "kind": "scalar"
3639
3700
  }
3640
3701
  }
3641
3702
  },
3642
3703
  "relations": { "bucket": {
3643
3704
  "cardinality": "N:1",
3705
+ "nullable": false,
3644
3706
  "on": {
3645
3707
  "localFields": ["bucketId"],
3646
3708
  "targetFields": ["id"]
@@ -3852,37 +3914,34 @@ var contract_default = {
3852
3914
  "audit_log_entries": {
3853
3915
  "columns": {
3854
3916
  "created_at": {
3855
- "codecId": "pg/timestamptz@1",
3856
- "nativeType": "timestamptz",
3917
+ "codecId": "pg/timestamptz-temporal@1",
3918
+ "dataType": "pg/timestamptz",
3857
3919
  "nullable": true
3858
3920
  },
3859
3921
  "id": {
3860
3922
  "codecId": "pg/uuid@1",
3861
- "nativeType": "uuid",
3862
- "nullable": false,
3863
- "typeRef": "Id"
3923
+ "dataType": "pg/uuid",
3924
+ "nullable": false
3864
3925
  },
3865
3926
  "instance_id": {
3866
3927
  "codecId": "pg/uuid@1",
3867
- "nativeType": "uuid",
3868
- "nullable": true,
3869
- "typeRef": "Id"
3928
+ "dataType": "pg/uuid",
3929
+ "nullable": true
3870
3930
  },
3871
3931
  "ip_address": {
3872
3932
  "codecId": "sql/varchar@1",
3933
+ "dataType": "pg/varchar",
3873
3934
  "default": {
3874
3935
  "kind": "literal",
3875
3936
  "value": ""
3876
3937
  },
3877
- "nativeType": "character varying",
3878
3938
  "nullable": false,
3879
- "typeRef": "IpAddress2"
3939
+ "typeParams": { "length": 64 }
3880
3940
  },
3881
3941
  "payload": {
3882
3942
  "codecId": "pg/json@1",
3883
- "nativeType": "json",
3884
- "nullable": true,
3885
- "typeRef": "Payload"
3943
+ "dataType": "pg/json",
3944
+ "nullable": true
3886
3945
  }
3887
3946
  },
3888
3947
  "foreignKeys": [],
@@ -3898,172 +3957,245 @@ var contract_default = {
3898
3957
  "uniques": []
3899
3958
  },
3900
3959
  "custom_oauth_providers": {
3960
+ "checks": [
3961
+ {
3962
+ "expression": "((authorization_url IS NULL) OR (authorization_url ~~ 'https://%'::text))",
3963
+ "name": "custom_oauth_providers_authorization_url_https"
3964
+ },
3965
+ {
3966
+ "expression": "((authorization_url IS NULL) OR (char_length(authorization_url) <= 2048))",
3967
+ "name": "custom_oauth_providers_authorization_url_length"
3968
+ },
3969
+ {
3970
+ "expression": "((char_length(client_id) >= 1) AND (char_length(client_id) <= 512))",
3971
+ "name": "custom_oauth_providers_client_id_length"
3972
+ },
3973
+ {
3974
+ "expression": "((discovery_url IS NULL) OR (char_length(discovery_url) <= 2048))",
3975
+ "name": "custom_oauth_providers_discovery_url_length"
3976
+ },
3977
+ {
3978
+ "expression": "(identifier ~ '^[a-z0-9][a-z0-9:-]{0,48}[a-z0-9]$'::text)",
3979
+ "name": "custom_oauth_providers_identifier_format"
3980
+ },
3981
+ {
3982
+ "expression": "((issuer IS NULL) OR ((char_length(issuer) >= 1) AND (char_length(issuer) <= 2048)))",
3983
+ "name": "custom_oauth_providers_issuer_length"
3984
+ },
3985
+ {
3986
+ "expression": "((jwks_uri IS NULL) OR (jwks_uri ~~ 'https://%'::text))",
3987
+ "name": "custom_oauth_providers_jwks_uri_https"
3988
+ },
3989
+ {
3990
+ "expression": "((jwks_uri IS NULL) OR (char_length(jwks_uri) <= 2048))",
3991
+ "name": "custom_oauth_providers_jwks_uri_length"
3992
+ },
3993
+ {
3994
+ "expression": "((char_length(name) >= 1) AND (char_length(name) <= 100))",
3995
+ "name": "custom_oauth_providers_name_length"
3996
+ },
3997
+ {
3998
+ "expression": "((provider_type <> 'oauth2'::text) OR ((authorization_url IS NOT NULL) AND (token_url IS NOT NULL) AND (userinfo_url IS NOT NULL)))",
3999
+ "name": "custom_oauth_providers_oauth2_requires_endpoints"
4000
+ },
4001
+ {
4002
+ "expression": "((provider_type <> 'oidc'::text) OR (discovery_url IS NULL) OR (discovery_url ~~ 'https://%'::text))",
4003
+ "name": "custom_oauth_providers_oidc_discovery_url_https"
4004
+ },
4005
+ {
4006
+ "expression": "((provider_type <> 'oidc'::text) OR (issuer IS NULL) OR (issuer ~~ 'https://%'::text))",
4007
+ "name": "custom_oauth_providers_oidc_issuer_https"
4008
+ },
4009
+ {
4010
+ "expression": "((provider_type <> 'oidc'::text) OR (issuer IS NOT NULL))",
4011
+ "name": "custom_oauth_providers_oidc_requires_issuer"
4012
+ },
4013
+ {
4014
+ "expression": "(provider_type = ANY (ARRAY['oauth2'::text, 'oidc'::text]))",
4015
+ "name": "custom_oauth_providers_provider_type_check"
4016
+ },
4017
+ {
4018
+ "expression": "((token_url IS NULL) OR (token_url ~~ 'https://%'::text))",
4019
+ "name": "custom_oauth_providers_token_url_https"
4020
+ },
4021
+ {
4022
+ "expression": "((token_url IS NULL) OR (char_length(token_url) <= 2048))",
4023
+ "name": "custom_oauth_providers_token_url_length"
4024
+ },
4025
+ {
4026
+ "expression": "((userinfo_url IS NULL) OR (userinfo_url ~~ 'https://%'::text))",
4027
+ "name": "custom_oauth_providers_userinfo_url_https"
4028
+ },
4029
+ {
4030
+ "expression": "((userinfo_url IS NULL) OR (char_length(userinfo_url) <= 2048))",
4031
+ "name": "custom_oauth_providers_userinfo_url_length"
4032
+ }
4033
+ ],
3901
4034
  "columns": {
3902
4035
  "acceptable_client_ids": {
3903
4036
  "codecId": "pg/text@1",
4037
+ "dataType": "pg/text",
3904
4038
  "default": {
3905
4039
  "kind": "literal",
3906
4040
  "value": []
3907
4041
  },
3908
- "many": true,
3909
- "nativeType": "text",
4042
+ "many": { "elementNullable": true },
3910
4043
  "nullable": false
3911
4044
  },
3912
4045
  "attribute_mapping": {
3913
4046
  "codecId": "pg/jsonb@1",
4047
+ "dataType": "pg/jsonb",
3914
4048
  "default": {
3915
- "expression": "'{}'::jsonb",
3916
- "kind": "function"
4049
+ "kind": "literal",
4050
+ "value": {}
3917
4051
  },
3918
- "nativeType": "jsonb",
3919
4052
  "nullable": false
3920
4053
  },
3921
4054
  "authorization_params": {
3922
4055
  "codecId": "pg/jsonb@1",
4056
+ "dataType": "pg/jsonb",
3923
4057
  "default": {
3924
- "expression": "'{}'::jsonb",
3925
- "kind": "function"
4058
+ "kind": "literal",
4059
+ "value": {}
3926
4060
  },
3927
- "nativeType": "jsonb",
3928
4061
  "nullable": false
3929
4062
  },
3930
4063
  "authorization_url": {
3931
4064
  "codecId": "pg/text@1",
3932
- "nativeType": "text",
4065
+ "dataType": "pg/text",
3933
4066
  "nullable": true
3934
4067
  },
3935
4068
  "cached_discovery": {
3936
4069
  "codecId": "pg/jsonb@1",
3937
- "nativeType": "jsonb",
4070
+ "dataType": "pg/jsonb",
3938
4071
  "nullable": true
3939
4072
  },
3940
4073
  "client_id": {
3941
4074
  "codecId": "pg/text@1",
3942
- "nativeType": "text",
4075
+ "dataType": "pg/text",
3943
4076
  "nullable": false
3944
4077
  },
3945
4078
  "client_secret": {
3946
4079
  "codecId": "pg/text@1",
3947
- "nativeType": "text",
4080
+ "dataType": "pg/text",
3948
4081
  "nullable": false
3949
4082
  },
3950
4083
  "created_at": {
3951
- "codecId": "pg/timestamptz@1",
4084
+ "codecId": "pg/timestamptz-temporal@1",
4085
+ "dataType": "pg/timestamptz",
3952
4086
  "default": {
3953
4087
  "expression": "now()",
3954
4088
  "kind": "function"
3955
4089
  },
3956
- "nativeType": "timestamptz",
3957
4090
  "nullable": false
3958
4091
  },
3959
4092
  "discovery_cached_at": {
3960
- "codecId": "pg/timestamptz@1",
3961
- "nativeType": "timestamptz",
4093
+ "codecId": "pg/timestamptz-temporal@1",
4094
+ "dataType": "pg/timestamptz",
3962
4095
  "nullable": true
3963
4096
  },
3964
4097
  "discovery_url": {
3965
4098
  "codecId": "pg/text@1",
3966
- "nativeType": "text",
4099
+ "dataType": "pg/text",
3967
4100
  "nullable": true
3968
4101
  },
3969
4102
  "email_optional": {
3970
4103
  "codecId": "pg/bool@1",
4104
+ "dataType": "pg/bool",
3971
4105
  "default": {
3972
4106
  "kind": "literal",
3973
4107
  "value": false
3974
4108
  },
3975
- "nativeType": "bool",
3976
4109
  "nullable": false
3977
4110
  },
3978
4111
  "enabled": {
3979
4112
  "codecId": "pg/bool@1",
4113
+ "dataType": "pg/bool",
3980
4114
  "default": {
3981
4115
  "kind": "literal",
3982
4116
  "value": true
3983
4117
  },
3984
- "nativeType": "bool",
3985
4118
  "nullable": false
3986
4119
  },
3987
4120
  "id": {
3988
4121
  "codecId": "pg/uuid@1",
4122
+ "dataType": "pg/uuid",
3989
4123
  "default": {
3990
4124
  "expression": "gen_random_uuid()",
3991
4125
  "kind": "function"
3992
4126
  },
3993
- "nativeType": "uuid",
3994
- "nullable": false,
3995
- "typeRef": "Id"
4127
+ "nullable": false
3996
4128
  },
3997
4129
  "identifier": {
3998
4130
  "codecId": "pg/text@1",
3999
- "nativeType": "text",
4131
+ "dataType": "pg/text",
4000
4132
  "nullable": false
4001
4133
  },
4002
4134
  "issuer": {
4003
4135
  "codecId": "pg/text@1",
4004
- "nativeType": "text",
4136
+ "dataType": "pg/text",
4005
4137
  "nullable": true
4006
4138
  },
4007
4139
  "jwks_uri": {
4008
4140
  "codecId": "pg/text@1",
4009
- "nativeType": "text",
4141
+ "dataType": "pg/text",
4010
4142
  "nullable": true
4011
4143
  },
4012
4144
  "name": {
4013
4145
  "codecId": "pg/text@1",
4014
- "nativeType": "text",
4146
+ "dataType": "pg/text",
4015
4147
  "nullable": false
4016
4148
  },
4017
4149
  "pkce_enabled": {
4018
4150
  "codecId": "pg/bool@1",
4151
+ "dataType": "pg/bool",
4019
4152
  "default": {
4020
4153
  "kind": "literal",
4021
4154
  "value": true
4022
4155
  },
4023
- "nativeType": "bool",
4024
4156
  "nullable": false
4025
4157
  },
4026
4158
  "provider_type": {
4027
4159
  "codecId": "pg/text@1",
4028
- "nativeType": "text",
4160
+ "dataType": "pg/text",
4029
4161
  "nullable": false
4030
4162
  },
4031
4163
  "scopes": {
4032
4164
  "codecId": "pg/text@1",
4165
+ "dataType": "pg/text",
4033
4166
  "default": {
4034
4167
  "kind": "literal",
4035
4168
  "value": []
4036
4169
  },
4037
- "many": true,
4038
- "nativeType": "text",
4170
+ "many": { "elementNullable": true },
4039
4171
  "nullable": false
4040
4172
  },
4041
4173
  "skip_nonce_check": {
4042
4174
  "codecId": "pg/bool@1",
4175
+ "dataType": "pg/bool",
4043
4176
  "default": {
4044
4177
  "kind": "literal",
4045
4178
  "value": false
4046
4179
  },
4047
- "nativeType": "bool",
4048
4180
  "nullable": false
4049
4181
  },
4050
4182
  "token_url": {
4051
4183
  "codecId": "pg/text@1",
4052
- "nativeType": "text",
4184
+ "dataType": "pg/text",
4053
4185
  "nullable": true
4054
4186
  },
4055
4187
  "updated_at": {
4056
- "codecId": "pg/timestamptz@1",
4188
+ "codecId": "pg/timestamptz-temporal@1",
4189
+ "dataType": "pg/timestamptz",
4057
4190
  "default": {
4058
4191
  "expression": "now()",
4059
4192
  "kind": "function"
4060
4193
  },
4061
- "nativeType": "timestamptz",
4062
4194
  "nullable": false
4063
4195
  },
4064
4196
  "userinfo_url": {
4065
4197
  "codecId": "pg/text@1",
4066
- "nativeType": "text",
4198
+ "dataType": "pg/text",
4067
4199
  "nullable": true
4068
4200
  }
4069
4201
  },
@@ -4103,27 +4235,27 @@ var contract_default = {
4103
4235
  "columns": {
4104
4236
  "auth_code": {
4105
4237
  "codecId": "pg/text@1",
4106
- "nativeType": "text",
4238
+ "dataType": "pg/text",
4107
4239
  "nullable": true
4108
4240
  },
4109
4241
  "auth_code_issued_at": {
4110
- "codecId": "pg/timestamptz@1",
4111
- "nativeType": "timestamptz",
4242
+ "codecId": "pg/timestamptz-temporal@1",
4243
+ "dataType": "pg/timestamptz",
4112
4244
  "nullable": true
4113
4245
  },
4114
4246
  "authentication_method": {
4115
4247
  "codecId": "pg/text@1",
4116
- "nativeType": "text",
4248
+ "dataType": "pg/text",
4117
4249
  "nullable": false
4118
4250
  },
4119
4251
  "code_challenge": {
4120
4252
  "codecId": "pg/text@1",
4121
- "nativeType": "text",
4253
+ "dataType": "pg/text",
4122
4254
  "nullable": true
4123
4255
  },
4124
4256
  "code_challenge_method": {
4125
4257
  "codecId": "pg/enum@1",
4126
- "nativeType": "auth.code_challenge_method",
4258
+ "dataType": "pg/enum",
4127
4259
  "nullable": true,
4128
4260
  "typeParams": { "typeName": "auth.code_challenge_method" },
4129
4261
  "valueSet": {
@@ -4134,72 +4266,68 @@ var contract_default = {
4134
4266
  }
4135
4267
  },
4136
4268
  "created_at": {
4137
- "codecId": "pg/timestamptz@1",
4138
- "nativeType": "timestamptz",
4269
+ "codecId": "pg/timestamptz-temporal@1",
4270
+ "dataType": "pg/timestamptz",
4139
4271
  "nullable": true
4140
4272
  },
4141
4273
  "email_optional": {
4142
4274
  "codecId": "pg/bool@1",
4275
+ "dataType": "pg/bool",
4143
4276
  "default": {
4144
4277
  "kind": "literal",
4145
4278
  "value": false
4146
4279
  },
4147
- "nativeType": "bool",
4148
4280
  "nullable": false
4149
4281
  },
4150
4282
  "id": {
4151
4283
  "codecId": "pg/uuid@1",
4152
- "nativeType": "uuid",
4153
- "nullable": false,
4154
- "typeRef": "Id"
4284
+ "dataType": "pg/uuid",
4285
+ "nullable": false
4155
4286
  },
4156
4287
  "invite_token": {
4157
4288
  "codecId": "pg/text@1",
4158
- "nativeType": "text",
4289
+ "dataType": "pg/text",
4159
4290
  "nullable": true
4160
4291
  },
4161
4292
  "linking_target_id": {
4162
4293
  "codecId": "pg/uuid@1",
4163
- "nativeType": "uuid",
4164
- "nullable": true,
4165
- "typeRef": "Id"
4294
+ "dataType": "pg/uuid",
4295
+ "nullable": true
4166
4296
  },
4167
4297
  "oauth_client_state_id": {
4168
4298
  "codecId": "pg/uuid@1",
4169
- "nativeType": "uuid",
4170
- "nullable": true,
4171
- "typeRef": "Id"
4299
+ "dataType": "pg/uuid",
4300
+ "nullable": true
4172
4301
  },
4173
4302
  "provider_access_token": {
4174
4303
  "codecId": "pg/text@1",
4175
- "nativeType": "text",
4304
+ "dataType": "pg/text",
4176
4305
  "nullable": true
4177
4306
  },
4178
4307
  "provider_refresh_token": {
4179
4308
  "codecId": "pg/text@1",
4180
- "nativeType": "text",
4309
+ "dataType": "pg/text",
4181
4310
  "nullable": true
4182
4311
  },
4183
4312
  "provider_type": {
4184
4313
  "codecId": "pg/text@1",
4185
- "nativeType": "text",
4314
+ "dataType": "pg/text",
4186
4315
  "nullable": false
4187
4316
  },
4188
4317
  "referrer": {
4189
4318
  "codecId": "pg/text@1",
4190
- "nativeType": "text",
4319
+ "dataType": "pg/text",
4191
4320
  "nullable": true
4192
4321
  },
4193
4322
  "updated_at": {
4194
- "codecId": "pg/timestamptz@1",
4195
- "nativeType": "timestamptz",
4323
+ "codecId": "pg/timestamptz-temporal@1",
4324
+ "dataType": "pg/timestamptz",
4196
4325
  "nullable": true
4197
4326
  },
4198
4327
  "user_id": {
4199
4328
  "codecId": "pg/uuid@1",
4200
- "nativeType": "uuid",
4201
- "nullable": true,
4202
- "typeRef": "Id"
4329
+ "dataType": "pg/uuid",
4330
+ "nullable": true
4203
4331
  }
4204
4332
  },
4205
4333
  "foreignKeys": [],
@@ -4229,58 +4357,57 @@ var contract_default = {
4229
4357
  "identities": {
4230
4358
  "columns": {
4231
4359
  "created_at": {
4232
- "codecId": "pg/timestamptz@1",
4233
- "nativeType": "timestamptz",
4360
+ "codecId": "pg/timestamptz-temporal@1",
4361
+ "dataType": "pg/timestamptz",
4234
4362
  "nullable": true
4235
4363
  },
4236
4364
  "email": {
4237
4365
  "codecId": "pg/text@1",
4238
- "nativeType": "text",
4366
+ "dataType": "pg/text",
4239
4367
  "nullable": true
4240
4368
  },
4241
4369
  "id": {
4242
4370
  "codecId": "pg/uuid@1",
4371
+ "dataType": "pg/uuid",
4243
4372
  "default": {
4244
4373
  "expression": "gen_random_uuid()",
4245
4374
  "kind": "function"
4246
4375
  },
4247
- "nativeType": "uuid",
4248
- "nullable": false,
4249
- "typeRef": "Id"
4376
+ "nullable": false
4250
4377
  },
4251
4378
  "identity_data": {
4252
4379
  "codecId": "pg/jsonb@1",
4253
- "nativeType": "jsonb",
4380
+ "dataType": "pg/jsonb",
4254
4381
  "nullable": false
4255
4382
  },
4256
4383
  "last_sign_in_at": {
4257
- "codecId": "pg/timestamptz@1",
4258
- "nativeType": "timestamptz",
4384
+ "codecId": "pg/timestamptz-temporal@1",
4385
+ "dataType": "pg/timestamptz",
4259
4386
  "nullable": true
4260
4387
  },
4261
4388
  "provider": {
4262
4389
  "codecId": "pg/text@1",
4263
- "nativeType": "text",
4390
+ "dataType": "pg/text",
4264
4391
  "nullable": false
4265
4392
  },
4266
4393
  "provider_id": {
4267
4394
  "codecId": "pg/text@1",
4268
- "nativeType": "text",
4395
+ "dataType": "pg/text",
4269
4396
  "nullable": false
4270
4397
  },
4271
4398
  "updated_at": {
4272
- "codecId": "pg/timestamptz@1",
4273
- "nativeType": "timestamptz",
4399
+ "codecId": "pg/timestamptz-temporal@1",
4400
+ "dataType": "pg/timestamptz",
4274
4401
  "nullable": true
4275
4402
  },
4276
4403
  "user_id": {
4277
4404
  "codecId": "pg/uuid@1",
4278
- "nativeType": "uuid",
4279
- "nullable": false,
4280
- "typeRef": "Id"
4405
+ "dataType": "pg/uuid",
4406
+ "nullable": false
4281
4407
  }
4282
4408
  },
4283
4409
  "foreignKeys": [{
4410
+ "index": { "name": "identities_user_id_idx" },
4284
4411
  "name": "identities_user_id_fkey",
4285
4412
  "onDelete": "cascade",
4286
4413
  "source": {
@@ -4315,31 +4442,29 @@ var contract_default = {
4315
4442
  "instances": {
4316
4443
  "columns": {
4317
4444
  "created_at": {
4318
- "codecId": "pg/timestamptz@1",
4319
- "nativeType": "timestamptz",
4445
+ "codecId": "pg/timestamptz-temporal@1",
4446
+ "dataType": "pg/timestamptz",
4320
4447
  "nullable": true
4321
4448
  },
4322
4449
  "id": {
4323
4450
  "codecId": "pg/uuid@1",
4324
- "nativeType": "uuid",
4325
- "nullable": false,
4326
- "typeRef": "Id"
4451
+ "dataType": "pg/uuid",
4452
+ "nullable": false
4327
4453
  },
4328
4454
  "raw_base_config": {
4329
4455
  "codecId": "pg/text@1",
4330
- "nativeType": "text",
4456
+ "dataType": "pg/text",
4331
4457
  "nullable": true
4332
4458
  },
4333
4459
  "updated_at": {
4334
- "codecId": "pg/timestamptz@1",
4335
- "nativeType": "timestamptz",
4460
+ "codecId": "pg/timestamptz-temporal@1",
4461
+ "dataType": "pg/timestamptz",
4336
4462
  "nullable": true
4337
4463
  },
4338
4464
  "uuid": {
4339
4465
  "codecId": "pg/uuid@1",
4340
- "nativeType": "uuid",
4341
- "nullable": true,
4342
- "typeRef": "Id"
4466
+ "dataType": "pg/uuid",
4467
+ "nullable": true
4343
4468
  }
4344
4469
  },
4345
4470
  "foreignKeys": [],
@@ -4354,33 +4479,32 @@ var contract_default = {
4354
4479
  "columns": {
4355
4480
  "authentication_method": {
4356
4481
  "codecId": "pg/text@1",
4357
- "nativeType": "text",
4482
+ "dataType": "pg/text",
4358
4483
  "nullable": false
4359
4484
  },
4360
4485
  "created_at": {
4361
- "codecId": "pg/timestamptz@1",
4362
- "nativeType": "timestamptz",
4486
+ "codecId": "pg/timestamptz-temporal@1",
4487
+ "dataType": "pg/timestamptz",
4363
4488
  "nullable": false
4364
4489
  },
4365
4490
  "id": {
4366
4491
  "codecId": "pg/uuid@1",
4367
- "nativeType": "uuid",
4368
- "nullable": false,
4369
- "typeRef": "Id"
4492
+ "dataType": "pg/uuid",
4493
+ "nullable": false
4370
4494
  },
4371
4495
  "session_id": {
4372
4496
  "codecId": "pg/uuid@1",
4373
- "nativeType": "uuid",
4374
- "nullable": false,
4375
- "typeRef": "Id"
4497
+ "dataType": "pg/uuid",
4498
+ "nullable": false
4376
4499
  },
4377
4500
  "updated_at": {
4378
- "codecId": "pg/timestamptz@1",
4379
- "nativeType": "timestamptz",
4501
+ "codecId": "pg/timestamptz-temporal@1",
4502
+ "dataType": "pg/timestamptz",
4380
4503
  "nullable": false
4381
4504
  }
4382
4505
  },
4383
4506
  "foreignKeys": [{
4507
+ "index": { "unique": ["session_id", "authentication_method"] },
4384
4508
  "name": "mfa_amr_claims_session_id_fkey",
4385
4509
  "onDelete": "cascade",
4386
4510
  "source": {
@@ -4407,41 +4531,38 @@ var contract_default = {
4407
4531
  "mfa_challenges": {
4408
4532
  "columns": {
4409
4533
  "created_at": {
4410
- "codecId": "pg/timestamptz@1",
4411
- "nativeType": "timestamptz",
4534
+ "codecId": "pg/timestamptz-temporal@1",
4535
+ "dataType": "pg/timestamptz",
4412
4536
  "nullable": false
4413
4537
  },
4414
4538
  "factor_id": {
4415
4539
  "codecId": "pg/uuid@1",
4416
- "nativeType": "uuid",
4417
- "nullable": false,
4418
- "typeRef": "Id"
4540
+ "dataType": "pg/uuid",
4541
+ "nullable": false
4419
4542
  },
4420
4543
  "id": {
4421
4544
  "codecId": "pg/uuid@1",
4422
- "nativeType": "uuid",
4423
- "nullable": false,
4424
- "typeRef": "Id"
4545
+ "dataType": "pg/uuid",
4546
+ "nullable": false
4425
4547
  },
4426
4548
  "ip_address": {
4427
4549
  "codecId": "pg/inet@1",
4428
- "nativeType": "inet",
4429
- "nullable": false,
4430
- "typeRef": "IpAddress"
4550
+ "dataType": "pg/inet",
4551
+ "nullable": false
4431
4552
  },
4432
4553
  "otp_code": {
4433
4554
  "codecId": "pg/text@1",
4434
- "nativeType": "text",
4555
+ "dataType": "pg/text",
4435
4556
  "nullable": true
4436
4557
  },
4437
4558
  "verified_at": {
4438
- "codecId": "pg/timestamptz@1",
4439
- "nativeType": "timestamptz",
4559
+ "codecId": "pg/timestamptz-temporal@1",
4560
+ "dataType": "pg/timestamptz",
4440
4561
  "nullable": true
4441
4562
  },
4442
4563
  "web_authn_session_data": {
4443
4564
  "codecId": "pg/jsonb@1",
4444
- "nativeType": "jsonb",
4565
+ "dataType": "pg/jsonb",
4445
4566
  "nullable": true
4446
4567
  }
4447
4568
  },
@@ -4473,13 +4594,13 @@ var contract_default = {
4473
4594
  "mfa_factors": {
4474
4595
  "columns": {
4475
4596
  "created_at": {
4476
- "codecId": "pg/timestamptz@1",
4477
- "nativeType": "timestamptz",
4597
+ "codecId": "pg/timestamptz-temporal@1",
4598
+ "dataType": "pg/timestamptz",
4478
4599
  "nullable": false
4479
4600
  },
4480
4601
  "factor_type": {
4481
4602
  "codecId": "pg/enum@1",
4482
- "nativeType": "auth.factor_type",
4603
+ "dataType": "pg/enum",
4483
4604
  "nullable": false,
4484
4605
  "typeParams": { "typeName": "auth.factor_type" },
4485
4606
  "valueSet": {
@@ -4491,38 +4612,37 @@ var contract_default = {
4491
4612
  },
4492
4613
  "friendly_name": {
4493
4614
  "codecId": "pg/text@1",
4494
- "nativeType": "text",
4615
+ "dataType": "pg/text",
4495
4616
  "nullable": true
4496
4617
  },
4497
4618
  "id": {
4498
4619
  "codecId": "pg/uuid@1",
4499
- "nativeType": "uuid",
4500
- "nullable": false,
4501
- "typeRef": "Id"
4620
+ "dataType": "pg/uuid",
4621
+ "nullable": false
4502
4622
  },
4503
4623
  "last_challenged_at": {
4504
- "codecId": "pg/timestamptz@1",
4505
- "nativeType": "timestamptz",
4624
+ "codecId": "pg/timestamptz-temporal@1",
4625
+ "dataType": "pg/timestamptz",
4506
4626
  "nullable": true
4507
4627
  },
4508
4628
  "last_webauthn_challenge_data": {
4509
4629
  "codecId": "pg/jsonb@1",
4510
- "nativeType": "jsonb",
4630
+ "dataType": "pg/jsonb",
4511
4631
  "nullable": true
4512
4632
  },
4513
4633
  "phone": {
4514
4634
  "codecId": "pg/text@1",
4515
- "nativeType": "text",
4635
+ "dataType": "pg/text",
4516
4636
  "nullable": true
4517
4637
  },
4518
4638
  "secret": {
4519
4639
  "codecId": "pg/text@1",
4520
- "nativeType": "text",
4640
+ "dataType": "pg/text",
4521
4641
  "nullable": true
4522
4642
  },
4523
4643
  "status": {
4524
4644
  "codecId": "pg/enum@1",
4525
- "nativeType": "auth.factor_status",
4645
+ "dataType": "pg/enum",
4526
4646
  "nullable": false,
4527
4647
  "typeParams": { "typeName": "auth.factor_status" },
4528
4648
  "valueSet": {
@@ -4533,29 +4653,28 @@ var contract_default = {
4533
4653
  }
4534
4654
  },
4535
4655
  "updated_at": {
4536
- "codecId": "pg/timestamptz@1",
4537
- "nativeType": "timestamptz",
4656
+ "codecId": "pg/timestamptz-temporal@1",
4657
+ "dataType": "pg/timestamptz",
4538
4658
  "nullable": false
4539
4659
  },
4540
4660
  "user_id": {
4541
4661
  "codecId": "pg/uuid@1",
4542
- "nativeType": "uuid",
4543
- "nullable": false,
4544
- "typeRef": "Id"
4662
+ "dataType": "pg/uuid",
4663
+ "nullable": false
4545
4664
  },
4546
4665
  "web_authn_aaguid": {
4547
4666
  "codecId": "pg/uuid@1",
4548
- "nativeType": "uuid",
4549
- "nullable": true,
4550
- "typeRef": "Id"
4667
+ "dataType": "pg/uuid",
4668
+ "nullable": true
4551
4669
  },
4552
4670
  "web_authn_credential": {
4553
4671
  "codecId": "pg/jsonb@1",
4554
- "nativeType": "jsonb",
4672
+ "dataType": "pg/jsonb",
4555
4673
  "nullable": true
4556
4674
  }
4557
4675
  },
4558
4676
  "foreignKeys": [{
4677
+ "index": { "name": "mfa_factors_user_id_idx" },
4559
4678
  "name": "mfa_factors_user_id_fkey",
4560
4679
  "onDelete": "cascade",
4561
4680
  "source": {
@@ -4602,36 +4721,69 @@ var contract_default = {
4602
4721
  }]
4603
4722
  },
4604
4723
  "oauth_authorizations": {
4724
+ "checks": [
4725
+ {
4726
+ "expression": "(char_length(authorization_code) <= 255)",
4727
+ "name": "oauth_authorizations_authorization_code_length"
4728
+ },
4729
+ {
4730
+ "expression": "(char_length(code_challenge) <= 128)",
4731
+ "name": "oauth_authorizations_code_challenge_length"
4732
+ },
4733
+ {
4734
+ "expression": "(expires_at > created_at)",
4735
+ "name": "oauth_authorizations_expires_at_future"
4736
+ },
4737
+ {
4738
+ "expression": "(char_length(nonce) <= 255)",
4739
+ "name": "oauth_authorizations_nonce_length"
4740
+ },
4741
+ {
4742
+ "expression": "(char_length(redirect_uri) <= 2048)",
4743
+ "name": "oauth_authorizations_redirect_uri_length"
4744
+ },
4745
+ {
4746
+ "expression": "(char_length(resource) <= 2048)",
4747
+ "name": "oauth_authorizations_resource_length"
4748
+ },
4749
+ {
4750
+ "expression": "(char_length(scope) <= 4096)",
4751
+ "name": "oauth_authorizations_scope_length"
4752
+ },
4753
+ {
4754
+ "expression": "(char_length(state) <= 4096)",
4755
+ "name": "oauth_authorizations_state_length"
4756
+ }
4757
+ ],
4605
4758
  "columns": {
4606
4759
  "approved_at": {
4607
- "codecId": "pg/timestamptz@1",
4608
- "nativeType": "timestamptz",
4760
+ "codecId": "pg/timestamptz-temporal@1",
4761
+ "dataType": "pg/timestamptz",
4609
4762
  "nullable": true
4610
4763
  },
4611
4764
  "authorization_code": {
4612
4765
  "codecId": "pg/text@1",
4613
- "nativeType": "text",
4766
+ "dataType": "pg/text",
4614
4767
  "nullable": true
4615
4768
  },
4616
4769
  "authorization_id": {
4617
4770
  "codecId": "pg/text@1",
4618
- "nativeType": "text",
4771
+ "dataType": "pg/text",
4619
4772
  "nullable": false
4620
4773
  },
4621
4774
  "client_id": {
4622
4775
  "codecId": "pg/uuid@1",
4623
- "nativeType": "uuid",
4624
- "nullable": false,
4625
- "typeRef": "Id"
4776
+ "dataType": "pg/uuid",
4777
+ "nullable": false
4626
4778
  },
4627
4779
  "code_challenge": {
4628
4780
  "codecId": "pg/text@1",
4629
- "nativeType": "text",
4781
+ "dataType": "pg/text",
4630
4782
  "nullable": true
4631
4783
  },
4632
4784
  "code_challenge_method": {
4633
4785
  "codecId": "pg/enum@1",
4634
- "nativeType": "auth.code_challenge_method",
4786
+ "dataType": "pg/enum",
4635
4787
  "nullable": true,
4636
4788
  "typeParams": { "typeName": "auth.code_challenge_method" },
4637
4789
  "valueSet": {
@@ -4642,51 +4794,50 @@ var contract_default = {
4642
4794
  }
4643
4795
  },
4644
4796
  "created_at": {
4645
- "codecId": "pg/timestamptz@1",
4797
+ "codecId": "pg/timestamptz-temporal@1",
4798
+ "dataType": "pg/timestamptz",
4646
4799
  "default": {
4647
4800
  "expression": "now()",
4648
4801
  "kind": "function"
4649
4802
  },
4650
- "nativeType": "timestamptz",
4651
4803
  "nullable": false
4652
4804
  },
4653
4805
  "expires_at": {
4654
- "codecId": "pg/timestamptz@1",
4806
+ "codecId": "pg/timestamptz-temporal@1",
4807
+ "dataType": "pg/timestamptz",
4655
4808
  "default": {
4656
4809
  "expression": "(now() + '00:03:00'::interval)",
4657
4810
  "kind": "function"
4658
4811
  },
4659
- "nativeType": "timestamptz",
4660
4812
  "nullable": false
4661
4813
  },
4662
4814
  "id": {
4663
4815
  "codecId": "pg/uuid@1",
4664
- "nativeType": "uuid",
4665
- "nullable": false,
4666
- "typeRef": "Id"
4816
+ "dataType": "pg/uuid",
4817
+ "nullable": false
4667
4818
  },
4668
4819
  "nonce": {
4669
4820
  "codecId": "pg/text@1",
4670
- "nativeType": "text",
4821
+ "dataType": "pg/text",
4671
4822
  "nullable": true
4672
4823
  },
4673
4824
  "redirect_uri": {
4674
4825
  "codecId": "pg/text@1",
4675
- "nativeType": "text",
4826
+ "dataType": "pg/text",
4676
4827
  "nullable": false
4677
4828
  },
4678
4829
  "resource": {
4679
4830
  "codecId": "pg/text@1",
4680
- "nativeType": "text",
4831
+ "dataType": "pg/text",
4681
4832
  "nullable": true
4682
4833
  },
4683
4834
  "response_type": {
4684
4835
  "codecId": "pg/enum@1",
4836
+ "dataType": "pg/enum",
4685
4837
  "default": {
4686
- "expression": "'code'::auth.oauth_response_type",
4687
- "kind": "function"
4838
+ "kind": "literal",
4839
+ "value": "code"
4688
4840
  },
4689
- "nativeType": "auth.oauth_response_type",
4690
4841
  "nullable": false,
4691
4842
  "typeParams": { "typeName": "auth.oauth_response_type" },
4692
4843
  "valueSet": {
@@ -4698,21 +4849,21 @@ var contract_default = {
4698
4849
  },
4699
4850
  "scope": {
4700
4851
  "codecId": "pg/text@1",
4701
- "nativeType": "text",
4852
+ "dataType": "pg/text",
4702
4853
  "nullable": false
4703
4854
  },
4704
4855
  "state": {
4705
4856
  "codecId": "pg/text@1",
4706
- "nativeType": "text",
4857
+ "dataType": "pg/text",
4707
4858
  "nullable": true
4708
4859
  },
4709
4860
  "status": {
4710
4861
  "codecId": "pg/enum@1",
4862
+ "dataType": "pg/enum",
4711
4863
  "default": {
4712
- "expression": "'pending'::auth.oauth_authorization_status",
4713
- "kind": "function"
4864
+ "kind": "literal",
4865
+ "value": "pending"
4714
4866
  },
4715
- "nativeType": "auth.oauth_authorization_status",
4716
4867
  "nullable": false,
4717
4868
  "typeParams": { "typeName": "auth.oauth_authorization_status" },
4718
4869
  "valueSet": {
@@ -4724,9 +4875,8 @@ var contract_default = {
4724
4875
  },
4725
4876
  "user_id": {
4726
4877
  "codecId": "pg/uuid@1",
4727
- "nativeType": "uuid",
4728
- "nullable": true,
4729
- "typeRef": "Id"
4878
+ "dataType": "pg/uuid",
4879
+ "nullable": true
4730
4880
  }
4731
4881
  },
4732
4882
  "foreignKeys": [{
@@ -4778,23 +4928,22 @@ var contract_default = {
4778
4928
  "columns": {
4779
4929
  "code_verifier": {
4780
4930
  "codecId": "pg/text@1",
4781
- "nativeType": "text",
4931
+ "dataType": "pg/text",
4782
4932
  "nullable": true
4783
4933
  },
4784
4934
  "created_at": {
4785
- "codecId": "pg/timestamptz@1",
4786
- "nativeType": "timestamptz",
4935
+ "codecId": "pg/timestamptz-temporal@1",
4936
+ "dataType": "pg/timestamptz",
4787
4937
  "nullable": false
4788
4938
  },
4789
4939
  "id": {
4790
4940
  "codecId": "pg/uuid@1",
4791
- "nativeType": "uuid",
4792
- "nullable": false,
4793
- "typeRef": "Id"
4941
+ "dataType": "pg/uuid",
4942
+ "nullable": false
4794
4943
  },
4795
4944
  "provider_type": {
4796
4945
  "codecId": "pg/text@1",
4797
- "nativeType": "text",
4946
+ "dataType": "pg/text",
4798
4947
  "nullable": false
4799
4948
  }
4800
4949
  },
@@ -4811,24 +4960,42 @@ var contract_default = {
4811
4960
  "uniques": []
4812
4961
  },
4813
4962
  "oauth_clients": {
4963
+ "checks": [
4964
+ {
4965
+ "expression": "(char_length(client_name) <= 1024)",
4966
+ "name": "oauth_clients_client_name_length"
4967
+ },
4968
+ {
4969
+ "expression": "(char_length(client_uri) <= 2048)",
4970
+ "name": "oauth_clients_client_uri_length"
4971
+ },
4972
+ {
4973
+ "expression": "(char_length(logo_uri) <= 2048)",
4974
+ "name": "oauth_clients_logo_uri_length"
4975
+ },
4976
+ {
4977
+ "expression": "(token_endpoint_auth_method = ANY (ARRAY['client_secret_basic'::text, 'client_secret_post'::text, 'none'::text]))",
4978
+ "name": "oauth_clients_token_endpoint_auth_method_check"
4979
+ }
4980
+ ],
4814
4981
  "columns": {
4815
4982
  "client_name": {
4816
4983
  "codecId": "pg/text@1",
4817
- "nativeType": "text",
4984
+ "dataType": "pg/text",
4818
4985
  "nullable": true
4819
4986
  },
4820
4987
  "client_secret_hash": {
4821
4988
  "codecId": "pg/text@1",
4822
- "nativeType": "text",
4989
+ "dataType": "pg/text",
4823
4990
  "nullable": true
4824
4991
  },
4825
4992
  "client_type": {
4826
4993
  "codecId": "pg/enum@1",
4994
+ "dataType": "pg/enum",
4827
4995
  "default": {
4828
- "expression": "'confidential'::auth.oauth_client_type",
4829
- "kind": "function"
4996
+ "kind": "literal",
4997
+ "value": "confidential"
4830
4998
  },
4831
- "nativeType": "auth.oauth_client_type",
4832
4999
  "nullable": false,
4833
5000
  "typeParams": { "typeName": "auth.oauth_client_type" },
4834
5001
  "valueSet": {
@@ -4840,47 +5007,46 @@ var contract_default = {
4840
5007
  },
4841
5008
  "client_uri": {
4842
5009
  "codecId": "pg/text@1",
4843
- "nativeType": "text",
5010
+ "dataType": "pg/text",
4844
5011
  "nullable": true
4845
5012
  },
4846
5013
  "created_at": {
4847
- "codecId": "pg/timestamptz@1",
5014
+ "codecId": "pg/timestamptz-temporal@1",
5015
+ "dataType": "pg/timestamptz",
4848
5016
  "default": {
4849
5017
  "expression": "now()",
4850
5018
  "kind": "function"
4851
5019
  },
4852
- "nativeType": "timestamptz",
4853
5020
  "nullable": false
4854
5021
  },
4855
5022
  "deleted_at": {
4856
- "codecId": "pg/timestamptz@1",
4857
- "nativeType": "timestamptz",
5023
+ "codecId": "pg/timestamptz-temporal@1",
5024
+ "dataType": "pg/timestamptz",
4858
5025
  "nullable": true
4859
5026
  },
4860
5027
  "grant_types": {
4861
5028
  "codecId": "pg/text@1",
4862
- "nativeType": "text",
5029
+ "dataType": "pg/text",
4863
5030
  "nullable": false
4864
5031
  },
4865
5032
  "id": {
4866
5033
  "codecId": "pg/uuid@1",
4867
- "nativeType": "uuid",
4868
- "nullable": false,
4869
- "typeRef": "Id"
5034
+ "dataType": "pg/uuid",
5035
+ "nullable": false
4870
5036
  },
4871
5037
  "logo_uri": {
4872
5038
  "codecId": "pg/text@1",
4873
- "nativeType": "text",
5039
+ "dataType": "pg/text",
4874
5040
  "nullable": true
4875
5041
  },
4876
5042
  "redirect_uris": {
4877
5043
  "codecId": "pg/text@1",
4878
- "nativeType": "text",
5044
+ "dataType": "pg/text",
4879
5045
  "nullable": false
4880
5046
  },
4881
5047
  "registration_type": {
4882
5048
  "codecId": "pg/enum@1",
4883
- "nativeType": "auth.oauth_registration_type",
5049
+ "dataType": "pg/enum",
4884
5050
  "nullable": false,
4885
5051
  "typeParams": { "typeName": "auth.oauth_registration_type" },
4886
5052
  "valueSet": {
@@ -4892,16 +5058,16 @@ var contract_default = {
4892
5058
  },
4893
5059
  "token_endpoint_auth_method": {
4894
5060
  "codecId": "pg/text@1",
4895
- "nativeType": "text",
5061
+ "dataType": "pg/text",
4896
5062
  "nullable": false
4897
5063
  },
4898
5064
  "updated_at": {
4899
- "codecId": "pg/timestamptz@1",
5065
+ "codecId": "pg/timestamptz-temporal@1",
5066
+ "dataType": "pg/timestamptz",
4900
5067
  "default": {
4901
5068
  "expression": "now()",
4902
5069
  "kind": "function"
4903
5070
  },
4904
- "nativeType": "timestamptz",
4905
5071
  "nullable": false
4906
5072
  }
4907
5073
  },
@@ -4918,43 +5084,54 @@ var contract_default = {
4918
5084
  "uniques": []
4919
5085
  },
4920
5086
  "oauth_consents": {
5087
+ "checks": [
5088
+ {
5089
+ "expression": "((revoked_at IS NULL) OR (revoked_at >= granted_at))",
5090
+ "name": "oauth_consents_revoked_after_granted"
5091
+ },
5092
+ {
5093
+ "expression": "(char_length(scopes) <= 2048)",
5094
+ "name": "oauth_consents_scopes_length"
5095
+ },
5096
+ {
5097
+ "expression": "(char_length(TRIM(BOTH FROM scopes)) > 0)",
5098
+ "name": "oauth_consents_scopes_not_empty"
5099
+ }
5100
+ ],
4921
5101
  "columns": {
4922
5102
  "client_id": {
4923
5103
  "codecId": "pg/uuid@1",
4924
- "nativeType": "uuid",
4925
- "nullable": false,
4926
- "typeRef": "Id"
5104
+ "dataType": "pg/uuid",
5105
+ "nullable": false
4927
5106
  },
4928
5107
  "granted_at": {
4929
- "codecId": "pg/timestamptz@1",
5108
+ "codecId": "pg/timestamptz-temporal@1",
5109
+ "dataType": "pg/timestamptz",
4930
5110
  "default": {
4931
5111
  "expression": "now()",
4932
5112
  "kind": "function"
4933
5113
  },
4934
- "nativeType": "timestamptz",
4935
5114
  "nullable": false
4936
5115
  },
4937
5116
  "id": {
4938
5117
  "codecId": "pg/uuid@1",
4939
- "nativeType": "uuid",
4940
- "nullable": false,
4941
- "typeRef": "Id"
5118
+ "dataType": "pg/uuid",
5119
+ "nullable": false
4942
5120
  },
4943
5121
  "revoked_at": {
4944
- "codecId": "pg/timestamptz@1",
4945
- "nativeType": "timestamptz",
5122
+ "codecId": "pg/timestamptz-temporal@1",
5123
+ "dataType": "pg/timestamptz",
4946
5124
  "nullable": true
4947
5125
  },
4948
5126
  "scopes": {
4949
5127
  "codecId": "pg/text@1",
4950
- "nativeType": "text",
5128
+ "dataType": "pg/text",
4951
5129
  "nullable": false
4952
5130
  },
4953
5131
  "user_id": {
4954
5132
  "codecId": "pg/uuid@1",
4955
- "nativeType": "uuid",
4956
- "nullable": false,
4957
- "typeRef": "Id"
5133
+ "dataType": "pg/uuid",
5134
+ "nullable": false
4958
5135
  }
4959
5136
  },
4960
5137
  "foreignKeys": [{
@@ -4971,6 +5148,7 @@ var contract_default = {
4971
5148
  "tableName": "oauth_clients"
4972
5149
  }
4973
5150
  }, {
5151
+ "index": { "unique": ["user_id", "client_id"] },
4974
5152
  "name": "oauth_consents_user_id_fkey",
4975
5153
  "onDelete": "cascade",
4976
5154
  "source": {
@@ -5013,36 +5191,38 @@ var contract_default = {
5013
5191
  }]
5014
5192
  },
5015
5193
  "one_time_tokens": {
5194
+ "checks": [{
5195
+ "expression": "(char_length(token_hash) > 0)",
5196
+ "name": "one_time_tokens_token_hash_check"
5197
+ }],
5016
5198
  "columns": {
5017
5199
  "created_at": {
5018
- "codecId": "pg/timestamp@1",
5200
+ "codecId": "pg/timestamp-temporal@1",
5201
+ "dataType": "pg/timestamp",
5019
5202
  "default": {
5020
5203
  "expression": "now()",
5021
5204
  "kind": "function"
5022
5205
  },
5023
- "nativeType": "timestamp",
5024
- "nullable": false,
5025
- "typeRef": "CreatedAt"
5206
+ "nullable": false
5026
5207
  },
5027
5208
  "id": {
5028
5209
  "codecId": "pg/uuid@1",
5029
- "nativeType": "uuid",
5030
- "nullable": false,
5031
- "typeRef": "Id"
5210
+ "dataType": "pg/uuid",
5211
+ "nullable": false
5032
5212
  },
5033
5213
  "relates_to": {
5034
5214
  "codecId": "pg/text@1",
5035
- "nativeType": "text",
5215
+ "dataType": "pg/text",
5036
5216
  "nullable": false
5037
5217
  },
5038
5218
  "token_hash": {
5039
5219
  "codecId": "pg/text@1",
5040
- "nativeType": "text",
5220
+ "dataType": "pg/text",
5041
5221
  "nullable": false
5042
5222
  },
5043
5223
  "token_type": {
5044
5224
  "codecId": "pg/enum@1",
5045
- "nativeType": "auth.one_time_token_type",
5225
+ "dataType": "pg/enum",
5046
5226
  "nullable": false,
5047
5227
  "typeParams": { "typeName": "auth.one_time_token_type" },
5048
5228
  "valueSet": {
@@ -5053,23 +5233,22 @@ var contract_default = {
5053
5233
  }
5054
5234
  },
5055
5235
  "updated_at": {
5056
- "codecId": "pg/timestamp@1",
5236
+ "codecId": "pg/timestamp-temporal@1",
5237
+ "dataType": "pg/timestamp",
5057
5238
  "default": {
5058
5239
  "expression": "now()",
5059
5240
  "kind": "function"
5060
5241
  },
5061
- "nativeType": "timestamp",
5062
- "nullable": false,
5063
- "typeRef": "CreatedAt"
5242
+ "nullable": false
5064
5243
  },
5065
5244
  "user_id": {
5066
5245
  "codecId": "pg/uuid@1",
5067
- "nativeType": "uuid",
5068
- "nullable": false,
5069
- "typeRef": "Id"
5246
+ "dataType": "pg/uuid",
5247
+ "nullable": false
5070
5248
  }
5071
5249
  },
5072
5250
  "foreignKeys": [{
5251
+ "index": { "name": "one_time_tokens_user_id_token_type_key" },
5073
5252
  "name": "one_time_tokens_user_id_fkey",
5074
5253
  "onDelete": "cascade",
5075
5254
  "source": {
@@ -5111,61 +5290,60 @@ var contract_default = {
5111
5290
  "refresh_tokens": {
5112
5291
  "columns": {
5113
5292
  "created_at": {
5114
- "codecId": "pg/timestamptz@1",
5115
- "nativeType": "timestamptz",
5293
+ "codecId": "pg/timestamptz-temporal@1",
5294
+ "dataType": "pg/timestamptz",
5116
5295
  "nullable": true
5117
5296
  },
5118
5297
  "id": {
5119
5298
  "codecId": "pg/int8@1",
5299
+ "dataType": "pg/int8",
5120
5300
  "default": {
5121
5301
  "expression": "autoincrement()",
5122
5302
  "kind": "function"
5123
5303
  },
5124
- "nativeType": "int8",
5125
5304
  "nullable": false
5126
5305
  },
5127
5306
  "instance_id": {
5128
5307
  "codecId": "pg/uuid@1",
5129
- "nativeType": "uuid",
5130
- "nullable": true,
5131
- "typeRef": "Id"
5308
+ "dataType": "pg/uuid",
5309
+ "nullable": true
5132
5310
  },
5133
5311
  "parent": {
5134
5312
  "codecId": "sql/varchar@1",
5135
- "nativeType": "character varying",
5313
+ "dataType": "pg/varchar",
5136
5314
  "nullable": true,
5137
- "typeRef": "Parent"
5315
+ "typeParams": { "length": 255 }
5138
5316
  },
5139
5317
  "revoked": {
5140
5318
  "codecId": "pg/bool@1",
5141
- "nativeType": "bool",
5319
+ "dataType": "pg/bool",
5142
5320
  "nullable": true
5143
5321
  },
5144
5322
  "session_id": {
5145
5323
  "codecId": "pg/uuid@1",
5146
- "nativeType": "uuid",
5147
- "nullable": true,
5148
- "typeRef": "Id"
5324
+ "dataType": "pg/uuid",
5325
+ "nullable": true
5149
5326
  },
5150
5327
  "token": {
5151
5328
  "codecId": "sql/varchar@1",
5152
- "nativeType": "character varying",
5329
+ "dataType": "pg/varchar",
5153
5330
  "nullable": true,
5154
- "typeRef": "Parent"
5331
+ "typeParams": { "length": 255 }
5155
5332
  },
5156
5333
  "updated_at": {
5157
- "codecId": "pg/timestamptz@1",
5158
- "nativeType": "timestamptz",
5334
+ "codecId": "pg/timestamptz-temporal@1",
5335
+ "dataType": "pg/timestamptz",
5159
5336
  "nullable": true
5160
5337
  },
5161
5338
  "user_id": {
5162
5339
  "codecId": "sql/varchar@1",
5163
- "nativeType": "character varying",
5340
+ "dataType": "pg/varchar",
5164
5341
  "nullable": true,
5165
- "typeRef": "Parent"
5342
+ "typeParams": { "length": 255 }
5166
5343
  }
5167
5344
  },
5168
5345
  "foreignKeys": [{
5346
+ "index": { "name": "refresh_tokens_session_id_revoked_idx" },
5169
5347
  "name": "refresh_tokens_session_id_fkey",
5170
5348
  "onDelete": "cascade",
5171
5349
  "source": {
@@ -5216,56 +5394,69 @@ var contract_default = {
5216
5394
  }]
5217
5395
  },
5218
5396
  "saml_providers": {
5397
+ "checks": [
5398
+ {
5399
+ "expression": "(char_length(entity_id) > 0)",
5400
+ "name": "entity_id not empty"
5401
+ },
5402
+ {
5403
+ "expression": "((metadata_url = NULL::text) OR (char_length(metadata_url) > 0))",
5404
+ "name": "metadata_url not empty"
5405
+ },
5406
+ {
5407
+ "expression": "(char_length(metadata_xml) > 0)",
5408
+ "name": "metadata_xml not empty"
5409
+ }
5410
+ ],
5219
5411
  "columns": {
5220
5412
  "attribute_mapping": {
5221
5413
  "codecId": "pg/jsonb@1",
5222
- "nativeType": "jsonb",
5414
+ "dataType": "pg/jsonb",
5223
5415
  "nullable": true
5224
5416
  },
5225
5417
  "created_at": {
5226
- "codecId": "pg/timestamptz@1",
5227
- "nativeType": "timestamptz",
5418
+ "codecId": "pg/timestamptz-temporal@1",
5419
+ "dataType": "pg/timestamptz",
5228
5420
  "nullable": true
5229
5421
  },
5230
5422
  "entity_id": {
5231
5423
  "codecId": "pg/text@1",
5232
- "nativeType": "text",
5424
+ "dataType": "pg/text",
5233
5425
  "nullable": false
5234
5426
  },
5235
5427
  "id": {
5236
5428
  "codecId": "pg/uuid@1",
5237
- "nativeType": "uuid",
5238
- "nullable": false,
5239
- "typeRef": "Id"
5429
+ "dataType": "pg/uuid",
5430
+ "nullable": false
5240
5431
  },
5241
5432
  "metadata_url": {
5242
5433
  "codecId": "pg/text@1",
5243
- "nativeType": "text",
5434
+ "dataType": "pg/text",
5244
5435
  "nullable": true
5245
5436
  },
5246
5437
  "metadata_xml": {
5247
5438
  "codecId": "pg/text@1",
5248
- "nativeType": "text",
5439
+ "dataType": "pg/text",
5249
5440
  "nullable": false
5250
5441
  },
5251
5442
  "name_id_format": {
5252
5443
  "codecId": "pg/text@1",
5253
- "nativeType": "text",
5444
+ "dataType": "pg/text",
5254
5445
  "nullable": true
5255
5446
  },
5256
5447
  "sso_provider_id": {
5257
5448
  "codecId": "pg/uuid@1",
5258
- "nativeType": "uuid",
5259
- "nullable": false,
5260
- "typeRef": "Id"
5449
+ "dataType": "pg/uuid",
5450
+ "nullable": false
5261
5451
  },
5262
5452
  "updated_at": {
5263
- "codecId": "pg/timestamptz@1",
5264
- "nativeType": "timestamptz",
5453
+ "codecId": "pg/timestamptz-temporal@1",
5454
+ "dataType": "pg/timestamptz",
5265
5455
  "nullable": true
5266
5456
  }
5267
5457
  },
5268
5458
  "foreignKeys": [{
5459
+ "index": { "name": "saml_providers_sso_provider_id_idx" },
5269
5460
  "name": "saml_providers_sso_provider_id_fkey",
5270
5461
  "onDelete": "cascade",
5271
5462
  "source": {
@@ -5294,48 +5485,49 @@ var contract_default = {
5294
5485
  }]
5295
5486
  },
5296
5487
  "saml_relay_states": {
5488
+ "checks": [{
5489
+ "expression": "(char_length(request_id) > 0)",
5490
+ "name": "request_id not empty"
5491
+ }],
5297
5492
  "columns": {
5298
5493
  "created_at": {
5299
- "codecId": "pg/timestamptz@1",
5300
- "nativeType": "timestamptz",
5494
+ "codecId": "pg/timestamptz-temporal@1",
5495
+ "dataType": "pg/timestamptz",
5301
5496
  "nullable": true
5302
5497
  },
5303
5498
  "flow_state_id": {
5304
5499
  "codecId": "pg/uuid@1",
5305
- "nativeType": "uuid",
5306
- "nullable": true,
5307
- "typeRef": "Id"
5500
+ "dataType": "pg/uuid",
5501
+ "nullable": true
5308
5502
  },
5309
5503
  "for_email": {
5310
5504
  "codecId": "pg/text@1",
5311
- "nativeType": "text",
5505
+ "dataType": "pg/text",
5312
5506
  "nullable": true
5313
5507
  },
5314
5508
  "id": {
5315
5509
  "codecId": "pg/uuid@1",
5316
- "nativeType": "uuid",
5317
- "nullable": false,
5318
- "typeRef": "Id"
5510
+ "dataType": "pg/uuid",
5511
+ "nullable": false
5319
5512
  },
5320
5513
  "redirect_to": {
5321
5514
  "codecId": "pg/text@1",
5322
- "nativeType": "text",
5515
+ "dataType": "pg/text",
5323
5516
  "nullable": true
5324
5517
  },
5325
5518
  "request_id": {
5326
5519
  "codecId": "pg/text@1",
5327
- "nativeType": "text",
5520
+ "dataType": "pg/text",
5328
5521
  "nullable": false
5329
5522
  },
5330
5523
  "sso_provider_id": {
5331
5524
  "codecId": "pg/uuid@1",
5332
- "nativeType": "uuid",
5333
- "nullable": false,
5334
- "typeRef": "Id"
5525
+ "dataType": "pg/uuid",
5526
+ "nullable": false
5335
5527
  },
5336
5528
  "updated_at": {
5337
- "codecId": "pg/timestamptz@1",
5338
- "nativeType": "timestamptz",
5529
+ "codecId": "pg/timestamptz-temporal@1",
5530
+ "dataType": "pg/timestamptz",
5339
5531
  "nullable": true
5340
5532
  }
5341
5533
  },
@@ -5353,6 +5545,7 @@ var contract_default = {
5353
5545
  "tableName": "flow_state"
5354
5546
  }
5355
5547
  }, {
5548
+ "index": { "name": "saml_relay_states_sso_provider_id_idx" },
5356
5549
  "name": "saml_relay_states_sso_provider_id_fkey",
5357
5550
  "onDelete": "cascade",
5358
5551
  "source": {
@@ -5392,9 +5585,9 @@ var contract_default = {
5392
5585
  "schema_migrations": {
5393
5586
  "columns": { "version": {
5394
5587
  "codecId": "sql/varchar@1",
5395
- "nativeType": "character varying",
5588
+ "dataType": "pg/varchar",
5396
5589
  "nullable": false,
5397
- "typeRef": "Parent"
5590
+ "typeParams": { "length": 255 }
5398
5591
  } },
5399
5592
  "foreignKeys": [],
5400
5593
  "indexes": [],
@@ -5405,10 +5598,14 @@ var contract_default = {
5405
5598
  "uniques": []
5406
5599
  },
5407
5600
  "sessions": {
5601
+ "checks": [{
5602
+ "expression": "(char_length(scopes) <= 4096)",
5603
+ "name": "sessions_scopes_length"
5604
+ }],
5408
5605
  "columns": {
5409
5606
  "aal": {
5410
5607
  "codecId": "pg/enum@1",
5411
- "nativeType": "auth.aal_level",
5608
+ "dataType": "pg/enum",
5412
5609
  "nullable": true,
5413
5610
  "typeParams": { "typeName": "auth.aal_level" },
5414
5611
  "valueSet": {
@@ -5419,83 +5616,78 @@ var contract_default = {
5419
5616
  }
5420
5617
  },
5421
5618
  "created_at": {
5422
- "codecId": "pg/timestamptz@1",
5423
- "nativeType": "timestamptz",
5619
+ "codecId": "pg/timestamptz-temporal@1",
5620
+ "dataType": "pg/timestamptz",
5424
5621
  "nullable": true
5425
5622
  },
5426
5623
  "factor_id": {
5427
5624
  "codecId": "pg/uuid@1",
5428
- "nativeType": "uuid",
5429
- "nullable": true,
5430
- "typeRef": "Id"
5625
+ "dataType": "pg/uuid",
5626
+ "nullable": true
5431
5627
  },
5432
5628
  "id": {
5433
5629
  "codecId": "pg/uuid@1",
5434
- "nativeType": "uuid",
5435
- "nullable": false,
5436
- "typeRef": "Id"
5630
+ "dataType": "pg/uuid",
5631
+ "nullable": false
5437
5632
  },
5438
5633
  "ip": {
5439
5634
  "codecId": "pg/inet@1",
5440
- "nativeType": "inet",
5441
- "nullable": true,
5442
- "typeRef": "IpAddress"
5635
+ "dataType": "pg/inet",
5636
+ "nullable": true
5443
5637
  },
5444
5638
  "not_after": {
5445
- "codecId": "pg/timestamptz@1",
5446
- "nativeType": "timestamptz",
5639
+ "codecId": "pg/timestamptz-temporal@1",
5640
+ "dataType": "pg/timestamptz",
5447
5641
  "nullable": true
5448
5642
  },
5449
5643
  "oauth_client_id": {
5450
5644
  "codecId": "pg/uuid@1",
5451
- "nativeType": "uuid",
5452
- "nullable": true,
5453
- "typeRef": "Id"
5645
+ "dataType": "pg/uuid",
5646
+ "nullable": true
5454
5647
  },
5455
5648
  "refresh_token_counter": {
5456
5649
  "codecId": "pg/int8@1",
5457
- "nativeType": "int8",
5650
+ "dataType": "pg/int8",
5458
5651
  "nullable": true
5459
5652
  },
5460
5653
  "refresh_token_hmac_key": {
5461
5654
  "codecId": "pg/text@1",
5462
- "nativeType": "text",
5655
+ "dataType": "pg/text",
5463
5656
  "nullable": true
5464
5657
  },
5465
5658
  "refreshed_at": {
5466
- "codecId": "pg/timestamp@1",
5467
- "nativeType": "timestamp",
5468
- "nullable": true,
5469
- "typeRef": "CreatedAt"
5659
+ "codecId": "pg/timestamp-temporal@1",
5660
+ "dataType": "pg/timestamp",
5661
+ "nullable": true
5470
5662
  },
5471
5663
  "scopes": {
5472
5664
  "codecId": "pg/text@1",
5473
- "nativeType": "text",
5665
+ "dataType": "pg/text",
5474
5666
  "nullable": true
5475
5667
  },
5476
5668
  "tag": {
5477
5669
  "codecId": "pg/text@1",
5478
- "nativeType": "text",
5670
+ "dataType": "pg/text",
5479
5671
  "nullable": true
5480
5672
  },
5481
5673
  "updated_at": {
5482
- "codecId": "pg/timestamptz@1",
5483
- "nativeType": "timestamptz",
5674
+ "codecId": "pg/timestamptz-temporal@1",
5675
+ "dataType": "pg/timestamptz",
5484
5676
  "nullable": true
5485
5677
  },
5486
5678
  "user_agent": {
5487
5679
  "codecId": "pg/text@1",
5488
- "nativeType": "text",
5680
+ "dataType": "pg/text",
5489
5681
  "nullable": true
5490
5682
  },
5491
5683
  "user_id": {
5492
5684
  "codecId": "pg/uuid@1",
5493
- "nativeType": "uuid",
5494
- "nullable": false,
5495
- "typeRef": "Id"
5685
+ "dataType": "pg/uuid",
5686
+ "nullable": false
5496
5687
  }
5497
5688
  },
5498
5689
  "foreignKeys": [{
5690
+ "index": { "name": "sessions_oauth_client_id_idx" },
5499
5691
  "name": "sessions_oauth_client_id_fkey",
5500
5692
  "onDelete": "cascade",
5501
5693
  "source": {
@@ -5509,6 +5701,7 @@ var contract_default = {
5509
5701
  "tableName": "oauth_clients"
5510
5702
  }
5511
5703
  }, {
5704
+ "index": { "name": "sessions_user_id_idx" },
5512
5705
  "name": "sessions_user_id_fkey",
5513
5706
  "onDelete": "cascade",
5514
5707
  "source": {
@@ -5551,36 +5744,39 @@ var contract_default = {
5551
5744
  "uniques": []
5552
5745
  },
5553
5746
  "sso_domains": {
5747
+ "checks": [{
5748
+ "expression": "(char_length(domain) > 0)",
5749
+ "name": "domain not empty"
5750
+ }],
5554
5751
  "columns": {
5555
5752
  "created_at": {
5556
- "codecId": "pg/timestamptz@1",
5557
- "nativeType": "timestamptz",
5753
+ "codecId": "pg/timestamptz-temporal@1",
5754
+ "dataType": "pg/timestamptz",
5558
5755
  "nullable": true
5559
5756
  },
5560
5757
  "domain": {
5561
5758
  "codecId": "pg/text@1",
5562
- "nativeType": "text",
5759
+ "dataType": "pg/text",
5563
5760
  "nullable": false
5564
5761
  },
5565
5762
  "id": {
5566
5763
  "codecId": "pg/uuid@1",
5567
- "nativeType": "uuid",
5568
- "nullable": false,
5569
- "typeRef": "Id"
5764
+ "dataType": "pg/uuid",
5765
+ "nullable": false
5570
5766
  },
5571
5767
  "sso_provider_id": {
5572
5768
  "codecId": "pg/uuid@1",
5573
- "nativeType": "uuid",
5574
- "nullable": false,
5575
- "typeRef": "Id"
5769
+ "dataType": "pg/uuid",
5770
+ "nullable": false
5576
5771
  },
5577
5772
  "updated_at": {
5578
- "codecId": "pg/timestamptz@1",
5579
- "nativeType": "timestamptz",
5773
+ "codecId": "pg/timestamptz-temporal@1",
5774
+ "dataType": "pg/timestamptz",
5580
5775
  "nullable": true
5581
5776
  }
5582
5777
  },
5583
5778
  "foreignKeys": [{
5779
+ "index": { "name": "sso_domains_sso_provider_id_idx" },
5584
5780
  "name": "sso_domains_sso_provider_id_fkey",
5585
5781
  "onDelete": "cascade",
5586
5782
  "source": {
@@ -5610,31 +5806,34 @@ var contract_default = {
5610
5806
  "uniques": []
5611
5807
  },
5612
5808
  "sso_providers": {
5809
+ "checks": [{
5810
+ "expression": "((resource_id = NULL::text) OR (char_length(resource_id) > 0))",
5811
+ "name": "resource_id not empty"
5812
+ }],
5613
5813
  "columns": {
5614
5814
  "created_at": {
5615
- "codecId": "pg/timestamptz@1",
5616
- "nativeType": "timestamptz",
5815
+ "codecId": "pg/timestamptz-temporal@1",
5816
+ "dataType": "pg/timestamptz",
5617
5817
  "nullable": true
5618
5818
  },
5619
5819
  "disabled": {
5620
5820
  "codecId": "pg/bool@1",
5621
- "nativeType": "bool",
5821
+ "dataType": "pg/bool",
5622
5822
  "nullable": true
5623
5823
  },
5624
5824
  "id": {
5625
5825
  "codecId": "pg/uuid@1",
5626
- "nativeType": "uuid",
5627
- "nullable": false,
5628
- "typeRef": "Id"
5826
+ "dataType": "pg/uuid",
5827
+ "nullable": false
5629
5828
  },
5630
5829
  "resource_id": {
5631
5830
  "codecId": "pg/text@1",
5632
- "nativeType": "text",
5831
+ "dataType": "pg/text",
5633
5832
  "nullable": true
5634
5833
  },
5635
5834
  "updated_at": {
5636
- "codecId": "pg/timestamptz@1",
5637
- "nativeType": "timestamptz",
5835
+ "codecId": "pg/timestamptz-temporal@1",
5836
+ "dataType": "pg/timestamptz",
5638
5837
  "nullable": true
5639
5838
  }
5640
5839
  },
@@ -5655,222 +5854,223 @@ var contract_default = {
5655
5854
  "uniques": []
5656
5855
  },
5657
5856
  "users": {
5857
+ "checks": [{
5858
+ "expression": "((email_change_confirm_status >= 0) AND (email_change_confirm_status <= 2))",
5859
+ "name": "users_email_change_confirm_status_check"
5860
+ }],
5658
5861
  "columns": {
5659
5862
  "aud": {
5660
5863
  "codecId": "sql/varchar@1",
5661
- "nativeType": "character varying",
5864
+ "dataType": "pg/varchar",
5662
5865
  "nullable": true,
5663
- "typeRef": "Parent"
5866
+ "typeParams": { "length": 255 }
5664
5867
  },
5665
5868
  "banned_until": {
5666
- "codecId": "pg/timestamptz@1",
5667
- "nativeType": "timestamptz",
5869
+ "codecId": "pg/timestamptz-temporal@1",
5870
+ "dataType": "pg/timestamptz",
5668
5871
  "nullable": true
5669
5872
  },
5670
5873
  "confirmation_sent_at": {
5671
- "codecId": "pg/timestamptz@1",
5672
- "nativeType": "timestamptz",
5874
+ "codecId": "pg/timestamptz-temporal@1",
5875
+ "dataType": "pg/timestamptz",
5673
5876
  "nullable": true
5674
5877
  },
5675
5878
  "confirmation_token": {
5676
5879
  "codecId": "sql/varchar@1",
5677
- "nativeType": "character varying",
5880
+ "dataType": "pg/varchar",
5678
5881
  "nullable": true,
5679
- "typeRef": "Parent"
5882
+ "typeParams": { "length": 255 }
5680
5883
  },
5681
5884
  "confirmed_at": {
5682
- "codecId": "pg/timestamptz@1",
5683
- "nativeType": "timestamptz",
5885
+ "codecId": "pg/timestamptz-temporal@1",
5886
+ "dataType": "pg/timestamptz",
5684
5887
  "nullable": true
5685
5888
  },
5686
5889
  "created_at": {
5687
- "codecId": "pg/timestamptz@1",
5688
- "nativeType": "timestamptz",
5890
+ "codecId": "pg/timestamptz-temporal@1",
5891
+ "dataType": "pg/timestamptz",
5689
5892
  "nullable": true
5690
5893
  },
5691
5894
  "deleted_at": {
5692
- "codecId": "pg/timestamptz@1",
5693
- "nativeType": "timestamptz",
5895
+ "codecId": "pg/timestamptz-temporal@1",
5896
+ "dataType": "pg/timestamptz",
5694
5897
  "nullable": true
5695
5898
  },
5696
5899
  "email": {
5697
5900
  "codecId": "sql/varchar@1",
5698
- "nativeType": "character varying",
5901
+ "dataType": "pg/varchar",
5699
5902
  "nullable": true,
5700
- "typeRef": "Parent"
5903
+ "typeParams": { "length": 255 }
5701
5904
  },
5702
5905
  "email_change": {
5703
5906
  "codecId": "sql/varchar@1",
5704
- "nativeType": "character varying",
5907
+ "dataType": "pg/varchar",
5705
5908
  "nullable": true,
5706
- "typeRef": "Parent"
5909
+ "typeParams": { "length": 255 }
5707
5910
  },
5708
5911
  "email_change_confirm_status": {
5709
5912
  "codecId": "pg/int2@1",
5913
+ "dataType": "pg/int2",
5710
5914
  "default": {
5711
5915
  "kind": "literal",
5712
5916
  "value": 0
5713
5917
  },
5714
- "nativeType": "int2",
5715
- "nullable": true,
5716
- "typeRef": "EmailChangeConfirmStatus"
5918
+ "nullable": true
5717
5919
  },
5718
5920
  "email_change_sent_at": {
5719
- "codecId": "pg/timestamptz@1",
5720
- "nativeType": "timestamptz",
5921
+ "codecId": "pg/timestamptz-temporal@1",
5922
+ "dataType": "pg/timestamptz",
5721
5923
  "nullable": true
5722
5924
  },
5723
5925
  "email_change_token_current": {
5724
5926
  "codecId": "sql/varchar@1",
5927
+ "dataType": "pg/varchar",
5725
5928
  "default": {
5726
5929
  "kind": "literal",
5727
5930
  "value": ""
5728
5931
  },
5729
- "nativeType": "character varying",
5730
5932
  "nullable": true,
5731
- "typeRef": "Parent"
5933
+ "typeParams": { "length": 255 }
5732
5934
  },
5733
5935
  "email_change_token_new": {
5734
5936
  "codecId": "sql/varchar@1",
5735
- "nativeType": "character varying",
5937
+ "dataType": "pg/varchar",
5736
5938
  "nullable": true,
5737
- "typeRef": "Parent"
5939
+ "typeParams": { "length": 255 }
5738
5940
  },
5739
5941
  "email_confirmed_at": {
5740
- "codecId": "pg/timestamptz@1",
5741
- "nativeType": "timestamptz",
5942
+ "codecId": "pg/timestamptz-temporal@1",
5943
+ "dataType": "pg/timestamptz",
5742
5944
  "nullable": true
5743
5945
  },
5744
5946
  "encrypted_password": {
5745
5947
  "codecId": "sql/varchar@1",
5746
- "nativeType": "character varying",
5948
+ "dataType": "pg/varchar",
5747
5949
  "nullable": true,
5748
- "typeRef": "Parent"
5950
+ "typeParams": { "length": 255 }
5749
5951
  },
5750
5952
  "id": {
5751
5953
  "codecId": "pg/uuid@1",
5752
- "nativeType": "uuid",
5753
- "nullable": false,
5754
- "typeRef": "Id"
5954
+ "dataType": "pg/uuid",
5955
+ "nullable": false
5755
5956
  },
5756
5957
  "instance_id": {
5757
5958
  "codecId": "pg/uuid@1",
5758
- "nativeType": "uuid",
5759
- "nullable": true,
5760
- "typeRef": "Id"
5959
+ "dataType": "pg/uuid",
5960
+ "nullable": true
5761
5961
  },
5762
5962
  "invited_at": {
5763
- "codecId": "pg/timestamptz@1",
5764
- "nativeType": "timestamptz",
5963
+ "codecId": "pg/timestamptz-temporal@1",
5964
+ "dataType": "pg/timestamptz",
5765
5965
  "nullable": true
5766
5966
  },
5767
5967
  "is_anonymous": {
5768
5968
  "codecId": "pg/bool@1",
5969
+ "dataType": "pg/bool",
5769
5970
  "default": {
5770
5971
  "kind": "literal",
5771
5972
  "value": false
5772
5973
  },
5773
- "nativeType": "bool",
5774
5974
  "nullable": false
5775
5975
  },
5776
5976
  "is_sso_user": {
5777
5977
  "codecId": "pg/bool@1",
5978
+ "dataType": "pg/bool",
5778
5979
  "default": {
5779
5980
  "kind": "literal",
5780
5981
  "value": false
5781
5982
  },
5782
- "nativeType": "bool",
5783
5983
  "nullable": false
5784
5984
  },
5785
5985
  "is_super_admin": {
5786
5986
  "codecId": "pg/bool@1",
5787
- "nativeType": "bool",
5987
+ "dataType": "pg/bool",
5788
5988
  "nullable": true
5789
5989
  },
5790
5990
  "last_sign_in_at": {
5791
- "codecId": "pg/timestamptz@1",
5792
- "nativeType": "timestamptz",
5991
+ "codecId": "pg/timestamptz-temporal@1",
5992
+ "dataType": "pg/timestamptz",
5793
5993
  "nullable": true
5794
5994
  },
5795
5995
  "phone": {
5796
5996
  "codecId": "pg/text@1",
5797
- "nativeType": "text",
5997
+ "dataType": "pg/text",
5798
5998
  "nullable": true
5799
5999
  },
5800
6000
  "phone_change": {
5801
6001
  "codecId": "pg/text@1",
6002
+ "dataType": "pg/text",
5802
6003
  "default": {
5803
6004
  "kind": "literal",
5804
6005
  "value": ""
5805
6006
  },
5806
- "nativeType": "text",
5807
6007
  "nullable": true
5808
6008
  },
5809
6009
  "phone_change_sent_at": {
5810
- "codecId": "pg/timestamptz@1",
5811
- "nativeType": "timestamptz",
6010
+ "codecId": "pg/timestamptz-temporal@1",
6011
+ "dataType": "pg/timestamptz",
5812
6012
  "nullable": true
5813
6013
  },
5814
6014
  "phone_change_token": {
5815
6015
  "codecId": "sql/varchar@1",
6016
+ "dataType": "pg/varchar",
5816
6017
  "default": {
5817
6018
  "kind": "literal",
5818
6019
  "value": ""
5819
6020
  },
5820
- "nativeType": "character varying",
5821
6021
  "nullable": true,
5822
- "typeRef": "Parent"
6022
+ "typeParams": { "length": 255 }
5823
6023
  },
5824
6024
  "phone_confirmed_at": {
5825
- "codecId": "pg/timestamptz@1",
5826
- "nativeType": "timestamptz",
6025
+ "codecId": "pg/timestamptz-temporal@1",
6026
+ "dataType": "pg/timestamptz",
5827
6027
  "nullable": true
5828
6028
  },
5829
6029
  "raw_app_meta_data": {
5830
6030
  "codecId": "pg/jsonb@1",
5831
- "nativeType": "jsonb",
6031
+ "dataType": "pg/jsonb",
5832
6032
  "nullable": true
5833
6033
  },
5834
6034
  "raw_user_meta_data": {
5835
6035
  "codecId": "pg/jsonb@1",
5836
- "nativeType": "jsonb",
6036
+ "dataType": "pg/jsonb",
5837
6037
  "nullable": true
5838
6038
  },
5839
6039
  "reauthentication_sent_at": {
5840
- "codecId": "pg/timestamptz@1",
5841
- "nativeType": "timestamptz",
6040
+ "codecId": "pg/timestamptz-temporal@1",
6041
+ "dataType": "pg/timestamptz",
5842
6042
  "nullable": true
5843
6043
  },
5844
6044
  "reauthentication_token": {
5845
6045
  "codecId": "sql/varchar@1",
6046
+ "dataType": "pg/varchar",
5846
6047
  "default": {
5847
6048
  "kind": "literal",
5848
6049
  "value": ""
5849
6050
  },
5850
- "nativeType": "character varying",
5851
6051
  "nullable": true,
5852
- "typeRef": "Parent"
6052
+ "typeParams": { "length": 255 }
5853
6053
  },
5854
6054
  "recovery_sent_at": {
5855
- "codecId": "pg/timestamptz@1",
5856
- "nativeType": "timestamptz",
6055
+ "codecId": "pg/timestamptz-temporal@1",
6056
+ "dataType": "pg/timestamptz",
5857
6057
  "nullable": true
5858
6058
  },
5859
6059
  "recovery_token": {
5860
6060
  "codecId": "sql/varchar@1",
5861
- "nativeType": "character varying",
6061
+ "dataType": "pg/varchar",
5862
6062
  "nullable": true,
5863
- "typeRef": "Parent"
6063
+ "typeParams": { "length": 255 }
5864
6064
  },
5865
6065
  "role": {
5866
6066
  "codecId": "sql/varchar@1",
5867
- "nativeType": "character varying",
6067
+ "dataType": "pg/varchar",
5868
6068
  "nullable": true,
5869
- "typeRef": "Parent"
6069
+ "typeParams": { "length": 255 }
5870
6070
  },
5871
6071
  "updated_at": {
5872
- "codecId": "pg/timestamptz@1",
5873
- "nativeType": "timestamptz",
6072
+ "codecId": "pg/timestamptz-temporal@1",
6073
+ "dataType": "pg/timestamptz",
5874
6074
  "nullable": true
5875
6075
  }
5876
6076
  },
@@ -5938,49 +6138,52 @@ var contract_default = {
5938
6138
  }]
5939
6139
  },
5940
6140
  "webauthn_challenges": {
6141
+ "checks": [{
6142
+ "expression": "(challenge_type = ANY (ARRAY['signup'::text, 'registration'::text, 'authentication'::text]))",
6143
+ "name": "webauthn_challenges_challenge_type_check"
6144
+ }],
5941
6145
  "columns": {
5942
6146
  "challenge_type": {
5943
6147
  "codecId": "pg/text@1",
5944
- "nativeType": "text",
6148
+ "dataType": "pg/text",
5945
6149
  "nullable": false
5946
6150
  },
5947
6151
  "created_at": {
5948
- "codecId": "pg/timestamptz@1",
6152
+ "codecId": "pg/timestamptz-temporal@1",
6153
+ "dataType": "pg/timestamptz",
5949
6154
  "default": {
5950
6155
  "expression": "now()",
5951
6156
  "kind": "function"
5952
6157
  },
5953
- "nativeType": "timestamptz",
5954
6158
  "nullable": false
5955
6159
  },
5956
6160
  "expires_at": {
5957
- "codecId": "pg/timestamptz@1",
5958
- "nativeType": "timestamptz",
6161
+ "codecId": "pg/timestamptz-temporal@1",
6162
+ "dataType": "pg/timestamptz",
5959
6163
  "nullable": false
5960
6164
  },
5961
6165
  "id": {
5962
6166
  "codecId": "pg/uuid@1",
6167
+ "dataType": "pg/uuid",
5963
6168
  "default": {
5964
6169
  "expression": "gen_random_uuid()",
5965
6170
  "kind": "function"
5966
6171
  },
5967
- "nativeType": "uuid",
5968
- "nullable": false,
5969
- "typeRef": "Id"
6172
+ "nullable": false
5970
6173
  },
5971
6174
  "session_data": {
5972
6175
  "codecId": "pg/jsonb@1",
5973
- "nativeType": "jsonb",
6176
+ "dataType": "pg/jsonb",
5974
6177
  "nullable": false
5975
6178
  },
5976
6179
  "user_id": {
5977
6180
  "codecId": "pg/uuid@1",
5978
- "nativeType": "uuid",
5979
- "nullable": true,
5980
- "typeRef": "Id"
6181
+ "dataType": "pg/uuid",
6182
+ "nullable": true
5981
6183
  }
5982
6184
  },
5983
6185
  "foreignKeys": [{
6186
+ "index": { "name": "webauthn_challenges_user_id_idx" },
5984
6187
  "name": "webauthn_challenges_user_id_fkey",
5985
6188
  "onDelete": "cascade",
5986
6189
  "source": {
@@ -6013,115 +6216,113 @@ var contract_default = {
6013
6216
  "columns": {
6014
6217
  "aaguid": {
6015
6218
  "codecId": "pg/uuid@1",
6016
- "nativeType": "uuid",
6017
- "nullable": true,
6018
- "typeRef": "Id"
6219
+ "dataType": "pg/uuid",
6220
+ "nullable": true
6019
6221
  },
6020
6222
  "attestation_type": {
6021
6223
  "codecId": "pg/text@1",
6224
+ "dataType": "pg/text",
6022
6225
  "default": {
6023
6226
  "kind": "literal",
6024
6227
  "value": ""
6025
6228
  },
6026
- "nativeType": "text",
6027
6229
  "nullable": false
6028
6230
  },
6029
6231
  "backed_up": {
6030
6232
  "codecId": "pg/bool@1",
6233
+ "dataType": "pg/bool",
6031
6234
  "default": {
6032
6235
  "kind": "literal",
6033
6236
  "value": false
6034
6237
  },
6035
- "nativeType": "bool",
6036
6238
  "nullable": false
6037
6239
  },
6038
6240
  "backup_eligible": {
6039
6241
  "codecId": "pg/bool@1",
6242
+ "dataType": "pg/bool",
6040
6243
  "default": {
6041
6244
  "kind": "literal",
6042
6245
  "value": false
6043
6246
  },
6044
- "nativeType": "bool",
6045
6247
  "nullable": false
6046
6248
  },
6047
6249
  "created_at": {
6048
- "codecId": "pg/timestamptz@1",
6250
+ "codecId": "pg/timestamptz-temporal@1",
6251
+ "dataType": "pg/timestamptz",
6049
6252
  "default": {
6050
6253
  "expression": "now()",
6051
6254
  "kind": "function"
6052
6255
  },
6053
- "nativeType": "timestamptz",
6054
6256
  "nullable": false
6055
6257
  },
6056
6258
  "credential_id": {
6057
6259
  "codecId": "pg/bytea@1",
6058
- "nativeType": "bytea",
6260
+ "dataType": "pg/bytea",
6059
6261
  "nullable": false
6060
6262
  },
6061
6263
  "friendly_name": {
6062
6264
  "codecId": "pg/text@1",
6265
+ "dataType": "pg/text",
6063
6266
  "default": {
6064
6267
  "kind": "literal",
6065
6268
  "value": ""
6066
6269
  },
6067
- "nativeType": "text",
6068
6270
  "nullable": false
6069
6271
  },
6070
6272
  "id": {
6071
6273
  "codecId": "pg/uuid@1",
6274
+ "dataType": "pg/uuid",
6072
6275
  "default": {
6073
6276
  "expression": "gen_random_uuid()",
6074
6277
  "kind": "function"
6075
6278
  },
6076
- "nativeType": "uuid",
6077
- "nullable": false,
6078
- "typeRef": "Id"
6279
+ "nullable": false
6079
6280
  },
6080
6281
  "last_used_at": {
6081
- "codecId": "pg/timestamptz@1",
6082
- "nativeType": "timestamptz",
6282
+ "codecId": "pg/timestamptz-temporal@1",
6283
+ "dataType": "pg/timestamptz",
6083
6284
  "nullable": true
6084
6285
  },
6085
6286
  "public_key": {
6086
6287
  "codecId": "pg/bytea@1",
6087
- "nativeType": "bytea",
6288
+ "dataType": "pg/bytea",
6088
6289
  "nullable": false
6089
6290
  },
6090
6291
  "sign_count": {
6091
6292
  "codecId": "pg/int8@1",
6293
+ "dataType": "pg/int8",
6092
6294
  "default": {
6093
6295
  "kind": "literal",
6094
6296
  "value": "0"
6095
6297
  },
6096
- "nativeType": "int8",
6097
6298
  "nullable": false
6098
6299
  },
6099
6300
  "transports": {
6100
6301
  "codecId": "pg/jsonb@1",
6302
+ "dataType": "pg/jsonb",
6101
6303
  "default": {
6102
- "expression": "'[]'::jsonb",
6103
- "kind": "function"
6304
+ "kind": "literal",
6305
+ "value": []
6104
6306
  },
6105
- "nativeType": "jsonb",
6106
6307
  "nullable": false
6107
6308
  },
6108
6309
  "updated_at": {
6109
- "codecId": "pg/timestamptz@1",
6310
+ "codecId": "pg/timestamptz-temporal@1",
6311
+ "dataType": "pg/timestamptz",
6110
6312
  "default": {
6111
6313
  "expression": "now()",
6112
6314
  "kind": "function"
6113
6315
  },
6114
- "nativeType": "timestamptz",
6115
6316
  "nullable": false
6116
6317
  },
6117
6318
  "user_id": {
6118
6319
  "codecId": "pg/uuid@1",
6119
- "nativeType": "uuid",
6120
- "nullable": false,
6121
- "typeRef": "Id"
6320
+ "dataType": "pg/uuid",
6321
+ "nullable": false
6122
6322
  }
6123
6323
  },
6124
6324
  "foreignKeys": [{
6325
+ "index": { "name": "webauthn_credentials_user_id_idx" },
6125
6326
  "name": "webauthn_credentials_user_id_fkey",
6126
6327
  "onDelete": "cascade",
6127
6328
  "source": {
@@ -6284,66 +6485,71 @@ var contract_default = {
6284
6485
  "table": {
6285
6486
  "buckets": {
6286
6487
  "columns": {
6488
+ "allowed_mime_types": {
6489
+ "codecId": "pg/text@1",
6490
+ "dataType": "pg/text",
6491
+ "many": { "elementNullable": true },
6492
+ "nullable": true
6493
+ },
6287
6494
  "avif_autodetection": {
6288
6495
  "codecId": "pg/bool@1",
6496
+ "dataType": "pg/bool",
6289
6497
  "default": {
6290
6498
  "kind": "literal",
6291
6499
  "value": false
6292
6500
  },
6293
- "nativeType": "bool",
6294
6501
  "nullable": true
6295
6502
  },
6296
6503
  "created_at": {
6297
- "codecId": "pg/timestamptz@1",
6504
+ "codecId": "pg/timestamptz-temporal@1",
6505
+ "dataType": "pg/timestamptz",
6298
6506
  "default": {
6299
6507
  "expression": "now()",
6300
6508
  "kind": "function"
6301
6509
  },
6302
- "nativeType": "timestamptz",
6303
6510
  "nullable": true
6304
6511
  },
6305
6512
  "file_size_limit": {
6306
6513
  "codecId": "pg/int8@1",
6307
- "nativeType": "int8",
6514
+ "dataType": "pg/int8",
6308
6515
  "nullable": true
6309
6516
  },
6310
6517
  "id": {
6311
6518
  "codecId": "pg/text@1",
6312
- "nativeType": "text",
6519
+ "dataType": "pg/text",
6313
6520
  "nullable": false
6314
6521
  },
6315
6522
  "name": {
6316
6523
  "codecId": "pg/text@1",
6317
- "nativeType": "text",
6524
+ "dataType": "pg/text",
6318
6525
  "nullable": false
6319
6526
  },
6320
6527
  "owner": {
6321
6528
  "codecId": "pg/uuid@1",
6322
- "nativeType": "uuid",
6323
- "nullable": true,
6324
- "typeRef": "Id"
6529
+ "dataType": "pg/uuid",
6530
+ "nullable": true
6325
6531
  },
6326
6532
  "owner_id": {
6327
6533
  "codecId": "pg/text@1",
6328
- "nativeType": "text",
6534
+ "dataType": "pg/text",
6329
6535
  "nullable": true
6330
6536
  },
6331
6537
  "public": {
6332
6538
  "codecId": "pg/bool@1",
6539
+ "dataType": "pg/bool",
6333
6540
  "default": {
6334
6541
  "kind": "literal",
6335
6542
  "value": false
6336
6543
  },
6337
- "nativeType": "bool",
6338
6544
  "nullable": true
6339
6545
  },
6340
6546
  "type": {
6341
6547
  "codecId": "pg/enum@1",
6548
+ "dataType": "pg/enum",
6342
6549
  "default": {
6343
- "expression": "'STANDARD'::storage.buckettype",
6344
- "kind": "function"
6550
+ "kind": "literal",
6551
+ "value": "STANDARD"
6345
6552
  },
6346
- "nativeType": "storage.buckettype",
6347
6553
  "nullable": false,
6348
6554
  "typeParams": { "typeName": "storage.buckettype" },
6349
6555
  "valueSet": {
@@ -6354,12 +6560,12 @@ var contract_default = {
6354
6560
  }
6355
6561
  },
6356
6562
  "updated_at": {
6357
- "codecId": "pg/timestamptz@1",
6563
+ "codecId": "pg/timestamptz-temporal@1",
6564
+ "dataType": "pg/timestamptz",
6358
6565
  "default": {
6359
6566
  "expression": "now()",
6360
6567
  "kind": "function"
6361
6568
  },
6362
- "nativeType": "timestamptz",
6363
6569
  "nullable": true
6364
6570
  }
6365
6571
  },
@@ -6378,50 +6584,49 @@ var contract_default = {
6378
6584
  "buckets_analytics": {
6379
6585
  "columns": {
6380
6586
  "created_at": {
6381
- "codecId": "pg/timestamptz@1",
6587
+ "codecId": "pg/timestamptz-temporal@1",
6588
+ "dataType": "pg/timestamptz",
6382
6589
  "default": {
6383
6590
  "expression": "now()",
6384
6591
  "kind": "function"
6385
6592
  },
6386
- "nativeType": "timestamptz",
6387
6593
  "nullable": false
6388
6594
  },
6389
6595
  "deleted_at": {
6390
- "codecId": "pg/timestamptz@1",
6391
- "nativeType": "timestamptz",
6596
+ "codecId": "pg/timestamptz-temporal@1",
6597
+ "dataType": "pg/timestamptz",
6392
6598
  "nullable": true
6393
6599
  },
6394
6600
  "format": {
6395
6601
  "codecId": "pg/text@1",
6602
+ "dataType": "pg/text",
6396
6603
  "default": {
6397
6604
  "kind": "literal",
6398
6605
  "value": "ICEBERG"
6399
6606
  },
6400
- "nativeType": "text",
6401
6607
  "nullable": false
6402
6608
  },
6403
6609
  "id": {
6404
6610
  "codecId": "pg/uuid@1",
6611
+ "dataType": "pg/uuid",
6405
6612
  "default": {
6406
6613
  "expression": "gen_random_uuid()",
6407
6614
  "kind": "function"
6408
6615
  },
6409
- "nativeType": "uuid",
6410
- "nullable": false,
6411
- "typeRef": "Id"
6616
+ "nullable": false
6412
6617
  },
6413
6618
  "name": {
6414
6619
  "codecId": "pg/text@1",
6415
- "nativeType": "text",
6620
+ "dataType": "pg/text",
6416
6621
  "nullable": false
6417
6622
  },
6418
6623
  "type": {
6419
6624
  "codecId": "pg/enum@1",
6625
+ "dataType": "pg/enum",
6420
6626
  "default": {
6421
- "expression": "'ANALYTICS'::storage.buckettype",
6422
- "kind": "function"
6627
+ "kind": "literal",
6628
+ "value": "ANALYTICS"
6423
6629
  },
6424
- "nativeType": "storage.buckettype",
6425
6630
  "nullable": false,
6426
6631
  "typeParams": { "typeName": "storage.buckettype" },
6427
6632
  "valueSet": {
@@ -6432,12 +6637,12 @@ var contract_default = {
6432
6637
  }
6433
6638
  },
6434
6639
  "updated_at": {
6435
- "codecId": "pg/timestamptz@1",
6640
+ "codecId": "pg/timestamptz-temporal@1",
6641
+ "dataType": "pg/timestamptz",
6436
6642
  "default": {
6437
6643
  "expression": "now()",
6438
6644
  "kind": "function"
6439
6645
  },
6440
- "nativeType": "timestamptz",
6441
6646
  "nullable": false
6442
6647
  }
6443
6648
  },
@@ -6457,26 +6662,26 @@ var contract_default = {
6457
6662
  "buckets_vectors": {
6458
6663
  "columns": {
6459
6664
  "created_at": {
6460
- "codecId": "pg/timestamptz@1",
6665
+ "codecId": "pg/timestamptz-temporal@1",
6666
+ "dataType": "pg/timestamptz",
6461
6667
  "default": {
6462
6668
  "expression": "now()",
6463
6669
  "kind": "function"
6464
6670
  },
6465
- "nativeType": "timestamptz",
6466
6671
  "nullable": false
6467
6672
  },
6468
6673
  "id": {
6469
6674
  "codecId": "pg/text@1",
6470
- "nativeType": "text",
6675
+ "dataType": "pg/text",
6471
6676
  "nullable": false
6472
6677
  },
6473
6678
  "type": {
6474
6679
  "codecId": "pg/enum@1",
6680
+ "dataType": "pg/enum",
6475
6681
  "default": {
6476
- "expression": "'VECTOR'::storage.buckettype",
6477
- "kind": "function"
6682
+ "kind": "literal",
6683
+ "value": "VECTOR"
6478
6684
  },
6479
- "nativeType": "storage.buckettype",
6480
6685
  "nullable": false,
6481
6686
  "typeParams": { "typeName": "storage.buckettype" },
6482
6687
  "valueSet": {
@@ -6487,12 +6692,12 @@ var contract_default = {
6487
6692
  }
6488
6693
  },
6489
6694
  "updated_at": {
6490
- "codecId": "pg/timestamptz@1",
6695
+ "codecId": "pg/timestamptz-temporal@1",
6696
+ "dataType": "pg/timestamptz",
6491
6697
  "default": {
6492
6698
  "expression": "now()",
6493
6699
  "kind": "function"
6494
6700
  },
6495
- "nativeType": "timestamptz",
6496
6701
  "nullable": false
6497
6702
  }
6498
6703
  },
@@ -6508,55 +6713,53 @@ var contract_default = {
6508
6713
  "columns": {
6509
6714
  "bucket_name": {
6510
6715
  "codecId": "pg/text@1",
6511
- "nativeType": "text",
6716
+ "dataType": "pg/text",
6512
6717
  "nullable": false
6513
6718
  },
6514
6719
  "catalog_id": {
6515
6720
  "codecId": "pg/uuid@1",
6516
- "nativeType": "uuid",
6517
- "nullable": false,
6518
- "typeRef": "Id"
6721
+ "dataType": "pg/uuid",
6722
+ "nullable": false
6519
6723
  },
6520
6724
  "created_at": {
6521
- "codecId": "pg/timestamptz@1",
6725
+ "codecId": "pg/timestamptz-temporal@1",
6726
+ "dataType": "pg/timestamptz",
6522
6727
  "default": {
6523
6728
  "expression": "now()",
6524
6729
  "kind": "function"
6525
6730
  },
6526
- "nativeType": "timestamptz",
6527
6731
  "nullable": false
6528
6732
  },
6529
6733
  "id": {
6530
6734
  "codecId": "pg/uuid@1",
6735
+ "dataType": "pg/uuid",
6531
6736
  "default": {
6532
6737
  "expression": "gen_random_uuid()",
6533
6738
  "kind": "function"
6534
6739
  },
6535
- "nativeType": "uuid",
6536
- "nullable": false,
6537
- "typeRef": "Id"
6740
+ "nullable": false
6538
6741
  },
6539
6742
  "metadata": {
6540
6743
  "codecId": "pg/jsonb@1",
6744
+ "dataType": "pg/jsonb",
6541
6745
  "default": {
6542
- "expression": "'{}'::jsonb",
6543
- "kind": "function"
6746
+ "kind": "literal",
6747
+ "value": {}
6544
6748
  },
6545
- "nativeType": "jsonb",
6546
6749
  "nullable": false
6547
6750
  },
6548
6751
  "name": {
6549
6752
  "codecId": "pg/text@1",
6550
- "nativeType": "text",
6753
+ "dataType": "pg/text",
6551
6754
  "nullable": false
6552
6755
  },
6553
6756
  "updated_at": {
6554
- "codecId": "pg/timestamptz@1",
6757
+ "codecId": "pg/timestamptz-temporal@1",
6758
+ "dataType": "pg/timestamptz",
6555
6759
  "default": {
6556
6760
  "expression": "now()",
6557
6761
  "kind": "function"
6558
6762
  },
6559
- "nativeType": "timestamptz",
6560
6763
  "nullable": false
6561
6764
  }
6562
6765
  },
@@ -6589,72 +6792,69 @@ var contract_default = {
6589
6792
  "columns": {
6590
6793
  "bucket_name": {
6591
6794
  "codecId": "pg/text@1",
6592
- "nativeType": "text",
6795
+ "dataType": "pg/text",
6593
6796
  "nullable": false
6594
6797
  },
6595
6798
  "catalog_id": {
6596
6799
  "codecId": "pg/uuid@1",
6597
- "nativeType": "uuid",
6598
- "nullable": false,
6599
- "typeRef": "Id"
6800
+ "dataType": "pg/uuid",
6801
+ "nullable": false
6600
6802
  },
6601
6803
  "created_at": {
6602
- "codecId": "pg/timestamptz@1",
6804
+ "codecId": "pg/timestamptz-temporal@1",
6805
+ "dataType": "pg/timestamptz",
6603
6806
  "default": {
6604
6807
  "expression": "now()",
6605
6808
  "kind": "function"
6606
6809
  },
6607
- "nativeType": "timestamptz",
6608
6810
  "nullable": false
6609
6811
  },
6610
6812
  "id": {
6611
6813
  "codecId": "pg/uuid@1",
6814
+ "dataType": "pg/uuid",
6612
6815
  "default": {
6613
6816
  "expression": "gen_random_uuid()",
6614
6817
  "kind": "function"
6615
6818
  },
6616
- "nativeType": "uuid",
6617
- "nullable": false,
6618
- "typeRef": "Id"
6819
+ "nullable": false
6619
6820
  },
6620
6821
  "location": {
6621
6822
  "codecId": "pg/text@1",
6622
- "nativeType": "text",
6823
+ "dataType": "pg/text",
6623
6824
  "nullable": false
6624
6825
  },
6625
6826
  "name": {
6626
6827
  "codecId": "pg/text@1",
6627
- "nativeType": "text",
6828
+ "dataType": "pg/text",
6628
6829
  "nullable": false
6629
6830
  },
6630
6831
  "namespace_id": {
6631
6832
  "codecId": "pg/uuid@1",
6632
- "nativeType": "uuid",
6633
- "nullable": false,
6634
- "typeRef": "Id"
6833
+ "dataType": "pg/uuid",
6834
+ "nullable": false
6635
6835
  },
6636
6836
  "remote_table_id": {
6637
6837
  "codecId": "pg/text@1",
6638
- "nativeType": "text",
6838
+ "dataType": "pg/text",
6639
6839
  "nullable": true
6640
6840
  },
6641
6841
  "shard_id": {
6642
6842
  "codecId": "pg/text@1",
6643
- "nativeType": "text",
6843
+ "dataType": "pg/text",
6644
6844
  "nullable": true
6645
6845
  },
6646
6846
  "shard_key": {
6647
6847
  "codecId": "pg/text@1",
6648
- "nativeType": "text",
6848
+ "dataType": "pg/text",
6649
6849
  "nullable": true
6650
6850
  },
6651
6851
  "updated_at": {
6652
- "codecId": "pg/timestamptz@1",
6852
+ "codecId": "pg/timestamptz-temporal@1",
6853
+ "dataType": "pg/timestamptz",
6653
6854
  "default": {
6654
6855
  "expression": "now()",
6655
6856
  "kind": "function"
6656
6857
  },
6657
- "nativeType": "timestamptz",
6658
6858
  "nullable": false
6659
6859
  }
6660
6860
  },
@@ -6707,31 +6907,30 @@ var contract_default = {
6707
6907
  "migrations": {
6708
6908
  "columns": {
6709
6909
  "executed_at": {
6710
- "codecId": "pg/timestamp@1",
6910
+ "codecId": "pg/timestamp-temporal@1",
6911
+ "dataType": "pg/timestamp",
6711
6912
  "default": {
6712
6913
  "expression": "now()",
6713
6914
  "kind": "function"
6714
6915
  },
6715
- "nativeType": "timestamp",
6716
- "nullable": true,
6717
- "typeRef": "CreatedAt"
6916
+ "nullable": true
6718
6917
  },
6719
6918
  "hash": {
6720
6919
  "codecId": "sql/varchar@1",
6721
- "nativeType": "character varying",
6920
+ "dataType": "pg/varchar",
6722
6921
  "nullable": false,
6723
- "typeRef": "Hash"
6922
+ "typeParams": { "length": 40 }
6724
6923
  },
6725
6924
  "id": {
6726
6925
  "codecId": "pg/int4@1",
6727
- "nativeType": "int4",
6926
+ "dataType": "pg/int4",
6728
6927
  "nullable": false
6729
6928
  },
6730
6929
  "name": {
6731
6930
  "codecId": "sql/varchar@1",
6732
- "nativeType": "character varying",
6931
+ "dataType": "pg/varchar",
6733
6932
  "nullable": false,
6734
- "typeRef": "Name"
6933
+ "typeParams": { "length": 100 }
6735
6934
  }
6736
6935
  },
6737
6936
  "foreignKeys": [],
@@ -6749,75 +6948,79 @@ var contract_default = {
6749
6948
  "columns": {
6750
6949
  "bucket_id": {
6751
6950
  "codecId": "pg/text@1",
6752
- "nativeType": "text",
6951
+ "dataType": "pg/text",
6753
6952
  "nullable": true
6754
6953
  },
6755
6954
  "created_at": {
6756
- "codecId": "pg/timestamptz@1",
6955
+ "codecId": "pg/timestamptz-temporal@1",
6956
+ "dataType": "pg/timestamptz",
6757
6957
  "default": {
6758
6958
  "expression": "now()",
6759
6959
  "kind": "function"
6760
6960
  },
6761
- "nativeType": "timestamptz",
6762
6961
  "nullable": true
6763
6962
  },
6764
6963
  "id": {
6765
6964
  "codecId": "pg/uuid@1",
6965
+ "dataType": "pg/uuid",
6766
6966
  "default": {
6767
6967
  "expression": "gen_random_uuid()",
6768
6968
  "kind": "function"
6769
6969
  },
6770
- "nativeType": "uuid",
6771
- "nullable": false,
6772
- "typeRef": "Id"
6970
+ "nullable": false
6773
6971
  },
6774
6972
  "last_accessed_at": {
6775
- "codecId": "pg/timestamptz@1",
6973
+ "codecId": "pg/timestamptz-temporal@1",
6974
+ "dataType": "pg/timestamptz",
6776
6975
  "default": {
6777
6976
  "expression": "now()",
6778
6977
  "kind": "function"
6779
6978
  },
6780
- "nativeType": "timestamptz",
6781
6979
  "nullable": true
6782
6980
  },
6783
6981
  "metadata": {
6784
6982
  "codecId": "pg/jsonb@1",
6785
- "nativeType": "jsonb",
6983
+ "dataType": "pg/jsonb",
6786
6984
  "nullable": true
6787
6985
  },
6788
6986
  "name": {
6789
6987
  "codecId": "pg/text@1",
6790
- "nativeType": "text",
6988
+ "dataType": "pg/text",
6791
6989
  "nullable": true
6792
6990
  },
6793
6991
  "owner": {
6794
6992
  "codecId": "pg/uuid@1",
6795
- "nativeType": "uuid",
6796
- "nullable": true,
6797
- "typeRef": "Id"
6993
+ "dataType": "pg/uuid",
6994
+ "nullable": true
6798
6995
  },
6799
6996
  "owner_id": {
6800
6997
  "codecId": "pg/text@1",
6801
- "nativeType": "text",
6998
+ "dataType": "pg/text",
6999
+ "nullable": true
7000
+ },
7001
+ "path_tokens": {
7002
+ "codecId": "pg/text@1",
7003
+ "dataType": "pg/text",
7004
+ "many": { "elementNullable": true },
6802
7005
  "nullable": true
6803
7006
  },
6804
7007
  "updated_at": {
6805
- "codecId": "pg/timestamptz@1",
7008
+ "codecId": "pg/timestamptz-temporal@1",
7009
+ "dataType": "pg/timestamptz",
6806
7010
  "default": {
6807
7011
  "expression": "now()",
6808
7012
  "kind": "function"
6809
7013
  },
6810
- "nativeType": "timestamptz",
6811
7014
  "nullable": true
6812
7015
  },
6813
7016
  "user_metadata": {
6814
7017
  "codecId": "pg/jsonb@1",
6815
- "nativeType": "jsonb",
7018
+ "dataType": "pg/jsonb",
6816
7019
  "nullable": true
6817
7020
  },
6818
7021
  "version": {
6819
7022
  "codecId": "pg/text@1",
6820
- "nativeType": "text",
7023
+ "dataType": "pg/text",
6821
7024
  "nullable": true
6822
7025
  }
6823
7026
  },
@@ -6866,60 +7069,60 @@ var contract_default = {
6866
7069
  "columns": {
6867
7070
  "bucket_id": {
6868
7071
  "codecId": "pg/text@1",
6869
- "nativeType": "text",
7072
+ "dataType": "pg/text",
6870
7073
  "nullable": false
6871
7074
  },
6872
7075
  "created_at": {
6873
- "codecId": "pg/timestamptz@1",
7076
+ "codecId": "pg/timestamptz-temporal@1",
7077
+ "dataType": "pg/timestamptz",
6874
7078
  "default": {
6875
7079
  "expression": "now()",
6876
7080
  "kind": "function"
6877
7081
  },
6878
- "nativeType": "timestamptz",
6879
7082
  "nullable": false
6880
7083
  },
6881
7084
  "id": {
6882
7085
  "codecId": "pg/text@1",
6883
- "nativeType": "text",
7086
+ "dataType": "pg/text",
6884
7087
  "nullable": false
6885
7088
  },
6886
7089
  "in_progress_size": {
6887
7090
  "codecId": "pg/int8@1",
7091
+ "dataType": "pg/int8",
6888
7092
  "default": {
6889
7093
  "kind": "literal",
6890
7094
  "value": "0"
6891
7095
  },
6892
- "nativeType": "int8",
6893
7096
  "nullable": false
6894
7097
  },
6895
7098
  "key": {
6896
7099
  "codecId": "pg/text@1",
6897
- "nativeType": "text",
7100
+ "dataType": "pg/text",
6898
7101
  "nullable": false
6899
7102
  },
6900
7103
  "metadata": {
6901
7104
  "codecId": "pg/jsonb@1",
6902
- "nativeType": "jsonb",
7105
+ "dataType": "pg/jsonb",
6903
7106
  "nullable": true
6904
7107
  },
6905
7108
  "owner_id": {
6906
7109
  "codecId": "pg/text@1",
6907
- "nativeType": "text",
7110
+ "dataType": "pg/text",
6908
7111
  "nullable": true
6909
7112
  },
6910
7113
  "upload_signature": {
6911
7114
  "codecId": "pg/text@1",
6912
- "nativeType": "text",
7115
+ "dataType": "pg/text",
6913
7116
  "nullable": false
6914
7117
  },
6915
7118
  "user_metadata": {
6916
7119
  "codecId": "pg/jsonb@1",
6917
- "nativeType": "jsonb",
7120
+ "dataType": "pg/jsonb",
6918
7121
  "nullable": true
6919
7122
  },
6920
7123
  "version": {
6921
7124
  "codecId": "pg/text@1",
6922
- "nativeType": "text",
7125
+ "dataType": "pg/text",
6923
7126
  "nullable": false
6924
7127
  }
6925
7128
  },
@@ -6955,65 +7158,64 @@ var contract_default = {
6955
7158
  "columns": {
6956
7159
  "bucket_id": {
6957
7160
  "codecId": "pg/text@1",
6958
- "nativeType": "text",
7161
+ "dataType": "pg/text",
6959
7162
  "nullable": false
6960
7163
  },
6961
7164
  "created_at": {
6962
- "codecId": "pg/timestamptz@1",
7165
+ "codecId": "pg/timestamptz-temporal@1",
7166
+ "dataType": "pg/timestamptz",
6963
7167
  "default": {
6964
7168
  "expression": "now()",
6965
7169
  "kind": "function"
6966
7170
  },
6967
- "nativeType": "timestamptz",
6968
7171
  "nullable": false
6969
7172
  },
6970
7173
  "etag": {
6971
7174
  "codecId": "pg/text@1",
6972
- "nativeType": "text",
7175
+ "dataType": "pg/text",
6973
7176
  "nullable": false
6974
7177
  },
6975
7178
  "id": {
6976
7179
  "codecId": "pg/uuid@1",
7180
+ "dataType": "pg/uuid",
6977
7181
  "default": {
6978
7182
  "expression": "gen_random_uuid()",
6979
7183
  "kind": "function"
6980
7184
  },
6981
- "nativeType": "uuid",
6982
- "nullable": false,
6983
- "typeRef": "Id"
7185
+ "nullable": false
6984
7186
  },
6985
7187
  "key": {
6986
7188
  "codecId": "pg/text@1",
6987
- "nativeType": "text",
7189
+ "dataType": "pg/text",
6988
7190
  "nullable": false
6989
7191
  },
6990
7192
  "owner_id": {
6991
7193
  "codecId": "pg/text@1",
6992
- "nativeType": "text",
7194
+ "dataType": "pg/text",
6993
7195
  "nullable": true
6994
7196
  },
6995
7197
  "part_number": {
6996
7198
  "codecId": "pg/int4@1",
6997
- "nativeType": "int4",
7199
+ "dataType": "pg/int4",
6998
7200
  "nullable": false
6999
7201
  },
7000
7202
  "size": {
7001
7203
  "codecId": "pg/int8@1",
7204
+ "dataType": "pg/int8",
7002
7205
  "default": {
7003
7206
  "kind": "literal",
7004
7207
  "value": "0"
7005
7208
  },
7006
- "nativeType": "int8",
7007
7209
  "nullable": false
7008
7210
  },
7009
7211
  "upload_id": {
7010
7212
  "codecId": "pg/text@1",
7011
- "nativeType": "text",
7213
+ "dataType": "pg/text",
7012
7214
  "nullable": false
7013
7215
  },
7014
7216
  "version": {
7015
7217
  "codecId": "pg/text@1",
7016
- "nativeType": "text",
7218
+ "dataType": "pg/text",
7017
7219
  "nullable": false
7018
7220
  }
7019
7221
  },
@@ -7054,59 +7256,59 @@ var contract_default = {
7054
7256
  "columns": {
7055
7257
  "bucket_id": {
7056
7258
  "codecId": "pg/text@1",
7057
- "nativeType": "text",
7259
+ "dataType": "pg/text",
7058
7260
  "nullable": false
7059
7261
  },
7060
7262
  "created_at": {
7061
- "codecId": "pg/timestamptz@1",
7263
+ "codecId": "pg/timestamptz-temporal@1",
7264
+ "dataType": "pg/timestamptz",
7062
7265
  "default": {
7063
7266
  "expression": "now()",
7064
7267
  "kind": "function"
7065
7268
  },
7066
- "nativeType": "timestamptz",
7067
7269
  "nullable": false
7068
7270
  },
7069
7271
  "data_type": {
7070
7272
  "codecId": "pg/text@1",
7071
- "nativeType": "text",
7273
+ "dataType": "pg/text",
7072
7274
  "nullable": false
7073
7275
  },
7074
7276
  "dimension": {
7075
7277
  "codecId": "pg/int4@1",
7076
- "nativeType": "int4",
7278
+ "dataType": "pg/int4",
7077
7279
  "nullable": false
7078
7280
  },
7079
7281
  "distance_metric": {
7080
7282
  "codecId": "pg/text@1",
7081
- "nativeType": "text",
7283
+ "dataType": "pg/text",
7082
7284
  "nullable": false
7083
7285
  },
7084
7286
  "id": {
7085
7287
  "codecId": "pg/text@1",
7288
+ "dataType": "pg/text",
7086
7289
  "default": {
7087
7290
  "expression": "gen_random_uuid()",
7088
7291
  "kind": "function"
7089
7292
  },
7090
- "nativeType": "text",
7091
7293
  "nullable": false
7092
7294
  },
7093
7295
  "metadata_configuration": {
7094
7296
  "codecId": "pg/jsonb@1",
7095
- "nativeType": "jsonb",
7297
+ "dataType": "pg/jsonb",
7096
7298
  "nullable": true
7097
7299
  },
7098
7300
  "name": {
7099
7301
  "codecId": "pg/text@1",
7100
- "nativeType": "text",
7302
+ "dataType": "pg/text",
7101
7303
  "nullable": false
7102
7304
  },
7103
7305
  "updated_at": {
7104
- "codecId": "pg/timestamptz@1",
7306
+ "codecId": "pg/timestamptz-temporal@1",
7307
+ "dataType": "pg/timestamptz",
7105
7308
  "default": {
7106
7309
  "expression": "now()",
7107
7310
  "kind": "function"
7108
7311
  },
7109
- "nativeType": "timestamptz",
7110
7312
  "nullable": false
7111
7313
  }
7112
7314
  },
@@ -7148,62 +7350,13 @@ var contract_default = {
7148
7350
  "kind": "postgres-schema"
7149
7351
  }
7150
7352
  },
7151
- "storageHash": "9241c85398daf30cf58953a6489fad3bbd27616aebe4075597acd3cfc51a0634",
7152
- "types": {
7153
- "CreatedAt": {
7154
- "codecId": "pg/timestamp@1",
7155
- "kind": "codec-instance",
7156
- "nativeType": "timestamp"
7157
- },
7158
- "EmailChangeConfirmStatus": {
7159
- "codecId": "pg/int2@1",
7160
- "kind": "codec-instance",
7161
- "nativeType": "int2"
7162
- },
7163
- "Hash": {
7164
- "codecId": "sql/varchar@1",
7165
- "kind": "codec-instance",
7166
- "nativeType": "character varying",
7167
- "typeParams": { "length": 40 }
7168
- },
7169
- "Id": {
7170
- "codecId": "pg/uuid@1",
7171
- "kind": "codec-instance",
7172
- "nativeType": "uuid"
7173
- },
7174
- "IpAddress": {
7175
- "codecId": "pg/inet@1",
7176
- "kind": "codec-instance",
7177
- "nativeType": "inet"
7178
- },
7179
- "IpAddress2": {
7180
- "codecId": "sql/varchar@1",
7181
- "kind": "codec-instance",
7182
- "nativeType": "character varying",
7183
- "typeParams": { "length": 64 }
7184
- },
7185
- "Name": {
7186
- "codecId": "sql/varchar@1",
7187
- "kind": "codec-instance",
7188
- "nativeType": "character varying",
7189
- "typeParams": { "length": 100 }
7190
- },
7191
- "Parent": {
7192
- "codecId": "sql/varchar@1",
7193
- "kind": "codec-instance",
7194
- "nativeType": "character varying",
7195
- "typeParams": { "length": 255 }
7196
- },
7197
- "Payload": {
7198
- "codecId": "pg/json@1",
7199
- "kind": "codec-instance",
7200
- "nativeType": "json"
7201
- }
7202
- }
7353
+ "storageHash": "110ad99e1e466691bdb0a4349a17365561e76ad017f58beb272f4496b05b8e9e"
7203
7354
  },
7204
7355
  capabilities: {
7205
7356
  "postgres": {
7206
7357
  "distinctOn": true,
7358
+ "forKeyShare": true,
7359
+ "forNoKeyUpdate": true,
7207
7360
  "jsonAgg": true,
7208
7361
  "lateral": true,
7209
7362
  "limit": true,
@@ -7214,7 +7367,14 @@ var contract_default = {
7214
7367
  "checkConstraint": true,
7215
7368
  "defaultInInsert": true,
7216
7369
  "enums": true,
7370
+ "forShare": true,
7371
+ "forUpdate": true,
7372
+ "insertOnConflictSkip": true,
7373
+ "insertOnConflictWithoutTarget": true,
7217
7374
  "lateral": true,
7375
+ "lockNowait": true,
7376
+ "lockOf": true,
7377
+ "lockSkipLocked": true,
7218
7378
  "returning": true,
7219
7379
  "scalarList": true
7220
7380
  }
@@ -7224,11 +7384,11 @@ var contract_default = {
7224
7384
  meta: {},
7225
7385
  _generated: {
7226
7386
  "warning": "⚠️ GENERATED FILE - DO NOT EDIT",
7227
- "message": "This file is automatically generated by \"prisma-next contract emit\".",
7228
- "regenerate": "To regenerate, run: prisma-next contract emit"
7387
+ "message": "This file is automatically generated by \"prisma contract emit\".",
7388
+ "regenerate": "To regenerate, run: prisma contract emit"
7229
7389
  }
7230
7390
  };
7231
7391
  //#endregion
7232
7392
  export { version as n, contract_default as t };
7233
7393
 
7234
- //# sourceMappingURL=contract-DFQ5w0dT-ewVq9BvG.mjs.map
7394
+ //# sourceMappingURL=contract-BqK3CKbC-DoMSpImB.mjs.map