@authhero/drizzle 0.38.2 → 0.40.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,4979 +0,0 @@
1
- {
2
- "version": "6",
3
- "dialect": "sqlite",
4
- "id": "ab4ec13b-e783-4cf8-a351-d433e6170867",
5
- "prevId": "00000000-0000-0000-0000-000000000000",
6
- "tables": {
7
- "tenants": {
8
- "name": "tenants",
9
- "columns": {
10
- "id": {
11
- "name": "id",
12
- "type": "text(191)",
13
- "primaryKey": true,
14
- "notNull": true,
15
- "autoincrement": false
16
- },
17
- "name": {
18
- "name": "name",
19
- "type": "text(255)",
20
- "primaryKey": false,
21
- "notNull": false,
22
- "autoincrement": false
23
- },
24
- "audience": {
25
- "name": "audience",
26
- "type": "text(255)",
27
- "primaryKey": false,
28
- "notNull": false,
29
- "autoincrement": false
30
- },
31
- "sender_email": {
32
- "name": "sender_email",
33
- "type": "text(255)",
34
- "primaryKey": false,
35
- "notNull": false,
36
- "autoincrement": false
37
- },
38
- "sender_name": {
39
- "name": "sender_name",
40
- "type": "text(255)",
41
- "primaryKey": false,
42
- "notNull": false,
43
- "autoincrement": false
44
- },
45
- "language": {
46
- "name": "language",
47
- "type": "text(255)",
48
- "primaryKey": false,
49
- "notNull": false,
50
- "autoincrement": false
51
- },
52
- "logo": {
53
- "name": "logo",
54
- "type": "text(255)",
55
- "primaryKey": false,
56
- "notNull": false,
57
- "autoincrement": false
58
- },
59
- "primary_color": {
60
- "name": "primary_color",
61
- "type": "text(255)",
62
- "primaryKey": false,
63
- "notNull": false,
64
- "autoincrement": false
65
- },
66
- "secondary_color": {
67
- "name": "secondary_color",
68
- "type": "text(255)",
69
- "primaryKey": false,
70
- "notNull": false,
71
- "autoincrement": false
72
- },
73
- "created_at": {
74
- "name": "created_at",
75
- "type": "text(35)",
76
- "primaryKey": false,
77
- "notNull": true,
78
- "autoincrement": false
79
- },
80
- "updated_at": {
81
- "name": "updated_at",
82
- "type": "text(35)",
83
- "primaryKey": false,
84
- "notNull": true,
85
- "autoincrement": false
86
- },
87
- "support_url": {
88
- "name": "support_url",
89
- "type": "text(255)",
90
- "primaryKey": false,
91
- "notNull": false,
92
- "autoincrement": false
93
- },
94
- "idle_session_lifetime": {
95
- "name": "idle_session_lifetime",
96
- "type": "integer",
97
- "primaryKey": false,
98
- "notNull": false,
99
- "autoincrement": false
100
- },
101
- "session_lifetime": {
102
- "name": "session_lifetime",
103
- "type": "integer",
104
- "primaryKey": false,
105
- "notNull": false,
106
- "autoincrement": false
107
- },
108
- "session_cookie": {
109
- "name": "session_cookie",
110
- "type": "text",
111
- "primaryKey": false,
112
- "notNull": false,
113
- "autoincrement": false
114
- },
115
- "allowed_logout_urls": {
116
- "name": "allowed_logout_urls",
117
- "type": "text",
118
- "primaryKey": false,
119
- "notNull": false,
120
- "autoincrement": false
121
- },
122
- "ephemeral_session_lifetime": {
123
- "name": "ephemeral_session_lifetime",
124
- "type": "integer",
125
- "primaryKey": false,
126
- "notNull": false,
127
- "autoincrement": false
128
- },
129
- "idle_ephemeral_session_lifetime": {
130
- "name": "idle_ephemeral_session_lifetime",
131
- "type": "integer",
132
- "primaryKey": false,
133
- "notNull": false,
134
- "autoincrement": false
135
- },
136
- "default_redirection_uri": {
137
- "name": "default_redirection_uri",
138
- "type": "text",
139
- "primaryKey": false,
140
- "notNull": false,
141
- "autoincrement": false
142
- },
143
- "enabled_locales": {
144
- "name": "enabled_locales",
145
- "type": "text",
146
- "primaryKey": false,
147
- "notNull": false,
148
- "autoincrement": false
149
- },
150
- "default_directory": {
151
- "name": "default_directory",
152
- "type": "text(255)",
153
- "primaryKey": false,
154
- "notNull": false,
155
- "autoincrement": false
156
- },
157
- "error_page": {
158
- "name": "error_page",
159
- "type": "text",
160
- "primaryKey": false,
161
- "notNull": false,
162
- "autoincrement": false
163
- },
164
- "flags": {
165
- "name": "flags",
166
- "type": "text",
167
- "primaryKey": false,
168
- "notNull": false,
169
- "autoincrement": false
170
- },
171
- "friendly_name": {
172
- "name": "friendly_name",
173
- "type": "text(255)",
174
- "primaryKey": false,
175
- "notNull": false,
176
- "autoincrement": false
177
- },
178
- "picture_url": {
179
- "name": "picture_url",
180
- "type": "text",
181
- "primaryKey": false,
182
- "notNull": false,
183
- "autoincrement": false
184
- },
185
- "support_email": {
186
- "name": "support_email",
187
- "type": "text(255)",
188
- "primaryKey": false,
189
- "notNull": false,
190
- "autoincrement": false
191
- },
192
- "sandbox_version": {
193
- "name": "sandbox_version",
194
- "type": "text(50)",
195
- "primaryKey": false,
196
- "notNull": false,
197
- "autoincrement": false
198
- },
199
- "sandbox_versions_available": {
200
- "name": "sandbox_versions_available",
201
- "type": "text",
202
- "primaryKey": false,
203
- "notNull": false,
204
- "autoincrement": false
205
- },
206
- "legacy_sandbox_version": {
207
- "name": "legacy_sandbox_version",
208
- "type": "text(50)",
209
- "primaryKey": false,
210
- "notNull": false,
211
- "autoincrement": false
212
- },
213
- "change_password": {
214
- "name": "change_password",
215
- "type": "text",
216
- "primaryKey": false,
217
- "notNull": false,
218
- "autoincrement": false
219
- },
220
- "guardian_mfa_page": {
221
- "name": "guardian_mfa_page",
222
- "type": "text",
223
- "primaryKey": false,
224
- "notNull": false,
225
- "autoincrement": false
226
- },
227
- "device_flow": {
228
- "name": "device_flow",
229
- "type": "text",
230
- "primaryKey": false,
231
- "notNull": false,
232
- "autoincrement": false
233
- },
234
- "default_token_quota": {
235
- "name": "default_token_quota",
236
- "type": "text",
237
- "primaryKey": false,
238
- "notNull": false,
239
- "autoincrement": false
240
- },
241
- "default_audience": {
242
- "name": "default_audience",
243
- "type": "text(255)",
244
- "primaryKey": false,
245
- "notNull": false,
246
- "autoincrement": false
247
- },
248
- "default_organization": {
249
- "name": "default_organization",
250
- "type": "text(255)",
251
- "primaryKey": false,
252
- "notNull": false,
253
- "autoincrement": false
254
- },
255
- "sessions": {
256
- "name": "sessions",
257
- "type": "text",
258
- "primaryKey": false,
259
- "notNull": false,
260
- "autoincrement": false
261
- },
262
- "oidc_logout": {
263
- "name": "oidc_logout",
264
- "type": "text",
265
- "primaryKey": false,
266
- "notNull": false,
267
- "autoincrement": false
268
- },
269
- "allow_organization_name_in_authentication_api": {
270
- "name": "allow_organization_name_in_authentication_api",
271
- "type": "integer",
272
- "primaryKey": false,
273
- "notNull": false,
274
- "autoincrement": false
275
- },
276
- "customize_mfa_in_postlogin_action": {
277
- "name": "customize_mfa_in_postlogin_action",
278
- "type": "integer",
279
- "primaryKey": false,
280
- "notNull": false,
281
- "autoincrement": false
282
- },
283
- "acr_values_supported": {
284
- "name": "acr_values_supported",
285
- "type": "text",
286
- "primaryKey": false,
287
- "notNull": false,
288
- "autoincrement": false
289
- },
290
- "mtls": {
291
- "name": "mtls",
292
- "type": "text",
293
- "primaryKey": false,
294
- "notNull": false,
295
- "autoincrement": false
296
- },
297
- "pushed_authorization_requests_supported": {
298
- "name": "pushed_authorization_requests_supported",
299
- "type": "integer",
300
- "primaryKey": false,
301
- "notNull": false,
302
- "autoincrement": false
303
- },
304
- "authorization_response_iss_parameter_supported": {
305
- "name": "authorization_response_iss_parameter_supported",
306
- "type": "integer",
307
- "primaryKey": false,
308
- "notNull": false,
309
- "autoincrement": false
310
- }
311
- },
312
- "indexes": {},
313
- "foreignKeys": {},
314
- "compositePrimaryKeys": {},
315
- "uniqueConstraints": {},
316
- "checkConstraints": {}
317
- },
318
- "passwords": {
319
- "name": "passwords",
320
- "columns": {
321
- "id": {
322
- "name": "id",
323
- "type": "text(21)",
324
- "primaryKey": true,
325
- "notNull": true,
326
- "autoincrement": false
327
- },
328
- "tenant_id": {
329
- "name": "tenant_id",
330
- "type": "text(191)",
331
- "primaryKey": false,
332
- "notNull": true,
333
- "autoincrement": false
334
- },
335
- "user_id": {
336
- "name": "user_id",
337
- "type": "text(255)",
338
- "primaryKey": false,
339
- "notNull": true,
340
- "autoincrement": false
341
- },
342
- "created_at": {
343
- "name": "created_at",
344
- "type": "text(35)",
345
- "primaryKey": false,
346
- "notNull": true,
347
- "autoincrement": false
348
- },
349
- "updated_at": {
350
- "name": "updated_at",
351
- "type": "text(35)",
352
- "primaryKey": false,
353
- "notNull": true,
354
- "autoincrement": false
355
- },
356
- "password": {
357
- "name": "password",
358
- "type": "text(255)",
359
- "primaryKey": false,
360
- "notNull": true,
361
- "autoincrement": false
362
- },
363
- "algorithm": {
364
- "name": "algorithm",
365
- "type": "text(16)",
366
- "primaryKey": false,
367
- "notNull": true,
368
- "autoincrement": false,
369
- "default": "'bcrypt'"
370
- },
371
- "is_current": {
372
- "name": "is_current",
373
- "type": "integer",
374
- "primaryKey": false,
375
- "notNull": true,
376
- "autoincrement": false,
377
- "default": 1
378
- }
379
- },
380
- "indexes": {},
381
- "foreignKeys": {
382
- "passwords_tenant_id_tenants_id_fk": {
383
- "name": "passwords_tenant_id_tenants_id_fk",
384
- "tableFrom": "passwords",
385
- "tableTo": "tenants",
386
- "columnsFrom": ["tenant_id"],
387
- "columnsTo": ["id"],
388
- "onDelete": "cascade",
389
- "onUpdate": "no action"
390
- }
391
- },
392
- "compositePrimaryKeys": {},
393
- "uniqueConstraints": {},
394
- "checkConstraints": {}
395
- },
396
- "users": {
397
- "name": "users",
398
- "columns": {
399
- "user_id": {
400
- "name": "user_id",
401
- "type": "text(255)",
402
- "primaryKey": false,
403
- "notNull": true,
404
- "autoincrement": false
405
- },
406
- "tenant_id": {
407
- "name": "tenant_id",
408
- "type": "text(191)",
409
- "primaryKey": false,
410
- "notNull": true,
411
- "autoincrement": false
412
- },
413
- "email": {
414
- "name": "email",
415
- "type": "text(255)",
416
- "primaryKey": false,
417
- "notNull": false,
418
- "autoincrement": false
419
- },
420
- "given_name": {
421
- "name": "given_name",
422
- "type": "text(255)",
423
- "primaryKey": false,
424
- "notNull": false,
425
- "autoincrement": false
426
- },
427
- "family_name": {
428
- "name": "family_name",
429
- "type": "text(255)",
430
- "primaryKey": false,
431
- "notNull": false,
432
- "autoincrement": false
433
- },
434
- "nickname": {
435
- "name": "nickname",
436
- "type": "text(255)",
437
- "primaryKey": false,
438
- "notNull": false,
439
- "autoincrement": false
440
- },
441
- "name": {
442
- "name": "name",
443
- "type": "text(255)",
444
- "primaryKey": false,
445
- "notNull": false,
446
- "autoincrement": false
447
- },
448
- "picture": {
449
- "name": "picture",
450
- "type": "text(2083)",
451
- "primaryKey": false,
452
- "notNull": false,
453
- "autoincrement": false
454
- },
455
- "tags": {
456
- "name": "tags",
457
- "type": "text(255)",
458
- "primaryKey": false,
459
- "notNull": false,
460
- "autoincrement": false
461
- },
462
- "phone_number": {
463
- "name": "phone_number",
464
- "type": "text(17)",
465
- "primaryKey": false,
466
- "notNull": false,
467
- "autoincrement": false
468
- },
469
- "phone_verified": {
470
- "name": "phone_verified",
471
- "type": "integer",
472
- "primaryKey": false,
473
- "notNull": false,
474
- "autoincrement": false
475
- },
476
- "username": {
477
- "name": "username",
478
- "type": "text(128)",
479
- "primaryKey": false,
480
- "notNull": false,
481
- "autoincrement": false
482
- },
483
- "created_at": {
484
- "name": "created_at",
485
- "type": "text(35)",
486
- "primaryKey": false,
487
- "notNull": true,
488
- "autoincrement": false
489
- },
490
- "updated_at": {
491
- "name": "updated_at",
492
- "type": "text(35)",
493
- "primaryKey": false,
494
- "notNull": true,
495
- "autoincrement": false
496
- },
497
- "linked_to": {
498
- "name": "linked_to",
499
- "type": "text(255)",
500
- "primaryKey": false,
501
- "notNull": false,
502
- "autoincrement": false
503
- },
504
- "last_ip": {
505
- "name": "last_ip",
506
- "type": "text(255)",
507
- "primaryKey": false,
508
- "notNull": false,
509
- "autoincrement": false
510
- },
511
- "login_count": {
512
- "name": "login_count",
513
- "type": "integer",
514
- "primaryKey": false,
515
- "notNull": true,
516
- "autoincrement": false
517
- },
518
- "last_login": {
519
- "name": "last_login",
520
- "type": "text(255)",
521
- "primaryKey": false,
522
- "notNull": false,
523
- "autoincrement": false
524
- },
525
- "provider": {
526
- "name": "provider",
527
- "type": "text(255)",
528
- "primaryKey": false,
529
- "notNull": true,
530
- "autoincrement": false
531
- },
532
- "connection": {
533
- "name": "connection",
534
- "type": "text(255)",
535
- "primaryKey": false,
536
- "notNull": false,
537
- "autoincrement": false
538
- },
539
- "email_verified": {
540
- "name": "email_verified",
541
- "type": "integer",
542
- "primaryKey": false,
543
- "notNull": true,
544
- "autoincrement": false
545
- },
546
- "is_social": {
547
- "name": "is_social",
548
- "type": "integer",
549
- "primaryKey": false,
550
- "notNull": true,
551
- "autoincrement": false
552
- },
553
- "app_metadata": {
554
- "name": "app_metadata",
555
- "type": "text(4096)",
556
- "primaryKey": false,
557
- "notNull": true,
558
- "autoincrement": false,
559
- "default": "'{}'"
560
- },
561
- "user_metadata": {
562
- "name": "user_metadata",
563
- "type": "text",
564
- "primaryKey": false,
565
- "notNull": true,
566
- "autoincrement": false,
567
- "default": "'{}'"
568
- },
569
- "profileData": {
570
- "name": "profileData",
571
- "type": "text(2048)",
572
- "primaryKey": false,
573
- "notNull": false,
574
- "autoincrement": false
575
- },
576
- "locale": {
577
- "name": "locale",
578
- "type": "text(255)",
579
- "primaryKey": false,
580
- "notNull": false,
581
- "autoincrement": false
582
- },
583
- "middle_name": {
584
- "name": "middle_name",
585
- "type": "text(100)",
586
- "primaryKey": false,
587
- "notNull": false,
588
- "autoincrement": false
589
- },
590
- "preferred_username": {
591
- "name": "preferred_username",
592
- "type": "text(255)",
593
- "primaryKey": false,
594
- "notNull": false,
595
- "autoincrement": false
596
- },
597
- "profile": {
598
- "name": "profile",
599
- "type": "text",
600
- "primaryKey": false,
601
- "notNull": false,
602
- "autoincrement": false
603
- },
604
- "website": {
605
- "name": "website",
606
- "type": "text",
607
- "primaryKey": false,
608
- "notNull": false,
609
- "autoincrement": false
610
- },
611
- "gender": {
612
- "name": "gender",
613
- "type": "text(50)",
614
- "primaryKey": false,
615
- "notNull": false,
616
- "autoincrement": false
617
- },
618
- "birthdate": {
619
- "name": "birthdate",
620
- "type": "text(10)",
621
- "primaryKey": false,
622
- "notNull": false,
623
- "autoincrement": false
624
- },
625
- "zoneinfo": {
626
- "name": "zoneinfo",
627
- "type": "text(100)",
628
- "primaryKey": false,
629
- "notNull": false,
630
- "autoincrement": false
631
- },
632
- "address": {
633
- "name": "address",
634
- "type": "text",
635
- "primaryKey": false,
636
- "notNull": false,
637
- "autoincrement": false
638
- }
639
- },
640
- "indexes": {
641
- "unique_email_provider": {
642
- "name": "unique_email_provider",
643
- "columns": ["email", "provider", "tenant_id"],
644
- "isUnique": true
645
- },
646
- "unique_phone_provider": {
647
- "name": "unique_phone_provider",
648
- "columns": ["phone_number", "provider", "tenant_id"],
649
- "isUnique": true
650
- },
651
- "unique_username_provider": {
652
- "name": "unique_username_provider",
653
- "columns": ["username", "provider", "tenant_id"],
654
- "isUnique": true
655
- },
656
- "users_email_index": {
657
- "name": "users_email_index",
658
- "columns": ["email"],
659
- "isUnique": false
660
- },
661
- "users_linked_to_index": {
662
- "name": "users_linked_to_index",
663
- "columns": ["linked_to"],
664
- "isUnique": false
665
- },
666
- "users_name_index": {
667
- "name": "users_name_index",
668
- "columns": ["name"],
669
- "isUnique": false
670
- },
671
- "users_phone_tenant_provider_index": {
672
- "name": "users_phone_tenant_provider_index",
673
- "columns": ["tenant_id", "phone_number", "provider"],
674
- "isUnique": false
675
- }
676
- },
677
- "foreignKeys": {
678
- "users_tenant_id_tenants_id_fk": {
679
- "name": "users_tenant_id_tenants_id_fk",
680
- "tableFrom": "users",
681
- "tableTo": "tenants",
682
- "columnsFrom": ["tenant_id"],
683
- "columnsTo": ["id"],
684
- "onDelete": "cascade",
685
- "onUpdate": "no action"
686
- }
687
- },
688
- "compositePrimaryKeys": {
689
- "users_tenants": {
690
- "columns": ["user_id", "tenant_id"],
691
- "name": "users_tenants"
692
- }
693
- },
694
- "uniqueConstraints": {},
695
- "checkConstraints": {}
696
- },
697
- "authentication_codes": {
698
- "name": "authentication_codes",
699
- "columns": {
700
- "tenant_id": {
701
- "name": "tenant_id",
702
- "type": "text(191)",
703
- "primaryKey": false,
704
- "notNull": true,
705
- "autoincrement": false
706
- },
707
- "code": {
708
- "name": "code",
709
- "type": "text(255)",
710
- "primaryKey": true,
711
- "notNull": true,
712
- "autoincrement": false
713
- },
714
- "client_id": {
715
- "name": "client_id",
716
- "type": "text(255)",
717
- "primaryKey": false,
718
- "notNull": true,
719
- "autoincrement": false
720
- },
721
- "user_id": {
722
- "name": "user_id",
723
- "type": "text(255)",
724
- "primaryKey": false,
725
- "notNull": true,
726
- "autoincrement": false
727
- },
728
- "nonce": {
729
- "name": "nonce",
730
- "type": "text(255)",
731
- "primaryKey": false,
732
- "notNull": false,
733
- "autoincrement": false
734
- },
735
- "state": {
736
- "name": "state",
737
- "type": "text(8192)",
738
- "primaryKey": false,
739
- "notNull": false,
740
- "autoincrement": false
741
- },
742
- "scope": {
743
- "name": "scope",
744
- "type": "text(1024)",
745
- "primaryKey": false,
746
- "notNull": false,
747
- "autoincrement": false
748
- },
749
- "response_type": {
750
- "name": "response_type",
751
- "type": "text(256)",
752
- "primaryKey": false,
753
- "notNull": false,
754
- "autoincrement": false
755
- },
756
- "response_mode": {
757
- "name": "response_mode",
758
- "type": "text(256)",
759
- "primaryKey": false,
760
- "notNull": false,
761
- "autoincrement": false
762
- },
763
- "redirect_uri": {
764
- "name": "redirect_uri",
765
- "type": "text(1024)",
766
- "primaryKey": false,
767
- "notNull": false,
768
- "autoincrement": false
769
- },
770
- "created_at": {
771
- "name": "created_at",
772
- "type": "text(35)",
773
- "primaryKey": false,
774
- "notNull": true,
775
- "autoincrement": false
776
- },
777
- "expires_at": {
778
- "name": "expires_at",
779
- "type": "text(35)",
780
- "primaryKey": false,
781
- "notNull": true,
782
- "autoincrement": false
783
- },
784
- "used_at": {
785
- "name": "used_at",
786
- "type": "text(35)",
787
- "primaryKey": false,
788
- "notNull": false,
789
- "autoincrement": false
790
- }
791
- },
792
- "indexes": {},
793
- "foreignKeys": {
794
- "authentication_codes_tenant_id_tenants_id_fk": {
795
- "name": "authentication_codes_tenant_id_tenants_id_fk",
796
- "tableFrom": "authentication_codes",
797
- "tableTo": "tenants",
798
- "columnsFrom": ["tenant_id"],
799
- "columnsTo": ["id"],
800
- "onDelete": "cascade",
801
- "onUpdate": "no action"
802
- }
803
- },
804
- "compositePrimaryKeys": {},
805
- "uniqueConstraints": {},
806
- "checkConstraints": {}
807
- },
808
- "codes": {
809
- "name": "codes",
810
- "columns": {
811
- "code_id": {
812
- "name": "code_id",
813
- "type": "text(191)",
814
- "primaryKey": false,
815
- "notNull": true,
816
- "autoincrement": false
817
- },
818
- "tenant_id": {
819
- "name": "tenant_id",
820
- "type": "text(191)",
821
- "primaryKey": false,
822
- "notNull": true,
823
- "autoincrement": false
824
- },
825
- "user_id": {
826
- "name": "user_id",
827
- "type": "text(255)",
828
- "primaryKey": false,
829
- "notNull": false,
830
- "autoincrement": false
831
- },
832
- "login_id": {
833
- "name": "login_id",
834
- "type": "text(255)",
835
- "primaryKey": false,
836
- "notNull": false,
837
- "autoincrement": false
838
- },
839
- "connection_id": {
840
- "name": "connection_id",
841
- "type": "text(255)",
842
- "primaryKey": false,
843
- "notNull": false,
844
- "autoincrement": false
845
- },
846
- "code_type": {
847
- "name": "code_type",
848
- "type": "text(255)",
849
- "primaryKey": false,
850
- "notNull": true,
851
- "autoincrement": false
852
- },
853
- "created_at": {
854
- "name": "created_at",
855
- "type": "text(35)",
856
- "primaryKey": false,
857
- "notNull": true,
858
- "autoincrement": false
859
- },
860
- "expires_at": {
861
- "name": "expires_at",
862
- "type": "text(35)",
863
- "primaryKey": false,
864
- "notNull": true,
865
- "autoincrement": false
866
- },
867
- "used_at": {
868
- "name": "used_at",
869
- "type": "text(35)",
870
- "primaryKey": false,
871
- "notNull": false,
872
- "autoincrement": false
873
- },
874
- "code_verifier": {
875
- "name": "code_verifier",
876
- "type": "text(128)",
877
- "primaryKey": false,
878
- "notNull": false,
879
- "autoincrement": false
880
- },
881
- "code_challenge": {
882
- "name": "code_challenge",
883
- "type": "text(128)",
884
- "primaryKey": false,
885
- "notNull": false,
886
- "autoincrement": false
887
- },
888
- "code_challenge_method": {
889
- "name": "code_challenge_method",
890
- "type": "text(5)",
891
- "primaryKey": false,
892
- "notNull": false,
893
- "autoincrement": false
894
- },
895
- "redirect_uri": {
896
- "name": "redirect_uri",
897
- "type": "text(1024)",
898
- "primaryKey": false,
899
- "notNull": false,
900
- "autoincrement": false
901
- },
902
- "nonce": {
903
- "name": "nonce",
904
- "type": "text(1024)",
905
- "primaryKey": false,
906
- "notNull": false,
907
- "autoincrement": false
908
- },
909
- "state": {
910
- "name": "state",
911
- "type": "text(2048)",
912
- "primaryKey": false,
913
- "notNull": false,
914
- "autoincrement": false
915
- }
916
- },
917
- "indexes": {
918
- "codes_expires_at_index": {
919
- "name": "codes_expires_at_index",
920
- "columns": ["expires_at"],
921
- "isUnique": false
922
- }
923
- },
924
- "foreignKeys": {
925
- "codes_tenant_id_tenants_id_fk": {
926
- "name": "codes_tenant_id_tenants_id_fk",
927
- "tableFrom": "codes",
928
- "tableTo": "tenants",
929
- "columnsFrom": ["tenant_id"],
930
- "columnsTo": ["id"],
931
- "onDelete": "cascade",
932
- "onUpdate": "no action"
933
- }
934
- },
935
- "compositePrimaryKeys": {
936
- "PK_codes_code_id_code_type": {
937
- "columns": ["code_id", "code_type"],
938
- "name": "PK_codes_code_id_code_type"
939
- }
940
- },
941
- "uniqueConstraints": {},
942
- "checkConstraints": {}
943
- },
944
- "login_sessions": {
945
- "name": "login_sessions",
946
- "columns": {
947
- "id": {
948
- "name": "id",
949
- "type": "text(21)",
950
- "primaryKey": false,
951
- "notNull": true,
952
- "autoincrement": false
953
- },
954
- "tenant_id": {
955
- "name": "tenant_id",
956
- "type": "text(191)",
957
- "primaryKey": false,
958
- "notNull": true,
959
- "autoincrement": false
960
- },
961
- "session_id": {
962
- "name": "session_id",
963
- "type": "text(21)",
964
- "primaryKey": false,
965
- "notNull": false,
966
- "autoincrement": false
967
- },
968
- "csrf_token": {
969
- "name": "csrf_token",
970
- "type": "text(21)",
971
- "primaryKey": false,
972
- "notNull": true,
973
- "autoincrement": false
974
- },
975
- "authParams_client_id": {
976
- "name": "authParams_client_id",
977
- "type": "text(191)",
978
- "primaryKey": false,
979
- "notNull": true,
980
- "autoincrement": false
981
- },
982
- "authParams_vendor_id": {
983
- "name": "authParams_vendor_id",
984
- "type": "text(255)",
985
- "primaryKey": false,
986
- "notNull": false,
987
- "autoincrement": false
988
- },
989
- "authParams_username": {
990
- "name": "authParams_username",
991
- "type": "text(255)",
992
- "primaryKey": false,
993
- "notNull": false,
994
- "autoincrement": false
995
- },
996
- "authParams_response_type": {
997
- "name": "authParams_response_type",
998
- "type": "text(255)",
999
- "primaryKey": false,
1000
- "notNull": false,
1001
- "autoincrement": false
1002
- },
1003
- "authParams_response_mode": {
1004
- "name": "authParams_response_mode",
1005
- "type": "text(255)",
1006
- "primaryKey": false,
1007
- "notNull": false,
1008
- "autoincrement": false
1009
- },
1010
- "authParams_audience": {
1011
- "name": "authParams_audience",
1012
- "type": "text(255)",
1013
- "primaryKey": false,
1014
- "notNull": false,
1015
- "autoincrement": false
1016
- },
1017
- "authParams_scope": {
1018
- "name": "authParams_scope",
1019
- "type": "text",
1020
- "primaryKey": false,
1021
- "notNull": false,
1022
- "autoincrement": false
1023
- },
1024
- "authParams_state": {
1025
- "name": "authParams_state",
1026
- "type": "text",
1027
- "primaryKey": false,
1028
- "notNull": false,
1029
- "autoincrement": false
1030
- },
1031
- "authParams_nonce": {
1032
- "name": "authParams_nonce",
1033
- "type": "text(255)",
1034
- "primaryKey": false,
1035
- "notNull": false,
1036
- "autoincrement": false
1037
- },
1038
- "authParams_code_challenge_method": {
1039
- "name": "authParams_code_challenge_method",
1040
- "type": "text(255)",
1041
- "primaryKey": false,
1042
- "notNull": false,
1043
- "autoincrement": false
1044
- },
1045
- "authParams_code_challenge": {
1046
- "name": "authParams_code_challenge",
1047
- "type": "text(255)",
1048
- "primaryKey": false,
1049
- "notNull": false,
1050
- "autoincrement": false
1051
- },
1052
- "authParams_redirect_uri": {
1053
- "name": "authParams_redirect_uri",
1054
- "type": "text",
1055
- "primaryKey": false,
1056
- "notNull": false,
1057
- "autoincrement": false
1058
- },
1059
- "authParams_organization": {
1060
- "name": "authParams_organization",
1061
- "type": "text(255)",
1062
- "primaryKey": false,
1063
- "notNull": false,
1064
- "autoincrement": false
1065
- },
1066
- "authParams_prompt": {
1067
- "name": "authParams_prompt",
1068
- "type": "text(32)",
1069
- "primaryKey": false,
1070
- "notNull": false,
1071
- "autoincrement": false
1072
- },
1073
- "authParams_act_as": {
1074
- "name": "authParams_act_as",
1075
- "type": "text(256)",
1076
- "primaryKey": false,
1077
- "notNull": false,
1078
- "autoincrement": false
1079
- },
1080
- "authParams_ui_locales": {
1081
- "name": "authParams_ui_locales",
1082
- "type": "text(32)",
1083
- "primaryKey": false,
1084
- "notNull": false,
1085
- "autoincrement": false
1086
- },
1087
- "authorization_url": {
1088
- "name": "authorization_url",
1089
- "type": "text",
1090
- "primaryKey": false,
1091
- "notNull": false,
1092
- "autoincrement": false
1093
- },
1094
- "created_at_ts": {
1095
- "name": "created_at_ts",
1096
- "type": "integer",
1097
- "primaryKey": false,
1098
- "notNull": true,
1099
- "autoincrement": false
1100
- },
1101
- "updated_at_ts": {
1102
- "name": "updated_at_ts",
1103
- "type": "integer",
1104
- "primaryKey": false,
1105
- "notNull": true,
1106
- "autoincrement": false
1107
- },
1108
- "expires_at_ts": {
1109
- "name": "expires_at_ts",
1110
- "type": "integer",
1111
- "primaryKey": false,
1112
- "notNull": true,
1113
- "autoincrement": false
1114
- },
1115
- "ip": {
1116
- "name": "ip",
1117
- "type": "text(39)",
1118
- "primaryKey": false,
1119
- "notNull": false,
1120
- "autoincrement": false
1121
- },
1122
- "useragent": {
1123
- "name": "useragent",
1124
- "type": "text",
1125
- "primaryKey": false,
1126
- "notNull": false,
1127
- "autoincrement": false
1128
- },
1129
- "auth0Client": {
1130
- "name": "auth0Client",
1131
- "type": "text(255)",
1132
- "primaryKey": false,
1133
- "notNull": false,
1134
- "autoincrement": false
1135
- },
1136
- "state": {
1137
- "name": "state",
1138
- "type": "text(50)",
1139
- "primaryKey": false,
1140
- "notNull": true,
1141
- "autoincrement": false,
1142
- "default": "'pending'"
1143
- },
1144
- "state_data": {
1145
- "name": "state_data",
1146
- "type": "text",
1147
- "primaryKey": false,
1148
- "notNull": false,
1149
- "autoincrement": false
1150
- },
1151
- "failure_reason": {
1152
- "name": "failure_reason",
1153
- "type": "text",
1154
- "primaryKey": false,
1155
- "notNull": false,
1156
- "autoincrement": false
1157
- },
1158
- "user_id": {
1159
- "name": "user_id",
1160
- "type": "text(255)",
1161
- "primaryKey": false,
1162
- "notNull": false,
1163
- "autoincrement": false
1164
- },
1165
- "auth_connection": {
1166
- "name": "auth_connection",
1167
- "type": "text(255)",
1168
- "primaryKey": false,
1169
- "notNull": false,
1170
- "autoincrement": false
1171
- }
1172
- },
1173
- "indexes": {
1174
- "login_sessions_id_index": {
1175
- "name": "login_sessions_id_index",
1176
- "columns": ["id"],
1177
- "isUnique": false
1178
- },
1179
- "login_sessions_state_idx": {
1180
- "name": "login_sessions_state_idx",
1181
- "columns": ["state"],
1182
- "isUnique": false
1183
- },
1184
- "login_sessions_state_updated_idx": {
1185
- "name": "login_sessions_state_updated_idx",
1186
- "columns": ["state", "updated_at_ts"],
1187
- "isUnique": false
1188
- },
1189
- "login_sessions_tenant_user_idx": {
1190
- "name": "login_sessions_tenant_user_idx",
1191
- "columns": ["tenant_id", "user_id"],
1192
- "isUnique": false
1193
- },
1194
- "idx_login_sessions_expires_at_ts": {
1195
- "name": "idx_login_sessions_expires_at_ts",
1196
- "columns": ["expires_at_ts"],
1197
- "isUnique": false
1198
- }
1199
- },
1200
- "foreignKeys": {
1201
- "login_sessions_tenant_id_tenants_id_fk": {
1202
- "name": "login_sessions_tenant_id_tenants_id_fk",
1203
- "tableFrom": "login_sessions",
1204
- "tableTo": "tenants",
1205
- "columnsFrom": ["tenant_id"],
1206
- "columnsTo": ["id"],
1207
- "onDelete": "cascade",
1208
- "onUpdate": "no action"
1209
- }
1210
- },
1211
- "compositePrimaryKeys": {
1212
- "login_sessions_pk": {
1213
- "columns": ["tenant_id", "id"],
1214
- "name": "login_sessions_pk"
1215
- }
1216
- },
1217
- "uniqueConstraints": {},
1218
- "checkConstraints": {}
1219
- },
1220
- "otps": {
1221
- "name": "otps",
1222
- "columns": {
1223
- "tenant_id": {
1224
- "name": "tenant_id",
1225
- "type": "text(191)",
1226
- "primaryKey": false,
1227
- "notNull": true,
1228
- "autoincrement": false
1229
- },
1230
- "id": {
1231
- "name": "id",
1232
- "type": "text(255)",
1233
- "primaryKey": true,
1234
- "notNull": true,
1235
- "autoincrement": false
1236
- },
1237
- "client_id": {
1238
- "name": "client_id",
1239
- "type": "text(255)",
1240
- "primaryKey": false,
1241
- "notNull": true,
1242
- "autoincrement": false
1243
- },
1244
- "code": {
1245
- "name": "code",
1246
- "type": "text(255)",
1247
- "primaryKey": false,
1248
- "notNull": true,
1249
- "autoincrement": false
1250
- },
1251
- "email": {
1252
- "name": "email",
1253
- "type": "text(255)",
1254
- "primaryKey": false,
1255
- "notNull": true,
1256
- "autoincrement": false
1257
- },
1258
- "user_id": {
1259
- "name": "user_id",
1260
- "type": "text(255)",
1261
- "primaryKey": false,
1262
- "notNull": false,
1263
- "autoincrement": false
1264
- },
1265
- "send": {
1266
- "name": "send",
1267
- "type": "text(255)",
1268
- "primaryKey": false,
1269
- "notNull": false,
1270
- "autoincrement": false
1271
- },
1272
- "nonce": {
1273
- "name": "nonce",
1274
- "type": "text(255)",
1275
- "primaryKey": false,
1276
- "notNull": false,
1277
- "autoincrement": false
1278
- },
1279
- "state": {
1280
- "name": "state",
1281
- "type": "text(1024)",
1282
- "primaryKey": false,
1283
- "notNull": false,
1284
- "autoincrement": false
1285
- },
1286
- "scope": {
1287
- "name": "scope",
1288
- "type": "text(1024)",
1289
- "primaryKey": false,
1290
- "notNull": false,
1291
- "autoincrement": false
1292
- },
1293
- "response_type": {
1294
- "name": "response_type",
1295
- "type": "text(256)",
1296
- "primaryKey": false,
1297
- "notNull": false,
1298
- "autoincrement": false
1299
- },
1300
- "response_mode": {
1301
- "name": "response_mode",
1302
- "type": "text(256)",
1303
- "primaryKey": false,
1304
- "notNull": false,
1305
- "autoincrement": false
1306
- },
1307
- "redirect_uri": {
1308
- "name": "redirect_uri",
1309
- "type": "text(1024)",
1310
- "primaryKey": false,
1311
- "notNull": false,
1312
- "autoincrement": false
1313
- },
1314
- "created_at": {
1315
- "name": "created_at",
1316
- "type": "text(35)",
1317
- "primaryKey": false,
1318
- "notNull": true,
1319
- "autoincrement": false
1320
- },
1321
- "expires_at": {
1322
- "name": "expires_at",
1323
- "type": "text(35)",
1324
- "primaryKey": false,
1325
- "notNull": true,
1326
- "autoincrement": false
1327
- },
1328
- "used_at": {
1329
- "name": "used_at",
1330
- "type": "text(35)",
1331
- "primaryKey": false,
1332
- "notNull": false,
1333
- "autoincrement": false
1334
- },
1335
- "audience": {
1336
- "name": "audience",
1337
- "type": "text(255)",
1338
- "primaryKey": false,
1339
- "notNull": false,
1340
- "autoincrement": false
1341
- },
1342
- "ip": {
1343
- "name": "ip",
1344
- "type": "text(64)",
1345
- "primaryKey": false,
1346
- "notNull": false,
1347
- "autoincrement": false
1348
- }
1349
- },
1350
- "indexes": {
1351
- "otps_email_index": {
1352
- "name": "otps_email_index",
1353
- "columns": ["email"],
1354
- "isUnique": false
1355
- },
1356
- "otps_expires_at_index": {
1357
- "name": "otps_expires_at_index",
1358
- "columns": ["expires_at"],
1359
- "isUnique": false
1360
- }
1361
- },
1362
- "foreignKeys": {
1363
- "otps_tenant_id_tenants_id_fk": {
1364
- "name": "otps_tenant_id_tenants_id_fk",
1365
- "tableFrom": "otps",
1366
- "tableTo": "tenants",
1367
- "columnsFrom": ["tenant_id"],
1368
- "columnsTo": ["id"],
1369
- "onDelete": "cascade",
1370
- "onUpdate": "no action"
1371
- }
1372
- },
1373
- "compositePrimaryKeys": {},
1374
- "uniqueConstraints": {},
1375
- "checkConstraints": {}
1376
- },
1377
- "refresh_tokens": {
1378
- "name": "refresh_tokens",
1379
- "columns": {
1380
- "id": {
1381
- "name": "id",
1382
- "type": "text(21)",
1383
- "primaryKey": false,
1384
- "notNull": true,
1385
- "autoincrement": false
1386
- },
1387
- "tenant_id": {
1388
- "name": "tenant_id",
1389
- "type": "text(191)",
1390
- "primaryKey": false,
1391
- "notNull": true,
1392
- "autoincrement": false
1393
- },
1394
- "client_id": {
1395
- "name": "client_id",
1396
- "type": "text(191)",
1397
- "primaryKey": false,
1398
- "notNull": true,
1399
- "autoincrement": false
1400
- },
1401
- "login_id": {
1402
- "name": "login_id",
1403
- "type": "text(21)",
1404
- "primaryKey": false,
1405
- "notNull": true,
1406
- "autoincrement": false
1407
- },
1408
- "user_id": {
1409
- "name": "user_id",
1410
- "type": "text(255)",
1411
- "primaryKey": false,
1412
- "notNull": false,
1413
- "autoincrement": false
1414
- },
1415
- "resource_servers": {
1416
- "name": "resource_servers",
1417
- "type": "text",
1418
- "primaryKey": false,
1419
- "notNull": true,
1420
- "autoincrement": false
1421
- },
1422
- "device": {
1423
- "name": "device",
1424
- "type": "text",
1425
- "primaryKey": false,
1426
- "notNull": true,
1427
- "autoincrement": false
1428
- },
1429
- "rotating": {
1430
- "name": "rotating",
1431
- "type": "integer",
1432
- "primaryKey": false,
1433
- "notNull": true,
1434
- "autoincrement": false
1435
- },
1436
- "created_at_ts": {
1437
- "name": "created_at_ts",
1438
- "type": "integer",
1439
- "primaryKey": false,
1440
- "notNull": true,
1441
- "autoincrement": false
1442
- },
1443
- "expires_at_ts": {
1444
- "name": "expires_at_ts",
1445
- "type": "integer",
1446
- "primaryKey": false,
1447
- "notNull": false,
1448
- "autoincrement": false
1449
- },
1450
- "idle_expires_at_ts": {
1451
- "name": "idle_expires_at_ts",
1452
- "type": "integer",
1453
- "primaryKey": false,
1454
- "notNull": false,
1455
- "autoincrement": false
1456
- },
1457
- "last_exchanged_at_ts": {
1458
- "name": "last_exchanged_at_ts",
1459
- "type": "integer",
1460
- "primaryKey": false,
1461
- "notNull": false,
1462
- "autoincrement": false
1463
- }
1464
- },
1465
- "indexes": {
1466
- "idx_refresh_tokens_user_id": {
1467
- "name": "idx_refresh_tokens_user_id",
1468
- "columns": ["tenant_id", "user_id"],
1469
- "isUnique": false
1470
- },
1471
- "idx_refresh_tokens_login_id": {
1472
- "name": "idx_refresh_tokens_login_id",
1473
- "columns": ["login_id"],
1474
- "isUnique": false
1475
- },
1476
- "idx_refresh_tokens_expires_at_ts": {
1477
- "name": "idx_refresh_tokens_expires_at_ts",
1478
- "columns": ["expires_at_ts"],
1479
- "isUnique": false
1480
- }
1481
- },
1482
- "foreignKeys": {
1483
- "refresh_tokens_tenant_id_tenants_id_fk": {
1484
- "name": "refresh_tokens_tenant_id_tenants_id_fk",
1485
- "tableFrom": "refresh_tokens",
1486
- "tableTo": "tenants",
1487
- "columnsFrom": ["tenant_id"],
1488
- "columnsTo": ["id"],
1489
- "onDelete": "cascade",
1490
- "onUpdate": "no action"
1491
- }
1492
- },
1493
- "compositePrimaryKeys": {
1494
- "refresh_tokens_pk": {
1495
- "columns": ["tenant_id", "id"],
1496
- "name": "refresh_tokens_pk"
1497
- }
1498
- },
1499
- "uniqueConstraints": {},
1500
- "checkConstraints": {}
1501
- },
1502
- "sessions": {
1503
- "name": "sessions",
1504
- "columns": {
1505
- "id": {
1506
- "name": "id",
1507
- "type": "text(21)",
1508
- "primaryKey": false,
1509
- "notNull": true,
1510
- "autoincrement": false
1511
- },
1512
- "tenant_id": {
1513
- "name": "tenant_id",
1514
- "type": "text(191)",
1515
- "primaryKey": false,
1516
- "notNull": true,
1517
- "autoincrement": false
1518
- },
1519
- "user_id": {
1520
- "name": "user_id",
1521
- "type": "text(255)",
1522
- "primaryKey": false,
1523
- "notNull": false,
1524
- "autoincrement": false
1525
- },
1526
- "created_at_ts": {
1527
- "name": "created_at_ts",
1528
- "type": "integer",
1529
- "primaryKey": false,
1530
- "notNull": true,
1531
- "autoincrement": false
1532
- },
1533
- "updated_at_ts": {
1534
- "name": "updated_at_ts",
1535
- "type": "integer",
1536
- "primaryKey": false,
1537
- "notNull": true,
1538
- "autoincrement": false
1539
- },
1540
- "expires_at_ts": {
1541
- "name": "expires_at_ts",
1542
- "type": "integer",
1543
- "primaryKey": false,
1544
- "notNull": false,
1545
- "autoincrement": false
1546
- },
1547
- "idle_expires_at_ts": {
1548
- "name": "idle_expires_at_ts",
1549
- "type": "integer",
1550
- "primaryKey": false,
1551
- "notNull": false,
1552
- "autoincrement": false
1553
- },
1554
- "authenticated_at_ts": {
1555
- "name": "authenticated_at_ts",
1556
- "type": "integer",
1557
- "primaryKey": false,
1558
- "notNull": false,
1559
- "autoincrement": false
1560
- },
1561
- "last_interaction_at_ts": {
1562
- "name": "last_interaction_at_ts",
1563
- "type": "integer",
1564
- "primaryKey": false,
1565
- "notNull": false,
1566
- "autoincrement": false
1567
- },
1568
- "used_at_ts": {
1569
- "name": "used_at_ts",
1570
- "type": "integer",
1571
- "primaryKey": false,
1572
- "notNull": false,
1573
- "autoincrement": false
1574
- },
1575
- "revoked_at_ts": {
1576
- "name": "revoked_at_ts",
1577
- "type": "integer",
1578
- "primaryKey": false,
1579
- "notNull": false,
1580
- "autoincrement": false
1581
- },
1582
- "device": {
1583
- "name": "device",
1584
- "type": "text",
1585
- "primaryKey": false,
1586
- "notNull": true,
1587
- "autoincrement": false
1588
- },
1589
- "clients": {
1590
- "name": "clients",
1591
- "type": "text",
1592
- "primaryKey": false,
1593
- "notNull": true,
1594
- "autoincrement": false
1595
- },
1596
- "login_session_id": {
1597
- "name": "login_session_id",
1598
- "type": "text(21)",
1599
- "primaryKey": false,
1600
- "notNull": false,
1601
- "autoincrement": false
1602
- }
1603
- },
1604
- "indexes": {
1605
- "IDX_sessions_login_session_id": {
1606
- "name": "IDX_sessions_login_session_id",
1607
- "columns": ["login_session_id"],
1608
- "isUnique": false
1609
- },
1610
- "idx_sessions_user_id": {
1611
- "name": "idx_sessions_user_id",
1612
- "columns": ["tenant_id", "user_id"],
1613
- "isUnique": false
1614
- },
1615
- "idx_sessions_expires_at_ts": {
1616
- "name": "idx_sessions_expires_at_ts",
1617
- "columns": ["expires_at_ts"],
1618
- "isUnique": false
1619
- }
1620
- },
1621
- "foreignKeys": {
1622
- "sessions_tenant_id_tenants_id_fk": {
1623
- "name": "sessions_tenant_id_tenants_id_fk",
1624
- "tableFrom": "sessions",
1625
- "tableTo": "tenants",
1626
- "columnsFrom": ["tenant_id"],
1627
- "columnsTo": ["id"],
1628
- "onDelete": "cascade",
1629
- "onUpdate": "no action"
1630
- }
1631
- },
1632
- "compositePrimaryKeys": {
1633
- "sessions_pk": {
1634
- "columns": ["tenant_id", "id"],
1635
- "name": "sessions_pk"
1636
- }
1637
- },
1638
- "uniqueConstraints": {},
1639
- "checkConstraints": {}
1640
- },
1641
- "tickets": {
1642
- "name": "tickets",
1643
- "columns": {
1644
- "tenant_id": {
1645
- "name": "tenant_id",
1646
- "type": "text(191)",
1647
- "primaryKey": false,
1648
- "notNull": true,
1649
- "autoincrement": false
1650
- },
1651
- "id": {
1652
- "name": "id",
1653
- "type": "text(255)",
1654
- "primaryKey": true,
1655
- "notNull": true,
1656
- "autoincrement": false
1657
- },
1658
- "client_id": {
1659
- "name": "client_id",
1660
- "type": "text(255)",
1661
- "primaryKey": false,
1662
- "notNull": true,
1663
- "autoincrement": false
1664
- },
1665
- "email": {
1666
- "name": "email",
1667
- "type": "text(255)",
1668
- "primaryKey": false,
1669
- "notNull": true,
1670
- "autoincrement": false
1671
- },
1672
- "nonce": {
1673
- "name": "nonce",
1674
- "type": "text(255)",
1675
- "primaryKey": false,
1676
- "notNull": false,
1677
- "autoincrement": false
1678
- },
1679
- "state": {
1680
- "name": "state",
1681
- "type": "text(1024)",
1682
- "primaryKey": false,
1683
- "notNull": false,
1684
- "autoincrement": false
1685
- },
1686
- "scope": {
1687
- "name": "scope",
1688
- "type": "text(1024)",
1689
- "primaryKey": false,
1690
- "notNull": false,
1691
- "autoincrement": false
1692
- },
1693
- "response_type": {
1694
- "name": "response_type",
1695
- "type": "text(256)",
1696
- "primaryKey": false,
1697
- "notNull": false,
1698
- "autoincrement": false
1699
- },
1700
- "response_mode": {
1701
- "name": "response_mode",
1702
- "type": "text(256)",
1703
- "primaryKey": false,
1704
- "notNull": false,
1705
- "autoincrement": false
1706
- },
1707
- "redirect_uri": {
1708
- "name": "redirect_uri",
1709
- "type": "text(1024)",
1710
- "primaryKey": false,
1711
- "notNull": false,
1712
- "autoincrement": false
1713
- },
1714
- "created_at": {
1715
- "name": "created_at",
1716
- "type": "text(35)",
1717
- "primaryKey": false,
1718
- "notNull": true,
1719
- "autoincrement": false
1720
- },
1721
- "expires_at": {
1722
- "name": "expires_at",
1723
- "type": "text(35)",
1724
- "primaryKey": false,
1725
- "notNull": true,
1726
- "autoincrement": false
1727
- },
1728
- "used_at": {
1729
- "name": "used_at",
1730
- "type": "text(35)",
1731
- "primaryKey": false,
1732
- "notNull": false,
1733
- "autoincrement": false
1734
- }
1735
- },
1736
- "indexes": {},
1737
- "foreignKeys": {
1738
- "tickets_tenant_id_tenants_id_fk": {
1739
- "name": "tickets_tenant_id_tenants_id_fk",
1740
- "tableFrom": "tickets",
1741
- "tableTo": "tenants",
1742
- "columnsFrom": ["tenant_id"],
1743
- "columnsTo": ["id"],
1744
- "onDelete": "cascade",
1745
- "onUpdate": "no action"
1746
- }
1747
- },
1748
- "compositePrimaryKeys": {},
1749
- "uniqueConstraints": {},
1750
- "checkConstraints": {}
1751
- },
1752
- "client_grants": {
1753
- "name": "client_grants",
1754
- "columns": {
1755
- "id": {
1756
- "name": "id",
1757
- "type": "text(21)",
1758
- "primaryKey": false,
1759
- "notNull": true,
1760
- "autoincrement": false
1761
- },
1762
- "tenant_id": {
1763
- "name": "tenant_id",
1764
- "type": "text(191)",
1765
- "primaryKey": false,
1766
- "notNull": true,
1767
- "autoincrement": false
1768
- },
1769
- "client_id": {
1770
- "name": "client_id",
1771
- "type": "text(191)",
1772
- "primaryKey": false,
1773
- "notNull": true,
1774
- "autoincrement": false
1775
- },
1776
- "audience": {
1777
- "name": "audience",
1778
- "type": "text(191)",
1779
- "primaryKey": false,
1780
- "notNull": true,
1781
- "autoincrement": false
1782
- },
1783
- "scope": {
1784
- "name": "scope",
1785
- "type": "text",
1786
- "primaryKey": false,
1787
- "notNull": false,
1788
- "autoincrement": false,
1789
- "default": "'[]'"
1790
- },
1791
- "organization_usage": {
1792
- "name": "organization_usage",
1793
- "type": "text(32)",
1794
- "primaryKey": false,
1795
- "notNull": false,
1796
- "autoincrement": false
1797
- },
1798
- "allow_any_organization": {
1799
- "name": "allow_any_organization",
1800
- "type": "integer",
1801
- "primaryKey": false,
1802
- "notNull": false,
1803
- "autoincrement": false,
1804
- "default": 0
1805
- },
1806
- "is_system": {
1807
- "name": "is_system",
1808
- "type": "integer",
1809
- "primaryKey": false,
1810
- "notNull": false,
1811
- "autoincrement": false,
1812
- "default": 0
1813
- },
1814
- "subject_type": {
1815
- "name": "subject_type",
1816
- "type": "text(32)",
1817
- "primaryKey": false,
1818
- "notNull": false,
1819
- "autoincrement": false
1820
- },
1821
- "authorization_details_types": {
1822
- "name": "authorization_details_types",
1823
- "type": "text",
1824
- "primaryKey": false,
1825
- "notNull": false,
1826
- "autoincrement": false,
1827
- "default": "'[]'"
1828
- },
1829
- "created_at": {
1830
- "name": "created_at",
1831
- "type": "text(35)",
1832
- "primaryKey": false,
1833
- "notNull": true,
1834
- "autoincrement": false
1835
- },
1836
- "updated_at": {
1837
- "name": "updated_at",
1838
- "type": "text(35)",
1839
- "primaryKey": false,
1840
- "notNull": true,
1841
- "autoincrement": false
1842
- }
1843
- },
1844
- "indexes": {
1845
- "idx_client_grants_audience": {
1846
- "name": "idx_client_grants_audience",
1847
- "columns": ["audience"],
1848
- "isUnique": false
1849
- }
1850
- },
1851
- "foreignKeys": {
1852
- "client_grants_tenant_id_tenants_id_fk": {
1853
- "name": "client_grants_tenant_id_tenants_id_fk",
1854
- "tableFrom": "client_grants",
1855
- "tableTo": "tenants",
1856
- "columnsFrom": ["tenant_id"],
1857
- "columnsTo": ["id"],
1858
- "onDelete": "cascade",
1859
- "onUpdate": "no action"
1860
- }
1861
- },
1862
- "compositePrimaryKeys": {
1863
- "pk_client_grants": {
1864
- "columns": ["tenant_id", "id"],
1865
- "name": "pk_client_grants"
1866
- }
1867
- },
1868
- "uniqueConstraints": {},
1869
- "checkConstraints": {}
1870
- },
1871
- "clients": {
1872
- "name": "clients",
1873
- "columns": {
1874
- "client_id": {
1875
- "name": "client_id",
1876
- "type": "text(191)",
1877
- "primaryKey": false,
1878
- "notNull": true,
1879
- "autoincrement": false
1880
- },
1881
- "tenant_id": {
1882
- "name": "tenant_id",
1883
- "type": "text(191)",
1884
- "primaryKey": false,
1885
- "notNull": true,
1886
- "autoincrement": false
1887
- },
1888
- "name": {
1889
- "name": "name",
1890
- "type": "text(255)",
1891
- "primaryKey": false,
1892
- "notNull": true,
1893
- "autoincrement": false
1894
- },
1895
- "description": {
1896
- "name": "description",
1897
- "type": "text(140)",
1898
- "primaryKey": false,
1899
- "notNull": false,
1900
- "autoincrement": false
1901
- },
1902
- "global": {
1903
- "name": "global",
1904
- "type": "integer",
1905
- "primaryKey": false,
1906
- "notNull": true,
1907
- "autoincrement": false,
1908
- "default": 0
1909
- },
1910
- "client_secret": {
1911
- "name": "client_secret",
1912
- "type": "text(255)",
1913
- "primaryKey": false,
1914
- "notNull": false,
1915
- "autoincrement": false
1916
- },
1917
- "app_type": {
1918
- "name": "app_type",
1919
- "type": "text(64)",
1920
- "primaryKey": false,
1921
- "notNull": false,
1922
- "autoincrement": false,
1923
- "default": "'regular_web'"
1924
- },
1925
- "logo_uri": {
1926
- "name": "logo_uri",
1927
- "type": "text(2083)",
1928
- "primaryKey": false,
1929
- "notNull": false,
1930
- "autoincrement": false
1931
- },
1932
- "is_first_party": {
1933
- "name": "is_first_party",
1934
- "type": "integer",
1935
- "primaryKey": false,
1936
- "notNull": true,
1937
- "autoincrement": false,
1938
- "default": 0
1939
- },
1940
- "oidc_conformant": {
1941
- "name": "oidc_conformant",
1942
- "type": "integer",
1943
- "primaryKey": false,
1944
- "notNull": true,
1945
- "autoincrement": false,
1946
- "default": 1
1947
- },
1948
- "auth0_conformant": {
1949
- "name": "auth0_conformant",
1950
- "type": "integer",
1951
- "primaryKey": false,
1952
- "notNull": true,
1953
- "autoincrement": false,
1954
- "default": 1
1955
- },
1956
- "callbacks": {
1957
- "name": "callbacks",
1958
- "type": "text",
1959
- "primaryKey": false,
1960
- "notNull": true,
1961
- "autoincrement": false
1962
- },
1963
- "allowed_origins": {
1964
- "name": "allowed_origins",
1965
- "type": "text",
1966
- "primaryKey": false,
1967
- "notNull": true,
1968
- "autoincrement": false
1969
- },
1970
- "web_origins": {
1971
- "name": "web_origins",
1972
- "type": "text",
1973
- "primaryKey": false,
1974
- "notNull": true,
1975
- "autoincrement": false
1976
- },
1977
- "client_aliases": {
1978
- "name": "client_aliases",
1979
- "type": "text",
1980
- "primaryKey": false,
1981
- "notNull": true,
1982
- "autoincrement": false
1983
- },
1984
- "allowed_clients": {
1985
- "name": "allowed_clients",
1986
- "type": "text",
1987
- "primaryKey": false,
1988
- "notNull": true,
1989
- "autoincrement": false
1990
- },
1991
- "allowed_logout_urls": {
1992
- "name": "allowed_logout_urls",
1993
- "type": "text",
1994
- "primaryKey": false,
1995
- "notNull": true,
1996
- "autoincrement": false
1997
- },
1998
- "session_transfer": {
1999
- "name": "session_transfer",
2000
- "type": "text",
2001
- "primaryKey": false,
2002
- "notNull": true,
2003
- "autoincrement": false
2004
- },
2005
- "oidc_logout": {
2006
- "name": "oidc_logout",
2007
- "type": "text",
2008
- "primaryKey": false,
2009
- "notNull": true,
2010
- "autoincrement": false
2011
- },
2012
- "grant_types": {
2013
- "name": "grant_types",
2014
- "type": "text",
2015
- "primaryKey": false,
2016
- "notNull": true,
2017
- "autoincrement": false
2018
- },
2019
- "jwt_configuration": {
2020
- "name": "jwt_configuration",
2021
- "type": "text",
2022
- "primaryKey": false,
2023
- "notNull": true,
2024
- "autoincrement": false
2025
- },
2026
- "signing_keys": {
2027
- "name": "signing_keys",
2028
- "type": "text",
2029
- "primaryKey": false,
2030
- "notNull": true,
2031
- "autoincrement": false
2032
- },
2033
- "encryption_key": {
2034
- "name": "encryption_key",
2035
- "type": "text",
2036
- "primaryKey": false,
2037
- "notNull": true,
2038
- "autoincrement": false
2039
- },
2040
- "sso": {
2041
- "name": "sso",
2042
- "type": "integer",
2043
- "primaryKey": false,
2044
- "notNull": true,
2045
- "autoincrement": false,
2046
- "default": 0
2047
- },
2048
- "sso_disabled": {
2049
- "name": "sso_disabled",
2050
- "type": "integer",
2051
- "primaryKey": false,
2052
- "notNull": true,
2053
- "autoincrement": false,
2054
- "default": 1
2055
- },
2056
- "cross_origin_authentication": {
2057
- "name": "cross_origin_authentication",
2058
- "type": "integer",
2059
- "primaryKey": false,
2060
- "notNull": true,
2061
- "autoincrement": false,
2062
- "default": 0
2063
- },
2064
- "cross_origin_loc": {
2065
- "name": "cross_origin_loc",
2066
- "type": "text(2083)",
2067
- "primaryKey": false,
2068
- "notNull": false,
2069
- "autoincrement": false
2070
- },
2071
- "custom_login_page_on": {
2072
- "name": "custom_login_page_on",
2073
- "type": "integer",
2074
- "primaryKey": false,
2075
- "notNull": true,
2076
- "autoincrement": false,
2077
- "default": 0
2078
- },
2079
- "custom_login_page": {
2080
- "name": "custom_login_page",
2081
- "type": "text",
2082
- "primaryKey": false,
2083
- "notNull": false,
2084
- "autoincrement": false
2085
- },
2086
- "custom_login_page_preview": {
2087
- "name": "custom_login_page_preview",
2088
- "type": "text",
2089
- "primaryKey": false,
2090
- "notNull": false,
2091
- "autoincrement": false
2092
- },
2093
- "form_template": {
2094
- "name": "form_template",
2095
- "type": "text",
2096
- "primaryKey": false,
2097
- "notNull": false,
2098
- "autoincrement": false
2099
- },
2100
- "addons": {
2101
- "name": "addons",
2102
- "type": "text",
2103
- "primaryKey": false,
2104
- "notNull": true,
2105
- "autoincrement": false
2106
- },
2107
- "token_endpoint_auth_method": {
2108
- "name": "token_endpoint_auth_method",
2109
- "type": "text(64)",
2110
- "primaryKey": false,
2111
- "notNull": false,
2112
- "autoincrement": false,
2113
- "default": "'client_secret_basic'"
2114
- },
2115
- "client_metadata": {
2116
- "name": "client_metadata",
2117
- "type": "text",
2118
- "primaryKey": false,
2119
- "notNull": true,
2120
- "autoincrement": false
2121
- },
2122
- "mobile": {
2123
- "name": "mobile",
2124
- "type": "text",
2125
- "primaryKey": false,
2126
- "notNull": true,
2127
- "autoincrement": false
2128
- },
2129
- "initiate_login_uri": {
2130
- "name": "initiate_login_uri",
2131
- "type": "text(2083)",
2132
- "primaryKey": false,
2133
- "notNull": false,
2134
- "autoincrement": false
2135
- },
2136
- "native_social_login": {
2137
- "name": "native_social_login",
2138
- "type": "text",
2139
- "primaryKey": false,
2140
- "notNull": true,
2141
- "autoincrement": false
2142
- },
2143
- "refresh_token": {
2144
- "name": "refresh_token",
2145
- "type": "text",
2146
- "primaryKey": false,
2147
- "notNull": true,
2148
- "autoincrement": false
2149
- },
2150
- "default_organization": {
2151
- "name": "default_organization",
2152
- "type": "text",
2153
- "primaryKey": false,
2154
- "notNull": true,
2155
- "autoincrement": false
2156
- },
2157
- "organization_usage": {
2158
- "name": "organization_usage",
2159
- "type": "text(32)",
2160
- "primaryKey": false,
2161
- "notNull": false,
2162
- "autoincrement": false,
2163
- "default": "'deny'"
2164
- },
2165
- "organization_require_behavior": {
2166
- "name": "organization_require_behavior",
2167
- "type": "text(32)",
2168
- "primaryKey": false,
2169
- "notNull": false,
2170
- "autoincrement": false,
2171
- "default": "'no_prompt'"
2172
- },
2173
- "client_authentication_methods": {
2174
- "name": "client_authentication_methods",
2175
- "type": "text",
2176
- "primaryKey": false,
2177
- "notNull": true,
2178
- "autoincrement": false
2179
- },
2180
- "require_pushed_authorization_requests": {
2181
- "name": "require_pushed_authorization_requests",
2182
- "type": "integer",
2183
- "primaryKey": false,
2184
- "notNull": true,
2185
- "autoincrement": false,
2186
- "default": 0
2187
- },
2188
- "require_proof_of_possession": {
2189
- "name": "require_proof_of_possession",
2190
- "type": "integer",
2191
- "primaryKey": false,
2192
- "notNull": true,
2193
- "autoincrement": false,
2194
- "default": 0
2195
- },
2196
- "signed_request_object": {
2197
- "name": "signed_request_object",
2198
- "type": "text",
2199
- "primaryKey": false,
2200
- "notNull": true,
2201
- "autoincrement": false
2202
- },
2203
- "compliance_level": {
2204
- "name": "compliance_level",
2205
- "type": "text(64)",
2206
- "primaryKey": false,
2207
- "notNull": false,
2208
- "autoincrement": false
2209
- },
2210
- "par_request_expiry": {
2211
- "name": "par_request_expiry",
2212
- "type": "integer",
2213
- "primaryKey": false,
2214
- "notNull": false,
2215
- "autoincrement": false
2216
- },
2217
- "token_quota": {
2218
- "name": "token_quota",
2219
- "type": "text",
2220
- "primaryKey": false,
2221
- "notNull": true,
2222
- "autoincrement": false
2223
- },
2224
- "created_at": {
2225
- "name": "created_at",
2226
- "type": "text(35)",
2227
- "primaryKey": false,
2228
- "notNull": true,
2229
- "autoincrement": false
2230
- },
2231
- "updated_at": {
2232
- "name": "updated_at",
2233
- "type": "text(35)",
2234
- "primaryKey": false,
2235
- "notNull": true,
2236
- "autoincrement": false
2237
- },
2238
- "connections": {
2239
- "name": "connections",
2240
- "type": "text",
2241
- "primaryKey": false,
2242
- "notNull": true,
2243
- "autoincrement": false,
2244
- "default": "'[]'"
2245
- }
2246
- },
2247
- "indexes": {},
2248
- "foreignKeys": {
2249
- "clients_tenant_id_tenants_id_fk": {
2250
- "name": "clients_tenant_id_tenants_id_fk",
2251
- "tableFrom": "clients",
2252
- "tableTo": "tenants",
2253
- "columnsFrom": ["tenant_id"],
2254
- "columnsTo": ["id"],
2255
- "onDelete": "cascade",
2256
- "onUpdate": "no action"
2257
- }
2258
- },
2259
- "compositePrimaryKeys": {
2260
- "clients_tenant_id_client_id": {
2261
- "columns": ["tenant_id", "client_id"],
2262
- "name": "clients_tenant_id_client_id"
2263
- }
2264
- },
2265
- "uniqueConstraints": {},
2266
- "checkConstraints": {}
2267
- },
2268
- "connections": {
2269
- "name": "connections",
2270
- "columns": {
2271
- "id": {
2272
- "name": "id",
2273
- "type": "text(255)",
2274
- "primaryKey": false,
2275
- "notNull": true,
2276
- "autoincrement": false
2277
- },
2278
- "tenant_id": {
2279
- "name": "tenant_id",
2280
- "type": "text(191)",
2281
- "primaryKey": false,
2282
- "notNull": true,
2283
- "autoincrement": false
2284
- },
2285
- "name": {
2286
- "name": "name",
2287
- "type": "text(255)",
2288
- "primaryKey": false,
2289
- "notNull": true,
2290
- "autoincrement": false
2291
- },
2292
- "response_type": {
2293
- "name": "response_type",
2294
- "type": "text(255)",
2295
- "primaryKey": false,
2296
- "notNull": false,
2297
- "autoincrement": false
2298
- },
2299
- "response_mode": {
2300
- "name": "response_mode",
2301
- "type": "text(255)",
2302
- "primaryKey": false,
2303
- "notNull": false,
2304
- "autoincrement": false
2305
- },
2306
- "strategy": {
2307
- "name": "strategy",
2308
- "type": "text(64)",
2309
- "primaryKey": false,
2310
- "notNull": false,
2311
- "autoincrement": false
2312
- },
2313
- "options": {
2314
- "name": "options",
2315
- "type": "text(8192)",
2316
- "primaryKey": false,
2317
- "notNull": true,
2318
- "autoincrement": false,
2319
- "default": "'{}'"
2320
- },
2321
- "created_at": {
2322
- "name": "created_at",
2323
- "type": "text(35)",
2324
- "primaryKey": false,
2325
- "notNull": true,
2326
- "autoincrement": false
2327
- },
2328
- "updated_at": {
2329
- "name": "updated_at",
2330
- "type": "text(35)",
2331
- "primaryKey": false,
2332
- "notNull": true,
2333
- "autoincrement": false
2334
- },
2335
- "display_name": {
2336
- "name": "display_name",
2337
- "type": "text(255)",
2338
- "primaryKey": false,
2339
- "notNull": false,
2340
- "autoincrement": false
2341
- },
2342
- "is_domain_connection": {
2343
- "name": "is_domain_connection",
2344
- "type": "integer",
2345
- "primaryKey": false,
2346
- "notNull": false,
2347
- "autoincrement": false
2348
- },
2349
- "show_as_button": {
2350
- "name": "show_as_button",
2351
- "type": "integer",
2352
- "primaryKey": false,
2353
- "notNull": false,
2354
- "autoincrement": false
2355
- },
2356
- "is_system": {
2357
- "name": "is_system",
2358
- "type": "integer",
2359
- "primaryKey": false,
2360
- "notNull": true,
2361
- "autoincrement": false,
2362
- "default": 0
2363
- },
2364
- "metadata": {
2365
- "name": "metadata",
2366
- "type": "text(4096)",
2367
- "primaryKey": false,
2368
- "notNull": false,
2369
- "autoincrement": false
2370
- }
2371
- },
2372
- "indexes": {
2373
- "connections_tenant_id_index": {
2374
- "name": "connections_tenant_id_index",
2375
- "columns": ["tenant_id"],
2376
- "isUnique": false
2377
- },
2378
- "connections_id_unique": {
2379
- "name": "connections_id_unique",
2380
- "columns": ["id"],
2381
- "isUnique": true
2382
- }
2383
- },
2384
- "foreignKeys": {
2385
- "connections_tenant_id_tenants_id_fk": {
2386
- "name": "connections_tenant_id_tenants_id_fk",
2387
- "tableFrom": "connections",
2388
- "tableTo": "tenants",
2389
- "columnsFrom": ["tenant_id"],
2390
- "columnsTo": ["id"],
2391
- "onDelete": "cascade",
2392
- "onUpdate": "no action"
2393
- }
2394
- },
2395
- "compositePrimaryKeys": {
2396
- "connections_tenant_id_id_pk": {
2397
- "columns": ["tenant_id", "id"],
2398
- "name": "connections_tenant_id_id_pk"
2399
- }
2400
- },
2401
- "uniqueConstraints": {},
2402
- "checkConstraints": {}
2403
- },
2404
- "custom_domains": {
2405
- "name": "custom_domains",
2406
- "columns": {
2407
- "custom_domain_id": {
2408
- "name": "custom_domain_id",
2409
- "type": "text(256)",
2410
- "primaryKey": true,
2411
- "notNull": true,
2412
- "autoincrement": false
2413
- },
2414
- "tenant_id": {
2415
- "name": "tenant_id",
2416
- "type": "text(191)",
2417
- "primaryKey": false,
2418
- "notNull": true,
2419
- "autoincrement": false
2420
- },
2421
- "domain": {
2422
- "name": "domain",
2423
- "type": "text(255)",
2424
- "primaryKey": false,
2425
- "notNull": true,
2426
- "autoincrement": false
2427
- },
2428
- "primary": {
2429
- "name": "primary",
2430
- "type": "integer",
2431
- "primaryKey": false,
2432
- "notNull": true,
2433
- "autoincrement": false
2434
- },
2435
- "status": {
2436
- "name": "status",
2437
- "type": "text(50)",
2438
- "primaryKey": false,
2439
- "notNull": true,
2440
- "autoincrement": false
2441
- },
2442
- "type": {
2443
- "name": "type",
2444
- "type": "text(50)",
2445
- "primaryKey": false,
2446
- "notNull": true,
2447
- "autoincrement": false
2448
- },
2449
- "origin_domain_name": {
2450
- "name": "origin_domain_name",
2451
- "type": "text(255)",
2452
- "primaryKey": false,
2453
- "notNull": false,
2454
- "autoincrement": false
2455
- },
2456
- "verification": {
2457
- "name": "verification",
2458
- "type": "text(2048)",
2459
- "primaryKey": false,
2460
- "notNull": false,
2461
- "autoincrement": false
2462
- },
2463
- "custom_client_ip_header": {
2464
- "name": "custom_client_ip_header",
2465
- "type": "text(50)",
2466
- "primaryKey": false,
2467
- "notNull": false,
2468
- "autoincrement": false
2469
- },
2470
- "tls_policy": {
2471
- "name": "tls_policy",
2472
- "type": "text(50)",
2473
- "primaryKey": false,
2474
- "notNull": false,
2475
- "autoincrement": false
2476
- },
2477
- "domain_metadata": {
2478
- "name": "domain_metadata",
2479
- "type": "text(2048)",
2480
- "primaryKey": false,
2481
- "notNull": false,
2482
- "autoincrement": false
2483
- },
2484
- "created_at": {
2485
- "name": "created_at",
2486
- "type": "text(35)",
2487
- "primaryKey": false,
2488
- "notNull": true,
2489
- "autoincrement": false
2490
- },
2491
- "updated_at": {
2492
- "name": "updated_at",
2493
- "type": "text(35)",
2494
- "primaryKey": false,
2495
- "notNull": true,
2496
- "autoincrement": false
2497
- }
2498
- },
2499
- "indexes": {
2500
- "custom_domains_domain_unique": {
2501
- "name": "custom_domains_domain_unique",
2502
- "columns": ["domain"],
2503
- "isUnique": true
2504
- }
2505
- },
2506
- "foreignKeys": {
2507
- "custom_domains_tenant_id_tenants_id_fk": {
2508
- "name": "custom_domains_tenant_id_tenants_id_fk",
2509
- "tableFrom": "custom_domains",
2510
- "tableTo": "tenants",
2511
- "columnsFrom": ["tenant_id"],
2512
- "columnsTo": ["id"],
2513
- "onDelete": "cascade",
2514
- "onUpdate": "no action"
2515
- }
2516
- },
2517
- "compositePrimaryKeys": {},
2518
- "uniqueConstraints": {},
2519
- "checkConstraints": {}
2520
- },
2521
- "domains": {
2522
- "name": "domains",
2523
- "columns": {
2524
- "id": {
2525
- "name": "id",
2526
- "type": "text(255)",
2527
- "primaryKey": true,
2528
- "notNull": true,
2529
- "autoincrement": false
2530
- },
2531
- "tenant_id": {
2532
- "name": "tenant_id",
2533
- "type": "text(191)",
2534
- "primaryKey": false,
2535
- "notNull": true,
2536
- "autoincrement": false
2537
- },
2538
- "domain": {
2539
- "name": "domain",
2540
- "type": "text(255)",
2541
- "primaryKey": false,
2542
- "notNull": true,
2543
- "autoincrement": false
2544
- },
2545
- "email_service": {
2546
- "name": "email_service",
2547
- "type": "text(255)",
2548
- "primaryKey": false,
2549
- "notNull": false,
2550
- "autoincrement": false
2551
- },
2552
- "email_api_key": {
2553
- "name": "email_api_key",
2554
- "type": "text(255)",
2555
- "primaryKey": false,
2556
- "notNull": false,
2557
- "autoincrement": false
2558
- },
2559
- "dkim_private_key": {
2560
- "name": "dkim_private_key",
2561
- "type": "text(2048)",
2562
- "primaryKey": false,
2563
- "notNull": false,
2564
- "autoincrement": false
2565
- },
2566
- "dkim_public_key": {
2567
- "name": "dkim_public_key",
2568
- "type": "text(2048)",
2569
- "primaryKey": false,
2570
- "notNull": false,
2571
- "autoincrement": false
2572
- },
2573
- "created_at": {
2574
- "name": "created_at",
2575
- "type": "text(35)",
2576
- "primaryKey": false,
2577
- "notNull": true,
2578
- "autoincrement": false
2579
- },
2580
- "updated_at": {
2581
- "name": "updated_at",
2582
- "type": "text(35)",
2583
- "primaryKey": false,
2584
- "notNull": true,
2585
- "autoincrement": false
2586
- }
2587
- },
2588
- "indexes": {},
2589
- "foreignKeys": {
2590
- "domains_tenant_id_tenants_id_fk": {
2591
- "name": "domains_tenant_id_tenants_id_fk",
2592
- "tableFrom": "domains",
2593
- "tableTo": "tenants",
2594
- "columnsFrom": ["tenant_id"],
2595
- "columnsTo": ["id"],
2596
- "onDelete": "cascade",
2597
- "onUpdate": "no action"
2598
- }
2599
- },
2600
- "compositePrimaryKeys": {},
2601
- "uniqueConstraints": {},
2602
- "checkConstraints": {}
2603
- },
2604
- "invites": {
2605
- "name": "invites",
2606
- "columns": {
2607
- "id": {
2608
- "name": "id",
2609
- "type": "text(21)",
2610
- "primaryKey": true,
2611
- "notNull": true,
2612
- "autoincrement": false
2613
- },
2614
- "tenant_id": {
2615
- "name": "tenant_id",
2616
- "type": "text(191)",
2617
- "primaryKey": false,
2618
- "notNull": true,
2619
- "autoincrement": false
2620
- },
2621
- "organization_id": {
2622
- "name": "organization_id",
2623
- "type": "text(21)",
2624
- "primaryKey": false,
2625
- "notNull": true,
2626
- "autoincrement": false
2627
- },
2628
- "inviter": {
2629
- "name": "inviter",
2630
- "type": "text",
2631
- "primaryKey": false,
2632
- "notNull": true,
2633
- "autoincrement": false
2634
- },
2635
- "invitee": {
2636
- "name": "invitee",
2637
- "type": "text",
2638
- "primaryKey": false,
2639
- "notNull": true,
2640
- "autoincrement": false
2641
- },
2642
- "client_id": {
2643
- "name": "client_id",
2644
- "type": "text(191)",
2645
- "primaryKey": false,
2646
- "notNull": true,
2647
- "autoincrement": false
2648
- },
2649
- "connection_id": {
2650
- "name": "connection_id",
2651
- "type": "text(21)",
2652
- "primaryKey": false,
2653
- "notNull": false,
2654
- "autoincrement": false
2655
- },
2656
- "invitation_url": {
2657
- "name": "invitation_url",
2658
- "type": "text",
2659
- "primaryKey": false,
2660
- "notNull": true,
2661
- "autoincrement": false
2662
- },
2663
- "created_at": {
2664
- "name": "created_at",
2665
- "type": "text(35)",
2666
- "primaryKey": false,
2667
- "notNull": true,
2668
- "autoincrement": false
2669
- },
2670
- "expires_at": {
2671
- "name": "expires_at",
2672
- "type": "text(35)",
2673
- "primaryKey": false,
2674
- "notNull": true,
2675
- "autoincrement": false
2676
- },
2677
- "app_metadata": {
2678
- "name": "app_metadata",
2679
- "type": "text",
2680
- "primaryKey": false,
2681
- "notNull": false,
2682
- "autoincrement": false
2683
- },
2684
- "user_metadata": {
2685
- "name": "user_metadata",
2686
- "type": "text",
2687
- "primaryKey": false,
2688
- "notNull": false,
2689
- "autoincrement": false
2690
- },
2691
- "roles": {
2692
- "name": "roles",
2693
- "type": "text",
2694
- "primaryKey": false,
2695
- "notNull": false,
2696
- "autoincrement": false
2697
- },
2698
- "ticket_id": {
2699
- "name": "ticket_id",
2700
- "type": "text(191)",
2701
- "primaryKey": false,
2702
- "notNull": false,
2703
- "autoincrement": false
2704
- },
2705
- "ttl_sec": {
2706
- "name": "ttl_sec",
2707
- "type": "integer",
2708
- "primaryKey": false,
2709
- "notNull": false,
2710
- "autoincrement": false
2711
- },
2712
- "send_invitation_email": {
2713
- "name": "send_invitation_email",
2714
- "type": "integer",
2715
- "primaryKey": false,
2716
- "notNull": false,
2717
- "autoincrement": false
2718
- }
2719
- },
2720
- "indexes": {
2721
- "idx_invites_tenant_id": {
2722
- "name": "idx_invites_tenant_id",
2723
- "columns": ["tenant_id"],
2724
- "isUnique": false
2725
- },
2726
- "idx_invites_organization_id": {
2727
- "name": "idx_invites_organization_id",
2728
- "columns": ["organization_id"],
2729
- "isUnique": false
2730
- },
2731
- "idx_invites_expires_at": {
2732
- "name": "idx_invites_expires_at",
2733
- "columns": ["expires_at"],
2734
- "isUnique": false
2735
- },
2736
- "idx_invites_tenant_created": {
2737
- "name": "idx_invites_tenant_created",
2738
- "columns": ["tenant_id", "created_at"],
2739
- "isUnique": false
2740
- }
2741
- },
2742
- "foreignKeys": {},
2743
- "compositePrimaryKeys": {},
2744
- "uniqueConstraints": {},
2745
- "checkConstraints": {}
2746
- },
2747
- "organizations": {
2748
- "name": "organizations",
2749
- "columns": {
2750
- "id": {
2751
- "name": "id",
2752
- "type": "text(21)",
2753
- "primaryKey": true,
2754
- "notNull": true,
2755
- "autoincrement": false
2756
- },
2757
- "tenant_id": {
2758
- "name": "tenant_id",
2759
- "type": "text(191)",
2760
- "primaryKey": false,
2761
- "notNull": true,
2762
- "autoincrement": false
2763
- },
2764
- "name": {
2765
- "name": "name",
2766
- "type": "text(256)",
2767
- "primaryKey": false,
2768
- "notNull": true,
2769
- "autoincrement": false
2770
- },
2771
- "display_name": {
2772
- "name": "display_name",
2773
- "type": "text(256)",
2774
- "primaryKey": false,
2775
- "notNull": false,
2776
- "autoincrement": false
2777
- },
2778
- "branding": {
2779
- "name": "branding",
2780
- "type": "text",
2781
- "primaryKey": false,
2782
- "notNull": false,
2783
- "autoincrement": false
2784
- },
2785
- "metadata": {
2786
- "name": "metadata",
2787
- "type": "text",
2788
- "primaryKey": false,
2789
- "notNull": false,
2790
- "autoincrement": false
2791
- },
2792
- "enabled_connections": {
2793
- "name": "enabled_connections",
2794
- "type": "text",
2795
- "primaryKey": false,
2796
- "notNull": false,
2797
- "autoincrement": false
2798
- },
2799
- "token_quota": {
2800
- "name": "token_quota",
2801
- "type": "text",
2802
- "primaryKey": false,
2803
- "notNull": false,
2804
- "autoincrement": false
2805
- },
2806
- "created_at": {
2807
- "name": "created_at",
2808
- "type": "text(35)",
2809
- "primaryKey": false,
2810
- "notNull": true,
2811
- "autoincrement": false
2812
- },
2813
- "updated_at": {
2814
- "name": "updated_at",
2815
- "type": "text(35)",
2816
- "primaryKey": false,
2817
- "notNull": true,
2818
- "autoincrement": false
2819
- }
2820
- },
2821
- "indexes": {
2822
- "idx_organizations_tenant_id": {
2823
- "name": "idx_organizations_tenant_id",
2824
- "columns": ["tenant_id"],
2825
- "isUnique": false
2826
- }
2827
- },
2828
- "foreignKeys": {},
2829
- "compositePrimaryKeys": {},
2830
- "uniqueConstraints": {},
2831
- "checkConstraints": {}
2832
- },
2833
- "user_organizations": {
2834
- "name": "user_organizations",
2835
- "columns": {
2836
- "id": {
2837
- "name": "id",
2838
- "type": "text(21)",
2839
- "primaryKey": true,
2840
- "notNull": true,
2841
- "autoincrement": false
2842
- },
2843
- "tenant_id": {
2844
- "name": "tenant_id",
2845
- "type": "text(191)",
2846
- "primaryKey": false,
2847
- "notNull": true,
2848
- "autoincrement": false
2849
- },
2850
- "user_id": {
2851
- "name": "user_id",
2852
- "type": "text(191)",
2853
- "primaryKey": false,
2854
- "notNull": true,
2855
- "autoincrement": false
2856
- },
2857
- "organization_id": {
2858
- "name": "organization_id",
2859
- "type": "text(21)",
2860
- "primaryKey": false,
2861
- "notNull": true,
2862
- "autoincrement": false
2863
- },
2864
- "created_at": {
2865
- "name": "created_at",
2866
- "type": "text(35)",
2867
- "primaryKey": false,
2868
- "notNull": true,
2869
- "autoincrement": false
2870
- },
2871
- "updated_at": {
2872
- "name": "updated_at",
2873
- "type": "text(35)",
2874
- "primaryKey": false,
2875
- "notNull": true,
2876
- "autoincrement": false
2877
- }
2878
- },
2879
- "indexes": {
2880
- "user_organizations_unique": {
2881
- "name": "user_organizations_unique",
2882
- "columns": ["tenant_id", "user_id", "organization_id"],
2883
- "isUnique": true
2884
- },
2885
- "idx_user_organizations_tenant_id": {
2886
- "name": "idx_user_organizations_tenant_id",
2887
- "columns": ["tenant_id"],
2888
- "isUnique": false
2889
- },
2890
- "idx_user_organizations_user_id": {
2891
- "name": "idx_user_organizations_user_id",
2892
- "columns": ["user_id"],
2893
- "isUnique": false
2894
- },
2895
- "idx_user_organizations_organization_id": {
2896
- "name": "idx_user_organizations_organization_id",
2897
- "columns": ["organization_id"],
2898
- "isUnique": false
2899
- }
2900
- },
2901
- "foreignKeys": {},
2902
- "compositePrimaryKeys": {},
2903
- "uniqueConstraints": {},
2904
- "checkConstraints": {}
2905
- },
2906
- "resource_servers": {
2907
- "name": "resource_servers",
2908
- "columns": {
2909
- "id": {
2910
- "name": "id",
2911
- "type": "text(21)",
2912
- "primaryKey": false,
2913
- "notNull": true,
2914
- "autoincrement": false
2915
- },
2916
- "tenant_id": {
2917
- "name": "tenant_id",
2918
- "type": "text(191)",
2919
- "primaryKey": false,
2920
- "notNull": true,
2921
- "autoincrement": false
2922
- },
2923
- "identifier": {
2924
- "name": "identifier",
2925
- "type": "text(191)",
2926
- "primaryKey": false,
2927
- "notNull": true,
2928
- "autoincrement": false
2929
- },
2930
- "name": {
2931
- "name": "name",
2932
- "type": "text(255)",
2933
- "primaryKey": false,
2934
- "notNull": true,
2935
- "autoincrement": false
2936
- },
2937
- "scopes": {
2938
- "name": "scopes",
2939
- "type": "text(4096)",
2940
- "primaryKey": false,
2941
- "notNull": false,
2942
- "autoincrement": false
2943
- },
2944
- "signing_alg": {
2945
- "name": "signing_alg",
2946
- "type": "text(64)",
2947
- "primaryKey": false,
2948
- "notNull": false,
2949
- "autoincrement": false
2950
- },
2951
- "signing_secret": {
2952
- "name": "signing_secret",
2953
- "type": "text(2048)",
2954
- "primaryKey": false,
2955
- "notNull": false,
2956
- "autoincrement": false
2957
- },
2958
- "token_lifetime": {
2959
- "name": "token_lifetime",
2960
- "type": "integer",
2961
- "primaryKey": false,
2962
- "notNull": false,
2963
- "autoincrement": false
2964
- },
2965
- "token_lifetime_for_web": {
2966
- "name": "token_lifetime_for_web",
2967
- "type": "integer",
2968
- "primaryKey": false,
2969
- "notNull": false,
2970
- "autoincrement": false
2971
- },
2972
- "skip_consent_for_verifiable_first_party_clients": {
2973
- "name": "skip_consent_for_verifiable_first_party_clients",
2974
- "type": "integer",
2975
- "primaryKey": false,
2976
- "notNull": false,
2977
- "autoincrement": false
2978
- },
2979
- "allow_offline_access": {
2980
- "name": "allow_offline_access",
2981
- "type": "integer",
2982
- "primaryKey": false,
2983
- "notNull": false,
2984
- "autoincrement": false
2985
- },
2986
- "verification_key": {
2987
- "name": "verification_key",
2988
- "type": "text(4096)",
2989
- "primaryKey": false,
2990
- "notNull": false,
2991
- "autoincrement": false
2992
- },
2993
- "options": {
2994
- "name": "options",
2995
- "type": "text(4096)",
2996
- "primaryKey": false,
2997
- "notNull": false,
2998
- "autoincrement": false
2999
- },
3000
- "is_system": {
3001
- "name": "is_system",
3002
- "type": "integer",
3003
- "primaryKey": false,
3004
- "notNull": true,
3005
- "autoincrement": false,
3006
- "default": 0
3007
- },
3008
- "metadata": {
3009
- "name": "metadata",
3010
- "type": "text(4096)",
3011
- "primaryKey": false,
3012
- "notNull": false,
3013
- "autoincrement": false
3014
- },
3015
- "created_at": {
3016
- "name": "created_at",
3017
- "type": "text(35)",
3018
- "primaryKey": false,
3019
- "notNull": true,
3020
- "autoincrement": false
3021
- },
3022
- "updated_at": {
3023
- "name": "updated_at",
3024
- "type": "text(35)",
3025
- "primaryKey": false,
3026
- "notNull": true,
3027
- "autoincrement": false
3028
- }
3029
- },
3030
- "indexes": {},
3031
- "foreignKeys": {},
3032
- "compositePrimaryKeys": {
3033
- "resource_servers_pk": {
3034
- "columns": ["tenant_id", "id"],
3035
- "name": "resource_servers_pk"
3036
- }
3037
- },
3038
- "uniqueConstraints": {},
3039
- "checkConstraints": {}
3040
- },
3041
- "role_permissions": {
3042
- "name": "role_permissions",
3043
- "columns": {
3044
- "tenant_id": {
3045
- "name": "tenant_id",
3046
- "type": "text(191)",
3047
- "primaryKey": false,
3048
- "notNull": true,
3049
- "autoincrement": false
3050
- },
3051
- "role_id": {
3052
- "name": "role_id",
3053
- "type": "text(21)",
3054
- "primaryKey": false,
3055
- "notNull": true,
3056
- "autoincrement": false
3057
- },
3058
- "resource_server_identifier": {
3059
- "name": "resource_server_identifier",
3060
- "type": "text(191)",
3061
- "primaryKey": false,
3062
- "notNull": true,
3063
- "autoincrement": false
3064
- },
3065
- "permission_name": {
3066
- "name": "permission_name",
3067
- "type": "text(191)",
3068
- "primaryKey": false,
3069
- "notNull": true,
3070
- "autoincrement": false
3071
- },
3072
- "created_at": {
3073
- "name": "created_at",
3074
- "type": "text(35)",
3075
- "primaryKey": false,
3076
- "notNull": true,
3077
- "autoincrement": false
3078
- }
3079
- },
3080
- "indexes": {
3081
- "role_permissions_role_fk": {
3082
- "name": "role_permissions_role_fk",
3083
- "columns": ["tenant_id", "role_id"],
3084
- "isUnique": false
3085
- },
3086
- "role_permissions_permission_fk": {
3087
- "name": "role_permissions_permission_fk",
3088
- "columns": [
3089
- "tenant_id",
3090
- "resource_server_identifier",
3091
- "permission_name"
3092
- ],
3093
- "isUnique": false
3094
- }
3095
- },
3096
- "foreignKeys": {},
3097
- "compositePrimaryKeys": {
3098
- "role_permissions_pk": {
3099
- "columns": [
3100
- "tenant_id",
3101
- "role_id",
3102
- "resource_server_identifier",
3103
- "permission_name"
3104
- ],
3105
- "name": "role_permissions_pk"
3106
- }
3107
- },
3108
- "uniqueConstraints": {},
3109
- "checkConstraints": {}
3110
- },
3111
- "roles": {
3112
- "name": "roles",
3113
- "columns": {
3114
- "id": {
3115
- "name": "id",
3116
- "type": "text(21)",
3117
- "primaryKey": false,
3118
- "notNull": true,
3119
- "autoincrement": false
3120
- },
3121
- "tenant_id": {
3122
- "name": "tenant_id",
3123
- "type": "text(191)",
3124
- "primaryKey": false,
3125
- "notNull": true,
3126
- "autoincrement": false
3127
- },
3128
- "name": {
3129
- "name": "name",
3130
- "type": "text(50)",
3131
- "primaryKey": false,
3132
- "notNull": true,
3133
- "autoincrement": false
3134
- },
3135
- "description": {
3136
- "name": "description",
3137
- "type": "text(255)",
3138
- "primaryKey": false,
3139
- "notNull": false,
3140
- "autoincrement": false
3141
- },
3142
- "is_system": {
3143
- "name": "is_system",
3144
- "type": "integer",
3145
- "primaryKey": false,
3146
- "notNull": true,
3147
- "autoincrement": false,
3148
- "default": 0
3149
- },
3150
- "metadata": {
3151
- "name": "metadata",
3152
- "type": "text(4096)",
3153
- "primaryKey": false,
3154
- "notNull": false,
3155
- "autoincrement": false
3156
- },
3157
- "created_at": {
3158
- "name": "created_at",
3159
- "type": "text(35)",
3160
- "primaryKey": false,
3161
- "notNull": true,
3162
- "autoincrement": false
3163
- },
3164
- "updated_at": {
3165
- "name": "updated_at",
3166
- "type": "text(35)",
3167
- "primaryKey": false,
3168
- "notNull": true,
3169
- "autoincrement": false
3170
- }
3171
- },
3172
- "indexes": {},
3173
- "foreignKeys": {},
3174
- "compositePrimaryKeys": {
3175
- "roles_pk": {
3176
- "columns": ["tenant_id", "id"],
3177
- "name": "roles_pk"
3178
- }
3179
- },
3180
- "uniqueConstraints": {},
3181
- "checkConstraints": {}
3182
- },
3183
- "user_permissions": {
3184
- "name": "user_permissions",
3185
- "columns": {
3186
- "tenant_id": {
3187
- "name": "tenant_id",
3188
- "type": "text(191)",
3189
- "primaryKey": false,
3190
- "notNull": true,
3191
- "autoincrement": false
3192
- },
3193
- "user_id": {
3194
- "name": "user_id",
3195
- "type": "text(191)",
3196
- "primaryKey": false,
3197
- "notNull": true,
3198
- "autoincrement": false
3199
- },
3200
- "resource_server_identifier": {
3201
- "name": "resource_server_identifier",
3202
- "type": "text(191)",
3203
- "primaryKey": false,
3204
- "notNull": true,
3205
- "autoincrement": false
3206
- },
3207
- "permission_name": {
3208
- "name": "permission_name",
3209
- "type": "text(191)",
3210
- "primaryKey": false,
3211
- "notNull": true,
3212
- "autoincrement": false
3213
- },
3214
- "organization_id": {
3215
- "name": "organization_id",
3216
- "type": "text(21)",
3217
- "primaryKey": false,
3218
- "notNull": true,
3219
- "autoincrement": false,
3220
- "default": "''"
3221
- },
3222
- "created_at": {
3223
- "name": "created_at",
3224
- "type": "text(35)",
3225
- "primaryKey": false,
3226
- "notNull": true,
3227
- "autoincrement": false
3228
- }
3229
- },
3230
- "indexes": {
3231
- "user_permissions_user_fk": {
3232
- "name": "user_permissions_user_fk",
3233
- "columns": ["tenant_id", "user_id"],
3234
- "isUnique": false
3235
- },
3236
- "user_permissions_permission_fk": {
3237
- "name": "user_permissions_permission_fk",
3238
- "columns": [
3239
- "tenant_id",
3240
- "resource_server_identifier",
3241
- "permission_name"
3242
- ],
3243
- "isUnique": false
3244
- },
3245
- "user_permissions_organization_fk": {
3246
- "name": "user_permissions_organization_fk",
3247
- "columns": ["organization_id"],
3248
- "isUnique": false
3249
- }
3250
- },
3251
- "foreignKeys": {},
3252
- "compositePrimaryKeys": {
3253
- "user_permissions_pk": {
3254
- "columns": [
3255
- "tenant_id",
3256
- "user_id",
3257
- "resource_server_identifier",
3258
- "permission_name",
3259
- "organization_id"
3260
- ],
3261
- "name": "user_permissions_pk"
3262
- }
3263
- },
3264
- "uniqueConstraints": {},
3265
- "checkConstraints": {}
3266
- },
3267
- "user_roles": {
3268
- "name": "user_roles",
3269
- "columns": {
3270
- "tenant_id": {
3271
- "name": "tenant_id",
3272
- "type": "text(191)",
3273
- "primaryKey": false,
3274
- "notNull": true,
3275
- "autoincrement": false
3276
- },
3277
- "user_id": {
3278
- "name": "user_id",
3279
- "type": "text(191)",
3280
- "primaryKey": false,
3281
- "notNull": true,
3282
- "autoincrement": false
3283
- },
3284
- "role_id": {
3285
- "name": "role_id",
3286
- "type": "text(21)",
3287
- "primaryKey": false,
3288
- "notNull": true,
3289
- "autoincrement": false
3290
- },
3291
- "organization_id": {
3292
- "name": "organization_id",
3293
- "type": "text(191)",
3294
- "primaryKey": false,
3295
- "notNull": true,
3296
- "autoincrement": false,
3297
- "default": "''"
3298
- },
3299
- "created_at": {
3300
- "name": "created_at",
3301
- "type": "text(35)",
3302
- "primaryKey": false,
3303
- "notNull": true,
3304
- "autoincrement": false
3305
- }
3306
- },
3307
- "indexes": {
3308
- "user_roles_user_fk": {
3309
- "name": "user_roles_user_fk",
3310
- "columns": ["tenant_id", "user_id"],
3311
- "isUnique": false
3312
- },
3313
- "user_roles_role_fk": {
3314
- "name": "user_roles_role_fk",
3315
- "columns": ["tenant_id", "role_id"],
3316
- "isUnique": false
3317
- },
3318
- "user_roles_organization_fk": {
3319
- "name": "user_roles_organization_fk",
3320
- "columns": ["organization_id"],
3321
- "isUnique": false
3322
- }
3323
- },
3324
- "foreignKeys": {},
3325
- "compositePrimaryKeys": {
3326
- "user_roles_pk": {
3327
- "columns": ["tenant_id", "user_id", "role_id", "organization_id"],
3328
- "name": "user_roles_pk"
3329
- }
3330
- },
3331
- "uniqueConstraints": {},
3332
- "checkConstraints": {}
3333
- },
3334
- "branding": {
3335
- "name": "branding",
3336
- "columns": {
3337
- "tenant_id": {
3338
- "name": "tenant_id",
3339
- "type": "text(191)",
3340
- "primaryKey": true,
3341
- "notNull": true,
3342
- "autoincrement": false
3343
- },
3344
- "logo_url": {
3345
- "name": "logo_url",
3346
- "type": "text(512)",
3347
- "primaryKey": false,
3348
- "notNull": false,
3349
- "autoincrement": false
3350
- },
3351
- "favicon_url": {
3352
- "name": "favicon_url",
3353
- "type": "text(512)",
3354
- "primaryKey": false,
3355
- "notNull": false,
3356
- "autoincrement": false
3357
- },
3358
- "font_url": {
3359
- "name": "font_url",
3360
- "type": "text(512)",
3361
- "primaryKey": false,
3362
- "notNull": false,
3363
- "autoincrement": false
3364
- },
3365
- "colors_primary": {
3366
- "name": "colors_primary",
3367
- "type": "text(8)",
3368
- "primaryKey": false,
3369
- "notNull": false,
3370
- "autoincrement": false
3371
- },
3372
- "colors_page_background_type": {
3373
- "name": "colors_page_background_type",
3374
- "type": "text(32)",
3375
- "primaryKey": false,
3376
- "notNull": false,
3377
- "autoincrement": false
3378
- },
3379
- "colors_page_background_start": {
3380
- "name": "colors_page_background_start",
3381
- "type": "text(8)",
3382
- "primaryKey": false,
3383
- "notNull": false,
3384
- "autoincrement": false
3385
- },
3386
- "colors_page_background_end": {
3387
- "name": "colors_page_background_end",
3388
- "type": "text(8)",
3389
- "primaryKey": false,
3390
- "notNull": false,
3391
- "autoincrement": false
3392
- },
3393
- "colors_page_background_angle_dev": {
3394
- "name": "colors_page_background_angle_dev",
3395
- "type": "integer",
3396
- "primaryKey": false,
3397
- "notNull": false,
3398
- "autoincrement": false
3399
- }
3400
- },
3401
- "indexes": {},
3402
- "foreignKeys": {
3403
- "branding_tenant_id_tenants_id_fk": {
3404
- "name": "branding_tenant_id_tenants_id_fk",
3405
- "tableFrom": "branding",
3406
- "tableTo": "tenants",
3407
- "columnsFrom": ["tenant_id"],
3408
- "columnsTo": ["id"],
3409
- "onDelete": "cascade",
3410
- "onUpdate": "no action"
3411
- }
3412
- },
3413
- "compositePrimaryKeys": {},
3414
- "uniqueConstraints": {},
3415
- "checkConstraints": {}
3416
- },
3417
- "custom_text": {
3418
- "name": "custom_text",
3419
- "columns": {
3420
- "tenant_id": {
3421
- "name": "tenant_id",
3422
- "type": "text(191)",
3423
- "primaryKey": false,
3424
- "notNull": true,
3425
- "autoincrement": false
3426
- },
3427
- "prompt": {
3428
- "name": "prompt",
3429
- "type": "text(64)",
3430
- "primaryKey": false,
3431
- "notNull": true,
3432
- "autoincrement": false
3433
- },
3434
- "language": {
3435
- "name": "language",
3436
- "type": "text(16)",
3437
- "primaryKey": false,
3438
- "notNull": true,
3439
- "autoincrement": false
3440
- },
3441
- "custom_text": {
3442
- "name": "custom_text",
3443
- "type": "text",
3444
- "primaryKey": false,
3445
- "notNull": true,
3446
- "autoincrement": false
3447
- },
3448
- "created_at_ts": {
3449
- "name": "created_at_ts",
3450
- "type": "integer",
3451
- "primaryKey": false,
3452
- "notNull": true,
3453
- "autoincrement": false
3454
- },
3455
- "updated_at_ts": {
3456
- "name": "updated_at_ts",
3457
- "type": "integer",
3458
- "primaryKey": false,
3459
- "notNull": true,
3460
- "autoincrement": false
3461
- }
3462
- },
3463
- "indexes": {},
3464
- "foreignKeys": {
3465
- "custom_text_tenant_id_tenants_id_fk": {
3466
- "name": "custom_text_tenant_id_tenants_id_fk",
3467
- "tableFrom": "custom_text",
3468
- "tableTo": "tenants",
3469
- "columnsFrom": ["tenant_id"],
3470
- "columnsTo": ["id"],
3471
- "onDelete": "cascade",
3472
- "onUpdate": "no action"
3473
- }
3474
- },
3475
- "compositePrimaryKeys": {
3476
- "custom_text_tenant_id_prompt_language_pk": {
3477
- "columns": ["tenant_id", "prompt", "language"],
3478
- "name": "custom_text_tenant_id_prompt_language_pk"
3479
- }
3480
- },
3481
- "uniqueConstraints": {},
3482
- "checkConstraints": {}
3483
- },
3484
- "email_providers": {
3485
- "name": "email_providers",
3486
- "columns": {
3487
- "tenant_id": {
3488
- "name": "tenant_id",
3489
- "type": "text(191)",
3490
- "primaryKey": true,
3491
- "notNull": true,
3492
- "autoincrement": false
3493
- },
3494
- "name": {
3495
- "name": "name",
3496
- "type": "text(255)",
3497
- "primaryKey": false,
3498
- "notNull": true,
3499
- "autoincrement": false
3500
- },
3501
- "enabled": {
3502
- "name": "enabled",
3503
- "type": "integer",
3504
- "primaryKey": false,
3505
- "notNull": true,
3506
- "autoincrement": false
3507
- },
3508
- "default_from_address": {
3509
- "name": "default_from_address",
3510
- "type": "text(255)",
3511
- "primaryKey": false,
3512
- "notNull": false,
3513
- "autoincrement": false
3514
- },
3515
- "credentials": {
3516
- "name": "credentials",
3517
- "type": "text(2048)",
3518
- "primaryKey": false,
3519
- "notNull": true,
3520
- "autoincrement": false,
3521
- "default": "'{}'"
3522
- },
3523
- "settings": {
3524
- "name": "settings",
3525
- "type": "text(2048)",
3526
- "primaryKey": false,
3527
- "notNull": true,
3528
- "autoincrement": false,
3529
- "default": "'{}'"
3530
- },
3531
- "created_at": {
3532
- "name": "created_at",
3533
- "type": "text(35)",
3534
- "primaryKey": false,
3535
- "notNull": true,
3536
- "autoincrement": false
3537
- },
3538
- "updated_at": {
3539
- "name": "updated_at",
3540
- "type": "text(35)",
3541
- "primaryKey": false,
3542
- "notNull": true,
3543
- "autoincrement": false
3544
- }
3545
- },
3546
- "indexes": {},
3547
- "foreignKeys": {},
3548
- "compositePrimaryKeys": {},
3549
- "uniqueConstraints": {},
3550
- "checkConstraints": {}
3551
- },
3552
- "flows": {
3553
- "name": "flows",
3554
- "columns": {
3555
- "id": {
3556
- "name": "id",
3557
- "type": "text(24)",
3558
- "primaryKey": true,
3559
- "notNull": true,
3560
- "autoincrement": false
3561
- },
3562
- "tenant_id": {
3563
- "name": "tenant_id",
3564
- "type": "text(191)",
3565
- "primaryKey": false,
3566
- "notNull": true,
3567
- "autoincrement": false
3568
- },
3569
- "name": {
3570
- "name": "name",
3571
- "type": "text(150)",
3572
- "primaryKey": false,
3573
- "notNull": true,
3574
- "autoincrement": false
3575
- },
3576
- "actions": {
3577
- "name": "actions",
3578
- "type": "text",
3579
- "primaryKey": false,
3580
- "notNull": false,
3581
- "autoincrement": false
3582
- },
3583
- "created_at": {
3584
- "name": "created_at",
3585
- "type": "text(35)",
3586
- "primaryKey": false,
3587
- "notNull": true,
3588
- "autoincrement": false
3589
- },
3590
- "updated_at": {
3591
- "name": "updated_at",
3592
- "type": "text(35)",
3593
- "primaryKey": false,
3594
- "notNull": true,
3595
- "autoincrement": false
3596
- }
3597
- },
3598
- "indexes": {
3599
- "flows_tenant_id_idx": {
3600
- "name": "flows_tenant_id_idx",
3601
- "columns": ["tenant_id"],
3602
- "isUnique": false
3603
- }
3604
- },
3605
- "foreignKeys": {
3606
- "flows_tenant_id_tenants_id_fk": {
3607
- "name": "flows_tenant_id_tenants_id_fk",
3608
- "tableFrom": "flows",
3609
- "tableTo": "tenants",
3610
- "columnsFrom": ["tenant_id"],
3611
- "columnsTo": ["id"],
3612
- "onDelete": "cascade",
3613
- "onUpdate": "no action"
3614
- }
3615
- },
3616
- "compositePrimaryKeys": {},
3617
- "uniqueConstraints": {},
3618
- "checkConstraints": {}
3619
- },
3620
- "forms": {
3621
- "name": "forms",
3622
- "columns": {
3623
- "id": {
3624
- "name": "id",
3625
- "type": "text(255)",
3626
- "primaryKey": true,
3627
- "notNull": true,
3628
- "autoincrement": false
3629
- },
3630
- "name": {
3631
- "name": "name",
3632
- "type": "text(255)",
3633
- "primaryKey": false,
3634
- "notNull": true,
3635
- "autoincrement": false
3636
- },
3637
- "tenant_id": {
3638
- "name": "tenant_id",
3639
- "type": "text(191)",
3640
- "primaryKey": false,
3641
- "notNull": true,
3642
- "autoincrement": false
3643
- },
3644
- "messages": {
3645
- "name": "messages",
3646
- "type": "text(255)",
3647
- "primaryKey": false,
3648
- "notNull": false,
3649
- "autoincrement": false
3650
- },
3651
- "languages": {
3652
- "name": "languages",
3653
- "type": "text(255)",
3654
- "primaryKey": false,
3655
- "notNull": false,
3656
- "autoincrement": false
3657
- },
3658
- "translations": {
3659
- "name": "translations",
3660
- "type": "text(4096)",
3661
- "primaryKey": false,
3662
- "notNull": false,
3663
- "autoincrement": false
3664
- },
3665
- "nodes": {
3666
- "name": "nodes",
3667
- "type": "text(4096)",
3668
- "primaryKey": false,
3669
- "notNull": false,
3670
- "autoincrement": false
3671
- },
3672
- "start": {
3673
- "name": "start",
3674
- "type": "text(255)",
3675
- "primaryKey": false,
3676
- "notNull": false,
3677
- "autoincrement": false
3678
- },
3679
- "ending": {
3680
- "name": "ending",
3681
- "type": "text(255)",
3682
- "primaryKey": false,
3683
- "notNull": false,
3684
- "autoincrement": false
3685
- },
3686
- "style": {
3687
- "name": "style",
3688
- "type": "text(1042)",
3689
- "primaryKey": false,
3690
- "notNull": false,
3691
- "autoincrement": false
3692
- },
3693
- "created_at": {
3694
- "name": "created_at",
3695
- "type": "text(35)",
3696
- "primaryKey": false,
3697
- "notNull": true,
3698
- "autoincrement": false
3699
- },
3700
- "updated_at": {
3701
- "name": "updated_at",
3702
- "type": "text(35)",
3703
- "primaryKey": false,
3704
- "notNull": true,
3705
- "autoincrement": false
3706
- }
3707
- },
3708
- "indexes": {
3709
- "forms_tenant_id_idx": {
3710
- "name": "forms_tenant_id_idx",
3711
- "columns": ["tenant_id"],
3712
- "isUnique": false
3713
- }
3714
- },
3715
- "foreignKeys": {
3716
- "forms_tenant_id_tenants_id_fk": {
3717
- "name": "forms_tenant_id_tenants_id_fk",
3718
- "tableFrom": "forms",
3719
- "tableTo": "tenants",
3720
- "columnsFrom": ["tenant_id"],
3721
- "columnsTo": ["id"],
3722
- "onDelete": "cascade",
3723
- "onUpdate": "no action"
3724
- }
3725
- },
3726
- "compositePrimaryKeys": {},
3727
- "uniqueConstraints": {},
3728
- "checkConstraints": {}
3729
- },
3730
- "hooks": {
3731
- "name": "hooks",
3732
- "columns": {
3733
- "hook_id": {
3734
- "name": "hook_id",
3735
- "type": "text(21)",
3736
- "primaryKey": true,
3737
- "notNull": true,
3738
- "autoincrement": false
3739
- },
3740
- "tenant_id": {
3741
- "name": "tenant_id",
3742
- "type": "text(191)",
3743
- "primaryKey": false,
3744
- "notNull": true,
3745
- "autoincrement": false
3746
- },
3747
- "url": {
3748
- "name": "url",
3749
- "type": "text(512)",
3750
- "primaryKey": false,
3751
- "notNull": false,
3752
- "autoincrement": false
3753
- },
3754
- "trigger_id": {
3755
- "name": "trigger_id",
3756
- "type": "text(255)",
3757
- "primaryKey": false,
3758
- "notNull": true,
3759
- "autoincrement": false
3760
- },
3761
- "enabled": {
3762
- "name": "enabled",
3763
- "type": "integer",
3764
- "primaryKey": false,
3765
- "notNull": true,
3766
- "autoincrement": false
3767
- },
3768
- "created_at_ts": {
3769
- "name": "created_at_ts",
3770
- "type": "integer",
3771
- "primaryKey": false,
3772
- "notNull": true,
3773
- "autoincrement": false
3774
- },
3775
- "updated_at_ts": {
3776
- "name": "updated_at_ts",
3777
- "type": "integer",
3778
- "primaryKey": false,
3779
- "notNull": true,
3780
- "autoincrement": false
3781
- },
3782
- "synchronous": {
3783
- "name": "synchronous",
3784
- "type": "integer",
3785
- "primaryKey": false,
3786
- "notNull": true,
3787
- "autoincrement": false,
3788
- "default": false
3789
- },
3790
- "priority": {
3791
- "name": "priority",
3792
- "type": "integer",
3793
- "primaryKey": false,
3794
- "notNull": false,
3795
- "autoincrement": false
3796
- },
3797
- "form_id": {
3798
- "name": "form_id",
3799
- "type": "text(128)",
3800
- "primaryKey": false,
3801
- "notNull": false,
3802
- "autoincrement": false
3803
- },
3804
- "template_id": {
3805
- "name": "template_id",
3806
- "type": "text(64)",
3807
- "primaryKey": false,
3808
- "notNull": false,
3809
- "autoincrement": false
3810
- }
3811
- },
3812
- "indexes": {},
3813
- "foreignKeys": {
3814
- "hooks_tenant_id_tenants_id_fk": {
3815
- "name": "hooks_tenant_id_tenants_id_fk",
3816
- "tableFrom": "hooks",
3817
- "tableTo": "tenants",
3818
- "columnsFrom": ["tenant_id"],
3819
- "columnsTo": ["id"],
3820
- "onDelete": "cascade",
3821
- "onUpdate": "no action"
3822
- }
3823
- },
3824
- "compositePrimaryKeys": {},
3825
- "uniqueConstraints": {},
3826
- "checkConstraints": {}
3827
- },
3828
- "keys": {
3829
- "name": "keys",
3830
- "columns": {
3831
- "kid": {
3832
- "name": "kid",
3833
- "type": "text(255)",
3834
- "primaryKey": true,
3835
- "notNull": true,
3836
- "autoincrement": false
3837
- },
3838
- "tenant_id": {
3839
- "name": "tenant_id",
3840
- "type": "text(191)",
3841
- "primaryKey": false,
3842
- "notNull": false,
3843
- "autoincrement": false
3844
- },
3845
- "created_at": {
3846
- "name": "created_at",
3847
- "type": "text(35)",
3848
- "primaryKey": false,
3849
- "notNull": true,
3850
- "autoincrement": false
3851
- },
3852
- "revoked_at": {
3853
- "name": "revoked_at",
3854
- "type": "text(35)",
3855
- "primaryKey": false,
3856
- "notNull": false,
3857
- "autoincrement": false
3858
- },
3859
- "cert": {
3860
- "name": "cert",
3861
- "type": "text(4096)",
3862
- "primaryKey": false,
3863
- "notNull": false,
3864
- "autoincrement": false
3865
- },
3866
- "pkcs7": {
3867
- "name": "pkcs7",
3868
- "type": "text(4096)",
3869
- "primaryKey": false,
3870
- "notNull": false,
3871
- "autoincrement": false
3872
- },
3873
- "fingerprint": {
3874
- "name": "fingerprint",
3875
- "type": "text(256)",
3876
- "primaryKey": false,
3877
- "notNull": false,
3878
- "autoincrement": false
3879
- },
3880
- "thumbprint": {
3881
- "name": "thumbprint",
3882
- "type": "text(256)",
3883
- "primaryKey": false,
3884
- "notNull": false,
3885
- "autoincrement": false
3886
- },
3887
- "current_since": {
3888
- "name": "current_since",
3889
- "type": "text(35)",
3890
- "primaryKey": false,
3891
- "notNull": false,
3892
- "autoincrement": false
3893
- },
3894
- "current_until": {
3895
- "name": "current_until",
3896
- "type": "text(35)",
3897
- "primaryKey": false,
3898
- "notNull": false,
3899
- "autoincrement": false
3900
- },
3901
- "type": {
3902
- "name": "type",
3903
- "type": "text(50)",
3904
- "primaryKey": false,
3905
- "notNull": true,
3906
- "autoincrement": false,
3907
- "default": "'jwt_signing'"
3908
- },
3909
- "connection": {
3910
- "name": "connection",
3911
- "type": "text(255)",
3912
- "primaryKey": false,
3913
- "notNull": false,
3914
- "autoincrement": false
3915
- }
3916
- },
3917
- "indexes": {},
3918
- "foreignKeys": {
3919
- "keys_tenant_id_tenants_id_fk": {
3920
- "name": "keys_tenant_id_tenants_id_fk",
3921
- "tableFrom": "keys",
3922
- "tableTo": "tenants",
3923
- "columnsFrom": ["tenant_id"],
3924
- "columnsTo": ["id"],
3925
- "onDelete": "cascade",
3926
- "onUpdate": "no action"
3927
- },
3928
- "keys_connection_connections_id_fk": {
3929
- "name": "keys_connection_connections_id_fk",
3930
- "tableFrom": "keys",
3931
- "tableTo": "connections",
3932
- "columnsFrom": ["connection"],
3933
- "columnsTo": ["id"],
3934
- "onDelete": "cascade",
3935
- "onUpdate": "no action"
3936
- }
3937
- },
3938
- "compositePrimaryKeys": {},
3939
- "uniqueConstraints": {},
3940
- "checkConstraints": {}
3941
- },
3942
- "prompt_settings": {
3943
- "name": "prompt_settings",
3944
- "columns": {
3945
- "tenant_id": {
3946
- "name": "tenant_id",
3947
- "type": "text(191)",
3948
- "primaryKey": true,
3949
- "notNull": true,
3950
- "autoincrement": false
3951
- },
3952
- "universal_login_experience": {
3953
- "name": "universal_login_experience",
3954
- "type": "text(16)",
3955
- "primaryKey": false,
3956
- "notNull": true,
3957
- "autoincrement": false,
3958
- "default": "'new'"
3959
- },
3960
- "identifier_first": {
3961
- "name": "identifier_first",
3962
- "type": "integer",
3963
- "primaryKey": false,
3964
- "notNull": true,
3965
- "autoincrement": false,
3966
- "default": true
3967
- },
3968
- "password_first": {
3969
- "name": "password_first",
3970
- "type": "integer",
3971
- "primaryKey": false,
3972
- "notNull": true,
3973
- "autoincrement": false,
3974
- "default": false
3975
- },
3976
- "webauthn_platform_first_factor": {
3977
- "name": "webauthn_platform_first_factor",
3978
- "type": "integer",
3979
- "primaryKey": false,
3980
- "notNull": true,
3981
- "autoincrement": false,
3982
- "default": false
3983
- }
3984
- },
3985
- "indexes": {},
3986
- "foreignKeys": {},
3987
- "compositePrimaryKeys": {},
3988
- "uniqueConstraints": {},
3989
- "checkConstraints": {}
3990
- },
3991
- "themes": {
3992
- "name": "themes",
3993
- "columns": {
3994
- "tenant_id": {
3995
- "name": "tenant_id",
3996
- "type": "text(191)",
3997
- "primaryKey": false,
3998
- "notNull": true,
3999
- "autoincrement": false
4000
- },
4001
- "themeId": {
4002
- "name": "themeId",
4003
- "type": "text(255)",
4004
- "primaryKey": false,
4005
- "notNull": true,
4006
- "autoincrement": false
4007
- },
4008
- "displayName": {
4009
- "name": "displayName",
4010
- "type": "text(255)",
4011
- "primaryKey": false,
4012
- "notNull": true,
4013
- "autoincrement": false
4014
- },
4015
- "colors_primary_button_label": {
4016
- "name": "colors_primary_button_label",
4017
- "type": "text(24)",
4018
- "primaryKey": false,
4019
- "notNull": true,
4020
- "autoincrement": false
4021
- },
4022
- "colors_primary_button": {
4023
- "name": "colors_primary_button",
4024
- "type": "text(24)",
4025
- "primaryKey": false,
4026
- "notNull": true,
4027
- "autoincrement": false
4028
- },
4029
- "colors_secondary_button_border": {
4030
- "name": "colors_secondary_button_border",
4031
- "type": "text(24)",
4032
- "primaryKey": false,
4033
- "notNull": true,
4034
- "autoincrement": false
4035
- },
4036
- "colors_secondary_button_label": {
4037
- "name": "colors_secondary_button_label",
4038
- "type": "text(24)",
4039
- "primaryKey": false,
4040
- "notNull": true,
4041
- "autoincrement": false
4042
- },
4043
- "colors_base_focus_color": {
4044
- "name": "colors_base_focus_color",
4045
- "type": "text(24)",
4046
- "primaryKey": false,
4047
- "notNull": true,
4048
- "autoincrement": false
4049
- },
4050
- "colors_base_hover_color": {
4051
- "name": "colors_base_hover_color",
4052
- "type": "text(24)",
4053
- "primaryKey": false,
4054
- "notNull": true,
4055
- "autoincrement": false
4056
- },
4057
- "colors_body_text": {
4058
- "name": "colors_body_text",
4059
- "type": "text(24)",
4060
- "primaryKey": false,
4061
- "notNull": true,
4062
- "autoincrement": false
4063
- },
4064
- "colors_captcha_widget_theme": {
4065
- "name": "colors_captcha_widget_theme",
4066
- "type": "text(24)",
4067
- "primaryKey": false,
4068
- "notNull": true,
4069
- "autoincrement": false
4070
- },
4071
- "colors_error": {
4072
- "name": "colors_error",
4073
- "type": "text(24)",
4074
- "primaryKey": false,
4075
- "notNull": true,
4076
- "autoincrement": false
4077
- },
4078
- "colors_header": {
4079
- "name": "colors_header",
4080
- "type": "text(24)",
4081
- "primaryKey": false,
4082
- "notNull": true,
4083
- "autoincrement": false
4084
- },
4085
- "colors_icons": {
4086
- "name": "colors_icons",
4087
- "type": "text(24)",
4088
- "primaryKey": false,
4089
- "notNull": true,
4090
- "autoincrement": false
4091
- },
4092
- "colors_input_background": {
4093
- "name": "colors_input_background",
4094
- "type": "text(24)",
4095
- "primaryKey": false,
4096
- "notNull": true,
4097
- "autoincrement": false
4098
- },
4099
- "colors_input_border": {
4100
- "name": "colors_input_border",
4101
- "type": "text(24)",
4102
- "primaryKey": false,
4103
- "notNull": true,
4104
- "autoincrement": false
4105
- },
4106
- "colors_input_filled_text": {
4107
- "name": "colors_input_filled_text",
4108
- "type": "text(24)",
4109
- "primaryKey": false,
4110
- "notNull": true,
4111
- "autoincrement": false
4112
- },
4113
- "colors_input_labels_placeholders": {
4114
- "name": "colors_input_labels_placeholders",
4115
- "type": "text(24)",
4116
- "primaryKey": false,
4117
- "notNull": true,
4118
- "autoincrement": false
4119
- },
4120
- "colors_links_focused_components": {
4121
- "name": "colors_links_focused_components",
4122
- "type": "text(24)",
4123
- "primaryKey": false,
4124
- "notNull": true,
4125
- "autoincrement": false
4126
- },
4127
- "colors_success": {
4128
- "name": "colors_success",
4129
- "type": "text(24)",
4130
- "primaryKey": false,
4131
- "notNull": true,
4132
- "autoincrement": false
4133
- },
4134
- "colors_widget_background": {
4135
- "name": "colors_widget_background",
4136
- "type": "text(24)",
4137
- "primaryKey": false,
4138
- "notNull": true,
4139
- "autoincrement": false
4140
- },
4141
- "colors_widget_border": {
4142
- "name": "colors_widget_border",
4143
- "type": "text(24)",
4144
- "primaryKey": false,
4145
- "notNull": true,
4146
- "autoincrement": false
4147
- },
4148
- "borders_button_border_radius": {
4149
- "name": "borders_button_border_radius",
4150
- "type": "integer",
4151
- "primaryKey": false,
4152
- "notNull": true,
4153
- "autoincrement": false
4154
- },
4155
- "borders_button_border_weight": {
4156
- "name": "borders_button_border_weight",
4157
- "type": "integer",
4158
- "primaryKey": false,
4159
- "notNull": true,
4160
- "autoincrement": false
4161
- },
4162
- "borders_buttons_style": {
4163
- "name": "borders_buttons_style",
4164
- "type": "text(24)",
4165
- "primaryKey": false,
4166
- "notNull": true,
4167
- "autoincrement": false
4168
- },
4169
- "borders_input_border_radius": {
4170
- "name": "borders_input_border_radius",
4171
- "type": "integer",
4172
- "primaryKey": false,
4173
- "notNull": true,
4174
- "autoincrement": false
4175
- },
4176
- "borders_input_border_weight": {
4177
- "name": "borders_input_border_weight",
4178
- "type": "integer",
4179
- "primaryKey": false,
4180
- "notNull": true,
4181
- "autoincrement": false
4182
- },
4183
- "borders_inputs_style": {
4184
- "name": "borders_inputs_style",
4185
- "type": "text(24)",
4186
- "primaryKey": false,
4187
- "notNull": true,
4188
- "autoincrement": false
4189
- },
4190
- "borders_show_widget_shadow": {
4191
- "name": "borders_show_widget_shadow",
4192
- "type": "integer",
4193
- "primaryKey": false,
4194
- "notNull": true,
4195
- "autoincrement": false
4196
- },
4197
- "borders_widget_border_weight": {
4198
- "name": "borders_widget_border_weight",
4199
- "type": "integer",
4200
- "primaryKey": false,
4201
- "notNull": true,
4202
- "autoincrement": false
4203
- },
4204
- "borders_widget_corner_radius": {
4205
- "name": "borders_widget_corner_radius",
4206
- "type": "integer",
4207
- "primaryKey": false,
4208
- "notNull": true,
4209
- "autoincrement": false
4210
- },
4211
- "fonts_body_text_bold": {
4212
- "name": "fonts_body_text_bold",
4213
- "type": "integer",
4214
- "primaryKey": false,
4215
- "notNull": true,
4216
- "autoincrement": false
4217
- },
4218
- "fonts_body_text_size": {
4219
- "name": "fonts_body_text_size",
4220
- "type": "integer",
4221
- "primaryKey": false,
4222
- "notNull": true,
4223
- "autoincrement": false
4224
- },
4225
- "fonts_buttons_text_bold": {
4226
- "name": "fonts_buttons_text_bold",
4227
- "type": "integer",
4228
- "primaryKey": false,
4229
- "notNull": true,
4230
- "autoincrement": false
4231
- },
4232
- "fonts_buttons_text_size": {
4233
- "name": "fonts_buttons_text_size",
4234
- "type": "integer",
4235
- "primaryKey": false,
4236
- "notNull": true,
4237
- "autoincrement": false
4238
- },
4239
- "fonts_font_url": {
4240
- "name": "fonts_font_url",
4241
- "type": "text(255)",
4242
- "primaryKey": false,
4243
- "notNull": true,
4244
- "autoincrement": false
4245
- },
4246
- "fonts_input_labels_bold": {
4247
- "name": "fonts_input_labels_bold",
4248
- "type": "integer",
4249
- "primaryKey": false,
4250
- "notNull": true,
4251
- "autoincrement": false
4252
- },
4253
- "fonts_input_labels_size": {
4254
- "name": "fonts_input_labels_size",
4255
- "type": "integer",
4256
- "primaryKey": false,
4257
- "notNull": true,
4258
- "autoincrement": false
4259
- },
4260
- "fonts_links_bold": {
4261
- "name": "fonts_links_bold",
4262
- "type": "integer",
4263
- "primaryKey": false,
4264
- "notNull": true,
4265
- "autoincrement": false
4266
- },
4267
- "fonts_links_size": {
4268
- "name": "fonts_links_size",
4269
- "type": "integer",
4270
- "primaryKey": false,
4271
- "notNull": true,
4272
- "autoincrement": false
4273
- },
4274
- "fonts_links_style": {
4275
- "name": "fonts_links_style",
4276
- "type": "text(24)",
4277
- "primaryKey": false,
4278
- "notNull": true,
4279
- "autoincrement": false
4280
- },
4281
- "fonts_reference_text_size": {
4282
- "name": "fonts_reference_text_size",
4283
- "type": "integer",
4284
- "primaryKey": false,
4285
- "notNull": true,
4286
- "autoincrement": false
4287
- },
4288
- "fonts_subtitle_bold": {
4289
- "name": "fonts_subtitle_bold",
4290
- "type": "integer",
4291
- "primaryKey": false,
4292
- "notNull": true,
4293
- "autoincrement": false
4294
- },
4295
- "fonts_subtitle_size": {
4296
- "name": "fonts_subtitle_size",
4297
- "type": "integer",
4298
- "primaryKey": false,
4299
- "notNull": true,
4300
- "autoincrement": false
4301
- },
4302
- "fonts_title_bold": {
4303
- "name": "fonts_title_bold",
4304
- "type": "integer",
4305
- "primaryKey": false,
4306
- "notNull": true,
4307
- "autoincrement": false
4308
- },
4309
- "fonts_title_size": {
4310
- "name": "fonts_title_size",
4311
- "type": "integer",
4312
- "primaryKey": false,
4313
- "notNull": true,
4314
- "autoincrement": false
4315
- },
4316
- "page_background_background_color": {
4317
- "name": "page_background_background_color",
4318
- "type": "text(24)",
4319
- "primaryKey": false,
4320
- "notNull": true,
4321
- "autoincrement": false
4322
- },
4323
- "page_background_background_image_url": {
4324
- "name": "page_background_background_image_url",
4325
- "type": "text(255)",
4326
- "primaryKey": false,
4327
- "notNull": true,
4328
- "autoincrement": false
4329
- },
4330
- "page_background_page_layout": {
4331
- "name": "page_background_page_layout",
4332
- "type": "text(24)",
4333
- "primaryKey": false,
4334
- "notNull": true,
4335
- "autoincrement": false
4336
- },
4337
- "widget_header_text_alignment": {
4338
- "name": "widget_header_text_alignment",
4339
- "type": "text(24)",
4340
- "primaryKey": false,
4341
- "notNull": true,
4342
- "autoincrement": false
4343
- },
4344
- "widget_logo_height": {
4345
- "name": "widget_logo_height",
4346
- "type": "integer",
4347
- "primaryKey": false,
4348
- "notNull": true,
4349
- "autoincrement": false
4350
- },
4351
- "widget_logo_position": {
4352
- "name": "widget_logo_position",
4353
- "type": "text(24)",
4354
- "primaryKey": false,
4355
- "notNull": true,
4356
- "autoincrement": false
4357
- },
4358
- "widget_logo_url": {
4359
- "name": "widget_logo_url",
4360
- "type": "text(255)",
4361
- "primaryKey": false,
4362
- "notNull": true,
4363
- "autoincrement": false
4364
- },
4365
- "widget_social_buttons_layout": {
4366
- "name": "widget_social_buttons_layout",
4367
- "type": "text(24)",
4368
- "primaryKey": false,
4369
- "notNull": true,
4370
- "autoincrement": false
4371
- },
4372
- "created_at": {
4373
- "name": "created_at",
4374
- "type": "text(35)",
4375
- "primaryKey": false,
4376
- "notNull": true,
4377
- "autoincrement": false
4378
- },
4379
- "updated_at": {
4380
- "name": "updated_at",
4381
- "type": "text(35)",
4382
- "primaryKey": false,
4383
- "notNull": true,
4384
- "autoincrement": false
4385
- }
4386
- },
4387
- "indexes": {
4388
- "themes_tenant_id_idx": {
4389
- "name": "themes_tenant_id_idx",
4390
- "columns": ["tenant_id"],
4391
- "isUnique": false
4392
- }
4393
- },
4394
- "foreignKeys": {
4395
- "themes_tenant_id_tenants_id_fk": {
4396
- "name": "themes_tenant_id_tenants_id_fk",
4397
- "tableFrom": "themes",
4398
- "tableTo": "tenants",
4399
- "columnsFrom": ["tenant_id"],
4400
- "columnsTo": ["id"],
4401
- "onDelete": "cascade",
4402
- "onUpdate": "no action"
4403
- }
4404
- },
4405
- "compositePrimaryKeys": {
4406
- "themes_pkey": {
4407
- "columns": ["tenant_id", "themeId"],
4408
- "name": "themes_pkey"
4409
- }
4410
- },
4411
- "uniqueConstraints": {},
4412
- "checkConstraints": {}
4413
- },
4414
- "universal_login_templates": {
4415
- "name": "universal_login_templates",
4416
- "columns": {
4417
- "tenant_id": {
4418
- "name": "tenant_id",
4419
- "type": "text(191)",
4420
- "primaryKey": true,
4421
- "notNull": true,
4422
- "autoincrement": false
4423
- },
4424
- "body": {
4425
- "name": "body",
4426
- "type": "text",
4427
- "primaryKey": false,
4428
- "notNull": true,
4429
- "autoincrement": false
4430
- },
4431
- "created_at_ts": {
4432
- "name": "created_at_ts",
4433
- "type": "integer",
4434
- "primaryKey": false,
4435
- "notNull": true,
4436
- "autoincrement": false
4437
- },
4438
- "updated_at_ts": {
4439
- "name": "updated_at_ts",
4440
- "type": "integer",
4441
- "primaryKey": false,
4442
- "notNull": true,
4443
- "autoincrement": false
4444
- }
4445
- },
4446
- "indexes": {},
4447
- "foreignKeys": {
4448
- "universal_login_templates_tenant_id_tenants_id_fk": {
4449
- "name": "universal_login_templates_tenant_id_tenants_id_fk",
4450
- "tableFrom": "universal_login_templates",
4451
- "tableTo": "tenants",
4452
- "columnsFrom": ["tenant_id"],
4453
- "columnsTo": ["id"],
4454
- "onDelete": "cascade",
4455
- "onUpdate": "no action"
4456
- }
4457
- },
4458
- "compositePrimaryKeys": {},
4459
- "uniqueConstraints": {},
4460
- "checkConstraints": {}
4461
- },
4462
- "authentication_methods": {
4463
- "name": "authentication_methods",
4464
- "columns": {
4465
- "id": {
4466
- "name": "id",
4467
- "type": "text(26)",
4468
- "primaryKey": true,
4469
- "notNull": true,
4470
- "autoincrement": false
4471
- },
4472
- "tenant_id": {
4473
- "name": "tenant_id",
4474
- "type": "text(191)",
4475
- "primaryKey": false,
4476
- "notNull": true,
4477
- "autoincrement": false
4478
- },
4479
- "user_id": {
4480
- "name": "user_id",
4481
- "type": "text(255)",
4482
- "primaryKey": false,
4483
- "notNull": true,
4484
- "autoincrement": false
4485
- },
4486
- "type": {
4487
- "name": "type",
4488
- "type": "text(32)",
4489
- "primaryKey": false,
4490
- "notNull": true,
4491
- "autoincrement": false
4492
- },
4493
- "phone_number": {
4494
- "name": "phone_number",
4495
- "type": "text(32)",
4496
- "primaryKey": false,
4497
- "notNull": false,
4498
- "autoincrement": false
4499
- },
4500
- "totp_secret": {
4501
- "name": "totp_secret",
4502
- "type": "text(255)",
4503
- "primaryKey": false,
4504
- "notNull": false,
4505
- "autoincrement": false
4506
- },
4507
- "credential_id": {
4508
- "name": "credential_id",
4509
- "type": "text(512)",
4510
- "primaryKey": false,
4511
- "notNull": false,
4512
- "autoincrement": false
4513
- },
4514
- "public_key": {
4515
- "name": "public_key",
4516
- "type": "text",
4517
- "primaryKey": false,
4518
- "notNull": false,
4519
- "autoincrement": false
4520
- },
4521
- "sign_count": {
4522
- "name": "sign_count",
4523
- "type": "integer",
4524
- "primaryKey": false,
4525
- "notNull": false,
4526
- "autoincrement": false
4527
- },
4528
- "credential_backed_up": {
4529
- "name": "credential_backed_up",
4530
- "type": "integer",
4531
- "primaryKey": false,
4532
- "notNull": false,
4533
- "autoincrement": false
4534
- },
4535
- "transports": {
4536
- "name": "transports",
4537
- "type": "text(512)",
4538
- "primaryKey": false,
4539
- "notNull": false,
4540
- "autoincrement": false
4541
- },
4542
- "friendly_name": {
4543
- "name": "friendly_name",
4544
- "type": "text(255)",
4545
- "primaryKey": false,
4546
- "notNull": false,
4547
- "autoincrement": false
4548
- },
4549
- "confirmed": {
4550
- "name": "confirmed",
4551
- "type": "integer",
4552
- "primaryKey": false,
4553
- "notNull": true,
4554
- "autoincrement": false,
4555
- "default": 0
4556
- },
4557
- "created_at_ts": {
4558
- "name": "created_at_ts",
4559
- "type": "integer",
4560
- "primaryKey": false,
4561
- "notNull": true,
4562
- "autoincrement": false
4563
- },
4564
- "updated_at_ts": {
4565
- "name": "updated_at_ts",
4566
- "type": "integer",
4567
- "primaryKey": false,
4568
- "notNull": true,
4569
- "autoincrement": false
4570
- }
4571
- },
4572
- "indexes": {
4573
- "authentication_methods_tenant_user_idx": {
4574
- "name": "authentication_methods_tenant_user_idx",
4575
- "columns": ["tenant_id", "user_id"],
4576
- "isUnique": false
4577
- },
4578
- "authentication_methods_credential_id_idx": {
4579
- "name": "authentication_methods_credential_id_idx",
4580
- "columns": ["credential_id"],
4581
- "isUnique": false
4582
- }
4583
- },
4584
- "foreignKeys": {
4585
- "authentication_methods_tenant_id_tenants_id_fk": {
4586
- "name": "authentication_methods_tenant_id_tenants_id_fk",
4587
- "tableFrom": "authentication_methods",
4588
- "tableTo": "tenants",
4589
- "columnsFrom": ["tenant_id"],
4590
- "columnsTo": ["id"],
4591
- "onDelete": "cascade",
4592
- "onUpdate": "no action"
4593
- }
4594
- },
4595
- "compositePrimaryKeys": {},
4596
- "uniqueConstraints": {},
4597
- "checkConstraints": {}
4598
- },
4599
- "logs": {
4600
- "name": "logs",
4601
- "columns": {
4602
- "log_id": {
4603
- "name": "log_id",
4604
- "type": "text(21)",
4605
- "primaryKey": true,
4606
- "notNull": true,
4607
- "autoincrement": false
4608
- },
4609
- "category": {
4610
- "name": "category",
4611
- "type": "text(255)",
4612
- "primaryKey": false,
4613
- "notNull": false,
4614
- "autoincrement": false
4615
- },
4616
- "tenant_id": {
4617
- "name": "tenant_id",
4618
- "type": "text(64)",
4619
- "primaryKey": false,
4620
- "notNull": false,
4621
- "autoincrement": false
4622
- },
4623
- "user_id": {
4624
- "name": "user_id",
4625
- "type": "text(64)",
4626
- "primaryKey": false,
4627
- "notNull": false,
4628
- "autoincrement": false
4629
- },
4630
- "ip": {
4631
- "name": "ip",
4632
- "type": "text(255)",
4633
- "primaryKey": false,
4634
- "notNull": false,
4635
- "autoincrement": false
4636
- },
4637
- "type": {
4638
- "name": "type",
4639
- "type": "text(8)",
4640
- "primaryKey": false,
4641
- "notNull": true,
4642
- "autoincrement": false
4643
- },
4644
- "date": {
4645
- "name": "date",
4646
- "type": "text(35)",
4647
- "primaryKey": false,
4648
- "notNull": true,
4649
- "autoincrement": false
4650
- },
4651
- "client_id": {
4652
- "name": "client_id",
4653
- "type": "text(255)",
4654
- "primaryKey": false,
4655
- "notNull": false,
4656
- "autoincrement": false
4657
- },
4658
- "client_name": {
4659
- "name": "client_name",
4660
- "type": "text(255)",
4661
- "primaryKey": false,
4662
- "notNull": false,
4663
- "autoincrement": false
4664
- },
4665
- "user_agent": {
4666
- "name": "user_agent",
4667
- "type": "text(255)",
4668
- "primaryKey": false,
4669
- "notNull": false,
4670
- "autoincrement": false
4671
- },
4672
- "description": {
4673
- "name": "description",
4674
- "type": "text(255)",
4675
- "primaryKey": false,
4676
- "notNull": false,
4677
- "autoincrement": false
4678
- },
4679
- "details": {
4680
- "name": "details",
4681
- "type": "text(2048)",
4682
- "primaryKey": false,
4683
- "notNull": false,
4684
- "autoincrement": false
4685
- },
4686
- "isMobile": {
4687
- "name": "isMobile",
4688
- "type": "integer",
4689
- "primaryKey": false,
4690
- "notNull": false,
4691
- "autoincrement": false
4692
- },
4693
- "user_name": {
4694
- "name": "user_name",
4695
- "type": "text(255)",
4696
- "primaryKey": false,
4697
- "notNull": false,
4698
- "autoincrement": false
4699
- },
4700
- "connection": {
4701
- "name": "connection",
4702
- "type": "text(255)",
4703
- "primaryKey": false,
4704
- "notNull": false,
4705
- "autoincrement": false
4706
- },
4707
- "connection_id": {
4708
- "name": "connection_id",
4709
- "type": "text(255)",
4710
- "primaryKey": false,
4711
- "notNull": false,
4712
- "autoincrement": false
4713
- },
4714
- "audience": {
4715
- "name": "audience",
4716
- "type": "text(255)",
4717
- "primaryKey": false,
4718
- "notNull": false,
4719
- "autoincrement": false
4720
- },
4721
- "scope": {
4722
- "name": "scope",
4723
- "type": "text(255)",
4724
- "primaryKey": false,
4725
- "notNull": false,
4726
- "autoincrement": false
4727
- },
4728
- "strategy": {
4729
- "name": "strategy",
4730
- "type": "text(255)",
4731
- "primaryKey": false,
4732
- "notNull": false,
4733
- "autoincrement": false
4734
- },
4735
- "strategy_type": {
4736
- "name": "strategy_type",
4737
- "type": "text(255)",
4738
- "primaryKey": false,
4739
- "notNull": false,
4740
- "autoincrement": false
4741
- },
4742
- "hostname": {
4743
- "name": "hostname",
4744
- "type": "text(255)",
4745
- "primaryKey": false,
4746
- "notNull": false,
4747
- "autoincrement": false
4748
- },
4749
- "auth0_client": {
4750
- "name": "auth0_client",
4751
- "type": "text(8192)",
4752
- "primaryKey": false,
4753
- "notNull": false,
4754
- "autoincrement": false
4755
- },
4756
- "session_connection": {
4757
- "name": "session_connection",
4758
- "type": "text(255)",
4759
- "primaryKey": false,
4760
- "notNull": false,
4761
- "autoincrement": false
4762
- },
4763
- "country_code": {
4764
- "name": "country_code",
4765
- "type": "text(2)",
4766
- "primaryKey": false,
4767
- "notNull": false,
4768
- "autoincrement": false
4769
- },
4770
- "city_name": {
4771
- "name": "city_name",
4772
- "type": "text(255)",
4773
- "primaryKey": false,
4774
- "notNull": false,
4775
- "autoincrement": false
4776
- },
4777
- "latitude": {
4778
- "name": "latitude",
4779
- "type": "text(255)",
4780
- "primaryKey": false,
4781
- "notNull": false,
4782
- "autoincrement": false
4783
- },
4784
- "longitude": {
4785
- "name": "longitude",
4786
- "type": "text(255)",
4787
- "primaryKey": false,
4788
- "notNull": false,
4789
- "autoincrement": false
4790
- },
4791
- "time_zone": {
4792
- "name": "time_zone",
4793
- "type": "text(255)",
4794
- "primaryKey": false,
4795
- "notNull": false,
4796
- "autoincrement": false
4797
- },
4798
- "continent_code": {
4799
- "name": "continent_code",
4800
- "type": "text(2)",
4801
- "primaryKey": false,
4802
- "notNull": false,
4803
- "autoincrement": false
4804
- }
4805
- },
4806
- "indexes": {
4807
- "logs_user_id": {
4808
- "name": "logs_user_id",
4809
- "columns": ["user_id"],
4810
- "isUnique": false
4811
- },
4812
- "logs_tenant_id": {
4813
- "name": "logs_tenant_id",
4814
- "columns": ["tenant_id"],
4815
- "isUnique": false
4816
- },
4817
- "logs_date": {
4818
- "name": "logs_date",
4819
- "columns": ["date"],
4820
- "isUnique": false
4821
- },
4822
- "IDX_logs_tenant_date_type_user": {
4823
- "name": "IDX_logs_tenant_date_type_user",
4824
- "columns": ["tenant_id", "date", "type", "user_id"],
4825
- "isUnique": false
4826
- }
4827
- },
4828
- "foreignKeys": {},
4829
- "compositePrimaryKeys": {},
4830
- "uniqueConstraints": {},
4831
- "checkConstraints": {}
4832
- },
4833
- "outbox_events": {
4834
- "name": "outbox_events",
4835
- "columns": {
4836
- "id": {
4837
- "name": "id",
4838
- "type": "text(26)",
4839
- "primaryKey": true,
4840
- "notNull": true,
4841
- "autoincrement": false
4842
- },
4843
- "tenant_id": {
4844
- "name": "tenant_id",
4845
- "type": "text(191)",
4846
- "primaryKey": false,
4847
- "notNull": true,
4848
- "autoincrement": false
4849
- },
4850
- "event_type": {
4851
- "name": "event_type",
4852
- "type": "text(64)",
4853
- "primaryKey": false,
4854
- "notNull": true,
4855
- "autoincrement": false
4856
- },
4857
- "log_type": {
4858
- "name": "log_type",
4859
- "type": "text(64)",
4860
- "primaryKey": false,
4861
- "notNull": true,
4862
- "autoincrement": false
4863
- },
4864
- "aggregate_type": {
4865
- "name": "aggregate_type",
4866
- "type": "text(64)",
4867
- "primaryKey": false,
4868
- "notNull": true,
4869
- "autoincrement": false
4870
- },
4871
- "aggregate_id": {
4872
- "name": "aggregate_id",
4873
- "type": "text(255)",
4874
- "primaryKey": false,
4875
- "notNull": true,
4876
- "autoincrement": false
4877
- },
4878
- "payload": {
4879
- "name": "payload",
4880
- "type": "text",
4881
- "primaryKey": false,
4882
- "notNull": true,
4883
- "autoincrement": false
4884
- },
4885
- "created_at": {
4886
- "name": "created_at",
4887
- "type": "text(35)",
4888
- "primaryKey": false,
4889
- "notNull": true,
4890
- "autoincrement": false
4891
- },
4892
- "processed_at": {
4893
- "name": "processed_at",
4894
- "type": "text(35)",
4895
- "primaryKey": false,
4896
- "notNull": false,
4897
- "autoincrement": false
4898
- },
4899
- "retry_count": {
4900
- "name": "retry_count",
4901
- "type": "integer",
4902
- "primaryKey": false,
4903
- "notNull": true,
4904
- "autoincrement": false,
4905
- "default": 0
4906
- },
4907
- "next_retry_at": {
4908
- "name": "next_retry_at",
4909
- "type": "text(35)",
4910
- "primaryKey": false,
4911
- "notNull": false,
4912
- "autoincrement": false
4913
- },
4914
- "error": {
4915
- "name": "error",
4916
- "type": "text",
4917
- "primaryKey": false,
4918
- "notNull": false,
4919
- "autoincrement": false
4920
- },
4921
- "claimed_by": {
4922
- "name": "claimed_by",
4923
- "type": "text(255)",
4924
- "primaryKey": false,
4925
- "notNull": false,
4926
- "autoincrement": false
4927
- },
4928
- "claim_expires_at": {
4929
- "name": "claim_expires_at",
4930
- "type": "text(35)",
4931
- "primaryKey": false,
4932
- "notNull": false,
4933
- "autoincrement": false
4934
- }
4935
- },
4936
- "indexes": {
4937
- "idx_outbox_events_tenant_id": {
4938
- "name": "idx_outbox_events_tenant_id",
4939
- "columns": ["tenant_id"],
4940
- "isUnique": false
4941
- },
4942
- "idx_outbox_events_processed_at": {
4943
- "name": "idx_outbox_events_processed_at",
4944
- "columns": ["processed_at"],
4945
- "isUnique": false
4946
- },
4947
- "idx_outbox_events_claimed_by": {
4948
- "name": "idx_outbox_events_claimed_by",
4949
- "columns": ["claimed_by"],
4950
- "isUnique": false
4951
- }
4952
- },
4953
- "foreignKeys": {
4954
- "outbox_events_tenant_id_tenants_id_fk": {
4955
- "name": "outbox_events_tenant_id_tenants_id_fk",
4956
- "tableFrom": "outbox_events",
4957
- "tableTo": "tenants",
4958
- "columnsFrom": ["tenant_id"],
4959
- "columnsTo": ["id"],
4960
- "onDelete": "cascade",
4961
- "onUpdate": "no action"
4962
- }
4963
- },
4964
- "compositePrimaryKeys": {},
4965
- "uniqueConstraints": {},
4966
- "checkConstraints": {}
4967
- }
4968
- },
4969
- "views": {},
4970
- "enums": {},
4971
- "_meta": {
4972
- "schemas": {},
4973
- "tables": {},
4974
- "columns": {}
4975
- },
4976
- "internal": {
4977
- "indexes": {}
4978
- }
4979
- }