@authhero/drizzle 0.14.1 → 0.15.0

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