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