@authhero/drizzle 0.53.8 → 0.54.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": "6",
3
3
  "dialect": "sqlite",
4
- "id": "b62af96d-7493-4eed-91f6-25a87cd6c9f3",
4
+ "id": "aa362ef7-2aa5-43c2-822c-5e9ffd5ec7e5",
5
5
  "prevId": "00000000-0000-0000-0000-000000000000",
6
6
  "tables": {
7
7
  "tenants": {
@@ -314,6 +314,71 @@
314
314
  "primaryKey": false,
315
315
  "notNull": false,
316
316
  "autoincrement": false
317
+ },
318
+ "deployment_type": {
319
+ "name": "deployment_type",
320
+ "type": "text(16)",
321
+ "primaryKey": false,
322
+ "notNull": true,
323
+ "autoincrement": false,
324
+ "default": "'shared'"
325
+ },
326
+ "provisioning_state": {
327
+ "name": "provisioning_state",
328
+ "type": "text(16)",
329
+ "primaryKey": false,
330
+ "notNull": true,
331
+ "autoincrement": false,
332
+ "default": "'ready'"
333
+ },
334
+ "provisioning_error": {
335
+ "name": "provisioning_error",
336
+ "type": "text",
337
+ "primaryKey": false,
338
+ "notNull": false,
339
+ "autoincrement": false
340
+ },
341
+ "provisioning_state_changed_at": {
342
+ "name": "provisioning_state_changed_at",
343
+ "type": "text(35)",
344
+ "primaryKey": false,
345
+ "notNull": false,
346
+ "autoincrement": false
347
+ },
348
+ "bundle_configuration": {
349
+ "name": "bundle_configuration",
350
+ "type": "text(64)",
351
+ "primaryKey": false,
352
+ "notNull": false,
353
+ "autoincrement": false
354
+ },
355
+ "worker_version": {
356
+ "name": "worker_version",
357
+ "type": "text(64)",
358
+ "primaryKey": false,
359
+ "notNull": false,
360
+ "autoincrement": false
361
+ },
362
+ "worker_script_name": {
363
+ "name": "worker_script_name",
364
+ "type": "text(255)",
365
+ "primaryKey": false,
366
+ "notNull": false,
367
+ "autoincrement": false
368
+ },
369
+ "storage_kind": {
370
+ "name": "storage_kind",
371
+ "type": "text(32)",
372
+ "primaryKey": false,
373
+ "notNull": false,
374
+ "autoincrement": false
375
+ },
376
+ "d1_database_id": {
377
+ "name": "d1_database_id",
378
+ "type": "text(64)",
379
+ "primaryKey": false,
380
+ "notNull": false,
381
+ "autoincrement": false
317
382
  }
318
383
  },
319
384
  "indexes": {},
@@ -322,6 +387,374 @@
322
387
  "uniqueConstraints": {},
323
388
  "checkConstraints": {}
324
389
  },
390
+ "action_executions": {
391
+ "name": "action_executions",
392
+ "columns": {
393
+ "id": {
394
+ "name": "id",
395
+ "type": "text(255)",
396
+ "primaryKey": false,
397
+ "notNull": true,
398
+ "autoincrement": false
399
+ },
400
+ "tenant_id": {
401
+ "name": "tenant_id",
402
+ "type": "text(191)",
403
+ "primaryKey": false,
404
+ "notNull": true,
405
+ "autoincrement": false
406
+ },
407
+ "trigger_id": {
408
+ "name": "trigger_id",
409
+ "type": "text(255)",
410
+ "primaryKey": false,
411
+ "notNull": true,
412
+ "autoincrement": false
413
+ },
414
+ "status": {
415
+ "name": "status",
416
+ "type": "text(32)",
417
+ "primaryKey": false,
418
+ "notNull": true,
419
+ "autoincrement": false
420
+ },
421
+ "results": {
422
+ "name": "results",
423
+ "type": "text",
424
+ "primaryKey": false,
425
+ "notNull": true,
426
+ "autoincrement": false
427
+ },
428
+ "logs": {
429
+ "name": "logs",
430
+ "type": "text",
431
+ "primaryKey": false,
432
+ "notNull": false,
433
+ "autoincrement": false
434
+ },
435
+ "created_at_ts": {
436
+ "name": "created_at_ts",
437
+ "type": "integer",
438
+ "primaryKey": false,
439
+ "notNull": true,
440
+ "autoincrement": false
441
+ },
442
+ "updated_at_ts": {
443
+ "name": "updated_at_ts",
444
+ "type": "integer",
445
+ "primaryKey": false,
446
+ "notNull": true,
447
+ "autoincrement": false
448
+ }
449
+ },
450
+ "indexes": {},
451
+ "foreignKeys": {
452
+ "action_executions_tenant_id_tenants_id_fk": {
453
+ "name": "action_executions_tenant_id_tenants_id_fk",
454
+ "tableFrom": "action_executions",
455
+ "tableTo": "tenants",
456
+ "columnsFrom": [
457
+ "tenant_id"
458
+ ],
459
+ "columnsTo": [
460
+ "id"
461
+ ],
462
+ "onDelete": "cascade",
463
+ "onUpdate": "no action"
464
+ }
465
+ },
466
+ "compositePrimaryKeys": {
467
+ "action_executions_pk": {
468
+ "columns": [
469
+ "tenant_id",
470
+ "id"
471
+ ],
472
+ "name": "action_executions_pk"
473
+ }
474
+ },
475
+ "uniqueConstraints": {},
476
+ "checkConstraints": {}
477
+ },
478
+ "action_versions": {
479
+ "name": "action_versions",
480
+ "columns": {
481
+ "id": {
482
+ "name": "id",
483
+ "type": "text(255)",
484
+ "primaryKey": false,
485
+ "notNull": true,
486
+ "autoincrement": false
487
+ },
488
+ "tenant_id": {
489
+ "name": "tenant_id",
490
+ "type": "text(191)",
491
+ "primaryKey": false,
492
+ "notNull": true,
493
+ "autoincrement": false
494
+ },
495
+ "action_id": {
496
+ "name": "action_id",
497
+ "type": "text(255)",
498
+ "primaryKey": false,
499
+ "notNull": true,
500
+ "autoincrement": false
501
+ },
502
+ "number": {
503
+ "name": "number",
504
+ "type": "integer",
505
+ "primaryKey": false,
506
+ "notNull": true,
507
+ "autoincrement": false
508
+ },
509
+ "code": {
510
+ "name": "code",
511
+ "type": "text",
512
+ "primaryKey": false,
513
+ "notNull": true,
514
+ "autoincrement": false
515
+ },
516
+ "runtime": {
517
+ "name": "runtime",
518
+ "type": "text(50)",
519
+ "primaryKey": false,
520
+ "notNull": false,
521
+ "autoincrement": false
522
+ },
523
+ "secrets": {
524
+ "name": "secrets",
525
+ "type": "text",
526
+ "primaryKey": false,
527
+ "notNull": false,
528
+ "autoincrement": false
529
+ },
530
+ "dependencies": {
531
+ "name": "dependencies",
532
+ "type": "text",
533
+ "primaryKey": false,
534
+ "notNull": false,
535
+ "autoincrement": false
536
+ },
537
+ "supported_triggers": {
538
+ "name": "supported_triggers",
539
+ "type": "text",
540
+ "primaryKey": false,
541
+ "notNull": false,
542
+ "autoincrement": false
543
+ },
544
+ "deployed": {
545
+ "name": "deployed",
546
+ "type": "integer",
547
+ "primaryKey": false,
548
+ "notNull": true,
549
+ "autoincrement": false
550
+ },
551
+ "created_at_ts": {
552
+ "name": "created_at_ts",
553
+ "type": "integer",
554
+ "primaryKey": false,
555
+ "notNull": true,
556
+ "autoincrement": false
557
+ },
558
+ "updated_at_ts": {
559
+ "name": "updated_at_ts",
560
+ "type": "integer",
561
+ "primaryKey": false,
562
+ "notNull": true,
563
+ "autoincrement": false
564
+ }
565
+ },
566
+ "indexes": {
567
+ "uq_action_versions_number": {
568
+ "name": "uq_action_versions_number",
569
+ "columns": [
570
+ "tenant_id",
571
+ "action_id",
572
+ "number"
573
+ ],
574
+ "isUnique": true
575
+ },
576
+ "idx_action_versions_action_id": {
577
+ "name": "idx_action_versions_action_id",
578
+ "columns": [
579
+ "tenant_id",
580
+ "action_id"
581
+ ],
582
+ "isUnique": false
583
+ }
584
+ },
585
+ "foreignKeys": {
586
+ "action_versions_tenant_id_tenants_id_fk": {
587
+ "name": "action_versions_tenant_id_tenants_id_fk",
588
+ "tableFrom": "action_versions",
589
+ "tableTo": "tenants",
590
+ "columnsFrom": [
591
+ "tenant_id"
592
+ ],
593
+ "columnsTo": [
594
+ "id"
595
+ ],
596
+ "onDelete": "cascade",
597
+ "onUpdate": "no action"
598
+ }
599
+ },
600
+ "compositePrimaryKeys": {
601
+ "action_versions_pk": {
602
+ "columns": [
603
+ "tenant_id",
604
+ "id"
605
+ ],
606
+ "name": "action_versions_pk"
607
+ }
608
+ },
609
+ "uniqueConstraints": {},
610
+ "checkConstraints": {}
611
+ },
612
+ "actions": {
613
+ "name": "actions",
614
+ "columns": {
615
+ "id": {
616
+ "name": "id",
617
+ "type": "text(255)",
618
+ "primaryKey": false,
619
+ "notNull": true,
620
+ "autoincrement": false
621
+ },
622
+ "tenant_id": {
623
+ "name": "tenant_id",
624
+ "type": "text(191)",
625
+ "primaryKey": false,
626
+ "notNull": true,
627
+ "autoincrement": false
628
+ },
629
+ "name": {
630
+ "name": "name",
631
+ "type": "text(255)",
632
+ "primaryKey": false,
633
+ "notNull": true,
634
+ "autoincrement": false
635
+ },
636
+ "code": {
637
+ "name": "code",
638
+ "type": "text",
639
+ "primaryKey": false,
640
+ "notNull": true,
641
+ "autoincrement": false
642
+ },
643
+ "runtime": {
644
+ "name": "runtime",
645
+ "type": "text(50)",
646
+ "primaryKey": false,
647
+ "notNull": false,
648
+ "autoincrement": false
649
+ },
650
+ "status": {
651
+ "name": "status",
652
+ "type": "text(16)",
653
+ "primaryKey": false,
654
+ "notNull": false,
655
+ "autoincrement": false
656
+ },
657
+ "secrets": {
658
+ "name": "secrets",
659
+ "type": "text",
660
+ "primaryKey": false,
661
+ "notNull": false,
662
+ "autoincrement": false
663
+ },
664
+ "dependencies": {
665
+ "name": "dependencies",
666
+ "type": "text",
667
+ "primaryKey": false,
668
+ "notNull": false,
669
+ "autoincrement": false
670
+ },
671
+ "supported_triggers": {
672
+ "name": "supported_triggers",
673
+ "type": "text",
674
+ "primaryKey": false,
675
+ "notNull": false,
676
+ "autoincrement": false
677
+ },
678
+ "deployed_at_ts": {
679
+ "name": "deployed_at_ts",
680
+ "type": "integer",
681
+ "primaryKey": false,
682
+ "notNull": false,
683
+ "autoincrement": false
684
+ },
685
+ "is_system": {
686
+ "name": "is_system",
687
+ "type": "integer",
688
+ "primaryKey": false,
689
+ "notNull": false,
690
+ "autoincrement": false
691
+ },
692
+ "inherit": {
693
+ "name": "inherit",
694
+ "type": "integer",
695
+ "primaryKey": false,
696
+ "notNull": false,
697
+ "autoincrement": false
698
+ },
699
+ "created_at_ts": {
700
+ "name": "created_at_ts",
701
+ "type": "integer",
702
+ "primaryKey": false,
703
+ "notNull": true,
704
+ "autoincrement": false
705
+ },
706
+ "updated_at_ts": {
707
+ "name": "updated_at_ts",
708
+ "type": "integer",
709
+ "primaryKey": false,
710
+ "notNull": true,
711
+ "autoincrement": false
712
+ }
713
+ },
714
+ "indexes": {
715
+ "idx_actions_tenant_id": {
716
+ "name": "idx_actions_tenant_id",
717
+ "columns": [
718
+ "tenant_id"
719
+ ],
720
+ "isUnique": false
721
+ },
722
+ "idx_actions_name": {
723
+ "name": "idx_actions_name",
724
+ "columns": [
725
+ "tenant_id",
726
+ "name"
727
+ ],
728
+ "isUnique": false
729
+ }
730
+ },
731
+ "foreignKeys": {
732
+ "actions_tenant_id_tenants_id_fk": {
733
+ "name": "actions_tenant_id_tenants_id_fk",
734
+ "tableFrom": "actions",
735
+ "tableTo": "tenants",
736
+ "columnsFrom": [
737
+ "tenant_id"
738
+ ],
739
+ "columnsTo": [
740
+ "id"
741
+ ],
742
+ "onDelete": "cascade",
743
+ "onUpdate": "no action"
744
+ }
745
+ },
746
+ "compositePrimaryKeys": {
747
+ "actions_pk": {
748
+ "columns": [
749
+ "tenant_id",
750
+ "id"
751
+ ],
752
+ "name": "actions_pk"
753
+ }
754
+ },
755
+ "uniqueConstraints": {},
756
+ "checkConstraints": {}
757
+ },
325
758
  "passwords": {
326
759
  "name": "passwords",
327
760
  "columns": {
@@ -390,8 +823,12 @@
390
823
  "name": "passwords_tenant_id_tenants_id_fk",
391
824
  "tableFrom": "passwords",
392
825
  "tableTo": "tenants",
393
- "columnsFrom": ["tenant_id"],
394
- "columnsTo": ["id"],
826
+ "columnsFrom": [
827
+ "tenant_id"
828
+ ],
829
+ "columnsTo": [
830
+ "id"
831
+ ],
395
832
  "onDelete": "cascade",
396
833
  "onUpdate": "no action"
397
834
  }
@@ -654,37 +1091,59 @@
654
1091
  "indexes": {
655
1092
  "unique_email_provider": {
656
1093
  "name": "unique_email_provider",
657
- "columns": ["email", "provider", "tenant_id"],
1094
+ "columns": [
1095
+ "email",
1096
+ "provider",
1097
+ "tenant_id"
1098
+ ],
658
1099
  "isUnique": true
659
1100
  },
660
1101
  "unique_phone_provider": {
661
1102
  "name": "unique_phone_provider",
662
- "columns": ["phone_number", "provider", "tenant_id"],
1103
+ "columns": [
1104
+ "phone_number",
1105
+ "provider",
1106
+ "tenant_id"
1107
+ ],
663
1108
  "isUnique": true
664
1109
  },
665
1110
  "unique_username_provider": {
666
1111
  "name": "unique_username_provider",
667
- "columns": ["username", "provider", "tenant_id"],
1112
+ "columns": [
1113
+ "username",
1114
+ "provider",
1115
+ "tenant_id"
1116
+ ],
668
1117
  "isUnique": true
669
1118
  },
670
1119
  "users_email_index": {
671
1120
  "name": "users_email_index",
672
- "columns": ["email"],
1121
+ "columns": [
1122
+ "email"
1123
+ ],
673
1124
  "isUnique": false
674
1125
  },
675
1126
  "users_linked_to_index": {
676
1127
  "name": "users_linked_to_index",
677
- "columns": ["linked_to"],
1128
+ "columns": [
1129
+ "linked_to"
1130
+ ],
678
1131
  "isUnique": false
679
1132
  },
680
1133
  "users_name_index": {
681
1134
  "name": "users_name_index",
682
- "columns": ["name"],
1135
+ "columns": [
1136
+ "name"
1137
+ ],
683
1138
  "isUnique": false
684
1139
  },
685
1140
  "users_phone_tenant_provider_index": {
686
1141
  "name": "users_phone_tenant_provider_index",
687
- "columns": ["tenant_id", "phone_number", "provider"],
1142
+ "columns": [
1143
+ "tenant_id",
1144
+ "phone_number",
1145
+ "provider"
1146
+ ],
688
1147
  "isUnique": false
689
1148
  }
690
1149
  },
@@ -693,15 +1152,22 @@
693
1152
  "name": "users_tenant_id_tenants_id_fk",
694
1153
  "tableFrom": "users",
695
1154
  "tableTo": "tenants",
696
- "columnsFrom": ["tenant_id"],
697
- "columnsTo": ["id"],
1155
+ "columnsFrom": [
1156
+ "tenant_id"
1157
+ ],
1158
+ "columnsTo": [
1159
+ "id"
1160
+ ],
698
1161
  "onDelete": "cascade",
699
1162
  "onUpdate": "no action"
700
1163
  }
701
1164
  },
702
1165
  "compositePrimaryKeys": {
703
1166
  "users_tenants": {
704
- "columns": ["user_id", "tenant_id"],
1167
+ "columns": [
1168
+ "user_id",
1169
+ "tenant_id"
1170
+ ],
705
1171
  "name": "users_tenants"
706
1172
  }
707
1173
  },
@@ -809,8 +1275,12 @@
809
1275
  "name": "authentication_codes_tenant_id_tenants_id_fk",
810
1276
  "tableFrom": "authentication_codes",
811
1277
  "tableTo": "tenants",
812
- "columnsFrom": ["tenant_id"],
813
- "columnsTo": ["id"],
1278
+ "columnsFrom": [
1279
+ "tenant_id"
1280
+ ],
1281
+ "columnsTo": [
1282
+ "id"
1283
+ ],
814
1284
  "onDelete": "cascade",
815
1285
  "onUpdate": "no action"
816
1286
  }
@@ -931,7 +1401,9 @@
931
1401
  "indexes": {
932
1402
  "codes_expires_at_index": {
933
1403
  "name": "codes_expires_at_index",
934
- "columns": ["expires_at"],
1404
+ "columns": [
1405
+ "expires_at"
1406
+ ],
935
1407
  "isUnique": false
936
1408
  }
937
1409
  },
@@ -940,15 +1412,22 @@
940
1412
  "name": "codes_tenant_id_tenants_id_fk",
941
1413
  "tableFrom": "codes",
942
1414
  "tableTo": "tenants",
943
- "columnsFrom": ["tenant_id"],
944
- "columnsTo": ["id"],
1415
+ "columnsFrom": [
1416
+ "tenant_id"
1417
+ ],
1418
+ "columnsTo": [
1419
+ "id"
1420
+ ],
945
1421
  "onDelete": "cascade",
946
1422
  "onUpdate": "no action"
947
1423
  }
948
1424
  },
949
1425
  "compositePrimaryKeys": {
950
1426
  "PK_codes_code_id_code_type": {
951
- "columns": ["code_id", "code_type"],
1427
+ "columns": [
1428
+ "code_id",
1429
+ "code_type"
1430
+ ],
952
1431
  "name": "PK_codes_code_id_code_type"
953
1432
  }
954
1433
  },
@@ -1103,27 +1582,39 @@
1103
1582
  "indexes": {
1104
1583
  "login_sessions_id_index": {
1105
1584
  "name": "login_sessions_id_index",
1106
- "columns": ["id"],
1585
+ "columns": [
1586
+ "id"
1587
+ ],
1107
1588
  "isUnique": false
1108
1589
  },
1109
1590
  "login_sessions_state_idx": {
1110
1591
  "name": "login_sessions_state_idx",
1111
- "columns": ["state"],
1592
+ "columns": [
1593
+ "state"
1594
+ ],
1112
1595
  "isUnique": false
1113
1596
  },
1114
1597
  "login_sessions_state_updated_idx": {
1115
1598
  "name": "login_sessions_state_updated_idx",
1116
- "columns": ["state", "updated_at_ts"],
1599
+ "columns": [
1600
+ "state",
1601
+ "updated_at_ts"
1602
+ ],
1117
1603
  "isUnique": false
1118
1604
  },
1119
1605
  "login_sessions_tenant_user_idx": {
1120
1606
  "name": "login_sessions_tenant_user_idx",
1121
- "columns": ["tenant_id", "user_id"],
1607
+ "columns": [
1608
+ "tenant_id",
1609
+ "user_id"
1610
+ ],
1122
1611
  "isUnique": false
1123
1612
  },
1124
1613
  "idx_login_sessions_expires_at_ts": {
1125
1614
  "name": "idx_login_sessions_expires_at_ts",
1126
- "columns": ["expires_at_ts"],
1615
+ "columns": [
1616
+ "expires_at_ts"
1617
+ ],
1127
1618
  "isUnique": false
1128
1619
  }
1129
1620
  },
@@ -1132,15 +1623,22 @@
1132
1623
  "name": "login_sessions_tenant_id_tenants_id_fk",
1133
1624
  "tableFrom": "login_sessions",
1134
1625
  "tableTo": "tenants",
1135
- "columnsFrom": ["tenant_id"],
1136
- "columnsTo": ["id"],
1626
+ "columnsFrom": [
1627
+ "tenant_id"
1628
+ ],
1629
+ "columnsTo": [
1630
+ "id"
1631
+ ],
1137
1632
  "onDelete": "cascade",
1138
1633
  "onUpdate": "no action"
1139
1634
  }
1140
1635
  },
1141
1636
  "compositePrimaryKeys": {
1142
1637
  "login_sessions_pk": {
1143
- "columns": ["tenant_id", "id"],
1638
+ "columns": [
1639
+ "tenant_id",
1640
+ "id"
1641
+ ],
1144
1642
  "name": "login_sessions_pk"
1145
1643
  }
1146
1644
  },
@@ -1280,12 +1778,16 @@
1280
1778
  "indexes": {
1281
1779
  "otps_email_index": {
1282
1780
  "name": "otps_email_index",
1283
- "columns": ["email"],
1781
+ "columns": [
1782
+ "email"
1783
+ ],
1284
1784
  "isUnique": false
1285
1785
  },
1286
1786
  "otps_expires_at_index": {
1287
1787
  "name": "otps_expires_at_index",
1288
- "columns": ["expires_at"],
1788
+ "columns": [
1789
+ "expires_at"
1790
+ ],
1289
1791
  "isUnique": false
1290
1792
  }
1291
1793
  },
@@ -1294,8 +1796,12 @@
1294
1796
  "name": "otps_tenant_id_tenants_id_fk",
1295
1797
  "tableFrom": "otps",
1296
1798
  "tableTo": "tenants",
1297
- "columnsFrom": ["tenant_id"],
1298
- "columnsTo": ["id"],
1799
+ "columnsFrom": [
1800
+ "tenant_id"
1801
+ ],
1802
+ "columnsTo": [
1803
+ "id"
1804
+ ],
1299
1805
  "onDelete": "cascade",
1300
1806
  "onUpdate": "no action"
1301
1807
  }
@@ -1437,27 +1943,40 @@
1437
1943
  "indexes": {
1438
1944
  "idx_refresh_tokens_user_id": {
1439
1945
  "name": "idx_refresh_tokens_user_id",
1440
- "columns": ["tenant_id", "user_id"],
1946
+ "columns": [
1947
+ "tenant_id",
1948
+ "user_id"
1949
+ ],
1441
1950
  "isUnique": false
1442
1951
  },
1443
1952
  "idx_refresh_tokens_login_id": {
1444
1953
  "name": "idx_refresh_tokens_login_id",
1445
- "columns": ["login_id"],
1954
+ "columns": [
1955
+ "login_id"
1956
+ ],
1446
1957
  "isUnique": false
1447
1958
  },
1448
1959
  "idx_refresh_tokens_expires_at_ts": {
1449
1960
  "name": "idx_refresh_tokens_expires_at_ts",
1450
- "columns": ["expires_at_ts"],
1961
+ "columns": [
1962
+ "expires_at_ts"
1963
+ ],
1451
1964
  "isUnique": false
1452
1965
  },
1453
1966
  "idx_refresh_tokens_token_lookup": {
1454
1967
  "name": "idx_refresh_tokens_token_lookup",
1455
- "columns": ["tenant_id", "token_lookup"],
1968
+ "columns": [
1969
+ "tenant_id",
1970
+ "token_lookup"
1971
+ ],
1456
1972
  "isUnique": false
1457
1973
  },
1458
1974
  "idx_refresh_tokens_family_id": {
1459
1975
  "name": "idx_refresh_tokens_family_id",
1460
- "columns": ["tenant_id", "family_id"],
1976
+ "columns": [
1977
+ "tenant_id",
1978
+ "family_id"
1979
+ ],
1461
1980
  "isUnique": false
1462
1981
  }
1463
1982
  },
@@ -1466,15 +1985,22 @@
1466
1985
  "name": "refresh_tokens_tenant_id_tenants_id_fk",
1467
1986
  "tableFrom": "refresh_tokens",
1468
1987
  "tableTo": "tenants",
1469
- "columnsFrom": ["tenant_id"],
1470
- "columnsTo": ["id"],
1988
+ "columnsFrom": [
1989
+ "tenant_id"
1990
+ ],
1991
+ "columnsTo": [
1992
+ "id"
1993
+ ],
1471
1994
  "onDelete": "cascade",
1472
1995
  "onUpdate": "no action"
1473
1996
  }
1474
1997
  },
1475
1998
  "compositePrimaryKeys": {
1476
1999
  "refresh_tokens_pk": {
1477
- "columns": ["tenant_id", "id"],
2000
+ "columns": [
2001
+ "tenant_id",
2002
+ "id"
2003
+ ],
1478
2004
  "name": "refresh_tokens_pk"
1479
2005
  }
1480
2006
  },
@@ -1586,17 +2112,24 @@
1586
2112
  "indexes": {
1587
2113
  "IDX_sessions_login_session_id": {
1588
2114
  "name": "IDX_sessions_login_session_id",
1589
- "columns": ["login_session_id"],
2115
+ "columns": [
2116
+ "login_session_id"
2117
+ ],
1590
2118
  "isUnique": false
1591
2119
  },
1592
2120
  "idx_sessions_user_id": {
1593
2121
  "name": "idx_sessions_user_id",
1594
- "columns": ["tenant_id", "user_id"],
2122
+ "columns": [
2123
+ "tenant_id",
2124
+ "user_id"
2125
+ ],
1595
2126
  "isUnique": false
1596
2127
  },
1597
2128
  "idx_sessions_expires_at_ts": {
1598
2129
  "name": "idx_sessions_expires_at_ts",
1599
- "columns": ["expires_at_ts"],
2130
+ "columns": [
2131
+ "expires_at_ts"
2132
+ ],
1600
2133
  "isUnique": false
1601
2134
  }
1602
2135
  },
@@ -1605,15 +2138,22 @@
1605
2138
  "name": "sessions_tenant_id_tenants_id_fk",
1606
2139
  "tableFrom": "sessions",
1607
2140
  "tableTo": "tenants",
1608
- "columnsFrom": ["tenant_id"],
1609
- "columnsTo": ["id"],
2141
+ "columnsFrom": [
2142
+ "tenant_id"
2143
+ ],
2144
+ "columnsTo": [
2145
+ "id"
2146
+ ],
1610
2147
  "onDelete": "cascade",
1611
2148
  "onUpdate": "no action"
1612
2149
  }
1613
2150
  },
1614
2151
  "compositePrimaryKeys": {
1615
2152
  "sessions_pk": {
1616
- "columns": ["tenant_id", "id"],
2153
+ "columns": [
2154
+ "tenant_id",
2155
+ "id"
2156
+ ],
1617
2157
  "name": "sessions_pk"
1618
2158
  }
1619
2159
  },
@@ -1721,8 +2261,12 @@
1721
2261
  "name": "tickets_tenant_id_tenants_id_fk",
1722
2262
  "tableFrom": "tickets",
1723
2263
  "tableTo": "tenants",
1724
- "columnsFrom": ["tenant_id"],
1725
- "columnsTo": ["id"],
2264
+ "columnsFrom": [
2265
+ "tenant_id"
2266
+ ],
2267
+ "columnsTo": [
2268
+ "id"
2269
+ ],
1726
2270
  "onDelete": "cascade",
1727
2271
  "onUpdate": "no action"
1728
2272
  }
@@ -1826,7 +2370,9 @@
1826
2370
  "indexes": {
1827
2371
  "idx_client_grants_audience": {
1828
2372
  "name": "idx_client_grants_audience",
1829
- "columns": ["audience"],
2373
+ "columns": [
2374
+ "audience"
2375
+ ],
1830
2376
  "isUnique": false
1831
2377
  }
1832
2378
  },
@@ -1835,15 +2381,22 @@
1835
2381
  "name": "client_grants_tenant_id_tenants_id_fk",
1836
2382
  "tableFrom": "client_grants",
1837
2383
  "tableTo": "tenants",
1838
- "columnsFrom": ["tenant_id"],
1839
- "columnsTo": ["id"],
2384
+ "columnsFrom": [
2385
+ "tenant_id"
2386
+ ],
2387
+ "columnsTo": [
2388
+ "id"
2389
+ ],
1840
2390
  "onDelete": "cascade",
1841
2391
  "onUpdate": "no action"
1842
2392
  }
1843
2393
  },
1844
2394
  "compositePrimaryKeys": {
1845
2395
  "pk_client_grants": {
1846
- "columns": ["tenant_id", "id"],
2396
+ "columns": [
2397
+ "tenant_id",
2398
+ "id"
2399
+ ],
1847
2400
  "name": "pk_client_grants"
1848
2401
  }
1849
2402
  },
@@ -1942,12 +2495,18 @@
1942
2495
  "indexes": {
1943
2496
  "idx_client_registration_tokens_hash": {
1944
2497
  "name": "idx_client_registration_tokens_hash",
1945
- "columns": ["tenant_id", "token_hash"],
2498
+ "columns": [
2499
+ "tenant_id",
2500
+ "token_hash"
2501
+ ],
1946
2502
  "isUnique": true
1947
2503
  },
1948
2504
  "idx_client_registration_tokens_client": {
1949
2505
  "name": "idx_client_registration_tokens_client",
1950
- "columns": ["tenant_id", "client_id"],
2506
+ "columns": [
2507
+ "tenant_id",
2508
+ "client_id"
2509
+ ],
1951
2510
  "isUnique": false
1952
2511
  }
1953
2512
  },
@@ -1956,8 +2515,12 @@
1956
2515
  "name": "client_registration_tokens_tenant_id_tenants_id_fk",
1957
2516
  "tableFrom": "client_registration_tokens",
1958
2517
  "tableTo": "tenants",
1959
- "columnsFrom": ["tenant_id"],
1960
- "columnsTo": ["id"],
2518
+ "columnsFrom": [
2519
+ "tenant_id"
2520
+ ],
2521
+ "columnsTo": [
2522
+ "id"
2523
+ ],
1961
2524
  "onDelete": "cascade",
1962
2525
  "onUpdate": "no action"
1963
2526
  }
@@ -2291,6 +2854,14 @@
2291
2854
  "autoincrement": false,
2292
2855
  "default": 0
2293
2856
  },
2857
+ "hide_sign_up_disabled_error": {
2858
+ "name": "hide_sign_up_disabled_error",
2859
+ "type": "integer",
2860
+ "primaryKey": false,
2861
+ "notNull": true,
2862
+ "autoincrement": false,
2863
+ "default": 0
2864
+ },
2294
2865
  "signed_request_object": {
2295
2866
  "name": "signed_request_object",
2296
2867
  "type": "text",
@@ -2373,7 +2944,10 @@
2373
2944
  "indexes": {
2374
2945
  "idx_clients_owner_user_id": {
2375
2946
  "name": "idx_clients_owner_user_id",
2376
- "columns": ["tenant_id", "owner_user_id"],
2947
+ "columns": [
2948
+ "tenant_id",
2949
+ "owner_user_id"
2950
+ ],
2377
2951
  "isUnique": false
2378
2952
  }
2379
2953
  },
@@ -2382,15 +2956,22 @@
2382
2956
  "name": "clients_tenant_id_tenants_id_fk",
2383
2957
  "tableFrom": "clients",
2384
2958
  "tableTo": "tenants",
2385
- "columnsFrom": ["tenant_id"],
2386
- "columnsTo": ["id"],
2959
+ "columnsFrom": [
2960
+ "tenant_id"
2961
+ ],
2962
+ "columnsTo": [
2963
+ "id"
2964
+ ],
2387
2965
  "onDelete": "cascade",
2388
2966
  "onUpdate": "no action"
2389
2967
  }
2390
2968
  },
2391
2969
  "compositePrimaryKeys": {
2392
2970
  "clients_tenant_id_client_id": {
2393
- "columns": ["tenant_id", "client_id"],
2971
+ "columns": [
2972
+ "tenant_id",
2973
+ "client_id"
2974
+ ],
2394
2975
  "name": "clients_tenant_id_client_id"
2395
2976
  }
2396
2977
  },
@@ -2504,12 +3085,16 @@
2504
3085
  "indexes": {
2505
3086
  "connections_tenant_id_index": {
2506
3087
  "name": "connections_tenant_id_index",
2507
- "columns": ["tenant_id"],
3088
+ "columns": [
3089
+ "tenant_id"
3090
+ ],
2508
3091
  "isUnique": false
2509
3092
  },
2510
3093
  "connections_id_unique": {
2511
3094
  "name": "connections_id_unique",
2512
- "columns": ["id"],
3095
+ "columns": [
3096
+ "id"
3097
+ ],
2513
3098
  "isUnique": true
2514
3099
  }
2515
3100
  },
@@ -2518,15 +3103,22 @@
2518
3103
  "name": "connections_tenant_id_tenants_id_fk",
2519
3104
  "tableFrom": "connections",
2520
3105
  "tableTo": "tenants",
2521
- "columnsFrom": ["tenant_id"],
2522
- "columnsTo": ["id"],
3106
+ "columnsFrom": [
3107
+ "tenant_id"
3108
+ ],
3109
+ "columnsTo": [
3110
+ "id"
3111
+ ],
2523
3112
  "onDelete": "cascade",
2524
3113
  "onUpdate": "no action"
2525
3114
  }
2526
3115
  },
2527
3116
  "compositePrimaryKeys": {
2528
3117
  "connections_tenant_id_id_pk": {
2529
- "columns": ["tenant_id", "id"],
3118
+ "columns": [
3119
+ "tenant_id",
3120
+ "id"
3121
+ ],
2530
3122
  "name": "connections_tenant_id_id_pk"
2531
3123
  }
2532
3124
  },
@@ -2631,7 +3223,9 @@
2631
3223
  "indexes": {
2632
3224
  "custom_domains_domain_unique": {
2633
3225
  "name": "custom_domains_domain_unique",
2634
- "columns": ["domain"],
3226
+ "columns": [
3227
+ "domain"
3228
+ ],
2635
3229
  "isUnique": true
2636
3230
  }
2637
3231
  },
@@ -2640,8 +3234,12 @@
2640
3234
  "name": "custom_domains_tenant_id_tenants_id_fk",
2641
3235
  "tableFrom": "custom_domains",
2642
3236
  "tableTo": "tenants",
2643
- "columnsFrom": ["tenant_id"],
2644
- "columnsTo": ["id"],
3237
+ "columnsFrom": [
3238
+ "tenant_id"
3239
+ ],
3240
+ "columnsTo": [
3241
+ "id"
3242
+ ],
2645
3243
  "onDelete": "cascade",
2646
3244
  "onUpdate": "no action"
2647
3245
  }
@@ -2723,8 +3321,12 @@
2723
3321
  "name": "domains_tenant_id_tenants_id_fk",
2724
3322
  "tableFrom": "domains",
2725
3323
  "tableTo": "tenants",
2726
- "columnsFrom": ["tenant_id"],
2727
- "columnsTo": ["id"],
3324
+ "columnsFrom": [
3325
+ "tenant_id"
3326
+ ],
3327
+ "columnsTo": [
3328
+ "id"
3329
+ ],
2728
3330
  "onDelete": "cascade",
2729
3331
  "onUpdate": "no action"
2730
3332
  }
@@ -2852,22 +3454,31 @@
2852
3454
  "indexes": {
2853
3455
  "idx_invites_tenant_id": {
2854
3456
  "name": "idx_invites_tenant_id",
2855
- "columns": ["tenant_id"],
3457
+ "columns": [
3458
+ "tenant_id"
3459
+ ],
2856
3460
  "isUnique": false
2857
3461
  },
2858
3462
  "idx_invites_organization_id": {
2859
3463
  "name": "idx_invites_organization_id",
2860
- "columns": ["organization_id"],
3464
+ "columns": [
3465
+ "organization_id"
3466
+ ],
2861
3467
  "isUnique": false
2862
3468
  },
2863
3469
  "idx_invites_expires_at": {
2864
3470
  "name": "idx_invites_expires_at",
2865
- "columns": ["expires_at"],
3471
+ "columns": [
3472
+ "expires_at"
3473
+ ],
2866
3474
  "isUnique": false
2867
3475
  },
2868
3476
  "idx_invites_tenant_created": {
2869
3477
  "name": "idx_invites_tenant_created",
2870
- "columns": ["tenant_id", "created_at"],
3478
+ "columns": [
3479
+ "tenant_id",
3480
+ "created_at"
3481
+ ],
2871
3482
  "isUnique": false
2872
3483
  }
2873
3484
  },
@@ -2953,7 +3564,9 @@
2953
3564
  "indexes": {
2954
3565
  "idx_organizations_tenant_id": {
2955
3566
  "name": "idx_organizations_tenant_id",
2956
- "columns": ["tenant_id"],
3567
+ "columns": [
3568
+ "tenant_id"
3569
+ ],
2957
3570
  "isUnique": false
2958
3571
  }
2959
3572
  },
@@ -3011,22 +3624,32 @@
3011
3624
  "indexes": {
3012
3625
  "user_organizations_unique": {
3013
3626
  "name": "user_organizations_unique",
3014
- "columns": ["tenant_id", "user_id", "organization_id"],
3627
+ "columns": [
3628
+ "tenant_id",
3629
+ "user_id",
3630
+ "organization_id"
3631
+ ],
3015
3632
  "isUnique": true
3016
3633
  },
3017
3634
  "idx_user_organizations_tenant_id": {
3018
3635
  "name": "idx_user_organizations_tenant_id",
3019
- "columns": ["tenant_id"],
3636
+ "columns": [
3637
+ "tenant_id"
3638
+ ],
3020
3639
  "isUnique": false
3021
3640
  },
3022
3641
  "idx_user_organizations_user_id": {
3023
3642
  "name": "idx_user_organizations_user_id",
3024
- "columns": ["user_id"],
3643
+ "columns": [
3644
+ "user_id"
3645
+ ],
3025
3646
  "isUnique": false
3026
3647
  },
3027
3648
  "idx_user_organizations_organization_id": {
3028
3649
  "name": "idx_user_organizations_organization_id",
3029
- "columns": ["organization_id"],
3650
+ "columns": [
3651
+ "organization_id"
3652
+ ],
3030
3653
  "isUnique": false
3031
3654
  }
3032
3655
  },
@@ -3163,7 +3786,10 @@
3163
3786
  "foreignKeys": {},
3164
3787
  "compositePrimaryKeys": {
3165
3788
  "resource_servers_pk": {
3166
- "columns": ["tenant_id", "id"],
3789
+ "columns": [
3790
+ "tenant_id",
3791
+ "id"
3792
+ ],
3167
3793
  "name": "resource_servers_pk"
3168
3794
  }
3169
3795
  },
@@ -3212,7 +3838,10 @@
3212
3838
  "indexes": {
3213
3839
  "role_permissions_role_fk": {
3214
3840
  "name": "role_permissions_role_fk",
3215
- "columns": ["tenant_id", "role_id"],
3841
+ "columns": [
3842
+ "tenant_id",
3843
+ "role_id"
3844
+ ],
3216
3845
  "isUnique": false
3217
3846
  },
3218
3847
  "role_permissions_permission_fk": {
@@ -3305,7 +3934,10 @@
3305
3934
  "foreignKeys": {},
3306
3935
  "compositePrimaryKeys": {
3307
3936
  "roles_pk": {
3308
- "columns": ["tenant_id", "id"],
3937
+ "columns": [
3938
+ "tenant_id",
3939
+ "id"
3940
+ ],
3309
3941
  "name": "roles_pk"
3310
3942
  }
3311
3943
  },
@@ -3362,7 +3994,10 @@
3362
3994
  "indexes": {
3363
3995
  "user_permissions_user_fk": {
3364
3996
  "name": "user_permissions_user_fk",
3365
- "columns": ["tenant_id", "user_id"],
3997
+ "columns": [
3998
+ "tenant_id",
3999
+ "user_id"
4000
+ ],
3366
4001
  "isUnique": false
3367
4002
  },
3368
4003
  "user_permissions_permission_fk": {
@@ -3376,7 +4011,9 @@
3376
4011
  },
3377
4012
  "user_permissions_organization_fk": {
3378
4013
  "name": "user_permissions_organization_fk",
3379
- "columns": ["organization_id"],
4014
+ "columns": [
4015
+ "organization_id"
4016
+ ],
3380
4017
  "isUnique": false
3381
4018
  }
3382
4019
  },
@@ -3439,24 +4076,37 @@
3439
4076
  "indexes": {
3440
4077
  "user_roles_user_fk": {
3441
4078
  "name": "user_roles_user_fk",
3442
- "columns": ["tenant_id", "user_id"],
4079
+ "columns": [
4080
+ "tenant_id",
4081
+ "user_id"
4082
+ ],
3443
4083
  "isUnique": false
3444
4084
  },
3445
4085
  "user_roles_role_fk": {
3446
4086
  "name": "user_roles_role_fk",
3447
- "columns": ["tenant_id", "role_id"],
4087
+ "columns": [
4088
+ "tenant_id",
4089
+ "role_id"
4090
+ ],
3448
4091
  "isUnique": false
3449
4092
  },
3450
4093
  "user_roles_organization_fk": {
3451
4094
  "name": "user_roles_organization_fk",
3452
- "columns": ["organization_id"],
4095
+ "columns": [
4096
+ "organization_id"
4097
+ ],
3453
4098
  "isUnique": false
3454
4099
  }
3455
4100
  },
3456
4101
  "foreignKeys": {},
3457
4102
  "compositePrimaryKeys": {
3458
4103
  "user_roles_pk": {
3459
- "columns": ["tenant_id", "user_id", "role_id", "organization_id"],
4104
+ "columns": [
4105
+ "tenant_id",
4106
+ "user_id",
4107
+ "role_id",
4108
+ "organization_id"
4109
+ ],
3460
4110
  "name": "user_roles_pk"
3461
4111
  }
3462
4112
  },
@@ -3528,6 +4178,13 @@
3528
4178
  "primaryKey": false,
3529
4179
  "notNull": false,
3530
4180
  "autoincrement": false
4181
+ },
4182
+ "dark_mode": {
4183
+ "name": "dark_mode",
4184
+ "type": "text(8)",
4185
+ "primaryKey": false,
4186
+ "notNull": false,
4187
+ "autoincrement": false
3531
4188
  }
3532
4189
  },
3533
4190
  "indexes": {},
@@ -3536,8 +4193,12 @@
3536
4193
  "name": "branding_tenant_id_tenants_id_fk",
3537
4194
  "tableFrom": "branding",
3538
4195
  "tableTo": "tenants",
3539
- "columnsFrom": ["tenant_id"],
3540
- "columnsTo": ["id"],
4196
+ "columnsFrom": [
4197
+ "tenant_id"
4198
+ ],
4199
+ "columnsTo": [
4200
+ "id"
4201
+ ],
3541
4202
  "onDelete": "cascade",
3542
4203
  "onUpdate": "no action"
3543
4204
  }
@@ -3598,15 +4259,23 @@
3598
4259
  "name": "custom_text_tenant_id_tenants_id_fk",
3599
4260
  "tableFrom": "custom_text",
3600
4261
  "tableTo": "tenants",
3601
- "columnsFrom": ["tenant_id"],
3602
- "columnsTo": ["id"],
4262
+ "columnsFrom": [
4263
+ "tenant_id"
4264
+ ],
4265
+ "columnsTo": [
4266
+ "id"
4267
+ ],
3603
4268
  "onDelete": "cascade",
3604
4269
  "onUpdate": "no action"
3605
4270
  }
3606
4271
  },
3607
4272
  "compositePrimaryKeys": {
3608
4273
  "custom_text_tenant_id_prompt_language_pk": {
3609
- "columns": ["tenant_id", "prompt", "language"],
4274
+ "columns": [
4275
+ "tenant_id",
4276
+ "prompt",
4277
+ "language"
4278
+ ],
3610
4279
  "name": "custom_text_tenant_id_prompt_language_pk"
3611
4280
  }
3612
4281
  },
@@ -3778,15 +4447,22 @@
3778
4447
  "name": "email_templates_tenant_id_tenants_id_fk",
3779
4448
  "tableFrom": "email_templates",
3780
4449
  "tableTo": "tenants",
3781
- "columnsFrom": ["tenant_id"],
3782
- "columnsTo": ["id"],
4450
+ "columnsFrom": [
4451
+ "tenant_id"
4452
+ ],
4453
+ "columnsTo": [
4454
+ "id"
4455
+ ],
3783
4456
  "onDelete": "cascade",
3784
4457
  "onUpdate": "no action"
3785
4458
  }
3786
4459
  },
3787
4460
  "compositePrimaryKeys": {
3788
4461
  "email_templates_tenant_id_template_pk": {
3789
- "columns": ["tenant_id", "template"],
4462
+ "columns": [
4463
+ "tenant_id",
4464
+ "template"
4465
+ ],
3790
4466
  "name": "email_templates_tenant_id_template_pk"
3791
4467
  }
3792
4468
  },
@@ -3842,7 +4518,9 @@
3842
4518
  "indexes": {
3843
4519
  "flows_tenant_id_idx": {
3844
4520
  "name": "flows_tenant_id_idx",
3845
- "columns": ["tenant_id"],
4521
+ "columns": [
4522
+ "tenant_id"
4523
+ ],
3846
4524
  "isUnique": false
3847
4525
  }
3848
4526
  },
@@ -3851,8 +4529,12 @@
3851
4529
  "name": "flows_tenant_id_tenants_id_fk",
3852
4530
  "tableFrom": "flows",
3853
4531
  "tableTo": "tenants",
3854
- "columnsFrom": ["tenant_id"],
3855
- "columnsTo": ["id"],
4532
+ "columnsFrom": [
4533
+ "tenant_id"
4534
+ ],
4535
+ "columnsTo": [
4536
+ "id"
4537
+ ],
3856
4538
  "onDelete": "cascade",
3857
4539
  "onUpdate": "no action"
3858
4540
  }
@@ -3952,7 +4634,9 @@
3952
4634
  "indexes": {
3953
4635
  "forms_tenant_id_idx": {
3954
4636
  "name": "forms_tenant_id_idx",
3955
- "columns": ["tenant_id"],
4637
+ "columns": [
4638
+ "tenant_id"
4639
+ ],
3956
4640
  "isUnique": false
3957
4641
  }
3958
4642
  },
@@ -3961,8 +4645,12 @@
3961
4645
  "name": "forms_tenant_id_tenants_id_fk",
3962
4646
  "tableFrom": "forms",
3963
4647
  "tableTo": "tenants",
3964
- "columnsFrom": ["tenant_id"],
3965
- "columnsTo": ["id"],
4648
+ "columnsFrom": [
4649
+ "tenant_id"
4650
+ ],
4651
+ "columnsTo": [
4652
+ "id"
4653
+ ],
3966
4654
  "onDelete": "cascade",
3967
4655
  "onUpdate": "no action"
3968
4656
  }
@@ -4020,7 +4708,9 @@
4020
4708
  "indexes": {
4021
4709
  "hook_code_tenant_id_idx": {
4022
4710
  "name": "hook_code_tenant_id_idx",
4023
- "columns": ["tenant_id"],
4711
+ "columns": [
4712
+ "tenant_id"
4713
+ ],
4024
4714
  "isUnique": false
4025
4715
  }
4026
4716
  },
@@ -4029,8 +4719,12 @@
4029
4719
  "name": "hook_code_tenant_id_tenants_id_fk",
4030
4720
  "tableFrom": "hook_code",
4031
4721
  "tableTo": "tenants",
4032
- "columnsFrom": ["tenant_id"],
4033
- "columnsTo": ["id"],
4722
+ "columnsFrom": [
4723
+ "tenant_id"
4724
+ ],
4725
+ "columnsTo": [
4726
+ "id"
4727
+ ],
4034
4728
  "onDelete": "cascade",
4035
4729
  "onUpdate": "no action"
4036
4730
  }
@@ -4138,7 +4832,9 @@
4138
4832
  "indexes": {
4139
4833
  "hooks_tenant_id_idx": {
4140
4834
  "name": "hooks_tenant_id_idx",
4141
- "columns": ["tenant_id"],
4835
+ "columns": [
4836
+ "tenant_id"
4837
+ ],
4142
4838
  "isUnique": false
4143
4839
  }
4144
4840
  },
@@ -4147,8 +4843,12 @@
4147
4843
  "name": "hooks_tenant_id_tenants_id_fk",
4148
4844
  "tableFrom": "hooks",
4149
4845
  "tableTo": "tenants",
4150
- "columnsFrom": ["tenant_id"],
4151
- "columnsTo": ["id"],
4846
+ "columnsFrom": [
4847
+ "tenant_id"
4848
+ ],
4849
+ "columnsTo": [
4850
+ "id"
4851
+ ],
4152
4852
  "onDelete": "cascade",
4153
4853
  "onUpdate": "no action"
4154
4854
  }
@@ -4252,8 +4952,12 @@
4252
4952
  "name": "keys_tenant_id_tenants_id_fk",
4253
4953
  "tableFrom": "keys",
4254
4954
  "tableTo": "tenants",
4255
- "columnsFrom": ["tenant_id"],
4256
- "columnsTo": ["id"],
4955
+ "columnsFrom": [
4956
+ "tenant_id"
4957
+ ],
4958
+ "columnsTo": [
4959
+ "id"
4960
+ ],
4257
4961
  "onDelete": "cascade",
4258
4962
  "onUpdate": "no action"
4259
4963
  },
@@ -4261,8 +4965,12 @@
4261
4965
  "name": "keys_connection_connections_id_fk",
4262
4966
  "tableFrom": "keys",
4263
4967
  "tableTo": "connections",
4264
- "columnsFrom": ["connection"],
4265
- "columnsTo": ["id"],
4968
+ "columnsFrom": [
4969
+ "connection"
4970
+ ],
4971
+ "columnsTo": [
4972
+ "id"
4973
+ ],
4266
4974
  "onDelete": "cascade",
4267
4975
  "onUpdate": "no action"
4268
4976
  }
@@ -4719,7 +5427,9 @@
4719
5427
  "indexes": {
4720
5428
  "themes_tenant_id_idx": {
4721
5429
  "name": "themes_tenant_id_idx",
4722
- "columns": ["tenant_id"],
5430
+ "columns": [
5431
+ "tenant_id"
5432
+ ],
4723
5433
  "isUnique": false
4724
5434
  }
4725
5435
  },
@@ -4728,15 +5438,22 @@
4728
5438
  "name": "themes_tenant_id_tenants_id_fk",
4729
5439
  "tableFrom": "themes",
4730
5440
  "tableTo": "tenants",
4731
- "columnsFrom": ["tenant_id"],
4732
- "columnsTo": ["id"],
5441
+ "columnsFrom": [
5442
+ "tenant_id"
5443
+ ],
5444
+ "columnsTo": [
5445
+ "id"
5446
+ ],
4733
5447
  "onDelete": "cascade",
4734
5448
  "onUpdate": "no action"
4735
5449
  }
4736
5450
  },
4737
5451
  "compositePrimaryKeys": {
4738
5452
  "themes_pkey": {
4739
- "columns": ["tenant_id", "themeId"],
5453
+ "columns": [
5454
+ "tenant_id",
5455
+ "themeId"
5456
+ ],
4740
5457
  "name": "themes_pkey"
4741
5458
  }
4742
5459
  },
@@ -4781,8 +5498,12 @@
4781
5498
  "name": "universal_login_templates_tenant_id_tenants_id_fk",
4782
5499
  "tableFrom": "universal_login_templates",
4783
5500
  "tableTo": "tenants",
4784
- "columnsFrom": ["tenant_id"],
4785
- "columnsTo": ["id"],
5501
+ "columnsFrom": [
5502
+ "tenant_id"
5503
+ ],
5504
+ "columnsTo": [
5505
+ "id"
5506
+ ],
4786
5507
  "onDelete": "cascade",
4787
5508
  "onUpdate": "no action"
4788
5509
  }
@@ -4904,12 +5625,17 @@
4904
5625
  "indexes": {
4905
5626
  "authentication_methods_tenant_user_idx": {
4906
5627
  "name": "authentication_methods_tenant_user_idx",
4907
- "columns": ["tenant_id", "user_id"],
5628
+ "columns": [
5629
+ "tenant_id",
5630
+ "user_id"
5631
+ ],
4908
5632
  "isUnique": false
4909
5633
  },
4910
5634
  "authentication_methods_credential_id_idx": {
4911
5635
  "name": "authentication_methods_credential_id_idx",
4912
- "columns": ["credential_id"],
5636
+ "columns": [
5637
+ "credential_id"
5638
+ ],
4913
5639
  "isUnique": false
4914
5640
  }
4915
5641
  },
@@ -4918,8 +5644,12 @@
4918
5644
  "name": "authentication_methods_tenant_id_tenants_id_fk",
4919
5645
  "tableFrom": "authentication_methods",
4920
5646
  "tableTo": "tenants",
4921
- "columnsFrom": ["tenant_id"],
4922
- "columnsTo": ["id"],
5647
+ "columnsFrom": [
5648
+ "tenant_id"
5649
+ ],
5650
+ "columnsTo": [
5651
+ "id"
5652
+ ],
4923
5653
  "onDelete": "cascade",
4924
5654
  "onUpdate": "no action"
4925
5655
  }
@@ -5138,22 +5868,33 @@
5138
5868
  "indexes": {
5139
5869
  "logs_user_id": {
5140
5870
  "name": "logs_user_id",
5141
- "columns": ["user_id"],
5871
+ "columns": [
5872
+ "user_id"
5873
+ ],
5142
5874
  "isUnique": false
5143
5875
  },
5144
5876
  "logs_tenant_id": {
5145
5877
  "name": "logs_tenant_id",
5146
- "columns": ["tenant_id"],
5878
+ "columns": [
5879
+ "tenant_id"
5880
+ ],
5147
5881
  "isUnique": false
5148
5882
  },
5149
5883
  "logs_date": {
5150
5884
  "name": "logs_date",
5151
- "columns": ["date"],
5885
+ "columns": [
5886
+ "date"
5887
+ ],
5152
5888
  "isUnique": false
5153
5889
  },
5154
5890
  "IDX_logs_tenant_date_type_user": {
5155
5891
  "name": "IDX_logs_tenant_date_type_user",
5156
- "columns": ["tenant_id", "date", "type", "user_id"],
5892
+ "columns": [
5893
+ "tenant_id",
5894
+ "date",
5895
+ "type",
5896
+ "user_id"
5897
+ ],
5157
5898
  "isUnique": false
5158
5899
  }
5159
5900
  },
@@ -5282,22 +6023,31 @@
5282
6023
  "indexes": {
5283
6024
  "idx_outbox_events_tenant_id": {
5284
6025
  "name": "idx_outbox_events_tenant_id",
5285
- "columns": ["tenant_id"],
6026
+ "columns": [
6027
+ "tenant_id"
6028
+ ],
5286
6029
  "isUnique": false
5287
6030
  },
5288
6031
  "idx_outbox_events_processed_at": {
5289
6032
  "name": "idx_outbox_events_processed_at",
5290
- "columns": ["processed_at"],
6033
+ "columns": [
6034
+ "processed_at"
6035
+ ],
5291
6036
  "isUnique": false
5292
6037
  },
5293
6038
  "idx_outbox_events_claimed_by": {
5294
6039
  "name": "idx_outbox_events_claimed_by",
5295
- "columns": ["claimed_by"],
6040
+ "columns": [
6041
+ "claimed_by"
6042
+ ],
5296
6043
  "isUnique": false
5297
6044
  },
5298
6045
  "idx_outbox_events_tenant_dead_lettered": {
5299
6046
  "name": "idx_outbox_events_tenant_dead_lettered",
5300
- "columns": ["tenant_id", "dead_lettered_at"],
6047
+ "columns": [
6048
+ "tenant_id",
6049
+ "dead_lettered_at"
6050
+ ],
5301
6051
  "isUnique": false
5302
6052
  }
5303
6053
  },
@@ -5306,8 +6056,12 @@
5306
6056
  "name": "outbox_events_tenant_id_tenants_id_fk",
5307
6057
  "tableFrom": "outbox_events",
5308
6058
  "tableTo": "tenants",
5309
- "columnsFrom": ["tenant_id"],
5310
- "columnsTo": ["id"],
6059
+ "columnsFrom": [
6060
+ "tenant_id"
6061
+ ],
6062
+ "columnsTo": [
6063
+ "id"
6064
+ ],
5311
6065
  "onDelete": "cascade",
5312
6066
  "onUpdate": "no action"
5313
6067
  }
@@ -5315,6 +6069,90 @@
5315
6069
  "compositePrimaryKeys": {},
5316
6070
  "uniqueConstraints": {},
5317
6071
  "checkConstraints": {}
6072
+ },
6073
+ "proxy_routes": {
6074
+ "name": "proxy_routes",
6075
+ "columns": {
6076
+ "id": {
6077
+ "name": "id",
6078
+ "type": "text(64)",
6079
+ "primaryKey": true,
6080
+ "notNull": true,
6081
+ "autoincrement": false
6082
+ },
6083
+ "tenant_id": {
6084
+ "name": "tenant_id",
6085
+ "type": "text(255)",
6086
+ "primaryKey": false,
6087
+ "notNull": true,
6088
+ "autoincrement": false
6089
+ },
6090
+ "custom_domain_id": {
6091
+ "name": "custom_domain_id",
6092
+ "type": "text(256)",
6093
+ "primaryKey": false,
6094
+ "notNull": true,
6095
+ "autoincrement": false
6096
+ },
6097
+ "priority": {
6098
+ "name": "priority",
6099
+ "type": "integer",
6100
+ "primaryKey": false,
6101
+ "notNull": true,
6102
+ "autoincrement": false,
6103
+ "default": 100
6104
+ },
6105
+ "match": {
6106
+ "name": "match",
6107
+ "type": "text(2048)",
6108
+ "primaryKey": false,
6109
+ "notNull": true,
6110
+ "autoincrement": false,
6111
+ "default": "'{\"path\":\"/*\"}'"
6112
+ },
6113
+ "handlers": {
6114
+ "name": "handlers",
6115
+ "type": "text(16384)",
6116
+ "primaryKey": false,
6117
+ "notNull": true,
6118
+ "autoincrement": false,
6119
+ "default": "'[]'"
6120
+ },
6121
+ "created_at": {
6122
+ "name": "created_at",
6123
+ "type": "text(35)",
6124
+ "primaryKey": false,
6125
+ "notNull": true,
6126
+ "autoincrement": false
6127
+ },
6128
+ "updated_at": {
6129
+ "name": "updated_at",
6130
+ "type": "text(35)",
6131
+ "primaryKey": false,
6132
+ "notNull": true,
6133
+ "autoincrement": false
6134
+ }
6135
+ },
6136
+ "indexes": {
6137
+ "proxy_routes_tenant_id_idx": {
6138
+ "name": "proxy_routes_tenant_id_idx",
6139
+ "columns": [
6140
+ "tenant_id"
6141
+ ],
6142
+ "isUnique": false
6143
+ },
6144
+ "proxy_routes_custom_domain_id_idx": {
6145
+ "name": "proxy_routes_custom_domain_id_idx",
6146
+ "columns": [
6147
+ "custom_domain_id"
6148
+ ],
6149
+ "isUnique": false
6150
+ }
6151
+ },
6152
+ "foreignKeys": {},
6153
+ "compositePrimaryKeys": {},
6154
+ "uniqueConstraints": {},
6155
+ "checkConstraints": {}
5318
6156
  }
5319
6157
  },
5320
6158
  "views": {},
@@ -5327,4 +6165,4 @@
5327
6165
  "internal": {
5328
6166
  "indexes": {}
5329
6167
  }
5330
- }
6168
+ }