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