@authhero/drizzle 0.20.4 → 0.21.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": "45c32552-4e10-4640-a773-12cb3f3db233",
5
+ "prevId": "e23a8232-7310-495e-a88e-c153ca437174",
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
+ },
637
+ "indexes": {
638
+ "unique_email_provider": {
639
+ "name": "unique_email_provider",
640
+ "columns": [
641
+ "email",
642
+ "provider",
643
+ "tenant_id"
644
+ ],
645
+ "isUnique": true
646
+ },
647
+ "unique_phone_provider": {
648
+ "name": "unique_phone_provider",
649
+ "columns": [
650
+ "phone_number",
651
+ "provider",
652
+ "tenant_id"
653
+ ],
654
+ "isUnique": true
655
+ },
656
+ "users_email_index": {
657
+ "name": "users_email_index",
658
+ "columns": [
659
+ "email"
660
+ ],
661
+ "isUnique": false
662
+ },
663
+ "users_linked_to_index": {
664
+ "name": "users_linked_to_index",
665
+ "columns": [
666
+ "linked_to"
667
+ ],
668
+ "isUnique": false
669
+ },
670
+ "users_name_index": {
671
+ "name": "users_name_index",
672
+ "columns": [
673
+ "name"
674
+ ],
675
+ "isUnique": false
676
+ },
677
+ "users_phone_tenant_provider_index": {
678
+ "name": "users_phone_tenant_provider_index",
679
+ "columns": [
680
+ "tenant_id",
681
+ "phone_number",
682
+ "provider"
683
+ ],
684
+ "isUnique": false
685
+ }
686
+ },
687
+ "foreignKeys": {
688
+ "users_tenant_id_tenants_id_fk": {
689
+ "name": "users_tenant_id_tenants_id_fk",
690
+ "tableFrom": "users",
691
+ "tableTo": "tenants",
692
+ "columnsFrom": [
693
+ "tenant_id"
694
+ ],
695
+ "columnsTo": [
696
+ "id"
697
+ ],
698
+ "onDelete": "cascade",
699
+ "onUpdate": "no action"
700
+ }
701
+ },
702
+ "compositePrimaryKeys": {
703
+ "users_tenants": {
704
+ "columns": [
705
+ "user_id",
706
+ "tenant_id"
707
+ ],
708
+ "name": "users_tenants"
709
+ }
710
+ },
711
+ "uniqueConstraints": {},
712
+ "checkConstraints": {}
713
+ },
714
+ "authentication_codes": {
715
+ "name": "authentication_codes",
716
+ "columns": {
717
+ "tenant_id": {
718
+ "name": "tenant_id",
719
+ "type": "text(191)",
720
+ "primaryKey": false,
721
+ "notNull": true,
722
+ "autoincrement": false
723
+ },
724
+ "code": {
725
+ "name": "code",
726
+ "type": "text(255)",
727
+ "primaryKey": true,
728
+ "notNull": true,
729
+ "autoincrement": false
730
+ },
731
+ "client_id": {
732
+ "name": "client_id",
733
+ "type": "text(255)",
734
+ "primaryKey": false,
735
+ "notNull": true,
736
+ "autoincrement": false
737
+ },
738
+ "user_id": {
739
+ "name": "user_id",
740
+ "type": "text(255)",
741
+ "primaryKey": false,
742
+ "notNull": true,
743
+ "autoincrement": false
744
+ },
745
+ "nonce": {
746
+ "name": "nonce",
747
+ "type": "text(255)",
748
+ "primaryKey": false,
749
+ "notNull": false,
750
+ "autoincrement": false
751
+ },
752
+ "state": {
753
+ "name": "state",
754
+ "type": "text(8192)",
755
+ "primaryKey": false,
756
+ "notNull": false,
757
+ "autoincrement": false
758
+ },
759
+ "scope": {
760
+ "name": "scope",
761
+ "type": "text(1024)",
762
+ "primaryKey": false,
763
+ "notNull": false,
764
+ "autoincrement": false
765
+ },
766
+ "response_type": {
767
+ "name": "response_type",
768
+ "type": "text(256)",
769
+ "primaryKey": false,
770
+ "notNull": false,
771
+ "autoincrement": false
772
+ },
773
+ "response_mode": {
774
+ "name": "response_mode",
775
+ "type": "text(256)",
776
+ "primaryKey": false,
777
+ "notNull": false,
778
+ "autoincrement": false
779
+ },
780
+ "redirect_uri": {
781
+ "name": "redirect_uri",
782
+ "type": "text(1024)",
783
+ "primaryKey": false,
784
+ "notNull": false,
785
+ "autoincrement": false
786
+ },
787
+ "created_at": {
788
+ "name": "created_at",
789
+ "type": "text(35)",
790
+ "primaryKey": false,
791
+ "notNull": true,
792
+ "autoincrement": false
793
+ },
794
+ "expires_at": {
795
+ "name": "expires_at",
796
+ "type": "text(35)",
797
+ "primaryKey": false,
798
+ "notNull": true,
799
+ "autoincrement": false
800
+ },
801
+ "used_at": {
802
+ "name": "used_at",
803
+ "type": "text(35)",
804
+ "primaryKey": false,
805
+ "notNull": false,
806
+ "autoincrement": false
807
+ }
808
+ },
809
+ "indexes": {},
810
+ "foreignKeys": {
811
+ "authentication_codes_tenant_id_tenants_id_fk": {
812
+ "name": "authentication_codes_tenant_id_tenants_id_fk",
813
+ "tableFrom": "authentication_codes",
814
+ "tableTo": "tenants",
815
+ "columnsFrom": [
816
+ "tenant_id"
817
+ ],
818
+ "columnsTo": [
819
+ "id"
820
+ ],
821
+ "onDelete": "cascade",
822
+ "onUpdate": "no action"
823
+ }
824
+ },
825
+ "compositePrimaryKeys": {},
826
+ "uniqueConstraints": {},
827
+ "checkConstraints": {}
828
+ },
829
+ "codes": {
830
+ "name": "codes",
831
+ "columns": {
832
+ "code_id": {
833
+ "name": "code_id",
834
+ "type": "text(191)",
835
+ "primaryKey": false,
836
+ "notNull": true,
837
+ "autoincrement": false
838
+ },
839
+ "tenant_id": {
840
+ "name": "tenant_id",
841
+ "type": "text(191)",
842
+ "primaryKey": false,
843
+ "notNull": true,
844
+ "autoincrement": false
845
+ },
846
+ "user_id": {
847
+ "name": "user_id",
848
+ "type": "text(255)",
849
+ "primaryKey": false,
850
+ "notNull": false,
851
+ "autoincrement": false
852
+ },
853
+ "login_id": {
854
+ "name": "login_id",
855
+ "type": "text(255)",
856
+ "primaryKey": false,
857
+ "notNull": false,
858
+ "autoincrement": false
859
+ },
860
+ "connection_id": {
861
+ "name": "connection_id",
862
+ "type": "text(255)",
863
+ "primaryKey": false,
864
+ "notNull": false,
865
+ "autoincrement": false
866
+ },
867
+ "code_type": {
868
+ "name": "code_type",
869
+ "type": "text(255)",
870
+ "primaryKey": false,
871
+ "notNull": true,
872
+ "autoincrement": false
873
+ },
874
+ "created_at": {
875
+ "name": "created_at",
876
+ "type": "text(35)",
877
+ "primaryKey": false,
878
+ "notNull": true,
879
+ "autoincrement": false
880
+ },
881
+ "expires_at": {
882
+ "name": "expires_at",
883
+ "type": "text(35)",
884
+ "primaryKey": false,
885
+ "notNull": true,
886
+ "autoincrement": false
887
+ },
888
+ "used_at": {
889
+ "name": "used_at",
890
+ "type": "text(35)",
891
+ "primaryKey": false,
892
+ "notNull": false,
893
+ "autoincrement": false
894
+ },
895
+ "code_verifier": {
896
+ "name": "code_verifier",
897
+ "type": "text(128)",
898
+ "primaryKey": false,
899
+ "notNull": false,
900
+ "autoincrement": false
901
+ },
902
+ "code_challenge": {
903
+ "name": "code_challenge",
904
+ "type": "text(128)",
905
+ "primaryKey": false,
906
+ "notNull": false,
907
+ "autoincrement": false
908
+ },
909
+ "code_challenge_method": {
910
+ "name": "code_challenge_method",
911
+ "type": "text(5)",
912
+ "primaryKey": false,
913
+ "notNull": false,
914
+ "autoincrement": false
915
+ },
916
+ "redirect_uri": {
917
+ "name": "redirect_uri",
918
+ "type": "text(1024)",
919
+ "primaryKey": false,
920
+ "notNull": false,
921
+ "autoincrement": false
922
+ },
923
+ "nonce": {
924
+ "name": "nonce",
925
+ "type": "text(1024)",
926
+ "primaryKey": false,
927
+ "notNull": false,
928
+ "autoincrement": false
929
+ },
930
+ "state": {
931
+ "name": "state",
932
+ "type": "text(2048)",
933
+ "primaryKey": false,
934
+ "notNull": false,
935
+ "autoincrement": false
936
+ }
937
+ },
938
+ "indexes": {
939
+ "codes_expires_at_index": {
940
+ "name": "codes_expires_at_index",
941
+ "columns": [
942
+ "expires_at"
943
+ ],
944
+ "isUnique": false
945
+ }
946
+ },
947
+ "foreignKeys": {
948
+ "codes_tenant_id_tenants_id_fk": {
949
+ "name": "codes_tenant_id_tenants_id_fk",
950
+ "tableFrom": "codes",
951
+ "tableTo": "tenants",
952
+ "columnsFrom": [
953
+ "tenant_id"
954
+ ],
955
+ "columnsTo": [
956
+ "id"
957
+ ],
958
+ "onDelete": "cascade",
959
+ "onUpdate": "no action"
960
+ }
961
+ },
962
+ "compositePrimaryKeys": {
963
+ "PK_codes_code_id_code_type": {
964
+ "columns": [
965
+ "code_id",
966
+ "code_type"
967
+ ],
968
+ "name": "PK_codes_code_id_code_type"
969
+ }
970
+ },
971
+ "uniqueConstraints": {},
972
+ "checkConstraints": {}
973
+ },
974
+ "login_sessions": {
975
+ "name": "login_sessions",
976
+ "columns": {
977
+ "id": {
978
+ "name": "id",
979
+ "type": "text(21)",
980
+ "primaryKey": false,
981
+ "notNull": true,
982
+ "autoincrement": false
983
+ },
984
+ "tenant_id": {
985
+ "name": "tenant_id",
986
+ "type": "text(191)",
987
+ "primaryKey": false,
988
+ "notNull": true,
989
+ "autoincrement": false
990
+ },
991
+ "session_id": {
992
+ "name": "session_id",
993
+ "type": "text(21)",
994
+ "primaryKey": false,
995
+ "notNull": false,
996
+ "autoincrement": false
997
+ },
998
+ "csrf_token": {
999
+ "name": "csrf_token",
1000
+ "type": "text(21)",
1001
+ "primaryKey": false,
1002
+ "notNull": true,
1003
+ "autoincrement": false
1004
+ },
1005
+ "authParams_client_id": {
1006
+ "name": "authParams_client_id",
1007
+ "type": "text(191)",
1008
+ "primaryKey": false,
1009
+ "notNull": true,
1010
+ "autoincrement": false
1011
+ },
1012
+ "authParams_vendor_id": {
1013
+ "name": "authParams_vendor_id",
1014
+ "type": "text(255)",
1015
+ "primaryKey": false,
1016
+ "notNull": false,
1017
+ "autoincrement": false
1018
+ },
1019
+ "authParams_username": {
1020
+ "name": "authParams_username",
1021
+ "type": "text(255)",
1022
+ "primaryKey": false,
1023
+ "notNull": false,
1024
+ "autoincrement": false
1025
+ },
1026
+ "authParams_response_type": {
1027
+ "name": "authParams_response_type",
1028
+ "type": "text(255)",
1029
+ "primaryKey": false,
1030
+ "notNull": false,
1031
+ "autoincrement": false
1032
+ },
1033
+ "authParams_response_mode": {
1034
+ "name": "authParams_response_mode",
1035
+ "type": "text(255)",
1036
+ "primaryKey": false,
1037
+ "notNull": false,
1038
+ "autoincrement": false
1039
+ },
1040
+ "authParams_audience": {
1041
+ "name": "authParams_audience",
1042
+ "type": "text(255)",
1043
+ "primaryKey": false,
1044
+ "notNull": false,
1045
+ "autoincrement": false
1046
+ },
1047
+ "authParams_scope": {
1048
+ "name": "authParams_scope",
1049
+ "type": "text",
1050
+ "primaryKey": false,
1051
+ "notNull": false,
1052
+ "autoincrement": false
1053
+ },
1054
+ "authParams_state": {
1055
+ "name": "authParams_state",
1056
+ "type": "text",
1057
+ "primaryKey": false,
1058
+ "notNull": false,
1059
+ "autoincrement": false
1060
+ },
1061
+ "authParams_nonce": {
1062
+ "name": "authParams_nonce",
1063
+ "type": "text(255)",
1064
+ "primaryKey": false,
1065
+ "notNull": false,
1066
+ "autoincrement": false
1067
+ },
1068
+ "authParams_code_challenge_method": {
1069
+ "name": "authParams_code_challenge_method",
1070
+ "type": "text(255)",
1071
+ "primaryKey": false,
1072
+ "notNull": false,
1073
+ "autoincrement": false
1074
+ },
1075
+ "authParams_code_challenge": {
1076
+ "name": "authParams_code_challenge",
1077
+ "type": "text(255)",
1078
+ "primaryKey": false,
1079
+ "notNull": false,
1080
+ "autoincrement": false
1081
+ },
1082
+ "authParams_redirect_uri": {
1083
+ "name": "authParams_redirect_uri",
1084
+ "type": "text",
1085
+ "primaryKey": false,
1086
+ "notNull": false,
1087
+ "autoincrement": false
1088
+ },
1089
+ "authParams_organization": {
1090
+ "name": "authParams_organization",
1091
+ "type": "text(255)",
1092
+ "primaryKey": false,
1093
+ "notNull": false,
1094
+ "autoincrement": false
1095
+ },
1096
+ "authParams_prompt": {
1097
+ "name": "authParams_prompt",
1098
+ "type": "text(32)",
1099
+ "primaryKey": false,
1100
+ "notNull": false,
1101
+ "autoincrement": false
1102
+ },
1103
+ "authParams_act_as": {
1104
+ "name": "authParams_act_as",
1105
+ "type": "text(256)",
1106
+ "primaryKey": false,
1107
+ "notNull": false,
1108
+ "autoincrement": false
1109
+ },
1110
+ "authParams_ui_locales": {
1111
+ "name": "authParams_ui_locales",
1112
+ "type": "text(32)",
1113
+ "primaryKey": false,
1114
+ "notNull": false,
1115
+ "autoincrement": false
1116
+ },
1117
+ "authorization_url": {
1118
+ "name": "authorization_url",
1119
+ "type": "text",
1120
+ "primaryKey": false,
1121
+ "notNull": false,
1122
+ "autoincrement": false
1123
+ },
1124
+ "created_at_ts": {
1125
+ "name": "created_at_ts",
1126
+ "type": "integer",
1127
+ "primaryKey": false,
1128
+ "notNull": true,
1129
+ "autoincrement": false
1130
+ },
1131
+ "updated_at_ts": {
1132
+ "name": "updated_at_ts",
1133
+ "type": "integer",
1134
+ "primaryKey": false,
1135
+ "notNull": true,
1136
+ "autoincrement": false
1137
+ },
1138
+ "expires_at_ts": {
1139
+ "name": "expires_at_ts",
1140
+ "type": "integer",
1141
+ "primaryKey": false,
1142
+ "notNull": true,
1143
+ "autoincrement": false
1144
+ },
1145
+ "ip": {
1146
+ "name": "ip",
1147
+ "type": "text(39)",
1148
+ "primaryKey": false,
1149
+ "notNull": false,
1150
+ "autoincrement": false
1151
+ },
1152
+ "useragent": {
1153
+ "name": "useragent",
1154
+ "type": "text",
1155
+ "primaryKey": false,
1156
+ "notNull": false,
1157
+ "autoincrement": false
1158
+ },
1159
+ "auth0Client": {
1160
+ "name": "auth0Client",
1161
+ "type": "text(255)",
1162
+ "primaryKey": false,
1163
+ "notNull": false,
1164
+ "autoincrement": false
1165
+ },
1166
+ "state": {
1167
+ "name": "state",
1168
+ "type": "text(50)",
1169
+ "primaryKey": false,
1170
+ "notNull": true,
1171
+ "autoincrement": false,
1172
+ "default": "'pending'"
1173
+ },
1174
+ "state_data": {
1175
+ "name": "state_data",
1176
+ "type": "text",
1177
+ "primaryKey": false,
1178
+ "notNull": false,
1179
+ "autoincrement": false
1180
+ },
1181
+ "failure_reason": {
1182
+ "name": "failure_reason",
1183
+ "type": "text",
1184
+ "primaryKey": false,
1185
+ "notNull": false,
1186
+ "autoincrement": false
1187
+ },
1188
+ "user_id": {
1189
+ "name": "user_id",
1190
+ "type": "text(255)",
1191
+ "primaryKey": false,
1192
+ "notNull": false,
1193
+ "autoincrement": false
1194
+ }
1195
+ },
1196
+ "indexes": {
1197
+ "login_sessions_id_index": {
1198
+ "name": "login_sessions_id_index",
1199
+ "columns": [
1200
+ "id"
1201
+ ],
1202
+ "isUnique": false
1203
+ },
1204
+ "login_sessions_state_idx": {
1205
+ "name": "login_sessions_state_idx",
1206
+ "columns": [
1207
+ "state"
1208
+ ],
1209
+ "isUnique": false
1210
+ },
1211
+ "login_sessions_state_updated_idx": {
1212
+ "name": "login_sessions_state_updated_idx",
1213
+ "columns": [
1214
+ "state",
1215
+ "updated_at_ts"
1216
+ ],
1217
+ "isUnique": false
1218
+ },
1219
+ "login_sessions_tenant_user_idx": {
1220
+ "name": "login_sessions_tenant_user_idx",
1221
+ "columns": [
1222
+ "tenant_id",
1223
+ "user_id"
1224
+ ],
1225
+ "isUnique": false
1226
+ },
1227
+ "idx_login_sessions_expires_at_ts": {
1228
+ "name": "idx_login_sessions_expires_at_ts",
1229
+ "columns": [
1230
+ "expires_at_ts"
1231
+ ],
1232
+ "isUnique": false
1233
+ }
1234
+ },
1235
+ "foreignKeys": {
1236
+ "login_sessions_tenant_id_tenants_id_fk": {
1237
+ "name": "login_sessions_tenant_id_tenants_id_fk",
1238
+ "tableFrom": "login_sessions",
1239
+ "tableTo": "tenants",
1240
+ "columnsFrom": [
1241
+ "tenant_id"
1242
+ ],
1243
+ "columnsTo": [
1244
+ "id"
1245
+ ],
1246
+ "onDelete": "cascade",
1247
+ "onUpdate": "no action"
1248
+ }
1249
+ },
1250
+ "compositePrimaryKeys": {
1251
+ "login_sessions_pk": {
1252
+ "columns": [
1253
+ "tenant_id",
1254
+ "id"
1255
+ ],
1256
+ "name": "login_sessions_pk"
1257
+ }
1258
+ },
1259
+ "uniqueConstraints": {},
1260
+ "checkConstraints": {}
1261
+ },
1262
+ "otps": {
1263
+ "name": "otps",
1264
+ "columns": {
1265
+ "tenant_id": {
1266
+ "name": "tenant_id",
1267
+ "type": "text(191)",
1268
+ "primaryKey": false,
1269
+ "notNull": true,
1270
+ "autoincrement": false
1271
+ },
1272
+ "id": {
1273
+ "name": "id",
1274
+ "type": "text(255)",
1275
+ "primaryKey": true,
1276
+ "notNull": true,
1277
+ "autoincrement": false
1278
+ },
1279
+ "client_id": {
1280
+ "name": "client_id",
1281
+ "type": "text(255)",
1282
+ "primaryKey": false,
1283
+ "notNull": true,
1284
+ "autoincrement": false
1285
+ },
1286
+ "code": {
1287
+ "name": "code",
1288
+ "type": "text(255)",
1289
+ "primaryKey": false,
1290
+ "notNull": true,
1291
+ "autoincrement": false
1292
+ },
1293
+ "email": {
1294
+ "name": "email",
1295
+ "type": "text(255)",
1296
+ "primaryKey": false,
1297
+ "notNull": true,
1298
+ "autoincrement": false
1299
+ },
1300
+ "user_id": {
1301
+ "name": "user_id",
1302
+ "type": "text(255)",
1303
+ "primaryKey": false,
1304
+ "notNull": false,
1305
+ "autoincrement": false
1306
+ },
1307
+ "send": {
1308
+ "name": "send",
1309
+ "type": "text(255)",
1310
+ "primaryKey": false,
1311
+ "notNull": false,
1312
+ "autoincrement": false
1313
+ },
1314
+ "nonce": {
1315
+ "name": "nonce",
1316
+ "type": "text(255)",
1317
+ "primaryKey": false,
1318
+ "notNull": false,
1319
+ "autoincrement": false
1320
+ },
1321
+ "state": {
1322
+ "name": "state",
1323
+ "type": "text(1024)",
1324
+ "primaryKey": false,
1325
+ "notNull": false,
1326
+ "autoincrement": false
1327
+ },
1328
+ "scope": {
1329
+ "name": "scope",
1330
+ "type": "text(1024)",
1331
+ "primaryKey": false,
1332
+ "notNull": false,
1333
+ "autoincrement": false
1334
+ },
1335
+ "response_type": {
1336
+ "name": "response_type",
1337
+ "type": "text(256)",
1338
+ "primaryKey": false,
1339
+ "notNull": false,
1340
+ "autoincrement": false
1341
+ },
1342
+ "response_mode": {
1343
+ "name": "response_mode",
1344
+ "type": "text(256)",
1345
+ "primaryKey": false,
1346
+ "notNull": false,
1347
+ "autoincrement": false
1348
+ },
1349
+ "redirect_uri": {
1350
+ "name": "redirect_uri",
1351
+ "type": "text(1024)",
1352
+ "primaryKey": false,
1353
+ "notNull": false,
1354
+ "autoincrement": false
1355
+ },
1356
+ "created_at": {
1357
+ "name": "created_at",
1358
+ "type": "text(35)",
1359
+ "primaryKey": false,
1360
+ "notNull": true,
1361
+ "autoincrement": false
1362
+ },
1363
+ "expires_at": {
1364
+ "name": "expires_at",
1365
+ "type": "text(35)",
1366
+ "primaryKey": false,
1367
+ "notNull": true,
1368
+ "autoincrement": false
1369
+ },
1370
+ "used_at": {
1371
+ "name": "used_at",
1372
+ "type": "text(35)",
1373
+ "primaryKey": false,
1374
+ "notNull": false,
1375
+ "autoincrement": false
1376
+ },
1377
+ "audience": {
1378
+ "name": "audience",
1379
+ "type": "text(255)",
1380
+ "primaryKey": false,
1381
+ "notNull": false,
1382
+ "autoincrement": false
1383
+ },
1384
+ "ip": {
1385
+ "name": "ip",
1386
+ "type": "text(64)",
1387
+ "primaryKey": false,
1388
+ "notNull": false,
1389
+ "autoincrement": false
1390
+ }
1391
+ },
1392
+ "indexes": {
1393
+ "otps_email_index": {
1394
+ "name": "otps_email_index",
1395
+ "columns": [
1396
+ "email"
1397
+ ],
1398
+ "isUnique": false
1399
+ },
1400
+ "otps_expires_at_index": {
1401
+ "name": "otps_expires_at_index",
1402
+ "columns": [
1403
+ "expires_at"
1404
+ ],
1405
+ "isUnique": false
1406
+ }
1407
+ },
1408
+ "foreignKeys": {
1409
+ "otps_tenant_id_tenants_id_fk": {
1410
+ "name": "otps_tenant_id_tenants_id_fk",
1411
+ "tableFrom": "otps",
1412
+ "tableTo": "tenants",
1413
+ "columnsFrom": [
1414
+ "tenant_id"
1415
+ ],
1416
+ "columnsTo": [
1417
+ "id"
1418
+ ],
1419
+ "onDelete": "cascade",
1420
+ "onUpdate": "no action"
1421
+ }
1422
+ },
1423
+ "compositePrimaryKeys": {},
1424
+ "uniqueConstraints": {},
1425
+ "checkConstraints": {}
1426
+ },
1427
+ "refresh_tokens": {
1428
+ "name": "refresh_tokens",
1429
+ "columns": {
1430
+ "id": {
1431
+ "name": "id",
1432
+ "type": "text(21)",
1433
+ "primaryKey": false,
1434
+ "notNull": true,
1435
+ "autoincrement": false
1436
+ },
1437
+ "tenant_id": {
1438
+ "name": "tenant_id",
1439
+ "type": "text(191)",
1440
+ "primaryKey": false,
1441
+ "notNull": true,
1442
+ "autoincrement": false
1443
+ },
1444
+ "client_id": {
1445
+ "name": "client_id",
1446
+ "type": "text(191)",
1447
+ "primaryKey": false,
1448
+ "notNull": true,
1449
+ "autoincrement": false
1450
+ },
1451
+ "session_id": {
1452
+ "name": "session_id",
1453
+ "type": "text(21)",
1454
+ "primaryKey": false,
1455
+ "notNull": true,
1456
+ "autoincrement": false
1457
+ },
1458
+ "user_id": {
1459
+ "name": "user_id",
1460
+ "type": "text(255)",
1461
+ "primaryKey": false,
1462
+ "notNull": false,
1463
+ "autoincrement": false
1464
+ },
1465
+ "resource_servers": {
1466
+ "name": "resource_servers",
1467
+ "type": "text",
1468
+ "primaryKey": false,
1469
+ "notNull": true,
1470
+ "autoincrement": false
1471
+ },
1472
+ "device": {
1473
+ "name": "device",
1474
+ "type": "text",
1475
+ "primaryKey": false,
1476
+ "notNull": true,
1477
+ "autoincrement": false
1478
+ },
1479
+ "rotating": {
1480
+ "name": "rotating",
1481
+ "type": "integer",
1482
+ "primaryKey": false,
1483
+ "notNull": true,
1484
+ "autoincrement": false
1485
+ },
1486
+ "created_at_ts": {
1487
+ "name": "created_at_ts",
1488
+ "type": "integer",
1489
+ "primaryKey": false,
1490
+ "notNull": true,
1491
+ "autoincrement": false
1492
+ },
1493
+ "expires_at_ts": {
1494
+ "name": "expires_at_ts",
1495
+ "type": "integer",
1496
+ "primaryKey": false,
1497
+ "notNull": false,
1498
+ "autoincrement": false
1499
+ },
1500
+ "idle_expires_at_ts": {
1501
+ "name": "idle_expires_at_ts",
1502
+ "type": "integer",
1503
+ "primaryKey": false,
1504
+ "notNull": false,
1505
+ "autoincrement": false
1506
+ },
1507
+ "last_exchanged_at_ts": {
1508
+ "name": "last_exchanged_at_ts",
1509
+ "type": "integer",
1510
+ "primaryKey": false,
1511
+ "notNull": false,
1512
+ "autoincrement": false
1513
+ }
1514
+ },
1515
+ "indexes": {
1516
+ "idx_refresh_tokens_user_id": {
1517
+ "name": "idx_refresh_tokens_user_id",
1518
+ "columns": [
1519
+ "tenant_id",
1520
+ "user_id"
1521
+ ],
1522
+ "isUnique": false
1523
+ },
1524
+ "idx_refresh_tokens_session_id": {
1525
+ "name": "idx_refresh_tokens_session_id",
1526
+ "columns": [
1527
+ "session_id"
1528
+ ],
1529
+ "isUnique": false
1530
+ },
1531
+ "idx_refresh_tokens_expires_at_ts": {
1532
+ "name": "idx_refresh_tokens_expires_at_ts",
1533
+ "columns": [
1534
+ "expires_at_ts"
1535
+ ],
1536
+ "isUnique": false
1537
+ }
1538
+ },
1539
+ "foreignKeys": {
1540
+ "refresh_tokens_tenant_id_tenants_id_fk": {
1541
+ "name": "refresh_tokens_tenant_id_tenants_id_fk",
1542
+ "tableFrom": "refresh_tokens",
1543
+ "tableTo": "tenants",
1544
+ "columnsFrom": [
1545
+ "tenant_id"
1546
+ ],
1547
+ "columnsTo": [
1548
+ "id"
1549
+ ],
1550
+ "onDelete": "cascade",
1551
+ "onUpdate": "no action"
1552
+ }
1553
+ },
1554
+ "compositePrimaryKeys": {
1555
+ "refresh_tokens_pk": {
1556
+ "columns": [
1557
+ "tenant_id",
1558
+ "id"
1559
+ ],
1560
+ "name": "refresh_tokens_pk"
1561
+ }
1562
+ },
1563
+ "uniqueConstraints": {},
1564
+ "checkConstraints": {}
1565
+ },
1566
+ "sessions": {
1567
+ "name": "sessions",
1568
+ "columns": {
1569
+ "id": {
1570
+ "name": "id",
1571
+ "type": "text(21)",
1572
+ "primaryKey": false,
1573
+ "notNull": true,
1574
+ "autoincrement": false
1575
+ },
1576
+ "tenant_id": {
1577
+ "name": "tenant_id",
1578
+ "type": "text(191)",
1579
+ "primaryKey": false,
1580
+ "notNull": true,
1581
+ "autoincrement": false
1582
+ },
1583
+ "user_id": {
1584
+ "name": "user_id",
1585
+ "type": "text(255)",
1586
+ "primaryKey": false,
1587
+ "notNull": false,
1588
+ "autoincrement": false
1589
+ },
1590
+ "created_at_ts": {
1591
+ "name": "created_at_ts",
1592
+ "type": "integer",
1593
+ "primaryKey": false,
1594
+ "notNull": true,
1595
+ "autoincrement": false
1596
+ },
1597
+ "updated_at_ts": {
1598
+ "name": "updated_at_ts",
1599
+ "type": "integer",
1600
+ "primaryKey": false,
1601
+ "notNull": true,
1602
+ "autoincrement": false
1603
+ },
1604
+ "expires_at_ts": {
1605
+ "name": "expires_at_ts",
1606
+ "type": "integer",
1607
+ "primaryKey": false,
1608
+ "notNull": false,
1609
+ "autoincrement": false
1610
+ },
1611
+ "idle_expires_at_ts": {
1612
+ "name": "idle_expires_at_ts",
1613
+ "type": "integer",
1614
+ "primaryKey": false,
1615
+ "notNull": false,
1616
+ "autoincrement": false
1617
+ },
1618
+ "authenticated_at_ts": {
1619
+ "name": "authenticated_at_ts",
1620
+ "type": "integer",
1621
+ "primaryKey": false,
1622
+ "notNull": false,
1623
+ "autoincrement": false
1624
+ },
1625
+ "last_interaction_at_ts": {
1626
+ "name": "last_interaction_at_ts",
1627
+ "type": "integer",
1628
+ "primaryKey": false,
1629
+ "notNull": false,
1630
+ "autoincrement": false
1631
+ },
1632
+ "used_at_ts": {
1633
+ "name": "used_at_ts",
1634
+ "type": "integer",
1635
+ "primaryKey": false,
1636
+ "notNull": false,
1637
+ "autoincrement": false
1638
+ },
1639
+ "revoked_at_ts": {
1640
+ "name": "revoked_at_ts",
1641
+ "type": "integer",
1642
+ "primaryKey": false,
1643
+ "notNull": false,
1644
+ "autoincrement": false
1645
+ },
1646
+ "device": {
1647
+ "name": "device",
1648
+ "type": "text",
1649
+ "primaryKey": false,
1650
+ "notNull": true,
1651
+ "autoincrement": false
1652
+ },
1653
+ "clients": {
1654
+ "name": "clients",
1655
+ "type": "text",
1656
+ "primaryKey": false,
1657
+ "notNull": true,
1658
+ "autoincrement": false
1659
+ },
1660
+ "login_session_id": {
1661
+ "name": "login_session_id",
1662
+ "type": "text(21)",
1663
+ "primaryKey": false,
1664
+ "notNull": false,
1665
+ "autoincrement": false
1666
+ }
1667
+ },
1668
+ "indexes": {
1669
+ "IDX_sessions_login_session_id": {
1670
+ "name": "IDX_sessions_login_session_id",
1671
+ "columns": [
1672
+ "login_session_id"
1673
+ ],
1674
+ "isUnique": false
1675
+ },
1676
+ "idx_sessions_user_id": {
1677
+ "name": "idx_sessions_user_id",
1678
+ "columns": [
1679
+ "tenant_id",
1680
+ "user_id"
1681
+ ],
1682
+ "isUnique": false
1683
+ },
1684
+ "idx_sessions_expires_at_ts": {
1685
+ "name": "idx_sessions_expires_at_ts",
1686
+ "columns": [
1687
+ "expires_at_ts"
1688
+ ],
1689
+ "isUnique": false
1690
+ }
1691
+ },
1692
+ "foreignKeys": {
1693
+ "sessions_tenant_id_tenants_id_fk": {
1694
+ "name": "sessions_tenant_id_tenants_id_fk",
1695
+ "tableFrom": "sessions",
1696
+ "tableTo": "tenants",
1697
+ "columnsFrom": [
1698
+ "tenant_id"
1699
+ ],
1700
+ "columnsTo": [
1701
+ "id"
1702
+ ],
1703
+ "onDelete": "cascade",
1704
+ "onUpdate": "no action"
1705
+ }
1706
+ },
1707
+ "compositePrimaryKeys": {
1708
+ "sessions_pk": {
1709
+ "columns": [
1710
+ "tenant_id",
1711
+ "id"
1712
+ ],
1713
+ "name": "sessions_pk"
1714
+ }
1715
+ },
1716
+ "uniqueConstraints": {},
1717
+ "checkConstraints": {}
1718
+ },
1719
+ "tickets": {
1720
+ "name": "tickets",
1721
+ "columns": {
1722
+ "tenant_id": {
1723
+ "name": "tenant_id",
1724
+ "type": "text(191)",
1725
+ "primaryKey": false,
1726
+ "notNull": true,
1727
+ "autoincrement": false
1728
+ },
1729
+ "id": {
1730
+ "name": "id",
1731
+ "type": "text(255)",
1732
+ "primaryKey": true,
1733
+ "notNull": true,
1734
+ "autoincrement": false
1735
+ },
1736
+ "client_id": {
1737
+ "name": "client_id",
1738
+ "type": "text(255)",
1739
+ "primaryKey": false,
1740
+ "notNull": true,
1741
+ "autoincrement": false
1742
+ },
1743
+ "email": {
1744
+ "name": "email",
1745
+ "type": "text(255)",
1746
+ "primaryKey": false,
1747
+ "notNull": true,
1748
+ "autoincrement": false
1749
+ },
1750
+ "nonce": {
1751
+ "name": "nonce",
1752
+ "type": "text(255)",
1753
+ "primaryKey": false,
1754
+ "notNull": false,
1755
+ "autoincrement": false
1756
+ },
1757
+ "state": {
1758
+ "name": "state",
1759
+ "type": "text(1024)",
1760
+ "primaryKey": false,
1761
+ "notNull": false,
1762
+ "autoincrement": false
1763
+ },
1764
+ "scope": {
1765
+ "name": "scope",
1766
+ "type": "text(1024)",
1767
+ "primaryKey": false,
1768
+ "notNull": false,
1769
+ "autoincrement": false
1770
+ },
1771
+ "response_type": {
1772
+ "name": "response_type",
1773
+ "type": "text(256)",
1774
+ "primaryKey": false,
1775
+ "notNull": false,
1776
+ "autoincrement": false
1777
+ },
1778
+ "response_mode": {
1779
+ "name": "response_mode",
1780
+ "type": "text(256)",
1781
+ "primaryKey": false,
1782
+ "notNull": false,
1783
+ "autoincrement": false
1784
+ },
1785
+ "redirect_uri": {
1786
+ "name": "redirect_uri",
1787
+ "type": "text(1024)",
1788
+ "primaryKey": false,
1789
+ "notNull": false,
1790
+ "autoincrement": false
1791
+ },
1792
+ "created_at": {
1793
+ "name": "created_at",
1794
+ "type": "text(35)",
1795
+ "primaryKey": false,
1796
+ "notNull": true,
1797
+ "autoincrement": false
1798
+ },
1799
+ "expires_at": {
1800
+ "name": "expires_at",
1801
+ "type": "text(35)",
1802
+ "primaryKey": false,
1803
+ "notNull": true,
1804
+ "autoincrement": false
1805
+ },
1806
+ "used_at": {
1807
+ "name": "used_at",
1808
+ "type": "text(35)",
1809
+ "primaryKey": false,
1810
+ "notNull": false,
1811
+ "autoincrement": false
1812
+ }
1813
+ },
1814
+ "indexes": {},
1815
+ "foreignKeys": {
1816
+ "tickets_tenant_id_tenants_id_fk": {
1817
+ "name": "tickets_tenant_id_tenants_id_fk",
1818
+ "tableFrom": "tickets",
1819
+ "tableTo": "tenants",
1820
+ "columnsFrom": [
1821
+ "tenant_id"
1822
+ ],
1823
+ "columnsTo": [
1824
+ "id"
1825
+ ],
1826
+ "onDelete": "cascade",
1827
+ "onUpdate": "no action"
1828
+ }
1829
+ },
1830
+ "compositePrimaryKeys": {},
1831
+ "uniqueConstraints": {},
1832
+ "checkConstraints": {}
1833
+ },
1834
+ "client_grants": {
1835
+ "name": "client_grants",
1836
+ "columns": {
1837
+ "id": {
1838
+ "name": "id",
1839
+ "type": "text(21)",
1840
+ "primaryKey": false,
1841
+ "notNull": true,
1842
+ "autoincrement": false
1843
+ },
1844
+ "tenant_id": {
1845
+ "name": "tenant_id",
1846
+ "type": "text(191)",
1847
+ "primaryKey": false,
1848
+ "notNull": true,
1849
+ "autoincrement": false
1850
+ },
1851
+ "client_id": {
1852
+ "name": "client_id",
1853
+ "type": "text(191)",
1854
+ "primaryKey": false,
1855
+ "notNull": true,
1856
+ "autoincrement": false
1857
+ },
1858
+ "audience": {
1859
+ "name": "audience",
1860
+ "type": "text(191)",
1861
+ "primaryKey": false,
1862
+ "notNull": true,
1863
+ "autoincrement": false
1864
+ },
1865
+ "scope": {
1866
+ "name": "scope",
1867
+ "type": "text",
1868
+ "primaryKey": false,
1869
+ "notNull": false,
1870
+ "autoincrement": false,
1871
+ "default": "'[]'"
1872
+ },
1873
+ "organization_usage": {
1874
+ "name": "organization_usage",
1875
+ "type": "text(32)",
1876
+ "primaryKey": false,
1877
+ "notNull": false,
1878
+ "autoincrement": false
1879
+ },
1880
+ "allow_any_organization": {
1881
+ "name": "allow_any_organization",
1882
+ "type": "integer",
1883
+ "primaryKey": false,
1884
+ "notNull": false,
1885
+ "autoincrement": false,
1886
+ "default": 0
1887
+ },
1888
+ "is_system": {
1889
+ "name": "is_system",
1890
+ "type": "integer",
1891
+ "primaryKey": false,
1892
+ "notNull": false,
1893
+ "autoincrement": false,
1894
+ "default": 0
1895
+ },
1896
+ "subject_type": {
1897
+ "name": "subject_type",
1898
+ "type": "text(32)",
1899
+ "primaryKey": false,
1900
+ "notNull": false,
1901
+ "autoincrement": false
1902
+ },
1903
+ "authorization_details_types": {
1904
+ "name": "authorization_details_types",
1905
+ "type": "text",
1906
+ "primaryKey": false,
1907
+ "notNull": false,
1908
+ "autoincrement": false,
1909
+ "default": "'[]'"
1910
+ },
1911
+ "created_at": {
1912
+ "name": "created_at",
1913
+ "type": "text(35)",
1914
+ "primaryKey": false,
1915
+ "notNull": true,
1916
+ "autoincrement": false
1917
+ },
1918
+ "updated_at": {
1919
+ "name": "updated_at",
1920
+ "type": "text(35)",
1921
+ "primaryKey": false,
1922
+ "notNull": true,
1923
+ "autoincrement": false
1924
+ }
1925
+ },
1926
+ "indexes": {
1927
+ "idx_client_grants_audience": {
1928
+ "name": "idx_client_grants_audience",
1929
+ "columns": [
1930
+ "audience"
1931
+ ],
1932
+ "isUnique": false
1933
+ }
1934
+ },
1935
+ "foreignKeys": {
1936
+ "client_grants_tenant_id_tenants_id_fk": {
1937
+ "name": "client_grants_tenant_id_tenants_id_fk",
1938
+ "tableFrom": "client_grants",
1939
+ "tableTo": "tenants",
1940
+ "columnsFrom": [
1941
+ "tenant_id"
1942
+ ],
1943
+ "columnsTo": [
1944
+ "id"
1945
+ ],
1946
+ "onDelete": "cascade",
1947
+ "onUpdate": "no action"
1948
+ }
1949
+ },
1950
+ "compositePrimaryKeys": {
1951
+ "pk_client_grants": {
1952
+ "columns": [
1953
+ "tenant_id",
1954
+ "id"
1955
+ ],
1956
+ "name": "pk_client_grants"
1957
+ }
1958
+ },
1959
+ "uniqueConstraints": {},
1960
+ "checkConstraints": {}
1961
+ },
1962
+ "clients": {
1963
+ "name": "clients",
1964
+ "columns": {
1965
+ "client_id": {
1966
+ "name": "client_id",
1967
+ "type": "text(191)",
1968
+ "primaryKey": false,
1969
+ "notNull": true,
1970
+ "autoincrement": false
1971
+ },
1972
+ "tenant_id": {
1973
+ "name": "tenant_id",
1974
+ "type": "text(191)",
1975
+ "primaryKey": false,
1976
+ "notNull": true,
1977
+ "autoincrement": false
1978
+ },
1979
+ "name": {
1980
+ "name": "name",
1981
+ "type": "text(255)",
1982
+ "primaryKey": false,
1983
+ "notNull": true,
1984
+ "autoincrement": false
1985
+ },
1986
+ "description": {
1987
+ "name": "description",
1988
+ "type": "text(140)",
1989
+ "primaryKey": false,
1990
+ "notNull": false,
1991
+ "autoincrement": false
1992
+ },
1993
+ "global": {
1994
+ "name": "global",
1995
+ "type": "integer",
1996
+ "primaryKey": false,
1997
+ "notNull": true,
1998
+ "autoincrement": false,
1999
+ "default": 0
2000
+ },
2001
+ "client_secret": {
2002
+ "name": "client_secret",
2003
+ "type": "text(255)",
2004
+ "primaryKey": false,
2005
+ "notNull": false,
2006
+ "autoincrement": false
2007
+ },
2008
+ "app_type": {
2009
+ "name": "app_type",
2010
+ "type": "text(64)",
2011
+ "primaryKey": false,
2012
+ "notNull": false,
2013
+ "autoincrement": false,
2014
+ "default": "'regular_web'"
2015
+ },
2016
+ "logo_uri": {
2017
+ "name": "logo_uri",
2018
+ "type": "text(2083)",
2019
+ "primaryKey": false,
2020
+ "notNull": false,
2021
+ "autoincrement": false
2022
+ },
2023
+ "is_first_party": {
2024
+ "name": "is_first_party",
2025
+ "type": "integer",
2026
+ "primaryKey": false,
2027
+ "notNull": true,
2028
+ "autoincrement": false,
2029
+ "default": 0
2030
+ },
2031
+ "oidc_conformant": {
2032
+ "name": "oidc_conformant",
2033
+ "type": "integer",
2034
+ "primaryKey": false,
2035
+ "notNull": true,
2036
+ "autoincrement": false,
2037
+ "default": 1
2038
+ },
2039
+ "auth0_conformant": {
2040
+ "name": "auth0_conformant",
2041
+ "type": "integer",
2042
+ "primaryKey": false,
2043
+ "notNull": true,
2044
+ "autoincrement": false,
2045
+ "default": 1
2046
+ },
2047
+ "callbacks": {
2048
+ "name": "callbacks",
2049
+ "type": "text",
2050
+ "primaryKey": false,
2051
+ "notNull": true,
2052
+ "autoincrement": false
2053
+ },
2054
+ "allowed_origins": {
2055
+ "name": "allowed_origins",
2056
+ "type": "text",
2057
+ "primaryKey": false,
2058
+ "notNull": true,
2059
+ "autoincrement": false
2060
+ },
2061
+ "web_origins": {
2062
+ "name": "web_origins",
2063
+ "type": "text",
2064
+ "primaryKey": false,
2065
+ "notNull": true,
2066
+ "autoincrement": false
2067
+ },
2068
+ "client_aliases": {
2069
+ "name": "client_aliases",
2070
+ "type": "text",
2071
+ "primaryKey": false,
2072
+ "notNull": true,
2073
+ "autoincrement": false
2074
+ },
2075
+ "allowed_clients": {
2076
+ "name": "allowed_clients",
2077
+ "type": "text",
2078
+ "primaryKey": false,
2079
+ "notNull": true,
2080
+ "autoincrement": false
2081
+ },
2082
+ "allowed_logout_urls": {
2083
+ "name": "allowed_logout_urls",
2084
+ "type": "text",
2085
+ "primaryKey": false,
2086
+ "notNull": true,
2087
+ "autoincrement": false
2088
+ },
2089
+ "session_transfer": {
2090
+ "name": "session_transfer",
2091
+ "type": "text",
2092
+ "primaryKey": false,
2093
+ "notNull": true,
2094
+ "autoincrement": false
2095
+ },
2096
+ "oidc_logout": {
2097
+ "name": "oidc_logout",
2098
+ "type": "text",
2099
+ "primaryKey": false,
2100
+ "notNull": true,
2101
+ "autoincrement": false
2102
+ },
2103
+ "grant_types": {
2104
+ "name": "grant_types",
2105
+ "type": "text",
2106
+ "primaryKey": false,
2107
+ "notNull": true,
2108
+ "autoincrement": false
2109
+ },
2110
+ "jwt_configuration": {
2111
+ "name": "jwt_configuration",
2112
+ "type": "text",
2113
+ "primaryKey": false,
2114
+ "notNull": true,
2115
+ "autoincrement": false
2116
+ },
2117
+ "signing_keys": {
2118
+ "name": "signing_keys",
2119
+ "type": "text",
2120
+ "primaryKey": false,
2121
+ "notNull": true,
2122
+ "autoincrement": false
2123
+ },
2124
+ "encryption_key": {
2125
+ "name": "encryption_key",
2126
+ "type": "text",
2127
+ "primaryKey": false,
2128
+ "notNull": true,
2129
+ "autoincrement": false
2130
+ },
2131
+ "sso": {
2132
+ "name": "sso",
2133
+ "type": "integer",
2134
+ "primaryKey": false,
2135
+ "notNull": true,
2136
+ "autoincrement": false,
2137
+ "default": 0
2138
+ },
2139
+ "sso_disabled": {
2140
+ "name": "sso_disabled",
2141
+ "type": "integer",
2142
+ "primaryKey": false,
2143
+ "notNull": true,
2144
+ "autoincrement": false,
2145
+ "default": 1
2146
+ },
2147
+ "cross_origin_authentication": {
2148
+ "name": "cross_origin_authentication",
2149
+ "type": "integer",
2150
+ "primaryKey": false,
2151
+ "notNull": true,
2152
+ "autoincrement": false,
2153
+ "default": 0
2154
+ },
2155
+ "cross_origin_loc": {
2156
+ "name": "cross_origin_loc",
2157
+ "type": "text(2083)",
2158
+ "primaryKey": false,
2159
+ "notNull": false,
2160
+ "autoincrement": false
2161
+ },
2162
+ "custom_login_page_on": {
2163
+ "name": "custom_login_page_on",
2164
+ "type": "integer",
2165
+ "primaryKey": false,
2166
+ "notNull": true,
2167
+ "autoincrement": false,
2168
+ "default": 0
2169
+ },
2170
+ "custom_login_page": {
2171
+ "name": "custom_login_page",
2172
+ "type": "text",
2173
+ "primaryKey": false,
2174
+ "notNull": false,
2175
+ "autoincrement": false
2176
+ },
2177
+ "custom_login_page_preview": {
2178
+ "name": "custom_login_page_preview",
2179
+ "type": "text",
2180
+ "primaryKey": false,
2181
+ "notNull": false,
2182
+ "autoincrement": false
2183
+ },
2184
+ "form_template": {
2185
+ "name": "form_template",
2186
+ "type": "text",
2187
+ "primaryKey": false,
2188
+ "notNull": false,
2189
+ "autoincrement": false
2190
+ },
2191
+ "addons": {
2192
+ "name": "addons",
2193
+ "type": "text",
2194
+ "primaryKey": false,
2195
+ "notNull": true,
2196
+ "autoincrement": false
2197
+ },
2198
+ "token_endpoint_auth_method": {
2199
+ "name": "token_endpoint_auth_method",
2200
+ "type": "text(64)",
2201
+ "primaryKey": false,
2202
+ "notNull": false,
2203
+ "autoincrement": false,
2204
+ "default": "'client_secret_basic'"
2205
+ },
2206
+ "client_metadata": {
2207
+ "name": "client_metadata",
2208
+ "type": "text",
2209
+ "primaryKey": false,
2210
+ "notNull": true,
2211
+ "autoincrement": false
2212
+ },
2213
+ "mobile": {
2214
+ "name": "mobile",
2215
+ "type": "text",
2216
+ "primaryKey": false,
2217
+ "notNull": true,
2218
+ "autoincrement": false
2219
+ },
2220
+ "initiate_login_uri": {
2221
+ "name": "initiate_login_uri",
2222
+ "type": "text(2083)",
2223
+ "primaryKey": false,
2224
+ "notNull": false,
2225
+ "autoincrement": false
2226
+ },
2227
+ "native_social_login": {
2228
+ "name": "native_social_login",
2229
+ "type": "text",
2230
+ "primaryKey": false,
2231
+ "notNull": true,
2232
+ "autoincrement": false
2233
+ },
2234
+ "refresh_token": {
2235
+ "name": "refresh_token",
2236
+ "type": "text",
2237
+ "primaryKey": false,
2238
+ "notNull": true,
2239
+ "autoincrement": false
2240
+ },
2241
+ "default_organization": {
2242
+ "name": "default_organization",
2243
+ "type": "text",
2244
+ "primaryKey": false,
2245
+ "notNull": true,
2246
+ "autoincrement": false
2247
+ },
2248
+ "organization_usage": {
2249
+ "name": "organization_usage",
2250
+ "type": "text(32)",
2251
+ "primaryKey": false,
2252
+ "notNull": false,
2253
+ "autoincrement": false,
2254
+ "default": "'deny'"
2255
+ },
2256
+ "organization_require_behavior": {
2257
+ "name": "organization_require_behavior",
2258
+ "type": "text(32)",
2259
+ "primaryKey": false,
2260
+ "notNull": false,
2261
+ "autoincrement": false,
2262
+ "default": "'no_prompt'"
2263
+ },
2264
+ "client_authentication_methods": {
2265
+ "name": "client_authentication_methods",
2266
+ "type": "text",
2267
+ "primaryKey": false,
2268
+ "notNull": true,
2269
+ "autoincrement": false
2270
+ },
2271
+ "require_pushed_authorization_requests": {
2272
+ "name": "require_pushed_authorization_requests",
2273
+ "type": "integer",
2274
+ "primaryKey": false,
2275
+ "notNull": true,
2276
+ "autoincrement": false,
2277
+ "default": 0
2278
+ },
2279
+ "require_proof_of_possession": {
2280
+ "name": "require_proof_of_possession",
2281
+ "type": "integer",
2282
+ "primaryKey": false,
2283
+ "notNull": true,
2284
+ "autoincrement": false,
2285
+ "default": 0
2286
+ },
2287
+ "signed_request_object": {
2288
+ "name": "signed_request_object",
2289
+ "type": "text",
2290
+ "primaryKey": false,
2291
+ "notNull": true,
2292
+ "autoincrement": false
2293
+ },
2294
+ "compliance_level": {
2295
+ "name": "compliance_level",
2296
+ "type": "text(64)",
2297
+ "primaryKey": false,
2298
+ "notNull": false,
2299
+ "autoincrement": false
2300
+ },
2301
+ "par_request_expiry": {
2302
+ "name": "par_request_expiry",
2303
+ "type": "integer",
2304
+ "primaryKey": false,
2305
+ "notNull": false,
2306
+ "autoincrement": false
2307
+ },
2308
+ "token_quota": {
2309
+ "name": "token_quota",
2310
+ "type": "text",
2311
+ "primaryKey": false,
2312
+ "notNull": true,
2313
+ "autoincrement": false
2314
+ },
2315
+ "created_at": {
2316
+ "name": "created_at",
2317
+ "type": "text(35)",
2318
+ "primaryKey": false,
2319
+ "notNull": true,
2320
+ "autoincrement": false
2321
+ },
2322
+ "updated_at": {
2323
+ "name": "updated_at",
2324
+ "type": "text(35)",
2325
+ "primaryKey": false,
2326
+ "notNull": true,
2327
+ "autoincrement": false
2328
+ },
2329
+ "connections": {
2330
+ "name": "connections",
2331
+ "type": "text",
2332
+ "primaryKey": false,
2333
+ "notNull": true,
2334
+ "autoincrement": false,
2335
+ "default": "'[]'"
2336
+ }
2337
+ },
2338
+ "indexes": {},
2339
+ "foreignKeys": {
2340
+ "clients_tenant_id_tenants_id_fk": {
2341
+ "name": "clients_tenant_id_tenants_id_fk",
2342
+ "tableFrom": "clients",
2343
+ "tableTo": "tenants",
2344
+ "columnsFrom": [
2345
+ "tenant_id"
2346
+ ],
2347
+ "columnsTo": [
2348
+ "id"
2349
+ ],
2350
+ "onDelete": "cascade",
2351
+ "onUpdate": "no action"
2352
+ }
2353
+ },
2354
+ "compositePrimaryKeys": {
2355
+ "clients_tenant_id_client_id": {
2356
+ "columns": [
2357
+ "tenant_id",
2358
+ "client_id"
2359
+ ],
2360
+ "name": "clients_tenant_id_client_id"
2361
+ }
2362
+ },
2363
+ "uniqueConstraints": {},
2364
+ "checkConstraints": {}
2365
+ },
2366
+ "connections": {
2367
+ "name": "connections",
2368
+ "columns": {
2369
+ "id": {
2370
+ "name": "id",
2371
+ "type": "text(255)",
2372
+ "primaryKey": false,
2373
+ "notNull": true,
2374
+ "autoincrement": false
2375
+ },
2376
+ "tenant_id": {
2377
+ "name": "tenant_id",
2378
+ "type": "text(191)",
2379
+ "primaryKey": false,
2380
+ "notNull": true,
2381
+ "autoincrement": false
2382
+ },
2383
+ "name": {
2384
+ "name": "name",
2385
+ "type": "text(255)",
2386
+ "primaryKey": false,
2387
+ "notNull": true,
2388
+ "autoincrement": false
2389
+ },
2390
+ "response_type": {
2391
+ "name": "response_type",
2392
+ "type": "text(255)",
2393
+ "primaryKey": false,
2394
+ "notNull": false,
2395
+ "autoincrement": false
2396
+ },
2397
+ "response_mode": {
2398
+ "name": "response_mode",
2399
+ "type": "text(255)",
2400
+ "primaryKey": false,
2401
+ "notNull": false,
2402
+ "autoincrement": false
2403
+ },
2404
+ "strategy": {
2405
+ "name": "strategy",
2406
+ "type": "text(64)",
2407
+ "primaryKey": false,
2408
+ "notNull": false,
2409
+ "autoincrement": false
2410
+ },
2411
+ "options": {
2412
+ "name": "options",
2413
+ "type": "text(8192)",
2414
+ "primaryKey": false,
2415
+ "notNull": true,
2416
+ "autoincrement": false,
2417
+ "default": "'{}'"
2418
+ },
2419
+ "created_at": {
2420
+ "name": "created_at",
2421
+ "type": "text(35)",
2422
+ "primaryKey": false,
2423
+ "notNull": true,
2424
+ "autoincrement": false
2425
+ },
2426
+ "updated_at": {
2427
+ "name": "updated_at",
2428
+ "type": "text(35)",
2429
+ "primaryKey": false,
2430
+ "notNull": true,
2431
+ "autoincrement": false
2432
+ },
2433
+ "display_name": {
2434
+ "name": "display_name",
2435
+ "type": "text(255)",
2436
+ "primaryKey": false,
2437
+ "notNull": false,
2438
+ "autoincrement": false
2439
+ },
2440
+ "is_domain_connection": {
2441
+ "name": "is_domain_connection",
2442
+ "type": "integer",
2443
+ "primaryKey": false,
2444
+ "notNull": false,
2445
+ "autoincrement": false
2446
+ },
2447
+ "show_as_button": {
2448
+ "name": "show_as_button",
2449
+ "type": "integer",
2450
+ "primaryKey": false,
2451
+ "notNull": false,
2452
+ "autoincrement": false
2453
+ },
2454
+ "is_system": {
2455
+ "name": "is_system",
2456
+ "type": "integer",
2457
+ "primaryKey": false,
2458
+ "notNull": true,
2459
+ "autoincrement": false,
2460
+ "default": 0
2461
+ },
2462
+ "metadata": {
2463
+ "name": "metadata",
2464
+ "type": "text(4096)",
2465
+ "primaryKey": false,
2466
+ "notNull": false,
2467
+ "autoincrement": false
2468
+ }
2469
+ },
2470
+ "indexes": {
2471
+ "connections_tenant_id_index": {
2472
+ "name": "connections_tenant_id_index",
2473
+ "columns": [
2474
+ "tenant_id"
2475
+ ],
2476
+ "isUnique": false
2477
+ },
2478
+ "connections_id_unique": {
2479
+ "name": "connections_id_unique",
2480
+ "columns": [
2481
+ "id"
2482
+ ],
2483
+ "isUnique": true
2484
+ }
2485
+ },
2486
+ "foreignKeys": {
2487
+ "connections_tenant_id_tenants_id_fk": {
2488
+ "name": "connections_tenant_id_tenants_id_fk",
2489
+ "tableFrom": "connections",
2490
+ "tableTo": "tenants",
2491
+ "columnsFrom": [
2492
+ "tenant_id"
2493
+ ],
2494
+ "columnsTo": [
2495
+ "id"
2496
+ ],
2497
+ "onDelete": "cascade",
2498
+ "onUpdate": "no action"
2499
+ }
2500
+ },
2501
+ "compositePrimaryKeys": {
2502
+ "connections_tenant_id_id_pk": {
2503
+ "columns": [
2504
+ "tenant_id",
2505
+ "id"
2506
+ ],
2507
+ "name": "connections_tenant_id_id_pk"
2508
+ }
2509
+ },
2510
+ "uniqueConstraints": {},
2511
+ "checkConstraints": {}
2512
+ },
2513
+ "custom_domains": {
2514
+ "name": "custom_domains",
2515
+ "columns": {
2516
+ "custom_domain_id": {
2517
+ "name": "custom_domain_id",
2518
+ "type": "text(256)",
2519
+ "primaryKey": true,
2520
+ "notNull": true,
2521
+ "autoincrement": false
2522
+ },
2523
+ "tenant_id": {
2524
+ "name": "tenant_id",
2525
+ "type": "text(191)",
2526
+ "primaryKey": false,
2527
+ "notNull": true,
2528
+ "autoincrement": false
2529
+ },
2530
+ "domain": {
2531
+ "name": "domain",
2532
+ "type": "text(255)",
2533
+ "primaryKey": false,
2534
+ "notNull": true,
2535
+ "autoincrement": false
2536
+ },
2537
+ "primary": {
2538
+ "name": "primary",
2539
+ "type": "integer",
2540
+ "primaryKey": false,
2541
+ "notNull": true,
2542
+ "autoincrement": false
2543
+ },
2544
+ "status": {
2545
+ "name": "status",
2546
+ "type": "text(50)",
2547
+ "primaryKey": false,
2548
+ "notNull": true,
2549
+ "autoincrement": false
2550
+ },
2551
+ "type": {
2552
+ "name": "type",
2553
+ "type": "text(50)",
2554
+ "primaryKey": false,
2555
+ "notNull": true,
2556
+ "autoincrement": false
2557
+ },
2558
+ "origin_domain_name": {
2559
+ "name": "origin_domain_name",
2560
+ "type": "text(255)",
2561
+ "primaryKey": false,
2562
+ "notNull": false,
2563
+ "autoincrement": false
2564
+ },
2565
+ "verification": {
2566
+ "name": "verification",
2567
+ "type": "text(2048)",
2568
+ "primaryKey": false,
2569
+ "notNull": false,
2570
+ "autoincrement": false
2571
+ },
2572
+ "custom_client_ip_header": {
2573
+ "name": "custom_client_ip_header",
2574
+ "type": "text(50)",
2575
+ "primaryKey": false,
2576
+ "notNull": false,
2577
+ "autoincrement": false
2578
+ },
2579
+ "tls_policy": {
2580
+ "name": "tls_policy",
2581
+ "type": "text(50)",
2582
+ "primaryKey": false,
2583
+ "notNull": false,
2584
+ "autoincrement": false
2585
+ },
2586
+ "domain_metadata": {
2587
+ "name": "domain_metadata",
2588
+ "type": "text(2048)",
2589
+ "primaryKey": false,
2590
+ "notNull": false,
2591
+ "autoincrement": false
2592
+ },
2593
+ "created_at": {
2594
+ "name": "created_at",
2595
+ "type": "text(35)",
2596
+ "primaryKey": false,
2597
+ "notNull": true,
2598
+ "autoincrement": false
2599
+ },
2600
+ "updated_at": {
2601
+ "name": "updated_at",
2602
+ "type": "text(35)",
2603
+ "primaryKey": false,
2604
+ "notNull": true,
2605
+ "autoincrement": false
2606
+ }
2607
+ },
2608
+ "indexes": {},
2609
+ "foreignKeys": {
2610
+ "custom_domains_tenant_id_tenants_id_fk": {
2611
+ "name": "custom_domains_tenant_id_tenants_id_fk",
2612
+ "tableFrom": "custom_domains",
2613
+ "tableTo": "tenants",
2614
+ "columnsFrom": [
2615
+ "tenant_id"
2616
+ ],
2617
+ "columnsTo": [
2618
+ "id"
2619
+ ],
2620
+ "onDelete": "cascade",
2621
+ "onUpdate": "no action"
2622
+ }
2623
+ },
2624
+ "compositePrimaryKeys": {},
2625
+ "uniqueConstraints": {},
2626
+ "checkConstraints": {}
2627
+ },
2628
+ "domains": {
2629
+ "name": "domains",
2630
+ "columns": {
2631
+ "id": {
2632
+ "name": "id",
2633
+ "type": "text(255)",
2634
+ "primaryKey": true,
2635
+ "notNull": true,
2636
+ "autoincrement": false
2637
+ },
2638
+ "tenant_id": {
2639
+ "name": "tenant_id",
2640
+ "type": "text(191)",
2641
+ "primaryKey": false,
2642
+ "notNull": true,
2643
+ "autoincrement": false
2644
+ },
2645
+ "domain": {
2646
+ "name": "domain",
2647
+ "type": "text(255)",
2648
+ "primaryKey": false,
2649
+ "notNull": true,
2650
+ "autoincrement": false
2651
+ },
2652
+ "email_service": {
2653
+ "name": "email_service",
2654
+ "type": "text(255)",
2655
+ "primaryKey": false,
2656
+ "notNull": false,
2657
+ "autoincrement": false
2658
+ },
2659
+ "email_api_key": {
2660
+ "name": "email_api_key",
2661
+ "type": "text(255)",
2662
+ "primaryKey": false,
2663
+ "notNull": false,
2664
+ "autoincrement": false
2665
+ },
2666
+ "dkim_private_key": {
2667
+ "name": "dkim_private_key",
2668
+ "type": "text(2048)",
2669
+ "primaryKey": false,
2670
+ "notNull": false,
2671
+ "autoincrement": false
2672
+ },
2673
+ "dkim_public_key": {
2674
+ "name": "dkim_public_key",
2675
+ "type": "text(2048)",
2676
+ "primaryKey": false,
2677
+ "notNull": false,
2678
+ "autoincrement": false
2679
+ },
2680
+ "created_at": {
2681
+ "name": "created_at",
2682
+ "type": "text(35)",
2683
+ "primaryKey": false,
2684
+ "notNull": true,
2685
+ "autoincrement": false
2686
+ },
2687
+ "updated_at": {
2688
+ "name": "updated_at",
2689
+ "type": "text(35)",
2690
+ "primaryKey": false,
2691
+ "notNull": true,
2692
+ "autoincrement": false
2693
+ }
2694
+ },
2695
+ "indexes": {},
2696
+ "foreignKeys": {
2697
+ "domains_tenant_id_tenants_id_fk": {
2698
+ "name": "domains_tenant_id_tenants_id_fk",
2699
+ "tableFrom": "domains",
2700
+ "tableTo": "tenants",
2701
+ "columnsFrom": [
2702
+ "tenant_id"
2703
+ ],
2704
+ "columnsTo": [
2705
+ "id"
2706
+ ],
2707
+ "onDelete": "cascade",
2708
+ "onUpdate": "no action"
2709
+ }
2710
+ },
2711
+ "compositePrimaryKeys": {},
2712
+ "uniqueConstraints": {},
2713
+ "checkConstraints": {}
2714
+ },
2715
+ "invites": {
2716
+ "name": "invites",
2717
+ "columns": {
2718
+ "id": {
2719
+ "name": "id",
2720
+ "type": "text(21)",
2721
+ "primaryKey": true,
2722
+ "notNull": true,
2723
+ "autoincrement": false
2724
+ },
2725
+ "tenant_id": {
2726
+ "name": "tenant_id",
2727
+ "type": "text(191)",
2728
+ "primaryKey": false,
2729
+ "notNull": true,
2730
+ "autoincrement": false
2731
+ },
2732
+ "organization_id": {
2733
+ "name": "organization_id",
2734
+ "type": "text(21)",
2735
+ "primaryKey": false,
2736
+ "notNull": true,
2737
+ "autoincrement": false
2738
+ },
2739
+ "inviter": {
2740
+ "name": "inviter",
2741
+ "type": "text",
2742
+ "primaryKey": false,
2743
+ "notNull": true,
2744
+ "autoincrement": false
2745
+ },
2746
+ "invitee": {
2747
+ "name": "invitee",
2748
+ "type": "text",
2749
+ "primaryKey": false,
2750
+ "notNull": true,
2751
+ "autoincrement": false
2752
+ },
2753
+ "client_id": {
2754
+ "name": "client_id",
2755
+ "type": "text(191)",
2756
+ "primaryKey": false,
2757
+ "notNull": true,
2758
+ "autoincrement": false
2759
+ },
2760
+ "connection_id": {
2761
+ "name": "connection_id",
2762
+ "type": "text(21)",
2763
+ "primaryKey": false,
2764
+ "notNull": false,
2765
+ "autoincrement": false
2766
+ },
2767
+ "invitation_url": {
2768
+ "name": "invitation_url",
2769
+ "type": "text",
2770
+ "primaryKey": false,
2771
+ "notNull": true,
2772
+ "autoincrement": false
2773
+ },
2774
+ "created_at": {
2775
+ "name": "created_at",
2776
+ "type": "text(35)",
2777
+ "primaryKey": false,
2778
+ "notNull": true,
2779
+ "autoincrement": false
2780
+ },
2781
+ "expires_at": {
2782
+ "name": "expires_at",
2783
+ "type": "text(35)",
2784
+ "primaryKey": false,
2785
+ "notNull": true,
2786
+ "autoincrement": false
2787
+ },
2788
+ "app_metadata": {
2789
+ "name": "app_metadata",
2790
+ "type": "text",
2791
+ "primaryKey": false,
2792
+ "notNull": false,
2793
+ "autoincrement": false
2794
+ },
2795
+ "user_metadata": {
2796
+ "name": "user_metadata",
2797
+ "type": "text",
2798
+ "primaryKey": false,
2799
+ "notNull": false,
2800
+ "autoincrement": false
2801
+ },
2802
+ "roles": {
2803
+ "name": "roles",
2804
+ "type": "text",
2805
+ "primaryKey": false,
2806
+ "notNull": false,
2807
+ "autoincrement": false
2808
+ },
2809
+ "ticket_id": {
2810
+ "name": "ticket_id",
2811
+ "type": "text(191)",
2812
+ "primaryKey": false,
2813
+ "notNull": false,
2814
+ "autoincrement": false
2815
+ },
2816
+ "ttl_sec": {
2817
+ "name": "ttl_sec",
2818
+ "type": "integer",
2819
+ "primaryKey": false,
2820
+ "notNull": false,
2821
+ "autoincrement": false
2822
+ },
2823
+ "send_invitation_email": {
2824
+ "name": "send_invitation_email",
2825
+ "type": "integer",
2826
+ "primaryKey": false,
2827
+ "notNull": false,
2828
+ "autoincrement": false
2829
+ }
2830
+ },
2831
+ "indexes": {
2832
+ "idx_invites_tenant_id": {
2833
+ "name": "idx_invites_tenant_id",
2834
+ "columns": [
2835
+ "tenant_id"
2836
+ ],
2837
+ "isUnique": false
2838
+ },
2839
+ "idx_invites_organization_id": {
2840
+ "name": "idx_invites_organization_id",
2841
+ "columns": [
2842
+ "organization_id"
2843
+ ],
2844
+ "isUnique": false
2845
+ },
2846
+ "idx_invites_expires_at": {
2847
+ "name": "idx_invites_expires_at",
2848
+ "columns": [
2849
+ "expires_at"
2850
+ ],
2851
+ "isUnique": false
2852
+ },
2853
+ "idx_invites_tenant_created": {
2854
+ "name": "idx_invites_tenant_created",
2855
+ "columns": [
2856
+ "tenant_id",
2857
+ "created_at"
2858
+ ],
2859
+ "isUnique": false
2860
+ }
2861
+ },
2862
+ "foreignKeys": {},
2863
+ "compositePrimaryKeys": {},
2864
+ "uniqueConstraints": {},
2865
+ "checkConstraints": {}
2866
+ },
2867
+ "organizations": {
2868
+ "name": "organizations",
2869
+ "columns": {
2870
+ "id": {
2871
+ "name": "id",
2872
+ "type": "text(21)",
2873
+ "primaryKey": true,
2874
+ "notNull": true,
2875
+ "autoincrement": false
2876
+ },
2877
+ "tenant_id": {
2878
+ "name": "tenant_id",
2879
+ "type": "text(191)",
2880
+ "primaryKey": false,
2881
+ "notNull": true,
2882
+ "autoincrement": false
2883
+ },
2884
+ "name": {
2885
+ "name": "name",
2886
+ "type": "text(256)",
2887
+ "primaryKey": false,
2888
+ "notNull": true,
2889
+ "autoincrement": false
2890
+ },
2891
+ "display_name": {
2892
+ "name": "display_name",
2893
+ "type": "text(256)",
2894
+ "primaryKey": false,
2895
+ "notNull": false,
2896
+ "autoincrement": false
2897
+ },
2898
+ "branding": {
2899
+ "name": "branding",
2900
+ "type": "text",
2901
+ "primaryKey": false,
2902
+ "notNull": false,
2903
+ "autoincrement": false
2904
+ },
2905
+ "metadata": {
2906
+ "name": "metadata",
2907
+ "type": "text",
2908
+ "primaryKey": false,
2909
+ "notNull": false,
2910
+ "autoincrement": false
2911
+ },
2912
+ "enabled_connections": {
2913
+ "name": "enabled_connections",
2914
+ "type": "text",
2915
+ "primaryKey": false,
2916
+ "notNull": false,
2917
+ "autoincrement": false
2918
+ },
2919
+ "token_quota": {
2920
+ "name": "token_quota",
2921
+ "type": "text",
2922
+ "primaryKey": false,
2923
+ "notNull": false,
2924
+ "autoincrement": false
2925
+ },
2926
+ "created_at": {
2927
+ "name": "created_at",
2928
+ "type": "text(35)",
2929
+ "primaryKey": false,
2930
+ "notNull": true,
2931
+ "autoincrement": false
2932
+ },
2933
+ "updated_at": {
2934
+ "name": "updated_at",
2935
+ "type": "text(35)",
2936
+ "primaryKey": false,
2937
+ "notNull": true,
2938
+ "autoincrement": false
2939
+ }
2940
+ },
2941
+ "indexes": {
2942
+ "idx_organizations_tenant_id": {
2943
+ "name": "idx_organizations_tenant_id",
2944
+ "columns": [
2945
+ "tenant_id"
2946
+ ],
2947
+ "isUnique": false
2948
+ }
2949
+ },
2950
+ "foreignKeys": {},
2951
+ "compositePrimaryKeys": {},
2952
+ "uniqueConstraints": {},
2953
+ "checkConstraints": {}
2954
+ },
2955
+ "user_organizations": {
2956
+ "name": "user_organizations",
2957
+ "columns": {
2958
+ "id": {
2959
+ "name": "id",
2960
+ "type": "text(21)",
2961
+ "primaryKey": true,
2962
+ "notNull": true,
2963
+ "autoincrement": false
2964
+ },
2965
+ "tenant_id": {
2966
+ "name": "tenant_id",
2967
+ "type": "text(191)",
2968
+ "primaryKey": false,
2969
+ "notNull": true,
2970
+ "autoincrement": false
2971
+ },
2972
+ "user_id": {
2973
+ "name": "user_id",
2974
+ "type": "text(191)",
2975
+ "primaryKey": false,
2976
+ "notNull": true,
2977
+ "autoincrement": false
2978
+ },
2979
+ "organization_id": {
2980
+ "name": "organization_id",
2981
+ "type": "text(21)",
2982
+ "primaryKey": false,
2983
+ "notNull": true,
2984
+ "autoincrement": false
2985
+ },
2986
+ "created_at": {
2987
+ "name": "created_at",
2988
+ "type": "text(35)",
2989
+ "primaryKey": false,
2990
+ "notNull": true,
2991
+ "autoincrement": false
2992
+ },
2993
+ "updated_at": {
2994
+ "name": "updated_at",
2995
+ "type": "text(35)",
2996
+ "primaryKey": false,
2997
+ "notNull": true,
2998
+ "autoincrement": false
2999
+ }
3000
+ },
3001
+ "indexes": {
3002
+ "user_organizations_unique": {
3003
+ "name": "user_organizations_unique",
3004
+ "columns": [
3005
+ "tenant_id",
3006
+ "user_id",
3007
+ "organization_id"
3008
+ ],
3009
+ "isUnique": true
3010
+ },
3011
+ "idx_user_organizations_tenant_id": {
3012
+ "name": "idx_user_organizations_tenant_id",
3013
+ "columns": [
3014
+ "tenant_id"
3015
+ ],
3016
+ "isUnique": false
3017
+ },
3018
+ "idx_user_organizations_user_id": {
3019
+ "name": "idx_user_organizations_user_id",
3020
+ "columns": [
3021
+ "user_id"
3022
+ ],
3023
+ "isUnique": false
3024
+ },
3025
+ "idx_user_organizations_organization_id": {
3026
+ "name": "idx_user_organizations_organization_id",
3027
+ "columns": [
3028
+ "organization_id"
3029
+ ],
3030
+ "isUnique": false
3031
+ }
3032
+ },
3033
+ "foreignKeys": {},
3034
+ "compositePrimaryKeys": {},
3035
+ "uniqueConstraints": {},
3036
+ "checkConstraints": {}
3037
+ },
3038
+ "resource_servers": {
3039
+ "name": "resource_servers",
3040
+ "columns": {
3041
+ "id": {
3042
+ "name": "id",
3043
+ "type": "text(21)",
3044
+ "primaryKey": false,
3045
+ "notNull": true,
3046
+ "autoincrement": false
3047
+ },
3048
+ "tenant_id": {
3049
+ "name": "tenant_id",
3050
+ "type": "text(191)",
3051
+ "primaryKey": false,
3052
+ "notNull": true,
3053
+ "autoincrement": false
3054
+ },
3055
+ "identifier": {
3056
+ "name": "identifier",
3057
+ "type": "text(191)",
3058
+ "primaryKey": false,
3059
+ "notNull": true,
3060
+ "autoincrement": false
3061
+ },
3062
+ "name": {
3063
+ "name": "name",
3064
+ "type": "text(255)",
3065
+ "primaryKey": false,
3066
+ "notNull": true,
3067
+ "autoincrement": false
3068
+ },
3069
+ "scopes": {
3070
+ "name": "scopes",
3071
+ "type": "text(4096)",
3072
+ "primaryKey": false,
3073
+ "notNull": false,
3074
+ "autoincrement": false
3075
+ },
3076
+ "signing_alg": {
3077
+ "name": "signing_alg",
3078
+ "type": "text(64)",
3079
+ "primaryKey": false,
3080
+ "notNull": false,
3081
+ "autoincrement": false
3082
+ },
3083
+ "signing_secret": {
3084
+ "name": "signing_secret",
3085
+ "type": "text(2048)",
3086
+ "primaryKey": false,
3087
+ "notNull": false,
3088
+ "autoincrement": false
3089
+ },
3090
+ "token_lifetime": {
3091
+ "name": "token_lifetime",
3092
+ "type": "integer",
3093
+ "primaryKey": false,
3094
+ "notNull": false,
3095
+ "autoincrement": false
3096
+ },
3097
+ "token_lifetime_for_web": {
3098
+ "name": "token_lifetime_for_web",
3099
+ "type": "integer",
3100
+ "primaryKey": false,
3101
+ "notNull": false,
3102
+ "autoincrement": false
3103
+ },
3104
+ "skip_consent_for_verifiable_first_party_clients": {
3105
+ "name": "skip_consent_for_verifiable_first_party_clients",
3106
+ "type": "integer",
3107
+ "primaryKey": false,
3108
+ "notNull": false,
3109
+ "autoincrement": false
3110
+ },
3111
+ "allow_offline_access": {
3112
+ "name": "allow_offline_access",
3113
+ "type": "integer",
3114
+ "primaryKey": false,
3115
+ "notNull": false,
3116
+ "autoincrement": false
3117
+ },
3118
+ "verification_key": {
3119
+ "name": "verification_key",
3120
+ "type": "text(4096)",
3121
+ "primaryKey": false,
3122
+ "notNull": false,
3123
+ "autoincrement": false
3124
+ },
3125
+ "options": {
3126
+ "name": "options",
3127
+ "type": "text(4096)",
3128
+ "primaryKey": false,
3129
+ "notNull": false,
3130
+ "autoincrement": false
3131
+ },
3132
+ "is_system": {
3133
+ "name": "is_system",
3134
+ "type": "integer",
3135
+ "primaryKey": false,
3136
+ "notNull": true,
3137
+ "autoincrement": false,
3138
+ "default": 0
3139
+ },
3140
+ "metadata": {
3141
+ "name": "metadata",
3142
+ "type": "text(4096)",
3143
+ "primaryKey": false,
3144
+ "notNull": false,
3145
+ "autoincrement": false
3146
+ },
3147
+ "created_at": {
3148
+ "name": "created_at",
3149
+ "type": "text(35)",
3150
+ "primaryKey": false,
3151
+ "notNull": true,
3152
+ "autoincrement": false
3153
+ },
3154
+ "updated_at": {
3155
+ "name": "updated_at",
3156
+ "type": "text(35)",
3157
+ "primaryKey": false,
3158
+ "notNull": true,
3159
+ "autoincrement": false
3160
+ }
3161
+ },
3162
+ "indexes": {},
3163
+ "foreignKeys": {},
3164
+ "compositePrimaryKeys": {
3165
+ "resource_servers_pk": {
3166
+ "columns": [
3167
+ "tenant_id",
3168
+ "id"
3169
+ ],
3170
+ "name": "resource_servers_pk"
3171
+ }
3172
+ },
3173
+ "uniqueConstraints": {},
3174
+ "checkConstraints": {}
3175
+ },
3176
+ "role_permissions": {
3177
+ "name": "role_permissions",
3178
+ "columns": {
3179
+ "tenant_id": {
3180
+ "name": "tenant_id",
3181
+ "type": "text(191)",
3182
+ "primaryKey": false,
3183
+ "notNull": true,
3184
+ "autoincrement": false
3185
+ },
3186
+ "role_id": {
3187
+ "name": "role_id",
3188
+ "type": "text(21)",
3189
+ "primaryKey": false,
3190
+ "notNull": true,
3191
+ "autoincrement": false
3192
+ },
3193
+ "resource_server_identifier": {
3194
+ "name": "resource_server_identifier",
3195
+ "type": "text(191)",
3196
+ "primaryKey": false,
3197
+ "notNull": true,
3198
+ "autoincrement": false
3199
+ },
3200
+ "permission_name": {
3201
+ "name": "permission_name",
3202
+ "type": "text(191)",
3203
+ "primaryKey": false,
3204
+ "notNull": true,
3205
+ "autoincrement": false
3206
+ },
3207
+ "created_at": {
3208
+ "name": "created_at",
3209
+ "type": "text(35)",
3210
+ "primaryKey": false,
3211
+ "notNull": true,
3212
+ "autoincrement": false
3213
+ }
3214
+ },
3215
+ "indexes": {
3216
+ "role_permissions_role_fk": {
3217
+ "name": "role_permissions_role_fk",
3218
+ "columns": [
3219
+ "tenant_id",
3220
+ "role_id"
3221
+ ],
3222
+ "isUnique": false
3223
+ },
3224
+ "role_permissions_permission_fk": {
3225
+ "name": "role_permissions_permission_fk",
3226
+ "columns": [
3227
+ "tenant_id",
3228
+ "resource_server_identifier",
3229
+ "permission_name"
3230
+ ],
3231
+ "isUnique": false
3232
+ }
3233
+ },
3234
+ "foreignKeys": {},
3235
+ "compositePrimaryKeys": {
3236
+ "role_permissions_pk": {
3237
+ "columns": [
3238
+ "tenant_id",
3239
+ "role_id",
3240
+ "resource_server_identifier",
3241
+ "permission_name"
3242
+ ],
3243
+ "name": "role_permissions_pk"
3244
+ }
3245
+ },
3246
+ "uniqueConstraints": {},
3247
+ "checkConstraints": {}
3248
+ },
3249
+ "roles": {
3250
+ "name": "roles",
3251
+ "columns": {
3252
+ "id": {
3253
+ "name": "id",
3254
+ "type": "text(21)",
3255
+ "primaryKey": false,
3256
+ "notNull": true,
3257
+ "autoincrement": false
3258
+ },
3259
+ "tenant_id": {
3260
+ "name": "tenant_id",
3261
+ "type": "text(191)",
3262
+ "primaryKey": false,
3263
+ "notNull": true,
3264
+ "autoincrement": false
3265
+ },
3266
+ "name": {
3267
+ "name": "name",
3268
+ "type": "text(50)",
3269
+ "primaryKey": false,
3270
+ "notNull": true,
3271
+ "autoincrement": false
3272
+ },
3273
+ "description": {
3274
+ "name": "description",
3275
+ "type": "text(255)",
3276
+ "primaryKey": false,
3277
+ "notNull": false,
3278
+ "autoincrement": false
3279
+ },
3280
+ "is_system": {
3281
+ "name": "is_system",
3282
+ "type": "integer",
3283
+ "primaryKey": false,
3284
+ "notNull": true,
3285
+ "autoincrement": false,
3286
+ "default": 0
3287
+ },
3288
+ "metadata": {
3289
+ "name": "metadata",
3290
+ "type": "text(4096)",
3291
+ "primaryKey": false,
3292
+ "notNull": false,
3293
+ "autoincrement": false
3294
+ },
3295
+ "created_at": {
3296
+ "name": "created_at",
3297
+ "type": "text(35)",
3298
+ "primaryKey": false,
3299
+ "notNull": true,
3300
+ "autoincrement": false
3301
+ },
3302
+ "updated_at": {
3303
+ "name": "updated_at",
3304
+ "type": "text(35)",
3305
+ "primaryKey": false,
3306
+ "notNull": true,
3307
+ "autoincrement": false
3308
+ }
3309
+ },
3310
+ "indexes": {},
3311
+ "foreignKeys": {},
3312
+ "compositePrimaryKeys": {
3313
+ "roles_pk": {
3314
+ "columns": [
3315
+ "tenant_id",
3316
+ "id"
3317
+ ],
3318
+ "name": "roles_pk"
3319
+ }
3320
+ },
3321
+ "uniqueConstraints": {},
3322
+ "checkConstraints": {}
3323
+ },
3324
+ "user_permissions": {
3325
+ "name": "user_permissions",
3326
+ "columns": {
3327
+ "tenant_id": {
3328
+ "name": "tenant_id",
3329
+ "type": "text(191)",
3330
+ "primaryKey": false,
3331
+ "notNull": true,
3332
+ "autoincrement": false
3333
+ },
3334
+ "user_id": {
3335
+ "name": "user_id",
3336
+ "type": "text(191)",
3337
+ "primaryKey": false,
3338
+ "notNull": true,
3339
+ "autoincrement": false
3340
+ },
3341
+ "resource_server_identifier": {
3342
+ "name": "resource_server_identifier",
3343
+ "type": "text(191)",
3344
+ "primaryKey": false,
3345
+ "notNull": true,
3346
+ "autoincrement": false
3347
+ },
3348
+ "permission_name": {
3349
+ "name": "permission_name",
3350
+ "type": "text(191)",
3351
+ "primaryKey": false,
3352
+ "notNull": true,
3353
+ "autoincrement": false
3354
+ },
3355
+ "organization_id": {
3356
+ "name": "organization_id",
3357
+ "type": "text(21)",
3358
+ "primaryKey": false,
3359
+ "notNull": true,
3360
+ "autoincrement": false,
3361
+ "default": "''"
3362
+ },
3363
+ "created_at": {
3364
+ "name": "created_at",
3365
+ "type": "text(35)",
3366
+ "primaryKey": false,
3367
+ "notNull": true,
3368
+ "autoincrement": false
3369
+ }
3370
+ },
3371
+ "indexes": {
3372
+ "user_permissions_user_fk": {
3373
+ "name": "user_permissions_user_fk",
3374
+ "columns": [
3375
+ "tenant_id",
3376
+ "user_id"
3377
+ ],
3378
+ "isUnique": false
3379
+ },
3380
+ "user_permissions_permission_fk": {
3381
+ "name": "user_permissions_permission_fk",
3382
+ "columns": [
3383
+ "tenant_id",
3384
+ "resource_server_identifier",
3385
+ "permission_name"
3386
+ ],
3387
+ "isUnique": false
3388
+ },
3389
+ "user_permissions_organization_fk": {
3390
+ "name": "user_permissions_organization_fk",
3391
+ "columns": [
3392
+ "organization_id"
3393
+ ],
3394
+ "isUnique": false
3395
+ }
3396
+ },
3397
+ "foreignKeys": {},
3398
+ "compositePrimaryKeys": {
3399
+ "user_permissions_pk": {
3400
+ "columns": [
3401
+ "tenant_id",
3402
+ "user_id",
3403
+ "resource_server_identifier",
3404
+ "permission_name",
3405
+ "organization_id"
3406
+ ],
3407
+ "name": "user_permissions_pk"
3408
+ }
3409
+ },
3410
+ "uniqueConstraints": {},
3411
+ "checkConstraints": {}
3412
+ },
3413
+ "user_roles": {
3414
+ "name": "user_roles",
3415
+ "columns": {
3416
+ "tenant_id": {
3417
+ "name": "tenant_id",
3418
+ "type": "text(191)",
3419
+ "primaryKey": false,
3420
+ "notNull": true,
3421
+ "autoincrement": false
3422
+ },
3423
+ "user_id": {
3424
+ "name": "user_id",
3425
+ "type": "text(191)",
3426
+ "primaryKey": false,
3427
+ "notNull": true,
3428
+ "autoincrement": false
3429
+ },
3430
+ "role_id": {
3431
+ "name": "role_id",
3432
+ "type": "text(21)",
3433
+ "primaryKey": false,
3434
+ "notNull": true,
3435
+ "autoincrement": false
3436
+ },
3437
+ "organization_id": {
3438
+ "name": "organization_id",
3439
+ "type": "text(191)",
3440
+ "primaryKey": false,
3441
+ "notNull": true,
3442
+ "autoincrement": false,
3443
+ "default": "''"
3444
+ },
3445
+ "created_at": {
3446
+ "name": "created_at",
3447
+ "type": "text(35)",
3448
+ "primaryKey": false,
3449
+ "notNull": true,
3450
+ "autoincrement": false
3451
+ }
3452
+ },
3453
+ "indexes": {
3454
+ "user_roles_user_fk": {
3455
+ "name": "user_roles_user_fk",
3456
+ "columns": [
3457
+ "tenant_id",
3458
+ "user_id"
3459
+ ],
3460
+ "isUnique": false
3461
+ },
3462
+ "user_roles_role_fk": {
3463
+ "name": "user_roles_role_fk",
3464
+ "columns": [
3465
+ "tenant_id",
3466
+ "role_id"
3467
+ ],
3468
+ "isUnique": false
3469
+ },
3470
+ "user_roles_organization_fk": {
3471
+ "name": "user_roles_organization_fk",
3472
+ "columns": [
3473
+ "organization_id"
3474
+ ],
3475
+ "isUnique": false
3476
+ }
3477
+ },
3478
+ "foreignKeys": {},
3479
+ "compositePrimaryKeys": {
3480
+ "user_roles_pk": {
3481
+ "columns": [
3482
+ "tenant_id",
3483
+ "user_id",
3484
+ "role_id",
3485
+ "organization_id"
3486
+ ],
3487
+ "name": "user_roles_pk"
3488
+ }
3489
+ },
3490
+ "uniqueConstraints": {},
3491
+ "checkConstraints": {}
3492
+ },
3493
+ "branding": {
3494
+ "name": "branding",
3495
+ "columns": {
3496
+ "tenant_id": {
3497
+ "name": "tenant_id",
3498
+ "type": "text(191)",
3499
+ "primaryKey": true,
3500
+ "notNull": true,
3501
+ "autoincrement": false
3502
+ },
3503
+ "logo_url": {
3504
+ "name": "logo_url",
3505
+ "type": "text(512)",
3506
+ "primaryKey": false,
3507
+ "notNull": false,
3508
+ "autoincrement": false
3509
+ },
3510
+ "favicon_url": {
3511
+ "name": "favicon_url",
3512
+ "type": "text(512)",
3513
+ "primaryKey": false,
3514
+ "notNull": false,
3515
+ "autoincrement": false
3516
+ },
3517
+ "font_url": {
3518
+ "name": "font_url",
3519
+ "type": "text(512)",
3520
+ "primaryKey": false,
3521
+ "notNull": false,
3522
+ "autoincrement": false
3523
+ },
3524
+ "colors_primary": {
3525
+ "name": "colors_primary",
3526
+ "type": "text(8)",
3527
+ "primaryKey": false,
3528
+ "notNull": false,
3529
+ "autoincrement": false
3530
+ },
3531
+ "colors_page_background_type": {
3532
+ "name": "colors_page_background_type",
3533
+ "type": "text(32)",
3534
+ "primaryKey": false,
3535
+ "notNull": false,
3536
+ "autoincrement": false
3537
+ },
3538
+ "colors_page_background_start": {
3539
+ "name": "colors_page_background_start",
3540
+ "type": "text(8)",
3541
+ "primaryKey": false,
3542
+ "notNull": false,
3543
+ "autoincrement": false
3544
+ },
3545
+ "colors_page_background_end": {
3546
+ "name": "colors_page_background_end",
3547
+ "type": "text(8)",
3548
+ "primaryKey": false,
3549
+ "notNull": false,
3550
+ "autoincrement": false
3551
+ },
3552
+ "colors_page_background_angle_dev": {
3553
+ "name": "colors_page_background_angle_dev",
3554
+ "type": "integer",
3555
+ "primaryKey": false,
3556
+ "notNull": false,
3557
+ "autoincrement": false
3558
+ }
3559
+ },
3560
+ "indexes": {},
3561
+ "foreignKeys": {
3562
+ "branding_tenant_id_tenants_id_fk": {
3563
+ "name": "branding_tenant_id_tenants_id_fk",
3564
+ "tableFrom": "branding",
3565
+ "tableTo": "tenants",
3566
+ "columnsFrom": [
3567
+ "tenant_id"
3568
+ ],
3569
+ "columnsTo": [
3570
+ "id"
3571
+ ],
3572
+ "onDelete": "cascade",
3573
+ "onUpdate": "no action"
3574
+ }
3575
+ },
3576
+ "compositePrimaryKeys": {},
3577
+ "uniqueConstraints": {},
3578
+ "checkConstraints": {}
3579
+ },
3580
+ "custom_text": {
3581
+ "name": "custom_text",
3582
+ "columns": {
3583
+ "tenant_id": {
3584
+ "name": "tenant_id",
3585
+ "type": "text(191)",
3586
+ "primaryKey": false,
3587
+ "notNull": true,
3588
+ "autoincrement": false
3589
+ },
3590
+ "prompt": {
3591
+ "name": "prompt",
3592
+ "type": "text(64)",
3593
+ "primaryKey": false,
3594
+ "notNull": true,
3595
+ "autoincrement": false
3596
+ },
3597
+ "language": {
3598
+ "name": "language",
3599
+ "type": "text(16)",
3600
+ "primaryKey": false,
3601
+ "notNull": true,
3602
+ "autoincrement": false
3603
+ },
3604
+ "custom_text": {
3605
+ "name": "custom_text",
3606
+ "type": "text",
3607
+ "primaryKey": false,
3608
+ "notNull": true,
3609
+ "autoincrement": false
3610
+ },
3611
+ "created_at": {
3612
+ "name": "created_at",
3613
+ "type": "text(35)",
3614
+ "primaryKey": false,
3615
+ "notNull": true,
3616
+ "autoincrement": false
3617
+ },
3618
+ "updated_at": {
3619
+ "name": "updated_at",
3620
+ "type": "text(35)",
3621
+ "primaryKey": false,
3622
+ "notNull": true,
3623
+ "autoincrement": false
3624
+ }
3625
+ },
3626
+ "indexes": {},
3627
+ "foreignKeys": {
3628
+ "custom_text_tenant_id_tenants_id_fk": {
3629
+ "name": "custom_text_tenant_id_tenants_id_fk",
3630
+ "tableFrom": "custom_text",
3631
+ "tableTo": "tenants",
3632
+ "columnsFrom": [
3633
+ "tenant_id"
3634
+ ],
3635
+ "columnsTo": [
3636
+ "id"
3637
+ ],
3638
+ "onDelete": "cascade",
3639
+ "onUpdate": "no action"
3640
+ }
3641
+ },
3642
+ "compositePrimaryKeys": {
3643
+ "custom_text_tenant_id_prompt_language_pk": {
3644
+ "columns": [
3645
+ "tenant_id",
3646
+ "prompt",
3647
+ "language"
3648
+ ],
3649
+ "name": "custom_text_tenant_id_prompt_language_pk"
3650
+ }
3651
+ },
3652
+ "uniqueConstraints": {},
3653
+ "checkConstraints": {}
3654
+ },
3655
+ "email_providers": {
3656
+ "name": "email_providers",
3657
+ "columns": {
3658
+ "tenant_id": {
3659
+ "name": "tenant_id",
3660
+ "type": "text(191)",
3661
+ "primaryKey": true,
3662
+ "notNull": true,
3663
+ "autoincrement": false
3664
+ },
3665
+ "name": {
3666
+ "name": "name",
3667
+ "type": "text(255)",
3668
+ "primaryKey": false,
3669
+ "notNull": true,
3670
+ "autoincrement": false
3671
+ },
3672
+ "enabled": {
3673
+ "name": "enabled",
3674
+ "type": "integer",
3675
+ "primaryKey": false,
3676
+ "notNull": true,
3677
+ "autoincrement": false
3678
+ },
3679
+ "default_from_address": {
3680
+ "name": "default_from_address",
3681
+ "type": "text(255)",
3682
+ "primaryKey": false,
3683
+ "notNull": false,
3684
+ "autoincrement": false
3685
+ },
3686
+ "credentials": {
3687
+ "name": "credentials",
3688
+ "type": "text(2048)",
3689
+ "primaryKey": false,
3690
+ "notNull": true,
3691
+ "autoincrement": false,
3692
+ "default": "'{}'"
3693
+ },
3694
+ "settings": {
3695
+ "name": "settings",
3696
+ "type": "text(2048)",
3697
+ "primaryKey": false,
3698
+ "notNull": true,
3699
+ "autoincrement": false,
3700
+ "default": "'{}'"
3701
+ },
3702
+ "created_at": {
3703
+ "name": "created_at",
3704
+ "type": "text(35)",
3705
+ "primaryKey": false,
3706
+ "notNull": true,
3707
+ "autoincrement": false
3708
+ },
3709
+ "updated_at": {
3710
+ "name": "updated_at",
3711
+ "type": "text(35)",
3712
+ "primaryKey": false,
3713
+ "notNull": true,
3714
+ "autoincrement": false
3715
+ }
3716
+ },
3717
+ "indexes": {},
3718
+ "foreignKeys": {},
3719
+ "compositePrimaryKeys": {},
3720
+ "uniqueConstraints": {},
3721
+ "checkConstraints": {}
3722
+ },
3723
+ "flows": {
3724
+ "name": "flows",
3725
+ "columns": {
3726
+ "id": {
3727
+ "name": "id",
3728
+ "type": "text(24)",
3729
+ "primaryKey": true,
3730
+ "notNull": true,
3731
+ "autoincrement": false
3732
+ },
3733
+ "tenant_id": {
3734
+ "name": "tenant_id",
3735
+ "type": "text(191)",
3736
+ "primaryKey": false,
3737
+ "notNull": true,
3738
+ "autoincrement": false
3739
+ },
3740
+ "name": {
3741
+ "name": "name",
3742
+ "type": "text(150)",
3743
+ "primaryKey": false,
3744
+ "notNull": true,
3745
+ "autoincrement": false
3746
+ },
3747
+ "actions": {
3748
+ "name": "actions",
3749
+ "type": "text",
3750
+ "primaryKey": false,
3751
+ "notNull": false,
3752
+ "autoincrement": false
3753
+ },
3754
+ "created_at": {
3755
+ "name": "created_at",
3756
+ "type": "text(35)",
3757
+ "primaryKey": false,
3758
+ "notNull": true,
3759
+ "autoincrement": false
3760
+ },
3761
+ "updated_at": {
3762
+ "name": "updated_at",
3763
+ "type": "text(35)",
3764
+ "primaryKey": false,
3765
+ "notNull": true,
3766
+ "autoincrement": false
3767
+ }
3768
+ },
3769
+ "indexes": {
3770
+ "flows_tenant_id_idx": {
3771
+ "name": "flows_tenant_id_idx",
3772
+ "columns": [
3773
+ "tenant_id"
3774
+ ],
3775
+ "isUnique": false
3776
+ }
3777
+ },
3778
+ "foreignKeys": {
3779
+ "flows_tenant_id_tenants_id_fk": {
3780
+ "name": "flows_tenant_id_tenants_id_fk",
3781
+ "tableFrom": "flows",
3782
+ "tableTo": "tenants",
3783
+ "columnsFrom": [
3784
+ "tenant_id"
3785
+ ],
3786
+ "columnsTo": [
3787
+ "id"
3788
+ ],
3789
+ "onDelete": "cascade",
3790
+ "onUpdate": "no action"
3791
+ }
3792
+ },
3793
+ "compositePrimaryKeys": {},
3794
+ "uniqueConstraints": {},
3795
+ "checkConstraints": {}
3796
+ },
3797
+ "forms": {
3798
+ "name": "forms",
3799
+ "columns": {
3800
+ "id": {
3801
+ "name": "id",
3802
+ "type": "text(255)",
3803
+ "primaryKey": true,
3804
+ "notNull": true,
3805
+ "autoincrement": false
3806
+ },
3807
+ "name": {
3808
+ "name": "name",
3809
+ "type": "text(255)",
3810
+ "primaryKey": false,
3811
+ "notNull": true,
3812
+ "autoincrement": false
3813
+ },
3814
+ "tenant_id": {
3815
+ "name": "tenant_id",
3816
+ "type": "text(191)",
3817
+ "primaryKey": false,
3818
+ "notNull": true,
3819
+ "autoincrement": false
3820
+ },
3821
+ "messages": {
3822
+ "name": "messages",
3823
+ "type": "text(255)",
3824
+ "primaryKey": false,
3825
+ "notNull": false,
3826
+ "autoincrement": false
3827
+ },
3828
+ "languages": {
3829
+ "name": "languages",
3830
+ "type": "text(255)",
3831
+ "primaryKey": false,
3832
+ "notNull": false,
3833
+ "autoincrement": false
3834
+ },
3835
+ "translations": {
3836
+ "name": "translations",
3837
+ "type": "text(4096)",
3838
+ "primaryKey": false,
3839
+ "notNull": false,
3840
+ "autoincrement": false
3841
+ },
3842
+ "nodes": {
3843
+ "name": "nodes",
3844
+ "type": "text(4096)",
3845
+ "primaryKey": false,
3846
+ "notNull": false,
3847
+ "autoincrement": false
3848
+ },
3849
+ "start": {
3850
+ "name": "start",
3851
+ "type": "text(255)",
3852
+ "primaryKey": false,
3853
+ "notNull": false,
3854
+ "autoincrement": false
3855
+ },
3856
+ "ending": {
3857
+ "name": "ending",
3858
+ "type": "text(255)",
3859
+ "primaryKey": false,
3860
+ "notNull": false,
3861
+ "autoincrement": false
3862
+ },
3863
+ "style": {
3864
+ "name": "style",
3865
+ "type": "text(1042)",
3866
+ "primaryKey": false,
3867
+ "notNull": false,
3868
+ "autoincrement": false
3869
+ },
3870
+ "created_at": {
3871
+ "name": "created_at",
3872
+ "type": "text(35)",
3873
+ "primaryKey": false,
3874
+ "notNull": true,
3875
+ "autoincrement": false
3876
+ },
3877
+ "updated_at": {
3878
+ "name": "updated_at",
3879
+ "type": "text(35)",
3880
+ "primaryKey": false,
3881
+ "notNull": true,
3882
+ "autoincrement": false
3883
+ }
3884
+ },
3885
+ "indexes": {
3886
+ "forms_tenant_id_idx": {
3887
+ "name": "forms_tenant_id_idx",
3888
+ "columns": [
3889
+ "tenant_id"
3890
+ ],
3891
+ "isUnique": false
3892
+ }
3893
+ },
3894
+ "foreignKeys": {
3895
+ "forms_tenant_id_tenants_id_fk": {
3896
+ "name": "forms_tenant_id_tenants_id_fk",
3897
+ "tableFrom": "forms",
3898
+ "tableTo": "tenants",
3899
+ "columnsFrom": [
3900
+ "tenant_id"
3901
+ ],
3902
+ "columnsTo": [
3903
+ "id"
3904
+ ],
3905
+ "onDelete": "cascade",
3906
+ "onUpdate": "no action"
3907
+ }
3908
+ },
3909
+ "compositePrimaryKeys": {},
3910
+ "uniqueConstraints": {},
3911
+ "checkConstraints": {}
3912
+ },
3913
+ "hooks": {
3914
+ "name": "hooks",
3915
+ "columns": {
3916
+ "hook_id": {
3917
+ "name": "hook_id",
3918
+ "type": "text(255)",
3919
+ "primaryKey": true,
3920
+ "notNull": true,
3921
+ "autoincrement": false
3922
+ },
3923
+ "tenant_id": {
3924
+ "name": "tenant_id",
3925
+ "type": "text(191)",
3926
+ "primaryKey": false,
3927
+ "notNull": true,
3928
+ "autoincrement": false
3929
+ },
3930
+ "url": {
3931
+ "name": "url",
3932
+ "type": "text(512)",
3933
+ "primaryKey": false,
3934
+ "notNull": true,
3935
+ "autoincrement": false
3936
+ },
3937
+ "trigger_id": {
3938
+ "name": "trigger_id",
3939
+ "type": "text(255)",
3940
+ "primaryKey": false,
3941
+ "notNull": true,
3942
+ "autoincrement": false
3943
+ },
3944
+ "enabled": {
3945
+ "name": "enabled",
3946
+ "type": "integer",
3947
+ "primaryKey": false,
3948
+ "notNull": true,
3949
+ "autoincrement": false
3950
+ },
3951
+ "created_at": {
3952
+ "name": "created_at",
3953
+ "type": "text(35)",
3954
+ "primaryKey": false,
3955
+ "notNull": true,
3956
+ "autoincrement": false
3957
+ },
3958
+ "updated_at": {
3959
+ "name": "updated_at",
3960
+ "type": "text(35)",
3961
+ "primaryKey": false,
3962
+ "notNull": true,
3963
+ "autoincrement": false
3964
+ },
3965
+ "synchronous": {
3966
+ "name": "synchronous",
3967
+ "type": "integer",
3968
+ "primaryKey": false,
3969
+ "notNull": true,
3970
+ "autoincrement": false,
3971
+ "default": false
3972
+ },
3973
+ "priority": {
3974
+ "name": "priority",
3975
+ "type": "integer",
3976
+ "primaryKey": false,
3977
+ "notNull": false,
3978
+ "autoincrement": false
3979
+ },
3980
+ "form_id": {
3981
+ "name": "form_id",
3982
+ "type": "text",
3983
+ "primaryKey": false,
3984
+ "notNull": false,
3985
+ "autoincrement": false
3986
+ },
3987
+ "url_tmp": {
3988
+ "name": "url_tmp",
3989
+ "type": "text(512)",
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
+ }