@authhero/drizzle 0.11.0 → 0.12.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,4632 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "531f1055-83e0-4c4c-8076-e158c192d76f",
5
+ "prevId": "2e08570c-9165-450c-898f-ebfcbc10cf32",
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": false,
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(8192)",
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
+ "connections_tenant_id_id_pk": {
2350
+ "columns": [
2351
+ "tenant_id",
2352
+ "id"
2353
+ ],
2354
+ "name": "connections_tenant_id_id_pk"
2355
+ }
2356
+ },
2357
+ "uniqueConstraints": {},
2358
+ "checkConstraints": {}
2359
+ },
2360
+ "custom_domains": {
2361
+ "name": "custom_domains",
2362
+ "columns": {
2363
+ "custom_domain_id": {
2364
+ "name": "custom_domain_id",
2365
+ "type": "text(256)",
2366
+ "primaryKey": true,
2367
+ "notNull": true,
2368
+ "autoincrement": false
2369
+ },
2370
+ "tenant_id": {
2371
+ "name": "tenant_id",
2372
+ "type": "text(191)",
2373
+ "primaryKey": false,
2374
+ "notNull": true,
2375
+ "autoincrement": false
2376
+ },
2377
+ "domain": {
2378
+ "name": "domain",
2379
+ "type": "text(255)",
2380
+ "primaryKey": false,
2381
+ "notNull": true,
2382
+ "autoincrement": false
2383
+ },
2384
+ "primary": {
2385
+ "name": "primary",
2386
+ "type": "integer",
2387
+ "primaryKey": false,
2388
+ "notNull": true,
2389
+ "autoincrement": false
2390
+ },
2391
+ "status": {
2392
+ "name": "status",
2393
+ "type": "text(50)",
2394
+ "primaryKey": false,
2395
+ "notNull": true,
2396
+ "autoincrement": false
2397
+ },
2398
+ "type": {
2399
+ "name": "type",
2400
+ "type": "text(50)",
2401
+ "primaryKey": false,
2402
+ "notNull": true,
2403
+ "autoincrement": false
2404
+ },
2405
+ "origin_domain_name": {
2406
+ "name": "origin_domain_name",
2407
+ "type": "text(255)",
2408
+ "primaryKey": false,
2409
+ "notNull": false,
2410
+ "autoincrement": false
2411
+ },
2412
+ "verification": {
2413
+ "name": "verification",
2414
+ "type": "text(2048)",
2415
+ "primaryKey": false,
2416
+ "notNull": false,
2417
+ "autoincrement": false
2418
+ },
2419
+ "custom_client_ip_header": {
2420
+ "name": "custom_client_ip_header",
2421
+ "type": "text(50)",
2422
+ "primaryKey": false,
2423
+ "notNull": false,
2424
+ "autoincrement": false
2425
+ },
2426
+ "tls_policy": {
2427
+ "name": "tls_policy",
2428
+ "type": "text(50)",
2429
+ "primaryKey": false,
2430
+ "notNull": false,
2431
+ "autoincrement": false
2432
+ },
2433
+ "domain_metadata": {
2434
+ "name": "domain_metadata",
2435
+ "type": "text(2048)",
2436
+ "primaryKey": false,
2437
+ "notNull": false,
2438
+ "autoincrement": false
2439
+ },
2440
+ "created_at": {
2441
+ "name": "created_at",
2442
+ "type": "text(35)",
2443
+ "primaryKey": false,
2444
+ "notNull": true,
2445
+ "autoincrement": false
2446
+ },
2447
+ "updated_at": {
2448
+ "name": "updated_at",
2449
+ "type": "text(35)",
2450
+ "primaryKey": false,
2451
+ "notNull": true,
2452
+ "autoincrement": false
2453
+ }
2454
+ },
2455
+ "indexes": {},
2456
+ "foreignKeys": {
2457
+ "custom_domains_tenant_id_tenants_id_fk": {
2458
+ "name": "custom_domains_tenant_id_tenants_id_fk",
2459
+ "tableFrom": "custom_domains",
2460
+ "tableTo": "tenants",
2461
+ "columnsFrom": [
2462
+ "tenant_id"
2463
+ ],
2464
+ "columnsTo": [
2465
+ "id"
2466
+ ],
2467
+ "onDelete": "cascade",
2468
+ "onUpdate": "no action"
2469
+ }
2470
+ },
2471
+ "compositePrimaryKeys": {},
2472
+ "uniqueConstraints": {},
2473
+ "checkConstraints": {}
2474
+ },
2475
+ "domains": {
2476
+ "name": "domains",
2477
+ "columns": {
2478
+ "id": {
2479
+ "name": "id",
2480
+ "type": "text(255)",
2481
+ "primaryKey": true,
2482
+ "notNull": true,
2483
+ "autoincrement": false
2484
+ },
2485
+ "tenant_id": {
2486
+ "name": "tenant_id",
2487
+ "type": "text(191)",
2488
+ "primaryKey": false,
2489
+ "notNull": true,
2490
+ "autoincrement": false
2491
+ },
2492
+ "domain": {
2493
+ "name": "domain",
2494
+ "type": "text(255)",
2495
+ "primaryKey": false,
2496
+ "notNull": true,
2497
+ "autoincrement": false
2498
+ },
2499
+ "email_service": {
2500
+ "name": "email_service",
2501
+ "type": "text(255)",
2502
+ "primaryKey": false,
2503
+ "notNull": false,
2504
+ "autoincrement": false
2505
+ },
2506
+ "email_api_key": {
2507
+ "name": "email_api_key",
2508
+ "type": "text(255)",
2509
+ "primaryKey": false,
2510
+ "notNull": false,
2511
+ "autoincrement": false
2512
+ },
2513
+ "dkim_private_key": {
2514
+ "name": "dkim_private_key",
2515
+ "type": "text(2048)",
2516
+ "primaryKey": false,
2517
+ "notNull": false,
2518
+ "autoincrement": false
2519
+ },
2520
+ "dkim_public_key": {
2521
+ "name": "dkim_public_key",
2522
+ "type": "text(2048)",
2523
+ "primaryKey": false,
2524
+ "notNull": false,
2525
+ "autoincrement": false
2526
+ },
2527
+ "created_at": {
2528
+ "name": "created_at",
2529
+ "type": "text(35)",
2530
+ "primaryKey": false,
2531
+ "notNull": true,
2532
+ "autoincrement": false
2533
+ },
2534
+ "updated_at": {
2535
+ "name": "updated_at",
2536
+ "type": "text(35)",
2537
+ "primaryKey": false,
2538
+ "notNull": true,
2539
+ "autoincrement": false
2540
+ }
2541
+ },
2542
+ "indexes": {},
2543
+ "foreignKeys": {
2544
+ "domains_tenant_id_tenants_id_fk": {
2545
+ "name": "domains_tenant_id_tenants_id_fk",
2546
+ "tableFrom": "domains",
2547
+ "tableTo": "tenants",
2548
+ "columnsFrom": [
2549
+ "tenant_id"
2550
+ ],
2551
+ "columnsTo": [
2552
+ "id"
2553
+ ],
2554
+ "onDelete": "cascade",
2555
+ "onUpdate": "no action"
2556
+ }
2557
+ },
2558
+ "compositePrimaryKeys": {},
2559
+ "uniqueConstraints": {},
2560
+ "checkConstraints": {}
2561
+ },
2562
+ "invites": {
2563
+ "name": "invites",
2564
+ "columns": {
2565
+ "id": {
2566
+ "name": "id",
2567
+ "type": "text(21)",
2568
+ "primaryKey": true,
2569
+ "notNull": true,
2570
+ "autoincrement": false
2571
+ },
2572
+ "tenant_id": {
2573
+ "name": "tenant_id",
2574
+ "type": "text(191)",
2575
+ "primaryKey": false,
2576
+ "notNull": true,
2577
+ "autoincrement": false
2578
+ },
2579
+ "organization_id": {
2580
+ "name": "organization_id",
2581
+ "type": "text(21)",
2582
+ "primaryKey": false,
2583
+ "notNull": true,
2584
+ "autoincrement": false
2585
+ },
2586
+ "inviter": {
2587
+ "name": "inviter",
2588
+ "type": "text",
2589
+ "primaryKey": false,
2590
+ "notNull": true,
2591
+ "autoincrement": false
2592
+ },
2593
+ "invitee": {
2594
+ "name": "invitee",
2595
+ "type": "text",
2596
+ "primaryKey": false,
2597
+ "notNull": true,
2598
+ "autoincrement": false
2599
+ },
2600
+ "client_id": {
2601
+ "name": "client_id",
2602
+ "type": "text(191)",
2603
+ "primaryKey": false,
2604
+ "notNull": true,
2605
+ "autoincrement": false
2606
+ },
2607
+ "connection_id": {
2608
+ "name": "connection_id",
2609
+ "type": "text(21)",
2610
+ "primaryKey": false,
2611
+ "notNull": false,
2612
+ "autoincrement": false
2613
+ },
2614
+ "invitation_url": {
2615
+ "name": "invitation_url",
2616
+ "type": "text",
2617
+ "primaryKey": false,
2618
+ "notNull": true,
2619
+ "autoincrement": false
2620
+ },
2621
+ "created_at": {
2622
+ "name": "created_at",
2623
+ "type": "text(35)",
2624
+ "primaryKey": false,
2625
+ "notNull": true,
2626
+ "autoincrement": false
2627
+ },
2628
+ "expires_at": {
2629
+ "name": "expires_at",
2630
+ "type": "text(35)",
2631
+ "primaryKey": false,
2632
+ "notNull": true,
2633
+ "autoincrement": false
2634
+ },
2635
+ "app_metadata": {
2636
+ "name": "app_metadata",
2637
+ "type": "text",
2638
+ "primaryKey": false,
2639
+ "notNull": false,
2640
+ "autoincrement": false
2641
+ },
2642
+ "user_metadata": {
2643
+ "name": "user_metadata",
2644
+ "type": "text",
2645
+ "primaryKey": false,
2646
+ "notNull": false,
2647
+ "autoincrement": false
2648
+ },
2649
+ "roles": {
2650
+ "name": "roles",
2651
+ "type": "text",
2652
+ "primaryKey": false,
2653
+ "notNull": false,
2654
+ "autoincrement": false
2655
+ },
2656
+ "ticket_id": {
2657
+ "name": "ticket_id",
2658
+ "type": "text(191)",
2659
+ "primaryKey": false,
2660
+ "notNull": false,
2661
+ "autoincrement": false
2662
+ },
2663
+ "ttl_sec": {
2664
+ "name": "ttl_sec",
2665
+ "type": "integer",
2666
+ "primaryKey": false,
2667
+ "notNull": false,
2668
+ "autoincrement": false
2669
+ },
2670
+ "send_invitation_email": {
2671
+ "name": "send_invitation_email",
2672
+ "type": "integer",
2673
+ "primaryKey": false,
2674
+ "notNull": false,
2675
+ "autoincrement": false
2676
+ }
2677
+ },
2678
+ "indexes": {
2679
+ "idx_invites_tenant_id": {
2680
+ "name": "idx_invites_tenant_id",
2681
+ "columns": [
2682
+ "tenant_id"
2683
+ ],
2684
+ "isUnique": false
2685
+ },
2686
+ "idx_invites_organization_id": {
2687
+ "name": "idx_invites_organization_id",
2688
+ "columns": [
2689
+ "organization_id"
2690
+ ],
2691
+ "isUnique": false
2692
+ },
2693
+ "idx_invites_expires_at": {
2694
+ "name": "idx_invites_expires_at",
2695
+ "columns": [
2696
+ "expires_at"
2697
+ ],
2698
+ "isUnique": false
2699
+ },
2700
+ "idx_invites_tenant_created": {
2701
+ "name": "idx_invites_tenant_created",
2702
+ "columns": [
2703
+ "tenant_id",
2704
+ "created_at"
2705
+ ],
2706
+ "isUnique": false
2707
+ }
2708
+ },
2709
+ "foreignKeys": {},
2710
+ "compositePrimaryKeys": {},
2711
+ "uniqueConstraints": {},
2712
+ "checkConstraints": {}
2713
+ },
2714
+ "organizations": {
2715
+ "name": "organizations",
2716
+ "columns": {
2717
+ "id": {
2718
+ "name": "id",
2719
+ "type": "text(21)",
2720
+ "primaryKey": true,
2721
+ "notNull": true,
2722
+ "autoincrement": false
2723
+ },
2724
+ "tenant_id": {
2725
+ "name": "tenant_id",
2726
+ "type": "text(191)",
2727
+ "primaryKey": false,
2728
+ "notNull": true,
2729
+ "autoincrement": false
2730
+ },
2731
+ "name": {
2732
+ "name": "name",
2733
+ "type": "text(256)",
2734
+ "primaryKey": false,
2735
+ "notNull": true,
2736
+ "autoincrement": false
2737
+ },
2738
+ "display_name": {
2739
+ "name": "display_name",
2740
+ "type": "text(256)",
2741
+ "primaryKey": false,
2742
+ "notNull": false,
2743
+ "autoincrement": false
2744
+ },
2745
+ "branding": {
2746
+ "name": "branding",
2747
+ "type": "text",
2748
+ "primaryKey": false,
2749
+ "notNull": false,
2750
+ "autoincrement": false
2751
+ },
2752
+ "metadata": {
2753
+ "name": "metadata",
2754
+ "type": "text",
2755
+ "primaryKey": false,
2756
+ "notNull": false,
2757
+ "autoincrement": false
2758
+ },
2759
+ "enabled_connections": {
2760
+ "name": "enabled_connections",
2761
+ "type": "text",
2762
+ "primaryKey": false,
2763
+ "notNull": false,
2764
+ "autoincrement": false
2765
+ },
2766
+ "token_quota": {
2767
+ "name": "token_quota",
2768
+ "type": "text",
2769
+ "primaryKey": false,
2770
+ "notNull": false,
2771
+ "autoincrement": false
2772
+ },
2773
+ "created_at": {
2774
+ "name": "created_at",
2775
+ "type": "text(35)",
2776
+ "primaryKey": false,
2777
+ "notNull": true,
2778
+ "autoincrement": false
2779
+ },
2780
+ "updated_at": {
2781
+ "name": "updated_at",
2782
+ "type": "text(35)",
2783
+ "primaryKey": false,
2784
+ "notNull": true,
2785
+ "autoincrement": false
2786
+ }
2787
+ },
2788
+ "indexes": {
2789
+ "idx_organizations_tenant_id": {
2790
+ "name": "idx_organizations_tenant_id",
2791
+ "columns": [
2792
+ "tenant_id"
2793
+ ],
2794
+ "isUnique": false
2795
+ }
2796
+ },
2797
+ "foreignKeys": {},
2798
+ "compositePrimaryKeys": {},
2799
+ "uniqueConstraints": {},
2800
+ "checkConstraints": {}
2801
+ },
2802
+ "user_organizations": {
2803
+ "name": "user_organizations",
2804
+ "columns": {
2805
+ "id": {
2806
+ "name": "id",
2807
+ "type": "text(21)",
2808
+ "primaryKey": true,
2809
+ "notNull": true,
2810
+ "autoincrement": false
2811
+ },
2812
+ "tenant_id": {
2813
+ "name": "tenant_id",
2814
+ "type": "text(191)",
2815
+ "primaryKey": false,
2816
+ "notNull": true,
2817
+ "autoincrement": false
2818
+ },
2819
+ "user_id": {
2820
+ "name": "user_id",
2821
+ "type": "text(191)",
2822
+ "primaryKey": false,
2823
+ "notNull": true,
2824
+ "autoincrement": false
2825
+ },
2826
+ "organization_id": {
2827
+ "name": "organization_id",
2828
+ "type": "text(21)",
2829
+ "primaryKey": false,
2830
+ "notNull": true,
2831
+ "autoincrement": false
2832
+ },
2833
+ "created_at": {
2834
+ "name": "created_at",
2835
+ "type": "text(35)",
2836
+ "primaryKey": false,
2837
+ "notNull": true,
2838
+ "autoincrement": false
2839
+ },
2840
+ "updated_at": {
2841
+ "name": "updated_at",
2842
+ "type": "text(35)",
2843
+ "primaryKey": false,
2844
+ "notNull": true,
2845
+ "autoincrement": false
2846
+ }
2847
+ },
2848
+ "indexes": {
2849
+ "user_organizations_unique": {
2850
+ "name": "user_organizations_unique",
2851
+ "columns": [
2852
+ "tenant_id",
2853
+ "user_id",
2854
+ "organization_id"
2855
+ ],
2856
+ "isUnique": true
2857
+ },
2858
+ "idx_user_organizations_tenant_id": {
2859
+ "name": "idx_user_organizations_tenant_id",
2860
+ "columns": [
2861
+ "tenant_id"
2862
+ ],
2863
+ "isUnique": false
2864
+ },
2865
+ "idx_user_organizations_user_id": {
2866
+ "name": "idx_user_organizations_user_id",
2867
+ "columns": [
2868
+ "user_id"
2869
+ ],
2870
+ "isUnique": false
2871
+ },
2872
+ "idx_user_organizations_organization_id": {
2873
+ "name": "idx_user_organizations_organization_id",
2874
+ "columns": [
2875
+ "organization_id"
2876
+ ],
2877
+ "isUnique": false
2878
+ }
2879
+ },
2880
+ "foreignKeys": {},
2881
+ "compositePrimaryKeys": {},
2882
+ "uniqueConstraints": {},
2883
+ "checkConstraints": {}
2884
+ },
2885
+ "resource_servers": {
2886
+ "name": "resource_servers",
2887
+ "columns": {
2888
+ "id": {
2889
+ "name": "id",
2890
+ "type": "text(21)",
2891
+ "primaryKey": false,
2892
+ "notNull": true,
2893
+ "autoincrement": false
2894
+ },
2895
+ "tenant_id": {
2896
+ "name": "tenant_id",
2897
+ "type": "text(191)",
2898
+ "primaryKey": false,
2899
+ "notNull": true,
2900
+ "autoincrement": false
2901
+ },
2902
+ "identifier": {
2903
+ "name": "identifier",
2904
+ "type": "text(191)",
2905
+ "primaryKey": false,
2906
+ "notNull": true,
2907
+ "autoincrement": false
2908
+ },
2909
+ "name": {
2910
+ "name": "name",
2911
+ "type": "text(255)",
2912
+ "primaryKey": false,
2913
+ "notNull": true,
2914
+ "autoincrement": false
2915
+ },
2916
+ "scopes": {
2917
+ "name": "scopes",
2918
+ "type": "text(4096)",
2919
+ "primaryKey": false,
2920
+ "notNull": false,
2921
+ "autoincrement": false
2922
+ },
2923
+ "signing_alg": {
2924
+ "name": "signing_alg",
2925
+ "type": "text(64)",
2926
+ "primaryKey": false,
2927
+ "notNull": false,
2928
+ "autoincrement": false
2929
+ },
2930
+ "signing_secret": {
2931
+ "name": "signing_secret",
2932
+ "type": "text(2048)",
2933
+ "primaryKey": false,
2934
+ "notNull": false,
2935
+ "autoincrement": false
2936
+ },
2937
+ "token_lifetime": {
2938
+ "name": "token_lifetime",
2939
+ "type": "integer",
2940
+ "primaryKey": false,
2941
+ "notNull": false,
2942
+ "autoincrement": false
2943
+ },
2944
+ "token_lifetime_for_web": {
2945
+ "name": "token_lifetime_for_web",
2946
+ "type": "integer",
2947
+ "primaryKey": false,
2948
+ "notNull": false,
2949
+ "autoincrement": false
2950
+ },
2951
+ "skip_consent_for_verifiable_first_party_clients": {
2952
+ "name": "skip_consent_for_verifiable_first_party_clients",
2953
+ "type": "integer",
2954
+ "primaryKey": false,
2955
+ "notNull": false,
2956
+ "autoincrement": false
2957
+ },
2958
+ "allow_offline_access": {
2959
+ "name": "allow_offline_access",
2960
+ "type": "integer",
2961
+ "primaryKey": false,
2962
+ "notNull": false,
2963
+ "autoincrement": false
2964
+ },
2965
+ "verification_key": {
2966
+ "name": "verification_key",
2967
+ "type": "text(4096)",
2968
+ "primaryKey": false,
2969
+ "notNull": false,
2970
+ "autoincrement": false
2971
+ },
2972
+ "options": {
2973
+ "name": "options",
2974
+ "type": "text(4096)",
2975
+ "primaryKey": false,
2976
+ "notNull": false,
2977
+ "autoincrement": false
2978
+ },
2979
+ "is_system": {
2980
+ "name": "is_system",
2981
+ "type": "integer",
2982
+ "primaryKey": false,
2983
+ "notNull": true,
2984
+ "autoincrement": false,
2985
+ "default": 0
2986
+ },
2987
+ "created_at": {
2988
+ "name": "created_at",
2989
+ "type": "text(35)",
2990
+ "primaryKey": false,
2991
+ "notNull": true,
2992
+ "autoincrement": false
2993
+ },
2994
+ "updated_at": {
2995
+ "name": "updated_at",
2996
+ "type": "text(35)",
2997
+ "primaryKey": false,
2998
+ "notNull": true,
2999
+ "autoincrement": false
3000
+ }
3001
+ },
3002
+ "indexes": {},
3003
+ "foreignKeys": {},
3004
+ "compositePrimaryKeys": {
3005
+ "resource_servers_pk": {
3006
+ "columns": [
3007
+ "tenant_id",
3008
+ "id"
3009
+ ],
3010
+ "name": "resource_servers_pk"
3011
+ }
3012
+ },
3013
+ "uniqueConstraints": {},
3014
+ "checkConstraints": {}
3015
+ },
3016
+ "role_permissions": {
3017
+ "name": "role_permissions",
3018
+ "columns": {
3019
+ "tenant_id": {
3020
+ "name": "tenant_id",
3021
+ "type": "text(191)",
3022
+ "primaryKey": false,
3023
+ "notNull": true,
3024
+ "autoincrement": false
3025
+ },
3026
+ "role_id": {
3027
+ "name": "role_id",
3028
+ "type": "text(21)",
3029
+ "primaryKey": false,
3030
+ "notNull": true,
3031
+ "autoincrement": false
3032
+ },
3033
+ "resource_server_identifier": {
3034
+ "name": "resource_server_identifier",
3035
+ "type": "text(191)",
3036
+ "primaryKey": false,
3037
+ "notNull": true,
3038
+ "autoincrement": false
3039
+ },
3040
+ "permission_name": {
3041
+ "name": "permission_name",
3042
+ "type": "text(191)",
3043
+ "primaryKey": false,
3044
+ "notNull": true,
3045
+ "autoincrement": false
3046
+ },
3047
+ "created_at": {
3048
+ "name": "created_at",
3049
+ "type": "text(35)",
3050
+ "primaryKey": false,
3051
+ "notNull": true,
3052
+ "autoincrement": false
3053
+ }
3054
+ },
3055
+ "indexes": {
3056
+ "role_permissions_role_fk": {
3057
+ "name": "role_permissions_role_fk",
3058
+ "columns": [
3059
+ "tenant_id",
3060
+ "role_id"
3061
+ ],
3062
+ "isUnique": false
3063
+ },
3064
+ "role_permissions_permission_fk": {
3065
+ "name": "role_permissions_permission_fk",
3066
+ "columns": [
3067
+ "tenant_id",
3068
+ "resource_server_identifier",
3069
+ "permission_name"
3070
+ ],
3071
+ "isUnique": false
3072
+ }
3073
+ },
3074
+ "foreignKeys": {},
3075
+ "compositePrimaryKeys": {
3076
+ "role_permissions_pk": {
3077
+ "columns": [
3078
+ "tenant_id",
3079
+ "role_id",
3080
+ "resource_server_identifier",
3081
+ "permission_name"
3082
+ ],
3083
+ "name": "role_permissions_pk"
3084
+ }
3085
+ },
3086
+ "uniqueConstraints": {},
3087
+ "checkConstraints": {}
3088
+ },
3089
+ "roles": {
3090
+ "name": "roles",
3091
+ "columns": {
3092
+ "id": {
3093
+ "name": "id",
3094
+ "type": "text(21)",
3095
+ "primaryKey": false,
3096
+ "notNull": true,
3097
+ "autoincrement": false
3098
+ },
3099
+ "tenant_id": {
3100
+ "name": "tenant_id",
3101
+ "type": "text(191)",
3102
+ "primaryKey": false,
3103
+ "notNull": true,
3104
+ "autoincrement": false
3105
+ },
3106
+ "name": {
3107
+ "name": "name",
3108
+ "type": "text(50)",
3109
+ "primaryKey": false,
3110
+ "notNull": true,
3111
+ "autoincrement": false
3112
+ },
3113
+ "description": {
3114
+ "name": "description",
3115
+ "type": "text(255)",
3116
+ "primaryKey": false,
3117
+ "notNull": false,
3118
+ "autoincrement": false
3119
+ },
3120
+ "is_system": {
3121
+ "name": "is_system",
3122
+ "type": "integer",
3123
+ "primaryKey": false,
3124
+ "notNull": true,
3125
+ "autoincrement": false,
3126
+ "default": 0
3127
+ },
3128
+ "created_at": {
3129
+ "name": "created_at",
3130
+ "type": "text(35)",
3131
+ "primaryKey": false,
3132
+ "notNull": true,
3133
+ "autoincrement": false
3134
+ },
3135
+ "updated_at": {
3136
+ "name": "updated_at",
3137
+ "type": "text(35)",
3138
+ "primaryKey": false,
3139
+ "notNull": true,
3140
+ "autoincrement": false
3141
+ }
3142
+ },
3143
+ "indexes": {},
3144
+ "foreignKeys": {},
3145
+ "compositePrimaryKeys": {
3146
+ "roles_pk": {
3147
+ "columns": [
3148
+ "tenant_id",
3149
+ "id"
3150
+ ],
3151
+ "name": "roles_pk"
3152
+ }
3153
+ },
3154
+ "uniqueConstraints": {},
3155
+ "checkConstraints": {}
3156
+ },
3157
+ "user_permissions": {
3158
+ "name": "user_permissions",
3159
+ "columns": {
3160
+ "tenant_id": {
3161
+ "name": "tenant_id",
3162
+ "type": "text(191)",
3163
+ "primaryKey": false,
3164
+ "notNull": true,
3165
+ "autoincrement": false
3166
+ },
3167
+ "user_id": {
3168
+ "name": "user_id",
3169
+ "type": "text(191)",
3170
+ "primaryKey": false,
3171
+ "notNull": true,
3172
+ "autoincrement": false
3173
+ },
3174
+ "resource_server_identifier": {
3175
+ "name": "resource_server_identifier",
3176
+ "type": "text(191)",
3177
+ "primaryKey": false,
3178
+ "notNull": true,
3179
+ "autoincrement": false
3180
+ },
3181
+ "permission_name": {
3182
+ "name": "permission_name",
3183
+ "type": "text(191)",
3184
+ "primaryKey": false,
3185
+ "notNull": true,
3186
+ "autoincrement": false
3187
+ },
3188
+ "organization_id": {
3189
+ "name": "organization_id",
3190
+ "type": "text(21)",
3191
+ "primaryKey": false,
3192
+ "notNull": true,
3193
+ "autoincrement": false,
3194
+ "default": "''"
3195
+ },
3196
+ "created_at": {
3197
+ "name": "created_at",
3198
+ "type": "text(35)",
3199
+ "primaryKey": false,
3200
+ "notNull": true,
3201
+ "autoincrement": false
3202
+ }
3203
+ },
3204
+ "indexes": {
3205
+ "user_permissions_user_fk": {
3206
+ "name": "user_permissions_user_fk",
3207
+ "columns": [
3208
+ "tenant_id",
3209
+ "user_id"
3210
+ ],
3211
+ "isUnique": false
3212
+ },
3213
+ "user_permissions_permission_fk": {
3214
+ "name": "user_permissions_permission_fk",
3215
+ "columns": [
3216
+ "tenant_id",
3217
+ "resource_server_identifier",
3218
+ "permission_name"
3219
+ ],
3220
+ "isUnique": false
3221
+ },
3222
+ "user_permissions_organization_fk": {
3223
+ "name": "user_permissions_organization_fk",
3224
+ "columns": [
3225
+ "organization_id"
3226
+ ],
3227
+ "isUnique": false
3228
+ }
3229
+ },
3230
+ "foreignKeys": {},
3231
+ "compositePrimaryKeys": {
3232
+ "user_permissions_pk": {
3233
+ "columns": [
3234
+ "tenant_id",
3235
+ "user_id",
3236
+ "resource_server_identifier",
3237
+ "permission_name",
3238
+ "organization_id"
3239
+ ],
3240
+ "name": "user_permissions_pk"
3241
+ }
3242
+ },
3243
+ "uniqueConstraints": {},
3244
+ "checkConstraints": {}
3245
+ },
3246
+ "user_roles": {
3247
+ "name": "user_roles",
3248
+ "columns": {
3249
+ "tenant_id": {
3250
+ "name": "tenant_id",
3251
+ "type": "text(191)",
3252
+ "primaryKey": false,
3253
+ "notNull": true,
3254
+ "autoincrement": false
3255
+ },
3256
+ "user_id": {
3257
+ "name": "user_id",
3258
+ "type": "text(191)",
3259
+ "primaryKey": false,
3260
+ "notNull": true,
3261
+ "autoincrement": false
3262
+ },
3263
+ "role_id": {
3264
+ "name": "role_id",
3265
+ "type": "text(21)",
3266
+ "primaryKey": false,
3267
+ "notNull": true,
3268
+ "autoincrement": false
3269
+ },
3270
+ "organization_id": {
3271
+ "name": "organization_id",
3272
+ "type": "text(191)",
3273
+ "primaryKey": false,
3274
+ "notNull": true,
3275
+ "autoincrement": false,
3276
+ "default": "''"
3277
+ },
3278
+ "created_at": {
3279
+ "name": "created_at",
3280
+ "type": "text(35)",
3281
+ "primaryKey": false,
3282
+ "notNull": true,
3283
+ "autoincrement": false
3284
+ }
3285
+ },
3286
+ "indexes": {
3287
+ "user_roles_user_fk": {
3288
+ "name": "user_roles_user_fk",
3289
+ "columns": [
3290
+ "tenant_id",
3291
+ "user_id"
3292
+ ],
3293
+ "isUnique": false
3294
+ },
3295
+ "user_roles_role_fk": {
3296
+ "name": "user_roles_role_fk",
3297
+ "columns": [
3298
+ "tenant_id",
3299
+ "role_id"
3300
+ ],
3301
+ "isUnique": false
3302
+ },
3303
+ "user_roles_organization_fk": {
3304
+ "name": "user_roles_organization_fk",
3305
+ "columns": [
3306
+ "organization_id"
3307
+ ],
3308
+ "isUnique": false
3309
+ }
3310
+ },
3311
+ "foreignKeys": {},
3312
+ "compositePrimaryKeys": {
3313
+ "user_roles_pk": {
3314
+ "columns": [
3315
+ "tenant_id",
3316
+ "user_id",
3317
+ "role_id",
3318
+ "organization_id"
3319
+ ],
3320
+ "name": "user_roles_pk"
3321
+ }
3322
+ },
3323
+ "uniqueConstraints": {},
3324
+ "checkConstraints": {}
3325
+ },
3326
+ "branding": {
3327
+ "name": "branding",
3328
+ "columns": {
3329
+ "tenant_id": {
3330
+ "name": "tenant_id",
3331
+ "type": "text(191)",
3332
+ "primaryKey": true,
3333
+ "notNull": true,
3334
+ "autoincrement": false
3335
+ },
3336
+ "logo_url": {
3337
+ "name": "logo_url",
3338
+ "type": "text(512)",
3339
+ "primaryKey": false,
3340
+ "notNull": false,
3341
+ "autoincrement": false
3342
+ },
3343
+ "favicon_url": {
3344
+ "name": "favicon_url",
3345
+ "type": "text(512)",
3346
+ "primaryKey": false,
3347
+ "notNull": false,
3348
+ "autoincrement": false
3349
+ },
3350
+ "font_url": {
3351
+ "name": "font_url",
3352
+ "type": "text(512)",
3353
+ "primaryKey": false,
3354
+ "notNull": false,
3355
+ "autoincrement": false
3356
+ },
3357
+ "colors_primary": {
3358
+ "name": "colors_primary",
3359
+ "type": "text(8)",
3360
+ "primaryKey": false,
3361
+ "notNull": false,
3362
+ "autoincrement": false
3363
+ },
3364
+ "colors_page_background_type": {
3365
+ "name": "colors_page_background_type",
3366
+ "type": "text(32)",
3367
+ "primaryKey": false,
3368
+ "notNull": false,
3369
+ "autoincrement": false
3370
+ },
3371
+ "colors_page_background_start": {
3372
+ "name": "colors_page_background_start",
3373
+ "type": "text(8)",
3374
+ "primaryKey": false,
3375
+ "notNull": false,
3376
+ "autoincrement": false
3377
+ },
3378
+ "colors_page_background_end": {
3379
+ "name": "colors_page_background_end",
3380
+ "type": "text(8)",
3381
+ "primaryKey": false,
3382
+ "notNull": false,
3383
+ "autoincrement": false
3384
+ },
3385
+ "colors_page_background_angle_dev": {
3386
+ "name": "colors_page_background_angle_dev",
3387
+ "type": "integer",
3388
+ "primaryKey": false,
3389
+ "notNull": false,
3390
+ "autoincrement": false
3391
+ }
3392
+ },
3393
+ "indexes": {},
3394
+ "foreignKeys": {
3395
+ "branding_tenant_id_tenants_id_fk": {
3396
+ "name": "branding_tenant_id_tenants_id_fk",
3397
+ "tableFrom": "branding",
3398
+ "tableTo": "tenants",
3399
+ "columnsFrom": [
3400
+ "tenant_id"
3401
+ ],
3402
+ "columnsTo": [
3403
+ "id"
3404
+ ],
3405
+ "onDelete": "cascade",
3406
+ "onUpdate": "no action"
3407
+ }
3408
+ },
3409
+ "compositePrimaryKeys": {},
3410
+ "uniqueConstraints": {},
3411
+ "checkConstraints": {}
3412
+ },
3413
+ "email_providers": {
3414
+ "name": "email_providers",
3415
+ "columns": {
3416
+ "tenant_id": {
3417
+ "name": "tenant_id",
3418
+ "type": "text(191)",
3419
+ "primaryKey": true,
3420
+ "notNull": true,
3421
+ "autoincrement": false
3422
+ },
3423
+ "name": {
3424
+ "name": "name",
3425
+ "type": "text(255)",
3426
+ "primaryKey": false,
3427
+ "notNull": true,
3428
+ "autoincrement": false
3429
+ },
3430
+ "enabled": {
3431
+ "name": "enabled",
3432
+ "type": "integer",
3433
+ "primaryKey": false,
3434
+ "notNull": true,
3435
+ "autoincrement": false
3436
+ },
3437
+ "default_from_address": {
3438
+ "name": "default_from_address",
3439
+ "type": "text(255)",
3440
+ "primaryKey": false,
3441
+ "notNull": false,
3442
+ "autoincrement": false
3443
+ },
3444
+ "credentials": {
3445
+ "name": "credentials",
3446
+ "type": "text(2048)",
3447
+ "primaryKey": false,
3448
+ "notNull": true,
3449
+ "autoincrement": false,
3450
+ "default": "'{}'"
3451
+ },
3452
+ "settings": {
3453
+ "name": "settings",
3454
+ "type": "text(2048)",
3455
+ "primaryKey": false,
3456
+ "notNull": true,
3457
+ "autoincrement": false,
3458
+ "default": "'{}'"
3459
+ },
3460
+ "created_at": {
3461
+ "name": "created_at",
3462
+ "type": "text(35)",
3463
+ "primaryKey": false,
3464
+ "notNull": true,
3465
+ "autoincrement": false
3466
+ },
3467
+ "updated_at": {
3468
+ "name": "updated_at",
3469
+ "type": "text(35)",
3470
+ "primaryKey": false,
3471
+ "notNull": true,
3472
+ "autoincrement": false
3473
+ }
3474
+ },
3475
+ "indexes": {},
3476
+ "foreignKeys": {},
3477
+ "compositePrimaryKeys": {},
3478
+ "uniqueConstraints": {},
3479
+ "checkConstraints": {}
3480
+ },
3481
+ "flows": {
3482
+ "name": "flows",
3483
+ "columns": {
3484
+ "id": {
3485
+ "name": "id",
3486
+ "type": "text(24)",
3487
+ "primaryKey": true,
3488
+ "notNull": true,
3489
+ "autoincrement": false
3490
+ },
3491
+ "tenant_id": {
3492
+ "name": "tenant_id",
3493
+ "type": "text(191)",
3494
+ "primaryKey": false,
3495
+ "notNull": true,
3496
+ "autoincrement": false
3497
+ },
3498
+ "name": {
3499
+ "name": "name",
3500
+ "type": "text(150)",
3501
+ "primaryKey": false,
3502
+ "notNull": true,
3503
+ "autoincrement": false
3504
+ },
3505
+ "actions": {
3506
+ "name": "actions",
3507
+ "type": "text",
3508
+ "primaryKey": false,
3509
+ "notNull": false,
3510
+ "autoincrement": false
3511
+ },
3512
+ "created_at": {
3513
+ "name": "created_at",
3514
+ "type": "text(35)",
3515
+ "primaryKey": false,
3516
+ "notNull": true,
3517
+ "autoincrement": false
3518
+ },
3519
+ "updated_at": {
3520
+ "name": "updated_at",
3521
+ "type": "text(35)",
3522
+ "primaryKey": false,
3523
+ "notNull": true,
3524
+ "autoincrement": false
3525
+ }
3526
+ },
3527
+ "indexes": {
3528
+ "flows_tenant_id_idx": {
3529
+ "name": "flows_tenant_id_idx",
3530
+ "columns": [
3531
+ "tenant_id"
3532
+ ],
3533
+ "isUnique": false
3534
+ }
3535
+ },
3536
+ "foreignKeys": {
3537
+ "flows_tenant_id_tenants_id_fk": {
3538
+ "name": "flows_tenant_id_tenants_id_fk",
3539
+ "tableFrom": "flows",
3540
+ "tableTo": "tenants",
3541
+ "columnsFrom": [
3542
+ "tenant_id"
3543
+ ],
3544
+ "columnsTo": [
3545
+ "id"
3546
+ ],
3547
+ "onDelete": "cascade",
3548
+ "onUpdate": "no action"
3549
+ }
3550
+ },
3551
+ "compositePrimaryKeys": {},
3552
+ "uniqueConstraints": {},
3553
+ "checkConstraints": {}
3554
+ },
3555
+ "forms": {
3556
+ "name": "forms",
3557
+ "columns": {
3558
+ "id": {
3559
+ "name": "id",
3560
+ "type": "text(255)",
3561
+ "primaryKey": true,
3562
+ "notNull": true,
3563
+ "autoincrement": false
3564
+ },
3565
+ "name": {
3566
+ "name": "name",
3567
+ "type": "text(255)",
3568
+ "primaryKey": false,
3569
+ "notNull": true,
3570
+ "autoincrement": false
3571
+ },
3572
+ "tenant_id": {
3573
+ "name": "tenant_id",
3574
+ "type": "text(191)",
3575
+ "primaryKey": false,
3576
+ "notNull": true,
3577
+ "autoincrement": false
3578
+ },
3579
+ "messages": {
3580
+ "name": "messages",
3581
+ "type": "text(255)",
3582
+ "primaryKey": false,
3583
+ "notNull": false,
3584
+ "autoincrement": false
3585
+ },
3586
+ "languages": {
3587
+ "name": "languages",
3588
+ "type": "text(255)",
3589
+ "primaryKey": false,
3590
+ "notNull": false,
3591
+ "autoincrement": false
3592
+ },
3593
+ "translations": {
3594
+ "name": "translations",
3595
+ "type": "text(4096)",
3596
+ "primaryKey": false,
3597
+ "notNull": false,
3598
+ "autoincrement": false
3599
+ },
3600
+ "nodes": {
3601
+ "name": "nodes",
3602
+ "type": "text(4096)",
3603
+ "primaryKey": false,
3604
+ "notNull": false,
3605
+ "autoincrement": false
3606
+ },
3607
+ "start": {
3608
+ "name": "start",
3609
+ "type": "text(255)",
3610
+ "primaryKey": false,
3611
+ "notNull": false,
3612
+ "autoincrement": false
3613
+ },
3614
+ "ending": {
3615
+ "name": "ending",
3616
+ "type": "text(255)",
3617
+ "primaryKey": false,
3618
+ "notNull": false,
3619
+ "autoincrement": false
3620
+ },
3621
+ "style": {
3622
+ "name": "style",
3623
+ "type": "text(1042)",
3624
+ "primaryKey": false,
3625
+ "notNull": false,
3626
+ "autoincrement": false
3627
+ },
3628
+ "created_at": {
3629
+ "name": "created_at",
3630
+ "type": "text(35)",
3631
+ "primaryKey": false,
3632
+ "notNull": true,
3633
+ "autoincrement": false
3634
+ },
3635
+ "updated_at": {
3636
+ "name": "updated_at",
3637
+ "type": "text(35)",
3638
+ "primaryKey": false,
3639
+ "notNull": true,
3640
+ "autoincrement": false
3641
+ }
3642
+ },
3643
+ "indexes": {
3644
+ "forms_tenant_id_idx": {
3645
+ "name": "forms_tenant_id_idx",
3646
+ "columns": [
3647
+ "tenant_id"
3648
+ ],
3649
+ "isUnique": false
3650
+ }
3651
+ },
3652
+ "foreignKeys": {
3653
+ "forms_tenant_id_tenants_id_fk": {
3654
+ "name": "forms_tenant_id_tenants_id_fk",
3655
+ "tableFrom": "forms",
3656
+ "tableTo": "tenants",
3657
+ "columnsFrom": [
3658
+ "tenant_id"
3659
+ ],
3660
+ "columnsTo": [
3661
+ "id"
3662
+ ],
3663
+ "onDelete": "cascade",
3664
+ "onUpdate": "no action"
3665
+ }
3666
+ },
3667
+ "compositePrimaryKeys": {},
3668
+ "uniqueConstraints": {},
3669
+ "checkConstraints": {}
3670
+ },
3671
+ "hooks": {
3672
+ "name": "hooks",
3673
+ "columns": {
3674
+ "hook_id": {
3675
+ "name": "hook_id",
3676
+ "type": "text(255)",
3677
+ "primaryKey": true,
3678
+ "notNull": true,
3679
+ "autoincrement": false
3680
+ },
3681
+ "tenant_id": {
3682
+ "name": "tenant_id",
3683
+ "type": "text(191)",
3684
+ "primaryKey": false,
3685
+ "notNull": true,
3686
+ "autoincrement": false
3687
+ },
3688
+ "url": {
3689
+ "name": "url",
3690
+ "type": "text(512)",
3691
+ "primaryKey": false,
3692
+ "notNull": true,
3693
+ "autoincrement": false
3694
+ },
3695
+ "trigger_id": {
3696
+ "name": "trigger_id",
3697
+ "type": "text(255)",
3698
+ "primaryKey": false,
3699
+ "notNull": true,
3700
+ "autoincrement": false
3701
+ },
3702
+ "enabled": {
3703
+ "name": "enabled",
3704
+ "type": "integer",
3705
+ "primaryKey": false,
3706
+ "notNull": true,
3707
+ "autoincrement": false
3708
+ },
3709
+ "created_at": {
3710
+ "name": "created_at",
3711
+ "type": "text(35)",
3712
+ "primaryKey": false,
3713
+ "notNull": true,
3714
+ "autoincrement": false
3715
+ },
3716
+ "updated_at": {
3717
+ "name": "updated_at",
3718
+ "type": "text(35)",
3719
+ "primaryKey": false,
3720
+ "notNull": true,
3721
+ "autoincrement": false
3722
+ },
3723
+ "synchronous": {
3724
+ "name": "synchronous",
3725
+ "type": "integer",
3726
+ "primaryKey": false,
3727
+ "notNull": true,
3728
+ "autoincrement": false,
3729
+ "default": false
3730
+ },
3731
+ "priority": {
3732
+ "name": "priority",
3733
+ "type": "integer",
3734
+ "primaryKey": false,
3735
+ "notNull": false,
3736
+ "autoincrement": false
3737
+ },
3738
+ "form_id": {
3739
+ "name": "form_id",
3740
+ "type": "text",
3741
+ "primaryKey": false,
3742
+ "notNull": false,
3743
+ "autoincrement": false
3744
+ },
3745
+ "url_tmp": {
3746
+ "name": "url_tmp",
3747
+ "type": "text(512)",
3748
+ "primaryKey": false,
3749
+ "notNull": false,
3750
+ "autoincrement": false
3751
+ }
3752
+ },
3753
+ "indexes": {},
3754
+ "foreignKeys": {
3755
+ "hooks_tenant_id_tenants_id_fk": {
3756
+ "name": "hooks_tenant_id_tenants_id_fk",
3757
+ "tableFrom": "hooks",
3758
+ "tableTo": "tenants",
3759
+ "columnsFrom": [
3760
+ "tenant_id"
3761
+ ],
3762
+ "columnsTo": [
3763
+ "id"
3764
+ ],
3765
+ "onDelete": "cascade",
3766
+ "onUpdate": "no action"
3767
+ }
3768
+ },
3769
+ "compositePrimaryKeys": {},
3770
+ "uniqueConstraints": {},
3771
+ "checkConstraints": {}
3772
+ },
3773
+ "keys": {
3774
+ "name": "keys",
3775
+ "columns": {
3776
+ "kid": {
3777
+ "name": "kid",
3778
+ "type": "text(255)",
3779
+ "primaryKey": true,
3780
+ "notNull": true,
3781
+ "autoincrement": false
3782
+ },
3783
+ "tenant_id": {
3784
+ "name": "tenant_id",
3785
+ "type": "text(191)",
3786
+ "primaryKey": false,
3787
+ "notNull": false,
3788
+ "autoincrement": false
3789
+ },
3790
+ "created_at": {
3791
+ "name": "created_at",
3792
+ "type": "text(35)",
3793
+ "primaryKey": false,
3794
+ "notNull": true,
3795
+ "autoincrement": false
3796
+ },
3797
+ "revoked_at": {
3798
+ "name": "revoked_at",
3799
+ "type": "text(35)",
3800
+ "primaryKey": false,
3801
+ "notNull": false,
3802
+ "autoincrement": false
3803
+ },
3804
+ "cert": {
3805
+ "name": "cert",
3806
+ "type": "text(4096)",
3807
+ "primaryKey": false,
3808
+ "notNull": false,
3809
+ "autoincrement": false
3810
+ },
3811
+ "pkcs7": {
3812
+ "name": "pkcs7",
3813
+ "type": "text(4096)",
3814
+ "primaryKey": false,
3815
+ "notNull": false,
3816
+ "autoincrement": false
3817
+ },
3818
+ "fingerprint": {
3819
+ "name": "fingerprint",
3820
+ "type": "text(256)",
3821
+ "primaryKey": false,
3822
+ "notNull": false,
3823
+ "autoincrement": false
3824
+ },
3825
+ "thumbprint": {
3826
+ "name": "thumbprint",
3827
+ "type": "text(256)",
3828
+ "primaryKey": false,
3829
+ "notNull": false,
3830
+ "autoincrement": false
3831
+ },
3832
+ "current_since": {
3833
+ "name": "current_since",
3834
+ "type": "text(35)",
3835
+ "primaryKey": false,
3836
+ "notNull": false,
3837
+ "autoincrement": false
3838
+ },
3839
+ "current_until": {
3840
+ "name": "current_until",
3841
+ "type": "text(35)",
3842
+ "primaryKey": false,
3843
+ "notNull": false,
3844
+ "autoincrement": false
3845
+ },
3846
+ "type": {
3847
+ "name": "type",
3848
+ "type": "text(50)",
3849
+ "primaryKey": false,
3850
+ "notNull": true,
3851
+ "autoincrement": false,
3852
+ "default": "'jwt_signing'"
3853
+ },
3854
+ "connection": {
3855
+ "name": "connection",
3856
+ "type": "text(255)",
3857
+ "primaryKey": false,
3858
+ "notNull": false,
3859
+ "autoincrement": false
3860
+ }
3861
+ },
3862
+ "indexes": {},
3863
+ "foreignKeys": {
3864
+ "keys_tenant_id_tenants_id_fk": {
3865
+ "name": "keys_tenant_id_tenants_id_fk",
3866
+ "tableFrom": "keys",
3867
+ "tableTo": "tenants",
3868
+ "columnsFrom": [
3869
+ "tenant_id"
3870
+ ],
3871
+ "columnsTo": [
3872
+ "id"
3873
+ ],
3874
+ "onDelete": "cascade",
3875
+ "onUpdate": "no action"
3876
+ },
3877
+ "keys_connection_connections_id_fk": {
3878
+ "name": "keys_connection_connections_id_fk",
3879
+ "tableFrom": "keys",
3880
+ "tableTo": "connections",
3881
+ "columnsFrom": [
3882
+ "connection"
3883
+ ],
3884
+ "columnsTo": [
3885
+ "id"
3886
+ ],
3887
+ "onDelete": "cascade",
3888
+ "onUpdate": "no action"
3889
+ }
3890
+ },
3891
+ "compositePrimaryKeys": {},
3892
+ "uniqueConstraints": {},
3893
+ "checkConstraints": {}
3894
+ },
3895
+ "prompt_settings": {
3896
+ "name": "prompt_settings",
3897
+ "columns": {
3898
+ "tenant_id": {
3899
+ "name": "tenant_id",
3900
+ "type": "text(191)",
3901
+ "primaryKey": true,
3902
+ "notNull": true,
3903
+ "autoincrement": false
3904
+ },
3905
+ "universal_login_experience": {
3906
+ "name": "universal_login_experience",
3907
+ "type": "text(16)",
3908
+ "primaryKey": false,
3909
+ "notNull": true,
3910
+ "autoincrement": false,
3911
+ "default": "'new'"
3912
+ },
3913
+ "identifier_first": {
3914
+ "name": "identifier_first",
3915
+ "type": "integer",
3916
+ "primaryKey": false,
3917
+ "notNull": true,
3918
+ "autoincrement": false,
3919
+ "default": true
3920
+ },
3921
+ "password_first": {
3922
+ "name": "password_first",
3923
+ "type": "integer",
3924
+ "primaryKey": false,
3925
+ "notNull": true,
3926
+ "autoincrement": false,
3927
+ "default": false
3928
+ },
3929
+ "webauthn_platform_first_factor": {
3930
+ "name": "webauthn_platform_first_factor",
3931
+ "type": "integer",
3932
+ "primaryKey": false,
3933
+ "notNull": true,
3934
+ "autoincrement": false,
3935
+ "default": false
3936
+ }
3937
+ },
3938
+ "indexes": {},
3939
+ "foreignKeys": {},
3940
+ "compositePrimaryKeys": {},
3941
+ "uniqueConstraints": {},
3942
+ "checkConstraints": {}
3943
+ },
3944
+ "themes": {
3945
+ "name": "themes",
3946
+ "columns": {
3947
+ "tenant_id": {
3948
+ "name": "tenant_id",
3949
+ "type": "text(191)",
3950
+ "primaryKey": false,
3951
+ "notNull": true,
3952
+ "autoincrement": false
3953
+ },
3954
+ "themeId": {
3955
+ "name": "themeId",
3956
+ "type": "text(255)",
3957
+ "primaryKey": false,
3958
+ "notNull": true,
3959
+ "autoincrement": false
3960
+ },
3961
+ "displayName": {
3962
+ "name": "displayName",
3963
+ "type": "text(255)",
3964
+ "primaryKey": false,
3965
+ "notNull": true,
3966
+ "autoincrement": false
3967
+ },
3968
+ "colors_primary_button_label": {
3969
+ "name": "colors_primary_button_label",
3970
+ "type": "text(24)",
3971
+ "primaryKey": false,
3972
+ "notNull": true,
3973
+ "autoincrement": false
3974
+ },
3975
+ "colors_primary_button": {
3976
+ "name": "colors_primary_button",
3977
+ "type": "text(24)",
3978
+ "primaryKey": false,
3979
+ "notNull": true,
3980
+ "autoincrement": false
3981
+ },
3982
+ "colors_secondary_button_border": {
3983
+ "name": "colors_secondary_button_border",
3984
+ "type": "text(24)",
3985
+ "primaryKey": false,
3986
+ "notNull": true,
3987
+ "autoincrement": false
3988
+ },
3989
+ "colors_secondary_button_label": {
3990
+ "name": "colors_secondary_button_label",
3991
+ "type": "text(24)",
3992
+ "primaryKey": false,
3993
+ "notNull": true,
3994
+ "autoincrement": false
3995
+ },
3996
+ "colors_base_focus_color": {
3997
+ "name": "colors_base_focus_color",
3998
+ "type": "text(24)",
3999
+ "primaryKey": false,
4000
+ "notNull": true,
4001
+ "autoincrement": false
4002
+ },
4003
+ "colors_base_hover_color": {
4004
+ "name": "colors_base_hover_color",
4005
+ "type": "text(24)",
4006
+ "primaryKey": false,
4007
+ "notNull": true,
4008
+ "autoincrement": false
4009
+ },
4010
+ "colors_body_text": {
4011
+ "name": "colors_body_text",
4012
+ "type": "text(24)",
4013
+ "primaryKey": false,
4014
+ "notNull": true,
4015
+ "autoincrement": false
4016
+ },
4017
+ "colors_captcha_widget_theme": {
4018
+ "name": "colors_captcha_widget_theme",
4019
+ "type": "text(24)",
4020
+ "primaryKey": false,
4021
+ "notNull": true,
4022
+ "autoincrement": false
4023
+ },
4024
+ "colors_error": {
4025
+ "name": "colors_error",
4026
+ "type": "text(24)",
4027
+ "primaryKey": false,
4028
+ "notNull": true,
4029
+ "autoincrement": false
4030
+ },
4031
+ "colors_header": {
4032
+ "name": "colors_header",
4033
+ "type": "text(24)",
4034
+ "primaryKey": false,
4035
+ "notNull": true,
4036
+ "autoincrement": false
4037
+ },
4038
+ "colors_icons": {
4039
+ "name": "colors_icons",
4040
+ "type": "text(24)",
4041
+ "primaryKey": false,
4042
+ "notNull": true,
4043
+ "autoincrement": false
4044
+ },
4045
+ "colors_input_background": {
4046
+ "name": "colors_input_background",
4047
+ "type": "text(24)",
4048
+ "primaryKey": false,
4049
+ "notNull": true,
4050
+ "autoincrement": false
4051
+ },
4052
+ "colors_input_border": {
4053
+ "name": "colors_input_border",
4054
+ "type": "text(24)",
4055
+ "primaryKey": false,
4056
+ "notNull": true,
4057
+ "autoincrement": false
4058
+ },
4059
+ "colors_input_filled_text": {
4060
+ "name": "colors_input_filled_text",
4061
+ "type": "text(24)",
4062
+ "primaryKey": false,
4063
+ "notNull": true,
4064
+ "autoincrement": false
4065
+ },
4066
+ "colors_input_labels_placeholders": {
4067
+ "name": "colors_input_labels_placeholders",
4068
+ "type": "text(24)",
4069
+ "primaryKey": false,
4070
+ "notNull": true,
4071
+ "autoincrement": false
4072
+ },
4073
+ "colors_links_focused_components": {
4074
+ "name": "colors_links_focused_components",
4075
+ "type": "text(24)",
4076
+ "primaryKey": false,
4077
+ "notNull": true,
4078
+ "autoincrement": false
4079
+ },
4080
+ "colors_success": {
4081
+ "name": "colors_success",
4082
+ "type": "text(24)",
4083
+ "primaryKey": false,
4084
+ "notNull": true,
4085
+ "autoincrement": false
4086
+ },
4087
+ "colors_widget_background": {
4088
+ "name": "colors_widget_background",
4089
+ "type": "text(24)",
4090
+ "primaryKey": false,
4091
+ "notNull": true,
4092
+ "autoincrement": false
4093
+ },
4094
+ "colors_widget_border": {
4095
+ "name": "colors_widget_border",
4096
+ "type": "text(24)",
4097
+ "primaryKey": false,
4098
+ "notNull": true,
4099
+ "autoincrement": false
4100
+ },
4101
+ "borders_button_border_radius": {
4102
+ "name": "borders_button_border_radius",
4103
+ "type": "integer",
4104
+ "primaryKey": false,
4105
+ "notNull": true,
4106
+ "autoincrement": false
4107
+ },
4108
+ "borders_button_border_weight": {
4109
+ "name": "borders_button_border_weight",
4110
+ "type": "integer",
4111
+ "primaryKey": false,
4112
+ "notNull": true,
4113
+ "autoincrement": false
4114
+ },
4115
+ "borders_buttons_style": {
4116
+ "name": "borders_buttons_style",
4117
+ "type": "text(24)",
4118
+ "primaryKey": false,
4119
+ "notNull": true,
4120
+ "autoincrement": false
4121
+ },
4122
+ "borders_input_border_radius": {
4123
+ "name": "borders_input_border_radius",
4124
+ "type": "integer",
4125
+ "primaryKey": false,
4126
+ "notNull": true,
4127
+ "autoincrement": false
4128
+ },
4129
+ "borders_input_border_weight": {
4130
+ "name": "borders_input_border_weight",
4131
+ "type": "integer",
4132
+ "primaryKey": false,
4133
+ "notNull": true,
4134
+ "autoincrement": false
4135
+ },
4136
+ "borders_inputs_style": {
4137
+ "name": "borders_inputs_style",
4138
+ "type": "text(24)",
4139
+ "primaryKey": false,
4140
+ "notNull": true,
4141
+ "autoincrement": false
4142
+ },
4143
+ "borders_show_widget_shadow": {
4144
+ "name": "borders_show_widget_shadow",
4145
+ "type": "integer",
4146
+ "primaryKey": false,
4147
+ "notNull": true,
4148
+ "autoincrement": false
4149
+ },
4150
+ "borders_widget_border_weight": {
4151
+ "name": "borders_widget_border_weight",
4152
+ "type": "integer",
4153
+ "primaryKey": false,
4154
+ "notNull": true,
4155
+ "autoincrement": false
4156
+ },
4157
+ "borders_widget_corner_radius": {
4158
+ "name": "borders_widget_corner_radius",
4159
+ "type": "integer",
4160
+ "primaryKey": false,
4161
+ "notNull": true,
4162
+ "autoincrement": false
4163
+ },
4164
+ "fonts_body_text_bold": {
4165
+ "name": "fonts_body_text_bold",
4166
+ "type": "integer",
4167
+ "primaryKey": false,
4168
+ "notNull": true,
4169
+ "autoincrement": false
4170
+ },
4171
+ "fonts_body_text_size": {
4172
+ "name": "fonts_body_text_size",
4173
+ "type": "integer",
4174
+ "primaryKey": false,
4175
+ "notNull": true,
4176
+ "autoincrement": false
4177
+ },
4178
+ "fonts_buttons_text_bold": {
4179
+ "name": "fonts_buttons_text_bold",
4180
+ "type": "integer",
4181
+ "primaryKey": false,
4182
+ "notNull": true,
4183
+ "autoincrement": false
4184
+ },
4185
+ "fonts_buttons_text_size": {
4186
+ "name": "fonts_buttons_text_size",
4187
+ "type": "integer",
4188
+ "primaryKey": false,
4189
+ "notNull": true,
4190
+ "autoincrement": false
4191
+ },
4192
+ "fonts_font_url": {
4193
+ "name": "fonts_font_url",
4194
+ "type": "text(255)",
4195
+ "primaryKey": false,
4196
+ "notNull": true,
4197
+ "autoincrement": false
4198
+ },
4199
+ "fonts_input_labels_bold": {
4200
+ "name": "fonts_input_labels_bold",
4201
+ "type": "integer",
4202
+ "primaryKey": false,
4203
+ "notNull": true,
4204
+ "autoincrement": false
4205
+ },
4206
+ "fonts_input_labels_size": {
4207
+ "name": "fonts_input_labels_size",
4208
+ "type": "integer",
4209
+ "primaryKey": false,
4210
+ "notNull": true,
4211
+ "autoincrement": false
4212
+ },
4213
+ "fonts_links_bold": {
4214
+ "name": "fonts_links_bold",
4215
+ "type": "integer",
4216
+ "primaryKey": false,
4217
+ "notNull": true,
4218
+ "autoincrement": false
4219
+ },
4220
+ "fonts_links_size": {
4221
+ "name": "fonts_links_size",
4222
+ "type": "integer",
4223
+ "primaryKey": false,
4224
+ "notNull": true,
4225
+ "autoincrement": false
4226
+ },
4227
+ "fonts_links_style": {
4228
+ "name": "fonts_links_style",
4229
+ "type": "text(24)",
4230
+ "primaryKey": false,
4231
+ "notNull": true,
4232
+ "autoincrement": false
4233
+ },
4234
+ "fonts_reference_text_size": {
4235
+ "name": "fonts_reference_text_size",
4236
+ "type": "integer",
4237
+ "primaryKey": false,
4238
+ "notNull": true,
4239
+ "autoincrement": false
4240
+ },
4241
+ "fonts_subtitle_bold": {
4242
+ "name": "fonts_subtitle_bold",
4243
+ "type": "integer",
4244
+ "primaryKey": false,
4245
+ "notNull": true,
4246
+ "autoincrement": false
4247
+ },
4248
+ "fonts_subtitle_size": {
4249
+ "name": "fonts_subtitle_size",
4250
+ "type": "integer",
4251
+ "primaryKey": false,
4252
+ "notNull": true,
4253
+ "autoincrement": false
4254
+ },
4255
+ "fonts_title_bold": {
4256
+ "name": "fonts_title_bold",
4257
+ "type": "integer",
4258
+ "primaryKey": false,
4259
+ "notNull": true,
4260
+ "autoincrement": false
4261
+ },
4262
+ "fonts_title_size": {
4263
+ "name": "fonts_title_size",
4264
+ "type": "integer",
4265
+ "primaryKey": false,
4266
+ "notNull": true,
4267
+ "autoincrement": false
4268
+ },
4269
+ "page_background_background_color": {
4270
+ "name": "page_background_background_color",
4271
+ "type": "text(24)",
4272
+ "primaryKey": false,
4273
+ "notNull": true,
4274
+ "autoincrement": false
4275
+ },
4276
+ "page_background_background_image_url": {
4277
+ "name": "page_background_background_image_url",
4278
+ "type": "text(255)",
4279
+ "primaryKey": false,
4280
+ "notNull": true,
4281
+ "autoincrement": false
4282
+ },
4283
+ "page_background_page_layout": {
4284
+ "name": "page_background_page_layout",
4285
+ "type": "text(24)",
4286
+ "primaryKey": false,
4287
+ "notNull": true,
4288
+ "autoincrement": false
4289
+ },
4290
+ "widget_header_text_alignment": {
4291
+ "name": "widget_header_text_alignment",
4292
+ "type": "text(24)",
4293
+ "primaryKey": false,
4294
+ "notNull": true,
4295
+ "autoincrement": false
4296
+ },
4297
+ "widget_logo_height": {
4298
+ "name": "widget_logo_height",
4299
+ "type": "integer",
4300
+ "primaryKey": false,
4301
+ "notNull": true,
4302
+ "autoincrement": false
4303
+ },
4304
+ "widget_logo_position": {
4305
+ "name": "widget_logo_position",
4306
+ "type": "text(24)",
4307
+ "primaryKey": false,
4308
+ "notNull": true,
4309
+ "autoincrement": false
4310
+ },
4311
+ "widget_logo_url": {
4312
+ "name": "widget_logo_url",
4313
+ "type": "text(255)",
4314
+ "primaryKey": false,
4315
+ "notNull": true,
4316
+ "autoincrement": false
4317
+ },
4318
+ "widget_social_buttons_layout": {
4319
+ "name": "widget_social_buttons_layout",
4320
+ "type": "text(24)",
4321
+ "primaryKey": false,
4322
+ "notNull": true,
4323
+ "autoincrement": false
4324
+ },
4325
+ "created_at": {
4326
+ "name": "created_at",
4327
+ "type": "text(35)",
4328
+ "primaryKey": false,
4329
+ "notNull": true,
4330
+ "autoincrement": false
4331
+ },
4332
+ "updated_at": {
4333
+ "name": "updated_at",
4334
+ "type": "text(35)",
4335
+ "primaryKey": false,
4336
+ "notNull": true,
4337
+ "autoincrement": false
4338
+ }
4339
+ },
4340
+ "indexes": {
4341
+ "themes_tenant_id_idx": {
4342
+ "name": "themes_tenant_id_idx",
4343
+ "columns": [
4344
+ "tenant_id"
4345
+ ],
4346
+ "isUnique": false
4347
+ }
4348
+ },
4349
+ "foreignKeys": {
4350
+ "themes_tenant_id_tenants_id_fk": {
4351
+ "name": "themes_tenant_id_tenants_id_fk",
4352
+ "tableFrom": "themes",
4353
+ "tableTo": "tenants",
4354
+ "columnsFrom": [
4355
+ "tenant_id"
4356
+ ],
4357
+ "columnsTo": [
4358
+ "id"
4359
+ ],
4360
+ "onDelete": "cascade",
4361
+ "onUpdate": "no action"
4362
+ }
4363
+ },
4364
+ "compositePrimaryKeys": {
4365
+ "themes_pkey": {
4366
+ "columns": [
4367
+ "tenant_id",
4368
+ "themeId"
4369
+ ],
4370
+ "name": "themes_pkey"
4371
+ }
4372
+ },
4373
+ "uniqueConstraints": {},
4374
+ "checkConstraints": {}
4375
+ },
4376
+ "logs": {
4377
+ "name": "logs",
4378
+ "columns": {
4379
+ "log_id": {
4380
+ "name": "log_id",
4381
+ "type": "text(21)",
4382
+ "primaryKey": true,
4383
+ "notNull": true,
4384
+ "autoincrement": false
4385
+ },
4386
+ "category": {
4387
+ "name": "category",
4388
+ "type": "text(255)",
4389
+ "primaryKey": false,
4390
+ "notNull": false,
4391
+ "autoincrement": false
4392
+ },
4393
+ "tenant_id": {
4394
+ "name": "tenant_id",
4395
+ "type": "text(64)",
4396
+ "primaryKey": false,
4397
+ "notNull": false,
4398
+ "autoincrement": false
4399
+ },
4400
+ "user_id": {
4401
+ "name": "user_id",
4402
+ "type": "text(64)",
4403
+ "primaryKey": false,
4404
+ "notNull": false,
4405
+ "autoincrement": false
4406
+ },
4407
+ "ip": {
4408
+ "name": "ip",
4409
+ "type": "text(255)",
4410
+ "primaryKey": false,
4411
+ "notNull": false,
4412
+ "autoincrement": false
4413
+ },
4414
+ "type": {
4415
+ "name": "type",
4416
+ "type": "text(8)",
4417
+ "primaryKey": false,
4418
+ "notNull": true,
4419
+ "autoincrement": false
4420
+ },
4421
+ "date": {
4422
+ "name": "date",
4423
+ "type": "text(35)",
4424
+ "primaryKey": false,
4425
+ "notNull": true,
4426
+ "autoincrement": false
4427
+ },
4428
+ "client_id": {
4429
+ "name": "client_id",
4430
+ "type": "text(255)",
4431
+ "primaryKey": false,
4432
+ "notNull": false,
4433
+ "autoincrement": false
4434
+ },
4435
+ "client_name": {
4436
+ "name": "client_name",
4437
+ "type": "text(255)",
4438
+ "primaryKey": false,
4439
+ "notNull": false,
4440
+ "autoincrement": false
4441
+ },
4442
+ "user_agent": {
4443
+ "name": "user_agent",
4444
+ "type": "text(255)",
4445
+ "primaryKey": false,
4446
+ "notNull": false,
4447
+ "autoincrement": false
4448
+ },
4449
+ "description": {
4450
+ "name": "description",
4451
+ "type": "text(255)",
4452
+ "primaryKey": false,
4453
+ "notNull": false,
4454
+ "autoincrement": false
4455
+ },
4456
+ "details": {
4457
+ "name": "details",
4458
+ "type": "text(2048)",
4459
+ "primaryKey": false,
4460
+ "notNull": false,
4461
+ "autoincrement": false
4462
+ },
4463
+ "isMobile": {
4464
+ "name": "isMobile",
4465
+ "type": "integer",
4466
+ "primaryKey": false,
4467
+ "notNull": false,
4468
+ "autoincrement": false
4469
+ },
4470
+ "user_name": {
4471
+ "name": "user_name",
4472
+ "type": "text(255)",
4473
+ "primaryKey": false,
4474
+ "notNull": false,
4475
+ "autoincrement": false
4476
+ },
4477
+ "connection": {
4478
+ "name": "connection",
4479
+ "type": "text(255)",
4480
+ "primaryKey": false,
4481
+ "notNull": false,
4482
+ "autoincrement": false
4483
+ },
4484
+ "connection_id": {
4485
+ "name": "connection_id",
4486
+ "type": "text(255)",
4487
+ "primaryKey": false,
4488
+ "notNull": false,
4489
+ "autoincrement": false
4490
+ },
4491
+ "audience": {
4492
+ "name": "audience",
4493
+ "type": "text(255)",
4494
+ "primaryKey": false,
4495
+ "notNull": false,
4496
+ "autoincrement": false
4497
+ },
4498
+ "scope": {
4499
+ "name": "scope",
4500
+ "type": "text(255)",
4501
+ "primaryKey": false,
4502
+ "notNull": false,
4503
+ "autoincrement": false
4504
+ },
4505
+ "strategy": {
4506
+ "name": "strategy",
4507
+ "type": "text(255)",
4508
+ "primaryKey": false,
4509
+ "notNull": false,
4510
+ "autoincrement": false
4511
+ },
4512
+ "strategy_type": {
4513
+ "name": "strategy_type",
4514
+ "type": "text(255)",
4515
+ "primaryKey": false,
4516
+ "notNull": false,
4517
+ "autoincrement": false
4518
+ },
4519
+ "hostname": {
4520
+ "name": "hostname",
4521
+ "type": "text(255)",
4522
+ "primaryKey": false,
4523
+ "notNull": false,
4524
+ "autoincrement": false
4525
+ },
4526
+ "auth0_client": {
4527
+ "name": "auth0_client",
4528
+ "type": "text(8192)",
4529
+ "primaryKey": false,
4530
+ "notNull": false,
4531
+ "autoincrement": false
4532
+ },
4533
+ "session_connection": {
4534
+ "name": "session_connection",
4535
+ "type": "text(255)",
4536
+ "primaryKey": false,
4537
+ "notNull": false,
4538
+ "autoincrement": false
4539
+ },
4540
+ "country_code": {
4541
+ "name": "country_code",
4542
+ "type": "text(2)",
4543
+ "primaryKey": false,
4544
+ "notNull": false,
4545
+ "autoincrement": false
4546
+ },
4547
+ "city_name": {
4548
+ "name": "city_name",
4549
+ "type": "text(255)",
4550
+ "primaryKey": false,
4551
+ "notNull": false,
4552
+ "autoincrement": false
4553
+ },
4554
+ "latitude": {
4555
+ "name": "latitude",
4556
+ "type": "text(255)",
4557
+ "primaryKey": false,
4558
+ "notNull": false,
4559
+ "autoincrement": false
4560
+ },
4561
+ "longitude": {
4562
+ "name": "longitude",
4563
+ "type": "text(255)",
4564
+ "primaryKey": false,
4565
+ "notNull": false,
4566
+ "autoincrement": false
4567
+ },
4568
+ "time_zone": {
4569
+ "name": "time_zone",
4570
+ "type": "text(255)",
4571
+ "primaryKey": false,
4572
+ "notNull": false,
4573
+ "autoincrement": false
4574
+ },
4575
+ "continent_code": {
4576
+ "name": "continent_code",
4577
+ "type": "text(2)",
4578
+ "primaryKey": false,
4579
+ "notNull": false,
4580
+ "autoincrement": false
4581
+ }
4582
+ },
4583
+ "indexes": {
4584
+ "logs_user_id": {
4585
+ "name": "logs_user_id",
4586
+ "columns": [
4587
+ "user_id"
4588
+ ],
4589
+ "isUnique": false
4590
+ },
4591
+ "logs_tenant_id": {
4592
+ "name": "logs_tenant_id",
4593
+ "columns": [
4594
+ "tenant_id"
4595
+ ],
4596
+ "isUnique": false
4597
+ },
4598
+ "logs_date": {
4599
+ "name": "logs_date",
4600
+ "columns": [
4601
+ "date"
4602
+ ],
4603
+ "isUnique": false
4604
+ },
4605
+ "IDX_logs_tenant_date_type_user": {
4606
+ "name": "IDX_logs_tenant_date_type_user",
4607
+ "columns": [
4608
+ "tenant_id",
4609
+ "date",
4610
+ "type",
4611
+ "user_id"
4612
+ ],
4613
+ "isUnique": false
4614
+ }
4615
+ },
4616
+ "foreignKeys": {},
4617
+ "compositePrimaryKeys": {},
4618
+ "uniqueConstraints": {},
4619
+ "checkConstraints": {}
4620
+ }
4621
+ },
4622
+ "views": {},
4623
+ "enums": {},
4624
+ "_meta": {
4625
+ "schemas": {},
4626
+ "tables": {},
4627
+ "columns": {}
4628
+ },
4629
+ "internal": {
4630
+ "indexes": {}
4631
+ }
4632
+ }