create-m5kdev 0.40.3 → 0.41.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3687 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "3964b2ae-c45d-40e8-9661-47bb874907bc",
5
+ "prevId": "c4e23f01-9be6-46ac-ae2d-dbc48209cb74",
6
+ "tables": {
7
+ "account_claim_magic_links": {
8
+ "name": "account_claim_magic_links",
9
+ "columns": {
10
+ "id": {
11
+ "name": "id",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "claim_id": {
18
+ "name": "claim_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "user_id": {
25
+ "name": "user_id",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false
30
+ },
31
+ "email": {
32
+ "name": "email",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": true,
36
+ "autoincrement": false
37
+ },
38
+ "token": {
39
+ "name": "token",
40
+ "type": "text",
41
+ "primaryKey": false,
42
+ "notNull": true,
43
+ "autoincrement": false
44
+ },
45
+ "url": {
46
+ "name": "url",
47
+ "type": "text",
48
+ "primaryKey": false,
49
+ "notNull": true,
50
+ "autoincrement": false
51
+ },
52
+ "expires_at": {
53
+ "name": "expires_at",
54
+ "type": "integer",
55
+ "primaryKey": false,
56
+ "notNull": false,
57
+ "autoincrement": false
58
+ },
59
+ "created_at": {
60
+ "name": "created_at",
61
+ "type": "integer",
62
+ "primaryKey": false,
63
+ "notNull": true,
64
+ "autoincrement": false
65
+ }
66
+ },
67
+ "indexes": {},
68
+ "foreignKeys": {
69
+ "account_claim_magic_links_claim_id_account_claims_id_fk": {
70
+ "name": "account_claim_magic_links_claim_id_account_claims_id_fk",
71
+ "tableFrom": "account_claim_magic_links",
72
+ "tableTo": "account_claims",
73
+ "columnsFrom": [
74
+ "claim_id"
75
+ ],
76
+ "columnsTo": [
77
+ "id"
78
+ ],
79
+ "onDelete": "cascade",
80
+ "onUpdate": "no action"
81
+ },
82
+ "account_claim_magic_links_user_id_users_id_fk": {
83
+ "name": "account_claim_magic_links_user_id_users_id_fk",
84
+ "tableFrom": "account_claim_magic_links",
85
+ "tableTo": "users",
86
+ "columnsFrom": [
87
+ "user_id"
88
+ ],
89
+ "columnsTo": [
90
+ "id"
91
+ ],
92
+ "onDelete": "cascade",
93
+ "onUpdate": "no action"
94
+ }
95
+ },
96
+ "compositePrimaryKeys": {},
97
+ "uniqueConstraints": {},
98
+ "checkConstraints": {}
99
+ },
100
+ "account_claims": {
101
+ "name": "account_claims",
102
+ "columns": {
103
+ "id": {
104
+ "name": "id",
105
+ "type": "text",
106
+ "primaryKey": true,
107
+ "notNull": true,
108
+ "autoincrement": false
109
+ },
110
+ "claim_user_id": {
111
+ "name": "claim_user_id",
112
+ "type": "text",
113
+ "primaryKey": false,
114
+ "notNull": true,
115
+ "autoincrement": false
116
+ },
117
+ "status": {
118
+ "name": "status",
119
+ "type": "text",
120
+ "primaryKey": false,
121
+ "notNull": true,
122
+ "autoincrement": false
123
+ },
124
+ "code": {
125
+ "name": "code",
126
+ "type": "text",
127
+ "primaryKey": false,
128
+ "notNull": false,
129
+ "autoincrement": false
130
+ },
131
+ "expires_at": {
132
+ "name": "expires_at",
133
+ "type": "integer",
134
+ "primaryKey": false,
135
+ "notNull": false,
136
+ "autoincrement": false
137
+ },
138
+ "claimed_at": {
139
+ "name": "claimed_at",
140
+ "type": "integer",
141
+ "primaryKey": false,
142
+ "notNull": false,
143
+ "autoincrement": false
144
+ },
145
+ "claimed_email": {
146
+ "name": "claimed_email",
147
+ "type": "text",
148
+ "primaryKey": false,
149
+ "notNull": false,
150
+ "autoincrement": false
151
+ },
152
+ "created_at": {
153
+ "name": "created_at",
154
+ "type": "integer",
155
+ "primaryKey": false,
156
+ "notNull": true,
157
+ "autoincrement": false
158
+ },
159
+ "updated_at": {
160
+ "name": "updated_at",
161
+ "type": "integer",
162
+ "primaryKey": false,
163
+ "notNull": false,
164
+ "autoincrement": false
165
+ }
166
+ },
167
+ "indexes": {},
168
+ "foreignKeys": {
169
+ "account_claims_claim_user_id_users_id_fk": {
170
+ "name": "account_claims_claim_user_id_users_id_fk",
171
+ "tableFrom": "account_claims",
172
+ "tableTo": "users",
173
+ "columnsFrom": [
174
+ "claim_user_id"
175
+ ],
176
+ "columnsTo": [
177
+ "id"
178
+ ],
179
+ "onDelete": "no action",
180
+ "onUpdate": "no action"
181
+ }
182
+ },
183
+ "compositePrimaryKeys": {},
184
+ "uniqueConstraints": {},
185
+ "checkConstraints": {}
186
+ },
187
+ "accounts": {
188
+ "name": "accounts",
189
+ "columns": {
190
+ "id": {
191
+ "name": "id",
192
+ "type": "text",
193
+ "primaryKey": true,
194
+ "notNull": true,
195
+ "autoincrement": false
196
+ },
197
+ "account_id": {
198
+ "name": "account_id",
199
+ "type": "text",
200
+ "primaryKey": false,
201
+ "notNull": true,
202
+ "autoincrement": false
203
+ },
204
+ "issuer": {
205
+ "name": "issuer",
206
+ "type": "text",
207
+ "primaryKey": false,
208
+ "notNull": true,
209
+ "autoincrement": false,
210
+ "default": "'local:credential'"
211
+ },
212
+ "provider_id": {
213
+ "name": "provider_id",
214
+ "type": "text",
215
+ "primaryKey": false,
216
+ "notNull": true,
217
+ "autoincrement": false
218
+ },
219
+ "user_id": {
220
+ "name": "user_id",
221
+ "type": "text",
222
+ "primaryKey": false,
223
+ "notNull": true,
224
+ "autoincrement": false
225
+ },
226
+ "access_token": {
227
+ "name": "access_token",
228
+ "type": "text",
229
+ "primaryKey": false,
230
+ "notNull": false,
231
+ "autoincrement": false
232
+ },
233
+ "refresh_token": {
234
+ "name": "refresh_token",
235
+ "type": "text",
236
+ "primaryKey": false,
237
+ "notNull": false,
238
+ "autoincrement": false
239
+ },
240
+ "id_token": {
241
+ "name": "id_token",
242
+ "type": "text",
243
+ "primaryKey": false,
244
+ "notNull": false,
245
+ "autoincrement": false
246
+ },
247
+ "access_token_expires_at": {
248
+ "name": "access_token_expires_at",
249
+ "type": "integer",
250
+ "primaryKey": false,
251
+ "notNull": false,
252
+ "autoincrement": false
253
+ },
254
+ "refresh_token_expires_at": {
255
+ "name": "refresh_token_expires_at",
256
+ "type": "integer",
257
+ "primaryKey": false,
258
+ "notNull": false,
259
+ "autoincrement": false
260
+ },
261
+ "scope": {
262
+ "name": "scope",
263
+ "type": "text",
264
+ "primaryKey": false,
265
+ "notNull": false,
266
+ "autoincrement": false
267
+ },
268
+ "password": {
269
+ "name": "password",
270
+ "type": "text",
271
+ "primaryKey": false,
272
+ "notNull": false,
273
+ "autoincrement": false
274
+ },
275
+ "created_at": {
276
+ "name": "created_at",
277
+ "type": "integer",
278
+ "primaryKey": false,
279
+ "notNull": true,
280
+ "autoincrement": false
281
+ },
282
+ "updated_at": {
283
+ "name": "updated_at",
284
+ "type": "integer",
285
+ "primaryKey": false,
286
+ "notNull": true,
287
+ "autoincrement": false
288
+ }
289
+ },
290
+ "indexes": {
291
+ "accounts_issuer_account_id_unique": {
292
+ "name": "accounts_issuer_account_id_unique",
293
+ "columns": [
294
+ "issuer",
295
+ "account_id"
296
+ ],
297
+ "isUnique": true
298
+ }
299
+ },
300
+ "foreignKeys": {
301
+ "accounts_user_id_users_id_fk": {
302
+ "name": "accounts_user_id_users_id_fk",
303
+ "tableFrom": "accounts",
304
+ "tableTo": "users",
305
+ "columnsFrom": [
306
+ "user_id"
307
+ ],
308
+ "columnsTo": [
309
+ "id"
310
+ ],
311
+ "onDelete": "cascade",
312
+ "onUpdate": "no action"
313
+ }
314
+ },
315
+ "compositePrimaryKeys": {},
316
+ "uniqueConstraints": {},
317
+ "checkConstraints": {}
318
+ },
319
+ "ai_usage": {
320
+ "name": "ai_usage",
321
+ "columns": {
322
+ "id": {
323
+ "name": "id",
324
+ "type": "text",
325
+ "primaryKey": true,
326
+ "notNull": true,
327
+ "autoincrement": false
328
+ },
329
+ "user_id": {
330
+ "name": "user_id",
331
+ "type": "text",
332
+ "primaryKey": false,
333
+ "notNull": false,
334
+ "autoincrement": false
335
+ },
336
+ "member_id": {
337
+ "name": "member_id",
338
+ "type": "text",
339
+ "primaryKey": false,
340
+ "notNull": false,
341
+ "autoincrement": false
342
+ },
343
+ "team_id": {
344
+ "name": "team_id",
345
+ "type": "text",
346
+ "primaryKey": false,
347
+ "notNull": false,
348
+ "autoincrement": false
349
+ },
350
+ "organization_id": {
351
+ "name": "organization_id",
352
+ "type": "text",
353
+ "primaryKey": false,
354
+ "notNull": false,
355
+ "autoincrement": false
356
+ },
357
+ "feature": {
358
+ "name": "feature",
359
+ "type": "text",
360
+ "primaryKey": false,
361
+ "notNull": true,
362
+ "autoincrement": false
363
+ },
364
+ "provider": {
365
+ "name": "provider",
366
+ "type": "text",
367
+ "primaryKey": false,
368
+ "notNull": true,
369
+ "autoincrement": false
370
+ },
371
+ "model": {
372
+ "name": "model",
373
+ "type": "text",
374
+ "primaryKey": false,
375
+ "notNull": true,
376
+ "autoincrement": false
377
+ },
378
+ "input_tokens": {
379
+ "name": "input_tokens",
380
+ "type": "integer",
381
+ "primaryKey": false,
382
+ "notNull": false,
383
+ "autoincrement": false
384
+ },
385
+ "output_tokens": {
386
+ "name": "output_tokens",
387
+ "type": "integer",
388
+ "primaryKey": false,
389
+ "notNull": false,
390
+ "autoincrement": false
391
+ },
392
+ "total_tokens": {
393
+ "name": "total_tokens",
394
+ "type": "integer",
395
+ "primaryKey": false,
396
+ "notNull": false,
397
+ "autoincrement": false
398
+ },
399
+ "cost": {
400
+ "name": "cost",
401
+ "type": "real",
402
+ "primaryKey": false,
403
+ "notNull": false,
404
+ "autoincrement": false
405
+ },
406
+ "trace_id": {
407
+ "name": "trace_id",
408
+ "type": "text",
409
+ "primaryKey": false,
410
+ "notNull": false,
411
+ "autoincrement": false
412
+ },
413
+ "created_at": {
414
+ "name": "created_at",
415
+ "type": "integer",
416
+ "primaryKey": false,
417
+ "notNull": true,
418
+ "autoincrement": false
419
+ },
420
+ "metadata": {
421
+ "name": "metadata",
422
+ "type": "text",
423
+ "primaryKey": false,
424
+ "notNull": false,
425
+ "autoincrement": false
426
+ }
427
+ },
428
+ "indexes": {},
429
+ "foreignKeys": {
430
+ "ai_usage_user_id_users_id_fk": {
431
+ "name": "ai_usage_user_id_users_id_fk",
432
+ "tableFrom": "ai_usage",
433
+ "tableTo": "users",
434
+ "columnsFrom": [
435
+ "user_id"
436
+ ],
437
+ "columnsTo": [
438
+ "id"
439
+ ],
440
+ "onDelete": "set null",
441
+ "onUpdate": "no action"
442
+ },
443
+ "ai_usage_member_id_members_id_fk": {
444
+ "name": "ai_usage_member_id_members_id_fk",
445
+ "tableFrom": "ai_usage",
446
+ "tableTo": "members",
447
+ "columnsFrom": [
448
+ "member_id"
449
+ ],
450
+ "columnsTo": [
451
+ "id"
452
+ ],
453
+ "onDelete": "set null",
454
+ "onUpdate": "no action"
455
+ },
456
+ "ai_usage_organization_id_organizations_id_fk": {
457
+ "name": "ai_usage_organization_id_organizations_id_fk",
458
+ "tableFrom": "ai_usage",
459
+ "tableTo": "organizations",
460
+ "columnsFrom": [
461
+ "organization_id"
462
+ ],
463
+ "columnsTo": [
464
+ "id"
465
+ ],
466
+ "onDelete": "set null",
467
+ "onUpdate": "no action"
468
+ }
469
+ },
470
+ "compositePrimaryKeys": {},
471
+ "uniqueConstraints": {},
472
+ "checkConstraints": {}
473
+ },
474
+ "apikeys": {
475
+ "name": "apikeys",
476
+ "columns": {
477
+ "id": {
478
+ "name": "id",
479
+ "type": "text",
480
+ "primaryKey": true,
481
+ "notNull": true,
482
+ "autoincrement": false
483
+ },
484
+ "name": {
485
+ "name": "name",
486
+ "type": "text",
487
+ "primaryKey": false,
488
+ "notNull": false,
489
+ "autoincrement": false
490
+ },
491
+ "start": {
492
+ "name": "start",
493
+ "type": "text",
494
+ "primaryKey": false,
495
+ "notNull": false,
496
+ "autoincrement": false
497
+ },
498
+ "prefix": {
499
+ "name": "prefix",
500
+ "type": "text",
501
+ "primaryKey": false,
502
+ "notNull": false,
503
+ "autoincrement": false
504
+ },
505
+ "key": {
506
+ "name": "key",
507
+ "type": "text",
508
+ "primaryKey": false,
509
+ "notNull": true,
510
+ "autoincrement": false
511
+ },
512
+ "config_id": {
513
+ "name": "config_id",
514
+ "type": "text",
515
+ "primaryKey": false,
516
+ "notNull": true,
517
+ "autoincrement": false,
518
+ "default": "'default'"
519
+ },
520
+ "reference_id": {
521
+ "name": "reference_id",
522
+ "type": "text",
523
+ "primaryKey": false,
524
+ "notNull": true,
525
+ "autoincrement": false
526
+ },
527
+ "user_id": {
528
+ "name": "user_id",
529
+ "type": "text",
530
+ "primaryKey": false,
531
+ "notNull": false,
532
+ "autoincrement": false
533
+ },
534
+ "refill_interval": {
535
+ "name": "refill_interval",
536
+ "type": "integer",
537
+ "primaryKey": false,
538
+ "notNull": false,
539
+ "autoincrement": false
540
+ },
541
+ "refill_amount": {
542
+ "name": "refill_amount",
543
+ "type": "integer",
544
+ "primaryKey": false,
545
+ "notNull": false,
546
+ "autoincrement": false
547
+ },
548
+ "last_refill_at": {
549
+ "name": "last_refill_at",
550
+ "type": "integer",
551
+ "primaryKey": false,
552
+ "notNull": false,
553
+ "autoincrement": false
554
+ },
555
+ "enabled": {
556
+ "name": "enabled",
557
+ "type": "integer",
558
+ "primaryKey": false,
559
+ "notNull": true,
560
+ "autoincrement": false
561
+ },
562
+ "rate_limit_enabled": {
563
+ "name": "rate_limit_enabled",
564
+ "type": "integer",
565
+ "primaryKey": false,
566
+ "notNull": true,
567
+ "autoincrement": false
568
+ },
569
+ "rate_limit_time_window": {
570
+ "name": "rate_limit_time_window",
571
+ "type": "integer",
572
+ "primaryKey": false,
573
+ "notNull": false,
574
+ "autoincrement": false
575
+ },
576
+ "rate_limit_max": {
577
+ "name": "rate_limit_max",
578
+ "type": "integer",
579
+ "primaryKey": false,
580
+ "notNull": false,
581
+ "autoincrement": false
582
+ },
583
+ "request_count": {
584
+ "name": "request_count",
585
+ "type": "integer",
586
+ "primaryKey": false,
587
+ "notNull": true,
588
+ "autoincrement": false
589
+ },
590
+ "remaining": {
591
+ "name": "remaining",
592
+ "type": "integer",
593
+ "primaryKey": false,
594
+ "notNull": false,
595
+ "autoincrement": false
596
+ },
597
+ "last_request": {
598
+ "name": "last_request",
599
+ "type": "integer",
600
+ "primaryKey": false,
601
+ "notNull": false,
602
+ "autoincrement": false
603
+ },
604
+ "expires_at": {
605
+ "name": "expires_at",
606
+ "type": "integer",
607
+ "primaryKey": false,
608
+ "notNull": false,
609
+ "autoincrement": false
610
+ },
611
+ "created_at": {
612
+ "name": "created_at",
613
+ "type": "integer",
614
+ "primaryKey": false,
615
+ "notNull": true,
616
+ "autoincrement": false
617
+ },
618
+ "updated_at": {
619
+ "name": "updated_at",
620
+ "type": "integer",
621
+ "primaryKey": false,
622
+ "notNull": true,
623
+ "autoincrement": false
624
+ },
625
+ "permissions": {
626
+ "name": "permissions",
627
+ "type": "text",
628
+ "primaryKey": false,
629
+ "notNull": false,
630
+ "autoincrement": false
631
+ },
632
+ "metadata": {
633
+ "name": "metadata",
634
+ "type": "text",
635
+ "primaryKey": false,
636
+ "notNull": false,
637
+ "autoincrement": false
638
+ }
639
+ },
640
+ "indexes": {},
641
+ "foreignKeys": {
642
+ "apikeys_user_id_users_id_fk": {
643
+ "name": "apikeys_user_id_users_id_fk",
644
+ "tableFrom": "apikeys",
645
+ "tableTo": "users",
646
+ "columnsFrom": [
647
+ "user_id"
648
+ ],
649
+ "columnsTo": [
650
+ "id"
651
+ ],
652
+ "onDelete": "no action",
653
+ "onUpdate": "no action"
654
+ }
655
+ },
656
+ "compositePrimaryKeys": {},
657
+ "uniqueConstraints": {},
658
+ "checkConstraints": {}
659
+ },
660
+ "chats": {
661
+ "name": "chats",
662
+ "columns": {
663
+ "id": {
664
+ "name": "id",
665
+ "type": "text",
666
+ "primaryKey": true,
667
+ "notNull": true,
668
+ "autoincrement": false
669
+ },
670
+ "user_id": {
671
+ "name": "user_id",
672
+ "type": "text",
673
+ "primaryKey": false,
674
+ "notNull": true,
675
+ "autoincrement": false
676
+ },
677
+ "title": {
678
+ "name": "title",
679
+ "type": "text",
680
+ "primaryKey": false,
681
+ "notNull": false,
682
+ "autoincrement": false
683
+ },
684
+ "type": {
685
+ "name": "type",
686
+ "type": "text",
687
+ "primaryKey": false,
688
+ "notNull": false,
689
+ "autoincrement": false
690
+ },
691
+ "conversation": {
692
+ "name": "conversation",
693
+ "type": "text",
694
+ "primaryKey": false,
695
+ "notNull": false,
696
+ "autoincrement": false
697
+ },
698
+ "created_at": {
699
+ "name": "created_at",
700
+ "type": "integer",
701
+ "primaryKey": false,
702
+ "notNull": false,
703
+ "autoincrement": false
704
+ },
705
+ "updated_at": {
706
+ "name": "updated_at",
707
+ "type": "integer",
708
+ "primaryKey": false,
709
+ "notNull": true,
710
+ "autoincrement": false
711
+ }
712
+ },
713
+ "indexes": {},
714
+ "foreignKeys": {
715
+ "chats_user_id_users_id_fk": {
716
+ "name": "chats_user_id_users_id_fk",
717
+ "tableFrom": "chats",
718
+ "tableTo": "users",
719
+ "columnsFrom": [
720
+ "user_id"
721
+ ],
722
+ "columnsTo": [
723
+ "id"
724
+ ],
725
+ "onDelete": "cascade",
726
+ "onUpdate": "no action"
727
+ }
728
+ },
729
+ "compositePrimaryKeys": {},
730
+ "uniqueConstraints": {},
731
+ "checkConstraints": {}
732
+ },
733
+ "files": {
734
+ "name": "files",
735
+ "columns": {
736
+ "id": {
737
+ "name": "id",
738
+ "type": "text",
739
+ "primaryKey": true,
740
+ "notNull": true,
741
+ "autoincrement": false
742
+ },
743
+ "created_at": {
744
+ "name": "created_at",
745
+ "type": "integer",
746
+ "primaryKey": false,
747
+ "notNull": true,
748
+ "autoincrement": false
749
+ },
750
+ "updated_at": {
751
+ "name": "updated_at",
752
+ "type": "integer",
753
+ "primaryKey": false,
754
+ "notNull": false,
755
+ "autoincrement": false
756
+ },
757
+ "deleted_at": {
758
+ "name": "deleted_at",
759
+ "type": "integer",
760
+ "primaryKey": false,
761
+ "notNull": false,
762
+ "autoincrement": false
763
+ },
764
+ "user_id": {
765
+ "name": "user_id",
766
+ "type": "text",
767
+ "primaryKey": false,
768
+ "notNull": false,
769
+ "autoincrement": false
770
+ },
771
+ "member_id": {
772
+ "name": "member_id",
773
+ "type": "text",
774
+ "primaryKey": false,
775
+ "notNull": false,
776
+ "autoincrement": false
777
+ },
778
+ "organization_id": {
779
+ "name": "organization_id",
780
+ "type": "text",
781
+ "primaryKey": false,
782
+ "notNull": false,
783
+ "autoincrement": false
784
+ },
785
+ "bucket": {
786
+ "name": "bucket",
787
+ "type": "text",
788
+ "primaryKey": false,
789
+ "notNull": true,
790
+ "autoincrement": false
791
+ },
792
+ "key": {
793
+ "name": "key",
794
+ "type": "text",
795
+ "primaryKey": false,
796
+ "notNull": true,
797
+ "autoincrement": false
798
+ },
799
+ "original_name": {
800
+ "name": "original_name",
801
+ "type": "text",
802
+ "primaryKey": false,
803
+ "notNull": true,
804
+ "autoincrement": false
805
+ },
806
+ "original_extension": {
807
+ "name": "original_extension",
808
+ "type": "text",
809
+ "primaryKey": false,
810
+ "notNull": false,
811
+ "autoincrement": false
812
+ },
813
+ "content_type": {
814
+ "name": "content_type",
815
+ "type": "text",
816
+ "primaryKey": false,
817
+ "notNull": true,
818
+ "autoincrement": false
819
+ },
820
+ "size_bytes": {
821
+ "name": "size_bytes",
822
+ "type": "integer",
823
+ "primaryKey": false,
824
+ "notNull": false,
825
+ "autoincrement": false
826
+ },
827
+ "etag": {
828
+ "name": "etag",
829
+ "type": "text",
830
+ "primaryKey": false,
831
+ "notNull": false,
832
+ "autoincrement": false
833
+ },
834
+ "checksum_sha256": {
835
+ "name": "checksum_sha256",
836
+ "type": "text",
837
+ "primaryKey": false,
838
+ "notNull": false,
839
+ "autoincrement": false
840
+ },
841
+ "metadata": {
842
+ "name": "metadata",
843
+ "type": "text",
844
+ "primaryKey": false,
845
+ "notNull": false,
846
+ "autoincrement": false
847
+ },
848
+ "status": {
849
+ "name": "status",
850
+ "type": "text",
851
+ "primaryKey": false,
852
+ "notNull": true,
853
+ "autoincrement": false
854
+ },
855
+ "uploaded_at": {
856
+ "name": "uploaded_at",
857
+ "type": "integer",
858
+ "primaryKey": false,
859
+ "notNull": false,
860
+ "autoincrement": false
861
+ }
862
+ },
863
+ "indexes": {
864
+ "files_bucket_key_unique": {
865
+ "name": "files_bucket_key_unique",
866
+ "columns": [
867
+ "bucket",
868
+ "key"
869
+ ],
870
+ "isUnique": true
871
+ }
872
+ },
873
+ "foreignKeys": {
874
+ "files_user_id_users_id_fk": {
875
+ "name": "files_user_id_users_id_fk",
876
+ "tableFrom": "files",
877
+ "tableTo": "users",
878
+ "columnsFrom": [
879
+ "user_id"
880
+ ],
881
+ "columnsTo": [
882
+ "id"
883
+ ],
884
+ "onDelete": "set null",
885
+ "onUpdate": "no action"
886
+ },
887
+ "files_member_id_members_id_fk": {
888
+ "name": "files_member_id_members_id_fk",
889
+ "tableFrom": "files",
890
+ "tableTo": "members",
891
+ "columnsFrom": [
892
+ "member_id"
893
+ ],
894
+ "columnsTo": [
895
+ "id"
896
+ ],
897
+ "onDelete": "set null",
898
+ "onUpdate": "no action"
899
+ },
900
+ "files_organization_id_organizations_id_fk": {
901
+ "name": "files_organization_id_organizations_id_fk",
902
+ "tableFrom": "files",
903
+ "tableTo": "organizations",
904
+ "columnsFrom": [
905
+ "organization_id"
906
+ ],
907
+ "columnsTo": [
908
+ "id"
909
+ ],
910
+ "onDelete": "set null",
911
+ "onUpdate": "no action"
912
+ }
913
+ },
914
+ "compositePrimaryKeys": {},
915
+ "uniqueConstraints": {},
916
+ "checkConstraints": {}
917
+ },
918
+ "invitations": {
919
+ "name": "invitations",
920
+ "columns": {
921
+ "id": {
922
+ "name": "id",
923
+ "type": "text",
924
+ "primaryKey": true,
925
+ "notNull": true,
926
+ "autoincrement": false
927
+ },
928
+ "organization_id": {
929
+ "name": "organization_id",
930
+ "type": "text",
931
+ "primaryKey": false,
932
+ "notNull": true,
933
+ "autoincrement": false
934
+ },
935
+ "member_id": {
936
+ "name": "member_id",
937
+ "type": "text",
938
+ "primaryKey": false,
939
+ "notNull": false,
940
+ "autoincrement": false
941
+ },
942
+ "email": {
943
+ "name": "email",
944
+ "type": "text",
945
+ "primaryKey": false,
946
+ "notNull": true,
947
+ "autoincrement": false
948
+ },
949
+ "role": {
950
+ "name": "role",
951
+ "type": "text",
952
+ "primaryKey": false,
953
+ "notNull": false,
954
+ "autoincrement": false
955
+ },
956
+ "status": {
957
+ "name": "status",
958
+ "type": "text",
959
+ "primaryKey": false,
960
+ "notNull": true,
961
+ "autoincrement": false
962
+ },
963
+ "created_at": {
964
+ "name": "created_at",
965
+ "type": "integer",
966
+ "primaryKey": false,
967
+ "notNull": true,
968
+ "autoincrement": false
969
+ },
970
+ "expires_at": {
971
+ "name": "expires_at",
972
+ "type": "integer",
973
+ "primaryKey": false,
974
+ "notNull": true,
975
+ "autoincrement": false
976
+ },
977
+ "inviter_id": {
978
+ "name": "inviter_id",
979
+ "type": "text",
980
+ "primaryKey": false,
981
+ "notNull": true,
982
+ "autoincrement": false
983
+ }
984
+ },
985
+ "indexes": {},
986
+ "foreignKeys": {
987
+ "invitations_organization_id_organizations_id_fk": {
988
+ "name": "invitations_organization_id_organizations_id_fk",
989
+ "tableFrom": "invitations",
990
+ "tableTo": "organizations",
991
+ "columnsFrom": [
992
+ "organization_id"
993
+ ],
994
+ "columnsTo": [
995
+ "id"
996
+ ],
997
+ "onDelete": "no action",
998
+ "onUpdate": "no action"
999
+ },
1000
+ "invitations_member_id_members_id_fk": {
1001
+ "name": "invitations_member_id_members_id_fk",
1002
+ "tableFrom": "invitations",
1003
+ "tableTo": "members",
1004
+ "columnsFrom": [
1005
+ "member_id"
1006
+ ],
1007
+ "columnsTo": [
1008
+ "id"
1009
+ ],
1010
+ "onDelete": "no action",
1011
+ "onUpdate": "no action"
1012
+ },
1013
+ "invitations_inviter_id_users_id_fk": {
1014
+ "name": "invitations_inviter_id_users_id_fk",
1015
+ "tableFrom": "invitations",
1016
+ "tableTo": "users",
1017
+ "columnsFrom": [
1018
+ "inviter_id"
1019
+ ],
1020
+ "columnsTo": [
1021
+ "id"
1022
+ ],
1023
+ "onDelete": "no action",
1024
+ "onUpdate": "no action"
1025
+ }
1026
+ },
1027
+ "compositePrimaryKeys": {},
1028
+ "uniqueConstraints": {},
1029
+ "checkConstraints": {}
1030
+ },
1031
+ "jwks": {
1032
+ "name": "jwks",
1033
+ "columns": {
1034
+ "id": {
1035
+ "name": "id",
1036
+ "type": "text",
1037
+ "primaryKey": true,
1038
+ "notNull": true,
1039
+ "autoincrement": false
1040
+ },
1041
+ "public_key": {
1042
+ "name": "public_key",
1043
+ "type": "text",
1044
+ "primaryKey": false,
1045
+ "notNull": true,
1046
+ "autoincrement": false
1047
+ },
1048
+ "private_key": {
1049
+ "name": "private_key",
1050
+ "type": "text",
1051
+ "primaryKey": false,
1052
+ "notNull": true,
1053
+ "autoincrement": false
1054
+ },
1055
+ "created_at": {
1056
+ "name": "created_at",
1057
+ "type": "integer",
1058
+ "primaryKey": false,
1059
+ "notNull": true,
1060
+ "autoincrement": false
1061
+ },
1062
+ "expires_at": {
1063
+ "name": "expires_at",
1064
+ "type": "integer",
1065
+ "primaryKey": false,
1066
+ "notNull": false,
1067
+ "autoincrement": false
1068
+ },
1069
+ "alg": {
1070
+ "name": "alg",
1071
+ "type": "text",
1072
+ "primaryKey": false,
1073
+ "notNull": false,
1074
+ "autoincrement": false
1075
+ },
1076
+ "crv": {
1077
+ "name": "crv",
1078
+ "type": "text",
1079
+ "primaryKey": false,
1080
+ "notNull": false,
1081
+ "autoincrement": false
1082
+ }
1083
+ },
1084
+ "indexes": {},
1085
+ "foreignKeys": {},
1086
+ "compositePrimaryKeys": {},
1087
+ "uniqueConstraints": {},
1088
+ "checkConstraints": {}
1089
+ },
1090
+ "mcp_allowlist_entries": {
1091
+ "name": "mcp_allowlist_entries",
1092
+ "columns": {
1093
+ "id": {
1094
+ "name": "id",
1095
+ "type": "text",
1096
+ "primaryKey": true,
1097
+ "notNull": true,
1098
+ "autoincrement": false
1099
+ },
1100
+ "oauth_client_id": {
1101
+ "name": "oauth_client_id",
1102
+ "type": "text",
1103
+ "primaryKey": false,
1104
+ "notNull": true,
1105
+ "autoincrement": false
1106
+ },
1107
+ "user_id": {
1108
+ "name": "user_id",
1109
+ "type": "text",
1110
+ "primaryKey": false,
1111
+ "notNull": true,
1112
+ "autoincrement": false
1113
+ },
1114
+ "organization_id": {
1115
+ "name": "organization_id",
1116
+ "type": "text",
1117
+ "primaryKey": false,
1118
+ "notNull": true,
1119
+ "autoincrement": false
1120
+ },
1121
+ "created_at": {
1122
+ "name": "created_at",
1123
+ "type": "integer",
1124
+ "primaryKey": false,
1125
+ "notNull": true,
1126
+ "autoincrement": false
1127
+ }
1128
+ },
1129
+ "indexes": {
1130
+ "mcp_allowlist_client_user_org_unique": {
1131
+ "name": "mcp_allowlist_client_user_org_unique",
1132
+ "columns": [
1133
+ "oauth_client_id",
1134
+ "user_id",
1135
+ "organization_id"
1136
+ ],
1137
+ "isUnique": true
1138
+ }
1139
+ },
1140
+ "foreignKeys": {
1141
+ "mcp_allowlist_entries_user_id_users_id_fk": {
1142
+ "name": "mcp_allowlist_entries_user_id_users_id_fk",
1143
+ "tableFrom": "mcp_allowlist_entries",
1144
+ "tableTo": "users",
1145
+ "columnsFrom": [
1146
+ "user_id"
1147
+ ],
1148
+ "columnsTo": [
1149
+ "id"
1150
+ ],
1151
+ "onDelete": "cascade",
1152
+ "onUpdate": "no action"
1153
+ },
1154
+ "mcp_allowlist_entries_organization_id_organizations_id_fk": {
1155
+ "name": "mcp_allowlist_entries_organization_id_organizations_id_fk",
1156
+ "tableFrom": "mcp_allowlist_entries",
1157
+ "tableTo": "organizations",
1158
+ "columnsFrom": [
1159
+ "organization_id"
1160
+ ],
1161
+ "columnsTo": [
1162
+ "id"
1163
+ ],
1164
+ "onDelete": "cascade",
1165
+ "onUpdate": "no action"
1166
+ }
1167
+ },
1168
+ "compositePrimaryKeys": {},
1169
+ "uniqueConstraints": {},
1170
+ "checkConstraints": {}
1171
+ },
1172
+ "members": {
1173
+ "name": "members",
1174
+ "columns": {
1175
+ "id": {
1176
+ "name": "id",
1177
+ "type": "text",
1178
+ "primaryKey": true,
1179
+ "notNull": true,
1180
+ "autoincrement": false
1181
+ },
1182
+ "organization_id": {
1183
+ "name": "organization_id",
1184
+ "type": "text",
1185
+ "primaryKey": false,
1186
+ "notNull": true,
1187
+ "autoincrement": false
1188
+ },
1189
+ "user_id": {
1190
+ "name": "user_id",
1191
+ "type": "text",
1192
+ "primaryKey": false,
1193
+ "notNull": false,
1194
+ "autoincrement": false
1195
+ },
1196
+ "email": {
1197
+ "name": "email",
1198
+ "type": "text",
1199
+ "primaryKey": false,
1200
+ "notNull": false,
1201
+ "autoincrement": false
1202
+ },
1203
+ "name": {
1204
+ "name": "name",
1205
+ "type": "text",
1206
+ "primaryKey": false,
1207
+ "notNull": true,
1208
+ "autoincrement": false,
1209
+ "default": "''"
1210
+ },
1211
+ "image": {
1212
+ "name": "image",
1213
+ "type": "text",
1214
+ "primaryKey": false,
1215
+ "notNull": false,
1216
+ "autoincrement": false
1217
+ },
1218
+ "role": {
1219
+ "name": "role",
1220
+ "type": "text",
1221
+ "primaryKey": false,
1222
+ "notNull": true,
1223
+ "autoincrement": false
1224
+ },
1225
+ "created_at": {
1226
+ "name": "created_at",
1227
+ "type": "integer",
1228
+ "primaryKey": false,
1229
+ "notNull": true,
1230
+ "autoincrement": false
1231
+ },
1232
+ "deleted_at": {
1233
+ "name": "deleted_at",
1234
+ "type": "integer",
1235
+ "primaryKey": false,
1236
+ "notNull": false,
1237
+ "autoincrement": false
1238
+ },
1239
+ "preferences": {
1240
+ "name": "preferences",
1241
+ "type": "text",
1242
+ "primaryKey": false,
1243
+ "notNull": false,
1244
+ "autoincrement": false,
1245
+ "default": "'{}'"
1246
+ },
1247
+ "metadata": {
1248
+ "name": "metadata",
1249
+ "type": "text",
1250
+ "primaryKey": false,
1251
+ "notNull": false,
1252
+ "autoincrement": false,
1253
+ "default": "'{}'"
1254
+ },
1255
+ "onboarding": {
1256
+ "name": "onboarding",
1257
+ "type": "integer",
1258
+ "primaryKey": false,
1259
+ "notNull": false,
1260
+ "autoincrement": false
1261
+ },
1262
+ "flags": {
1263
+ "name": "flags",
1264
+ "type": "text",
1265
+ "primaryKey": false,
1266
+ "notNull": false,
1267
+ "autoincrement": false,
1268
+ "default": "'[]'"
1269
+ }
1270
+ },
1271
+ "indexes": {
1272
+ "members_attached_user_organization_unique": {
1273
+ "name": "members_attached_user_organization_unique",
1274
+ "columns": [
1275
+ "user_id",
1276
+ "organization_id"
1277
+ ],
1278
+ "isUnique": true,
1279
+ "where": "\"members\".\"user_id\" is not null"
1280
+ },
1281
+ "members_live_pending_email_organization_unique": {
1282
+ "name": "members_live_pending_email_organization_unique",
1283
+ "columns": [
1284
+ "email",
1285
+ "organization_id"
1286
+ ],
1287
+ "isUnique": true,
1288
+ "where": "\"members\".\"user_id\" is null and \"members\".\"deleted_at\" is null"
1289
+ }
1290
+ },
1291
+ "foreignKeys": {
1292
+ "members_organization_id_organizations_id_fk": {
1293
+ "name": "members_organization_id_organizations_id_fk",
1294
+ "tableFrom": "members",
1295
+ "tableTo": "organizations",
1296
+ "columnsFrom": [
1297
+ "organization_id"
1298
+ ],
1299
+ "columnsTo": [
1300
+ "id"
1301
+ ],
1302
+ "onDelete": "no action",
1303
+ "onUpdate": "no action"
1304
+ },
1305
+ "members_user_id_users_id_fk": {
1306
+ "name": "members_user_id_users_id_fk",
1307
+ "tableFrom": "members",
1308
+ "tableTo": "users",
1309
+ "columnsFrom": [
1310
+ "user_id"
1311
+ ],
1312
+ "columnsTo": [
1313
+ "id"
1314
+ ],
1315
+ "onDelete": "no action",
1316
+ "onUpdate": "no action"
1317
+ }
1318
+ },
1319
+ "compositePrimaryKeys": {},
1320
+ "uniqueConstraints": {},
1321
+ "checkConstraints": {}
1322
+ },
1323
+ "notification_devices": {
1324
+ "name": "notification_devices",
1325
+ "columns": {
1326
+ "id": {
1327
+ "name": "id",
1328
+ "type": "text",
1329
+ "primaryKey": true,
1330
+ "notNull": true,
1331
+ "autoincrement": false
1332
+ },
1333
+ "user_id": {
1334
+ "name": "user_id",
1335
+ "type": "text",
1336
+ "primaryKey": false,
1337
+ "notNull": true,
1338
+ "autoincrement": false
1339
+ },
1340
+ "platform": {
1341
+ "name": "platform",
1342
+ "type": "text",
1343
+ "primaryKey": false,
1344
+ "notNull": true,
1345
+ "autoincrement": false
1346
+ },
1347
+ "endpoint": {
1348
+ "name": "endpoint",
1349
+ "type": "text",
1350
+ "primaryKey": false,
1351
+ "notNull": false,
1352
+ "autoincrement": false
1353
+ },
1354
+ "subscription": {
1355
+ "name": "subscription",
1356
+ "type": "text",
1357
+ "primaryKey": false,
1358
+ "notNull": false,
1359
+ "autoincrement": false
1360
+ },
1361
+ "token": {
1362
+ "name": "token",
1363
+ "type": "text",
1364
+ "primaryKey": false,
1365
+ "notNull": false,
1366
+ "autoincrement": false
1367
+ },
1368
+ "label": {
1369
+ "name": "label",
1370
+ "type": "text",
1371
+ "primaryKey": false,
1372
+ "notNull": false,
1373
+ "autoincrement": false
1374
+ },
1375
+ "enabled": {
1376
+ "name": "enabled",
1377
+ "type": "integer",
1378
+ "primaryKey": false,
1379
+ "notNull": true,
1380
+ "autoincrement": false,
1381
+ "default": true
1382
+ },
1383
+ "created_at": {
1384
+ "name": "created_at",
1385
+ "type": "integer",
1386
+ "primaryKey": false,
1387
+ "notNull": true,
1388
+ "autoincrement": false
1389
+ },
1390
+ "updated_at": {
1391
+ "name": "updated_at",
1392
+ "type": "integer",
1393
+ "primaryKey": false,
1394
+ "notNull": true,
1395
+ "autoincrement": false
1396
+ }
1397
+ },
1398
+ "indexes": {
1399
+ "notification_devices_endpoint_unique": {
1400
+ "name": "notification_devices_endpoint_unique",
1401
+ "columns": [
1402
+ "endpoint"
1403
+ ],
1404
+ "isUnique": true
1405
+ },
1406
+ "notification_devices_token_unique": {
1407
+ "name": "notification_devices_token_unique",
1408
+ "columns": [
1409
+ "token"
1410
+ ],
1411
+ "isUnique": true
1412
+ }
1413
+ },
1414
+ "foreignKeys": {
1415
+ "notification_devices_user_id_users_id_fk": {
1416
+ "name": "notification_devices_user_id_users_id_fk",
1417
+ "tableFrom": "notification_devices",
1418
+ "tableTo": "users",
1419
+ "columnsFrom": [
1420
+ "user_id"
1421
+ ],
1422
+ "columnsTo": [
1423
+ "id"
1424
+ ],
1425
+ "onDelete": "cascade",
1426
+ "onUpdate": "no action"
1427
+ }
1428
+ },
1429
+ "compositePrimaryKeys": {},
1430
+ "uniqueConstraints": {},
1431
+ "checkConstraints": {}
1432
+ },
1433
+ "notification_preferences": {
1434
+ "name": "notification_preferences",
1435
+ "columns": {
1436
+ "id": {
1437
+ "name": "id",
1438
+ "type": "text",
1439
+ "primaryKey": true,
1440
+ "notNull": true,
1441
+ "autoincrement": false
1442
+ },
1443
+ "member_id": {
1444
+ "name": "member_id",
1445
+ "type": "text",
1446
+ "primaryKey": false,
1447
+ "notNull": true,
1448
+ "autoincrement": false
1449
+ },
1450
+ "kind": {
1451
+ "name": "kind",
1452
+ "type": "text",
1453
+ "primaryKey": false,
1454
+ "notNull": true,
1455
+ "autoincrement": false
1456
+ },
1457
+ "channel": {
1458
+ "name": "channel",
1459
+ "type": "text",
1460
+ "primaryKey": false,
1461
+ "notNull": true,
1462
+ "autoincrement": false
1463
+ },
1464
+ "created_at": {
1465
+ "name": "created_at",
1466
+ "type": "integer",
1467
+ "primaryKey": false,
1468
+ "notNull": true,
1469
+ "autoincrement": false
1470
+ },
1471
+ "updated_at": {
1472
+ "name": "updated_at",
1473
+ "type": "integer",
1474
+ "primaryKey": false,
1475
+ "notNull": true,
1476
+ "autoincrement": false
1477
+ }
1478
+ },
1479
+ "indexes": {
1480
+ "notification_preferences_member_kind_channel_unique": {
1481
+ "name": "notification_preferences_member_kind_channel_unique",
1482
+ "columns": [
1483
+ "member_id",
1484
+ "kind",
1485
+ "channel"
1486
+ ],
1487
+ "isUnique": true
1488
+ }
1489
+ },
1490
+ "foreignKeys": {
1491
+ "notification_preferences_member_id_members_id_fk": {
1492
+ "name": "notification_preferences_member_id_members_id_fk",
1493
+ "tableFrom": "notification_preferences",
1494
+ "tableTo": "members",
1495
+ "columnsFrom": [
1496
+ "member_id"
1497
+ ],
1498
+ "columnsTo": [
1499
+ "id"
1500
+ ],
1501
+ "onDelete": "cascade",
1502
+ "onUpdate": "no action"
1503
+ }
1504
+ },
1505
+ "compositePrimaryKeys": {},
1506
+ "uniqueConstraints": {},
1507
+ "checkConstraints": {}
1508
+ },
1509
+ "notification_send_logs": {
1510
+ "name": "notification_send_logs",
1511
+ "columns": {
1512
+ "id": {
1513
+ "name": "id",
1514
+ "type": "text",
1515
+ "primaryKey": true,
1516
+ "notNull": true,
1517
+ "autoincrement": false
1518
+ },
1519
+ "batch_id": {
1520
+ "name": "batch_id",
1521
+ "type": "text",
1522
+ "primaryKey": false,
1523
+ "notNull": true,
1524
+ "autoincrement": false
1525
+ },
1526
+ "notification_id": {
1527
+ "name": "notification_id",
1528
+ "type": "text",
1529
+ "primaryKey": false,
1530
+ "notNull": true,
1531
+ "autoincrement": false
1532
+ },
1533
+ "user_id": {
1534
+ "name": "user_id",
1535
+ "type": "text",
1536
+ "primaryKey": false,
1537
+ "notNull": true,
1538
+ "autoincrement": false
1539
+ },
1540
+ "device_id": {
1541
+ "name": "device_id",
1542
+ "type": "text",
1543
+ "primaryKey": false,
1544
+ "notNull": false,
1545
+ "autoincrement": false
1546
+ },
1547
+ "channel": {
1548
+ "name": "channel",
1549
+ "type": "text",
1550
+ "primaryKey": false,
1551
+ "notNull": true,
1552
+ "autoincrement": false
1553
+ },
1554
+ "provider": {
1555
+ "name": "provider",
1556
+ "type": "text",
1557
+ "primaryKey": false,
1558
+ "notNull": false,
1559
+ "autoincrement": false
1560
+ },
1561
+ "title": {
1562
+ "name": "title",
1563
+ "type": "text",
1564
+ "primaryKey": false,
1565
+ "notNull": true,
1566
+ "autoincrement": false
1567
+ },
1568
+ "body": {
1569
+ "name": "body",
1570
+ "type": "text",
1571
+ "primaryKey": false,
1572
+ "notNull": true,
1573
+ "autoincrement": false
1574
+ },
1575
+ "data": {
1576
+ "name": "data",
1577
+ "type": "text",
1578
+ "primaryKey": false,
1579
+ "notNull": false,
1580
+ "autoincrement": false
1581
+ },
1582
+ "status": {
1583
+ "name": "status",
1584
+ "type": "text",
1585
+ "primaryKey": false,
1586
+ "notNull": true,
1587
+ "autoincrement": false
1588
+ },
1589
+ "error": {
1590
+ "name": "error",
1591
+ "type": "text",
1592
+ "primaryKey": false,
1593
+ "notNull": false,
1594
+ "autoincrement": false
1595
+ },
1596
+ "job_id": {
1597
+ "name": "job_id",
1598
+ "type": "text",
1599
+ "primaryKey": false,
1600
+ "notNull": false,
1601
+ "autoincrement": false
1602
+ },
1603
+ "created_at": {
1604
+ "name": "created_at",
1605
+ "type": "integer",
1606
+ "primaryKey": false,
1607
+ "notNull": true,
1608
+ "autoincrement": false
1609
+ },
1610
+ "updated_at": {
1611
+ "name": "updated_at",
1612
+ "type": "integer",
1613
+ "primaryKey": false,
1614
+ "notNull": true,
1615
+ "autoincrement": false
1616
+ }
1617
+ },
1618
+ "indexes": {},
1619
+ "foreignKeys": {
1620
+ "notification_send_logs_notification_id_notifications_id_fk": {
1621
+ "name": "notification_send_logs_notification_id_notifications_id_fk",
1622
+ "tableFrom": "notification_send_logs",
1623
+ "tableTo": "notifications",
1624
+ "columnsFrom": [
1625
+ "notification_id"
1626
+ ],
1627
+ "columnsTo": [
1628
+ "id"
1629
+ ],
1630
+ "onDelete": "cascade",
1631
+ "onUpdate": "no action"
1632
+ },
1633
+ "notification_send_logs_user_id_users_id_fk": {
1634
+ "name": "notification_send_logs_user_id_users_id_fk",
1635
+ "tableFrom": "notification_send_logs",
1636
+ "tableTo": "users",
1637
+ "columnsFrom": [
1638
+ "user_id"
1639
+ ],
1640
+ "columnsTo": [
1641
+ "id"
1642
+ ],
1643
+ "onDelete": "cascade",
1644
+ "onUpdate": "no action"
1645
+ },
1646
+ "notification_send_logs_device_id_notification_devices_id_fk": {
1647
+ "name": "notification_send_logs_device_id_notification_devices_id_fk",
1648
+ "tableFrom": "notification_send_logs",
1649
+ "tableTo": "notification_devices",
1650
+ "columnsFrom": [
1651
+ "device_id"
1652
+ ],
1653
+ "columnsTo": [
1654
+ "id"
1655
+ ],
1656
+ "onDelete": "set null",
1657
+ "onUpdate": "no action"
1658
+ }
1659
+ },
1660
+ "compositePrimaryKeys": {},
1661
+ "uniqueConstraints": {},
1662
+ "checkConstraints": {}
1663
+ },
1664
+ "notifications": {
1665
+ "name": "notifications",
1666
+ "columns": {
1667
+ "id": {
1668
+ "name": "id",
1669
+ "type": "text",
1670
+ "primaryKey": true,
1671
+ "notNull": true,
1672
+ "autoincrement": false
1673
+ },
1674
+ "member_id": {
1675
+ "name": "member_id",
1676
+ "type": "text",
1677
+ "primaryKey": false,
1678
+ "notNull": true,
1679
+ "autoincrement": false
1680
+ },
1681
+ "user_id": {
1682
+ "name": "user_id",
1683
+ "type": "text",
1684
+ "primaryKey": false,
1685
+ "notNull": true,
1686
+ "autoincrement": false
1687
+ },
1688
+ "kind": {
1689
+ "name": "kind",
1690
+ "type": "text",
1691
+ "primaryKey": false,
1692
+ "notNull": true,
1693
+ "autoincrement": false
1694
+ },
1695
+ "title": {
1696
+ "name": "title",
1697
+ "type": "text",
1698
+ "primaryKey": false,
1699
+ "notNull": true,
1700
+ "autoincrement": false
1701
+ },
1702
+ "body": {
1703
+ "name": "body",
1704
+ "type": "text",
1705
+ "primaryKey": false,
1706
+ "notNull": true,
1707
+ "autoincrement": false
1708
+ },
1709
+ "data": {
1710
+ "name": "data",
1711
+ "type": "text",
1712
+ "primaryKey": false,
1713
+ "notNull": false,
1714
+ "autoincrement": false
1715
+ },
1716
+ "visible_in_inbox": {
1717
+ "name": "visible_in_inbox",
1718
+ "type": "integer",
1719
+ "primaryKey": false,
1720
+ "notNull": true,
1721
+ "autoincrement": false,
1722
+ "default": false
1723
+ },
1724
+ "armed_channels": {
1725
+ "name": "armed_channels",
1726
+ "type": "text",
1727
+ "primaryKey": false,
1728
+ "notNull": true,
1729
+ "autoincrement": false,
1730
+ "default": "'[]'"
1731
+ },
1732
+ "web_pushed_at": {
1733
+ "name": "web_pushed_at",
1734
+ "type": "integer",
1735
+ "primaryKey": false,
1736
+ "notNull": false,
1737
+ "autoincrement": false
1738
+ },
1739
+ "mobile_pushed_at": {
1740
+ "name": "mobile_pushed_at",
1741
+ "type": "integer",
1742
+ "primaryKey": false,
1743
+ "notNull": false,
1744
+ "autoincrement": false
1745
+ },
1746
+ "emailed_at": {
1747
+ "name": "emailed_at",
1748
+ "type": "integer",
1749
+ "primaryKey": false,
1750
+ "notNull": false,
1751
+ "autoincrement": false
1752
+ },
1753
+ "read_at": {
1754
+ "name": "read_at",
1755
+ "type": "integer",
1756
+ "primaryKey": false,
1757
+ "notNull": false,
1758
+ "autoincrement": false
1759
+ },
1760
+ "created_at": {
1761
+ "name": "created_at",
1762
+ "type": "integer",
1763
+ "primaryKey": false,
1764
+ "notNull": true,
1765
+ "autoincrement": false
1766
+ },
1767
+ "updated_at": {
1768
+ "name": "updated_at",
1769
+ "type": "integer",
1770
+ "primaryKey": false,
1771
+ "notNull": true,
1772
+ "autoincrement": false
1773
+ }
1774
+ },
1775
+ "indexes": {},
1776
+ "foreignKeys": {
1777
+ "notifications_member_id_members_id_fk": {
1778
+ "name": "notifications_member_id_members_id_fk",
1779
+ "tableFrom": "notifications",
1780
+ "tableTo": "members",
1781
+ "columnsFrom": [
1782
+ "member_id"
1783
+ ],
1784
+ "columnsTo": [
1785
+ "id"
1786
+ ],
1787
+ "onDelete": "cascade",
1788
+ "onUpdate": "no action"
1789
+ },
1790
+ "notifications_user_id_users_id_fk": {
1791
+ "name": "notifications_user_id_users_id_fk",
1792
+ "tableFrom": "notifications",
1793
+ "tableTo": "users",
1794
+ "columnsFrom": [
1795
+ "user_id"
1796
+ ],
1797
+ "columnsTo": [
1798
+ "id"
1799
+ ],
1800
+ "onDelete": "cascade",
1801
+ "onUpdate": "no action"
1802
+ }
1803
+ },
1804
+ "compositePrimaryKeys": {},
1805
+ "uniqueConstraints": {},
1806
+ "checkConstraints": {}
1807
+ },
1808
+ "oauth_access_tokens": {
1809
+ "name": "oauth_access_tokens",
1810
+ "columns": {
1811
+ "id": {
1812
+ "name": "id",
1813
+ "type": "text",
1814
+ "primaryKey": true,
1815
+ "notNull": true,
1816
+ "autoincrement": false
1817
+ },
1818
+ "token": {
1819
+ "name": "token",
1820
+ "type": "text",
1821
+ "primaryKey": false,
1822
+ "notNull": false,
1823
+ "autoincrement": false
1824
+ },
1825
+ "client_id": {
1826
+ "name": "client_id",
1827
+ "type": "text",
1828
+ "primaryKey": false,
1829
+ "notNull": true,
1830
+ "autoincrement": false
1831
+ },
1832
+ "session_id": {
1833
+ "name": "session_id",
1834
+ "type": "text",
1835
+ "primaryKey": false,
1836
+ "notNull": false,
1837
+ "autoincrement": false
1838
+ },
1839
+ "user_id": {
1840
+ "name": "user_id",
1841
+ "type": "text",
1842
+ "primaryKey": false,
1843
+ "notNull": false,
1844
+ "autoincrement": false
1845
+ },
1846
+ "reference_id": {
1847
+ "name": "reference_id",
1848
+ "type": "text",
1849
+ "primaryKey": false,
1850
+ "notNull": false,
1851
+ "autoincrement": false
1852
+ },
1853
+ "authorization_code_id": {
1854
+ "name": "authorization_code_id",
1855
+ "type": "text",
1856
+ "primaryKey": false,
1857
+ "notNull": false,
1858
+ "autoincrement": false
1859
+ },
1860
+ "resources": {
1861
+ "name": "resources",
1862
+ "type": "text",
1863
+ "primaryKey": false,
1864
+ "notNull": false,
1865
+ "autoincrement": false
1866
+ },
1867
+ "requested_user_info_claims": {
1868
+ "name": "requested_user_info_claims",
1869
+ "type": "text",
1870
+ "primaryKey": false,
1871
+ "notNull": false,
1872
+ "autoincrement": false
1873
+ },
1874
+ "refresh_id": {
1875
+ "name": "refresh_id",
1876
+ "type": "text",
1877
+ "primaryKey": false,
1878
+ "notNull": false,
1879
+ "autoincrement": false
1880
+ },
1881
+ "expires_at": {
1882
+ "name": "expires_at",
1883
+ "type": "integer",
1884
+ "primaryKey": false,
1885
+ "notNull": true,
1886
+ "autoincrement": false
1887
+ },
1888
+ "created_at": {
1889
+ "name": "created_at",
1890
+ "type": "integer",
1891
+ "primaryKey": false,
1892
+ "notNull": true,
1893
+ "autoincrement": false
1894
+ },
1895
+ "revoked": {
1896
+ "name": "revoked",
1897
+ "type": "integer",
1898
+ "primaryKey": false,
1899
+ "notNull": false,
1900
+ "autoincrement": false
1901
+ },
1902
+ "confirmation": {
1903
+ "name": "confirmation",
1904
+ "type": "text",
1905
+ "primaryKey": false,
1906
+ "notNull": false,
1907
+ "autoincrement": false
1908
+ },
1909
+ "scopes": {
1910
+ "name": "scopes",
1911
+ "type": "text",
1912
+ "primaryKey": false,
1913
+ "notNull": true,
1914
+ "autoincrement": false
1915
+ }
1916
+ },
1917
+ "indexes": {
1918
+ "oauth_access_tokens_token_unique": {
1919
+ "name": "oauth_access_tokens_token_unique",
1920
+ "columns": [
1921
+ "token"
1922
+ ],
1923
+ "isUnique": true
1924
+ }
1925
+ },
1926
+ "foreignKeys": {
1927
+ "oauth_access_tokens_client_id_oauth_clients_client_id_fk": {
1928
+ "name": "oauth_access_tokens_client_id_oauth_clients_client_id_fk",
1929
+ "tableFrom": "oauth_access_tokens",
1930
+ "tableTo": "oauth_clients",
1931
+ "columnsFrom": [
1932
+ "client_id"
1933
+ ],
1934
+ "columnsTo": [
1935
+ "client_id"
1936
+ ],
1937
+ "onDelete": "no action",
1938
+ "onUpdate": "no action"
1939
+ },
1940
+ "oauth_access_tokens_session_id_sessions_id_fk": {
1941
+ "name": "oauth_access_tokens_session_id_sessions_id_fk",
1942
+ "tableFrom": "oauth_access_tokens",
1943
+ "tableTo": "sessions",
1944
+ "columnsFrom": [
1945
+ "session_id"
1946
+ ],
1947
+ "columnsTo": [
1948
+ "id"
1949
+ ],
1950
+ "onDelete": "set null",
1951
+ "onUpdate": "no action"
1952
+ },
1953
+ "oauth_access_tokens_user_id_users_id_fk": {
1954
+ "name": "oauth_access_tokens_user_id_users_id_fk",
1955
+ "tableFrom": "oauth_access_tokens",
1956
+ "tableTo": "users",
1957
+ "columnsFrom": [
1958
+ "user_id"
1959
+ ],
1960
+ "columnsTo": [
1961
+ "id"
1962
+ ],
1963
+ "onDelete": "no action",
1964
+ "onUpdate": "no action"
1965
+ },
1966
+ "oauth_access_tokens_refresh_id_oauth_refresh_tokens_id_fk": {
1967
+ "name": "oauth_access_tokens_refresh_id_oauth_refresh_tokens_id_fk",
1968
+ "tableFrom": "oauth_access_tokens",
1969
+ "tableTo": "oauth_refresh_tokens",
1970
+ "columnsFrom": [
1971
+ "refresh_id"
1972
+ ],
1973
+ "columnsTo": [
1974
+ "id"
1975
+ ],
1976
+ "onDelete": "no action",
1977
+ "onUpdate": "no action"
1978
+ }
1979
+ },
1980
+ "compositePrimaryKeys": {},
1981
+ "uniqueConstraints": {},
1982
+ "checkConstraints": {}
1983
+ },
1984
+ "oauth_client_assertions": {
1985
+ "name": "oauth_client_assertions",
1986
+ "columns": {
1987
+ "id": {
1988
+ "name": "id",
1989
+ "type": "text",
1990
+ "primaryKey": true,
1991
+ "notNull": true,
1992
+ "autoincrement": false
1993
+ },
1994
+ "expires_at": {
1995
+ "name": "expires_at",
1996
+ "type": "integer",
1997
+ "primaryKey": false,
1998
+ "notNull": true,
1999
+ "autoincrement": false
2000
+ }
2001
+ },
2002
+ "indexes": {},
2003
+ "foreignKeys": {},
2004
+ "compositePrimaryKeys": {},
2005
+ "uniqueConstraints": {},
2006
+ "checkConstraints": {}
2007
+ },
2008
+ "oauth_client_resources": {
2009
+ "name": "oauth_client_resources",
2010
+ "columns": {
2011
+ "id": {
2012
+ "name": "id",
2013
+ "type": "text",
2014
+ "primaryKey": true,
2015
+ "notNull": true,
2016
+ "autoincrement": false
2017
+ },
2018
+ "client_id": {
2019
+ "name": "client_id",
2020
+ "type": "text",
2021
+ "primaryKey": false,
2022
+ "notNull": true,
2023
+ "autoincrement": false
2024
+ },
2025
+ "resource_id": {
2026
+ "name": "resource_id",
2027
+ "type": "text",
2028
+ "primaryKey": false,
2029
+ "notNull": true,
2030
+ "autoincrement": false
2031
+ },
2032
+ "metadata": {
2033
+ "name": "metadata",
2034
+ "type": "text",
2035
+ "primaryKey": false,
2036
+ "notNull": false,
2037
+ "autoincrement": false
2038
+ },
2039
+ "created_at": {
2040
+ "name": "created_at",
2041
+ "type": "integer",
2042
+ "primaryKey": false,
2043
+ "notNull": false,
2044
+ "autoincrement": false
2045
+ }
2046
+ },
2047
+ "indexes": {
2048
+ "oauth_client_resources_client_resource_unique": {
2049
+ "name": "oauth_client_resources_client_resource_unique",
2050
+ "columns": [
2051
+ "client_id",
2052
+ "resource_id"
2053
+ ],
2054
+ "isUnique": true
2055
+ }
2056
+ },
2057
+ "foreignKeys": {
2058
+ "oauth_client_resources_client_id_oauth_clients_client_id_fk": {
2059
+ "name": "oauth_client_resources_client_id_oauth_clients_client_id_fk",
2060
+ "tableFrom": "oauth_client_resources",
2061
+ "tableTo": "oauth_clients",
2062
+ "columnsFrom": [
2063
+ "client_id"
2064
+ ],
2065
+ "columnsTo": [
2066
+ "client_id"
2067
+ ],
2068
+ "onDelete": "cascade",
2069
+ "onUpdate": "no action"
2070
+ },
2071
+ "oauth_client_resources_resource_id_oauth_resources_identifier_fk": {
2072
+ "name": "oauth_client_resources_resource_id_oauth_resources_identifier_fk",
2073
+ "tableFrom": "oauth_client_resources",
2074
+ "tableTo": "oauth_resources",
2075
+ "columnsFrom": [
2076
+ "resource_id"
2077
+ ],
2078
+ "columnsTo": [
2079
+ "identifier"
2080
+ ],
2081
+ "onDelete": "cascade",
2082
+ "onUpdate": "no action"
2083
+ }
2084
+ },
2085
+ "compositePrimaryKeys": {},
2086
+ "uniqueConstraints": {},
2087
+ "checkConstraints": {}
2088
+ },
2089
+ "oauth_clients": {
2090
+ "name": "oauth_clients",
2091
+ "columns": {
2092
+ "id": {
2093
+ "name": "id",
2094
+ "type": "text",
2095
+ "primaryKey": true,
2096
+ "notNull": true,
2097
+ "autoincrement": false
2098
+ },
2099
+ "client_id": {
2100
+ "name": "client_id",
2101
+ "type": "text",
2102
+ "primaryKey": false,
2103
+ "notNull": true,
2104
+ "autoincrement": false
2105
+ },
2106
+ "client_secret": {
2107
+ "name": "client_secret",
2108
+ "type": "text",
2109
+ "primaryKey": false,
2110
+ "notNull": false,
2111
+ "autoincrement": false
2112
+ },
2113
+ "client_discovery_id": {
2114
+ "name": "client_discovery_id",
2115
+ "type": "text",
2116
+ "primaryKey": false,
2117
+ "notNull": false,
2118
+ "autoincrement": false
2119
+ },
2120
+ "disabled": {
2121
+ "name": "disabled",
2122
+ "type": "integer",
2123
+ "primaryKey": false,
2124
+ "notNull": false,
2125
+ "autoincrement": false,
2126
+ "default": false
2127
+ },
2128
+ "skip_consent": {
2129
+ "name": "skip_consent",
2130
+ "type": "integer",
2131
+ "primaryKey": false,
2132
+ "notNull": false,
2133
+ "autoincrement": false
2134
+ },
2135
+ "enable_end_session": {
2136
+ "name": "enable_end_session",
2137
+ "type": "integer",
2138
+ "primaryKey": false,
2139
+ "notNull": false,
2140
+ "autoincrement": false
2141
+ },
2142
+ "subject_type": {
2143
+ "name": "subject_type",
2144
+ "type": "text",
2145
+ "primaryKey": false,
2146
+ "notNull": false,
2147
+ "autoincrement": false
2148
+ },
2149
+ "scopes": {
2150
+ "name": "scopes",
2151
+ "type": "text",
2152
+ "primaryKey": false,
2153
+ "notNull": false,
2154
+ "autoincrement": false
2155
+ },
2156
+ "client_credentials_scopes": {
2157
+ "name": "client_credentials_scopes",
2158
+ "type": "text",
2159
+ "primaryKey": false,
2160
+ "notNull": false,
2161
+ "autoincrement": false,
2162
+ "default": "'[]'"
2163
+ },
2164
+ "user_id": {
2165
+ "name": "user_id",
2166
+ "type": "text",
2167
+ "primaryKey": false,
2168
+ "notNull": false,
2169
+ "autoincrement": false
2170
+ },
2171
+ "created_at": {
2172
+ "name": "created_at",
2173
+ "type": "integer",
2174
+ "primaryKey": false,
2175
+ "notNull": false,
2176
+ "autoincrement": false
2177
+ },
2178
+ "updated_at": {
2179
+ "name": "updated_at",
2180
+ "type": "integer",
2181
+ "primaryKey": false,
2182
+ "notNull": false,
2183
+ "autoincrement": false
2184
+ },
2185
+ "name": {
2186
+ "name": "name",
2187
+ "type": "text",
2188
+ "primaryKey": false,
2189
+ "notNull": false,
2190
+ "autoincrement": false
2191
+ },
2192
+ "uri": {
2193
+ "name": "uri",
2194
+ "type": "text",
2195
+ "primaryKey": false,
2196
+ "notNull": false,
2197
+ "autoincrement": false
2198
+ },
2199
+ "icon": {
2200
+ "name": "icon",
2201
+ "type": "text",
2202
+ "primaryKey": false,
2203
+ "notNull": false,
2204
+ "autoincrement": false
2205
+ },
2206
+ "contacts": {
2207
+ "name": "contacts",
2208
+ "type": "text",
2209
+ "primaryKey": false,
2210
+ "notNull": false,
2211
+ "autoincrement": false
2212
+ },
2213
+ "tos": {
2214
+ "name": "tos",
2215
+ "type": "text",
2216
+ "primaryKey": false,
2217
+ "notNull": false,
2218
+ "autoincrement": false
2219
+ },
2220
+ "policy": {
2221
+ "name": "policy",
2222
+ "type": "text",
2223
+ "primaryKey": false,
2224
+ "notNull": false,
2225
+ "autoincrement": false
2226
+ },
2227
+ "software_id": {
2228
+ "name": "software_id",
2229
+ "type": "text",
2230
+ "primaryKey": false,
2231
+ "notNull": false,
2232
+ "autoincrement": false
2233
+ },
2234
+ "software_version": {
2235
+ "name": "software_version",
2236
+ "type": "text",
2237
+ "primaryKey": false,
2238
+ "notNull": false,
2239
+ "autoincrement": false
2240
+ },
2241
+ "software_statement": {
2242
+ "name": "software_statement",
2243
+ "type": "text",
2244
+ "primaryKey": false,
2245
+ "notNull": false,
2246
+ "autoincrement": false
2247
+ },
2248
+ "redirect_uris": {
2249
+ "name": "redirect_uris",
2250
+ "type": "text",
2251
+ "primaryKey": false,
2252
+ "notNull": true,
2253
+ "autoincrement": false
2254
+ },
2255
+ "post_logout_redirect_uris": {
2256
+ "name": "post_logout_redirect_uris",
2257
+ "type": "text",
2258
+ "primaryKey": false,
2259
+ "notNull": false,
2260
+ "autoincrement": false
2261
+ },
2262
+ "backchannel_logout_uri": {
2263
+ "name": "backchannel_logout_uri",
2264
+ "type": "text",
2265
+ "primaryKey": false,
2266
+ "notNull": false,
2267
+ "autoincrement": false
2268
+ },
2269
+ "backchannel_logout_session_required": {
2270
+ "name": "backchannel_logout_session_required",
2271
+ "type": "integer",
2272
+ "primaryKey": false,
2273
+ "notNull": false,
2274
+ "autoincrement": false
2275
+ },
2276
+ "token_endpoint_auth_method": {
2277
+ "name": "token_endpoint_auth_method",
2278
+ "type": "text",
2279
+ "primaryKey": false,
2280
+ "notNull": false,
2281
+ "autoincrement": false
2282
+ },
2283
+ "application_type": {
2284
+ "name": "application_type",
2285
+ "type": "text",
2286
+ "primaryKey": false,
2287
+ "notNull": false,
2288
+ "autoincrement": false
2289
+ },
2290
+ "jwks": {
2291
+ "name": "jwks",
2292
+ "type": "text",
2293
+ "primaryKey": false,
2294
+ "notNull": false,
2295
+ "autoincrement": false
2296
+ },
2297
+ "jwks_uri": {
2298
+ "name": "jwks_uri",
2299
+ "type": "text",
2300
+ "primaryKey": false,
2301
+ "notNull": false,
2302
+ "autoincrement": false
2303
+ },
2304
+ "grant_types": {
2305
+ "name": "grant_types",
2306
+ "type": "text",
2307
+ "primaryKey": false,
2308
+ "notNull": false,
2309
+ "autoincrement": false
2310
+ },
2311
+ "response_types": {
2312
+ "name": "response_types",
2313
+ "type": "text",
2314
+ "primaryKey": false,
2315
+ "notNull": false,
2316
+ "autoincrement": false
2317
+ },
2318
+ "require_pkce": {
2319
+ "name": "require_pkce",
2320
+ "type": "integer",
2321
+ "primaryKey": false,
2322
+ "notNull": false,
2323
+ "autoincrement": false
2324
+ },
2325
+ "dpop_bound_access_tokens": {
2326
+ "name": "dpop_bound_access_tokens",
2327
+ "type": "integer",
2328
+ "primaryKey": false,
2329
+ "notNull": false,
2330
+ "autoincrement": false,
2331
+ "default": false
2332
+ },
2333
+ "reference_id": {
2334
+ "name": "reference_id",
2335
+ "type": "text",
2336
+ "primaryKey": false,
2337
+ "notNull": false,
2338
+ "autoincrement": false
2339
+ },
2340
+ "metadata": {
2341
+ "name": "metadata",
2342
+ "type": "text",
2343
+ "primaryKey": false,
2344
+ "notNull": false,
2345
+ "autoincrement": false
2346
+ }
2347
+ },
2348
+ "indexes": {
2349
+ "oauth_clients_client_id_unique": {
2350
+ "name": "oauth_clients_client_id_unique",
2351
+ "columns": [
2352
+ "client_id"
2353
+ ],
2354
+ "isUnique": true
2355
+ }
2356
+ },
2357
+ "foreignKeys": {
2358
+ "oauth_clients_user_id_users_id_fk": {
2359
+ "name": "oauth_clients_user_id_users_id_fk",
2360
+ "tableFrom": "oauth_clients",
2361
+ "tableTo": "users",
2362
+ "columnsFrom": [
2363
+ "user_id"
2364
+ ],
2365
+ "columnsTo": [
2366
+ "id"
2367
+ ],
2368
+ "onDelete": "no action",
2369
+ "onUpdate": "no action"
2370
+ }
2371
+ },
2372
+ "compositePrimaryKeys": {},
2373
+ "uniqueConstraints": {},
2374
+ "checkConstraints": {}
2375
+ },
2376
+ "oauth_consents": {
2377
+ "name": "oauth_consents",
2378
+ "columns": {
2379
+ "id": {
2380
+ "name": "id",
2381
+ "type": "text",
2382
+ "primaryKey": true,
2383
+ "notNull": true,
2384
+ "autoincrement": false
2385
+ },
2386
+ "client_id": {
2387
+ "name": "client_id",
2388
+ "type": "text",
2389
+ "primaryKey": false,
2390
+ "notNull": true,
2391
+ "autoincrement": false
2392
+ },
2393
+ "user_id": {
2394
+ "name": "user_id",
2395
+ "type": "text",
2396
+ "primaryKey": false,
2397
+ "notNull": false,
2398
+ "autoincrement": false
2399
+ },
2400
+ "reference_id": {
2401
+ "name": "reference_id",
2402
+ "type": "text",
2403
+ "primaryKey": false,
2404
+ "notNull": false,
2405
+ "autoincrement": false
2406
+ },
2407
+ "resources": {
2408
+ "name": "resources",
2409
+ "type": "text",
2410
+ "primaryKey": false,
2411
+ "notNull": false,
2412
+ "autoincrement": false
2413
+ },
2414
+ "requested_user_info_claims": {
2415
+ "name": "requested_user_info_claims",
2416
+ "type": "text",
2417
+ "primaryKey": false,
2418
+ "notNull": false,
2419
+ "autoincrement": false
2420
+ },
2421
+ "scopes": {
2422
+ "name": "scopes",
2423
+ "type": "text",
2424
+ "primaryKey": false,
2425
+ "notNull": true,
2426
+ "autoincrement": false
2427
+ },
2428
+ "created_at": {
2429
+ "name": "created_at",
2430
+ "type": "integer",
2431
+ "primaryKey": false,
2432
+ "notNull": true,
2433
+ "autoincrement": false
2434
+ },
2435
+ "updated_at": {
2436
+ "name": "updated_at",
2437
+ "type": "integer",
2438
+ "primaryKey": false,
2439
+ "notNull": true,
2440
+ "autoincrement": false
2441
+ }
2442
+ },
2443
+ "indexes": {},
2444
+ "foreignKeys": {
2445
+ "oauth_consents_client_id_oauth_clients_client_id_fk": {
2446
+ "name": "oauth_consents_client_id_oauth_clients_client_id_fk",
2447
+ "tableFrom": "oauth_consents",
2448
+ "tableTo": "oauth_clients",
2449
+ "columnsFrom": [
2450
+ "client_id"
2451
+ ],
2452
+ "columnsTo": [
2453
+ "client_id"
2454
+ ],
2455
+ "onDelete": "no action",
2456
+ "onUpdate": "no action"
2457
+ },
2458
+ "oauth_consents_user_id_users_id_fk": {
2459
+ "name": "oauth_consents_user_id_users_id_fk",
2460
+ "tableFrom": "oauth_consents",
2461
+ "tableTo": "users",
2462
+ "columnsFrom": [
2463
+ "user_id"
2464
+ ],
2465
+ "columnsTo": [
2466
+ "id"
2467
+ ],
2468
+ "onDelete": "no action",
2469
+ "onUpdate": "no action"
2470
+ }
2471
+ },
2472
+ "compositePrimaryKeys": {},
2473
+ "uniqueConstraints": {},
2474
+ "checkConstraints": {}
2475
+ },
2476
+ "oauth_refresh_tokens": {
2477
+ "name": "oauth_refresh_tokens",
2478
+ "columns": {
2479
+ "id": {
2480
+ "name": "id",
2481
+ "type": "text",
2482
+ "primaryKey": true,
2483
+ "notNull": true,
2484
+ "autoincrement": false
2485
+ },
2486
+ "token": {
2487
+ "name": "token",
2488
+ "type": "text",
2489
+ "primaryKey": false,
2490
+ "notNull": true,
2491
+ "autoincrement": false
2492
+ },
2493
+ "client_id": {
2494
+ "name": "client_id",
2495
+ "type": "text",
2496
+ "primaryKey": false,
2497
+ "notNull": true,
2498
+ "autoincrement": false
2499
+ },
2500
+ "session_id": {
2501
+ "name": "session_id",
2502
+ "type": "text",
2503
+ "primaryKey": false,
2504
+ "notNull": false,
2505
+ "autoincrement": false
2506
+ },
2507
+ "user_id": {
2508
+ "name": "user_id",
2509
+ "type": "text",
2510
+ "primaryKey": false,
2511
+ "notNull": true,
2512
+ "autoincrement": false
2513
+ },
2514
+ "reference_id": {
2515
+ "name": "reference_id",
2516
+ "type": "text",
2517
+ "primaryKey": false,
2518
+ "notNull": false,
2519
+ "autoincrement": false
2520
+ },
2521
+ "authorization_code_id": {
2522
+ "name": "authorization_code_id",
2523
+ "type": "text",
2524
+ "primaryKey": false,
2525
+ "notNull": false,
2526
+ "autoincrement": false
2527
+ },
2528
+ "resources": {
2529
+ "name": "resources",
2530
+ "type": "text",
2531
+ "primaryKey": false,
2532
+ "notNull": false,
2533
+ "autoincrement": false
2534
+ },
2535
+ "requested_user_info_claims": {
2536
+ "name": "requested_user_info_claims",
2537
+ "type": "text",
2538
+ "primaryKey": false,
2539
+ "notNull": false,
2540
+ "autoincrement": false
2541
+ },
2542
+ "expires_at": {
2543
+ "name": "expires_at",
2544
+ "type": "integer",
2545
+ "primaryKey": false,
2546
+ "notNull": true,
2547
+ "autoincrement": false
2548
+ },
2549
+ "created_at": {
2550
+ "name": "created_at",
2551
+ "type": "integer",
2552
+ "primaryKey": false,
2553
+ "notNull": true,
2554
+ "autoincrement": false
2555
+ },
2556
+ "revoked": {
2557
+ "name": "revoked",
2558
+ "type": "integer",
2559
+ "primaryKey": false,
2560
+ "notNull": false,
2561
+ "autoincrement": false
2562
+ },
2563
+ "rotated_at": {
2564
+ "name": "rotated_at",
2565
+ "type": "integer",
2566
+ "primaryKey": false,
2567
+ "notNull": false,
2568
+ "autoincrement": false
2569
+ },
2570
+ "rotation_replay_response": {
2571
+ "name": "rotation_replay_response",
2572
+ "type": "text",
2573
+ "primaryKey": false,
2574
+ "notNull": false,
2575
+ "autoincrement": false
2576
+ },
2577
+ "rotation_replay_expires_at": {
2578
+ "name": "rotation_replay_expires_at",
2579
+ "type": "integer",
2580
+ "primaryKey": false,
2581
+ "notNull": false,
2582
+ "autoincrement": false
2583
+ },
2584
+ "auth_time": {
2585
+ "name": "auth_time",
2586
+ "type": "integer",
2587
+ "primaryKey": false,
2588
+ "notNull": false,
2589
+ "autoincrement": false
2590
+ },
2591
+ "confirmation": {
2592
+ "name": "confirmation",
2593
+ "type": "text",
2594
+ "primaryKey": false,
2595
+ "notNull": false,
2596
+ "autoincrement": false
2597
+ },
2598
+ "scopes": {
2599
+ "name": "scopes",
2600
+ "type": "text",
2601
+ "primaryKey": false,
2602
+ "notNull": true,
2603
+ "autoincrement": false
2604
+ }
2605
+ },
2606
+ "indexes": {
2607
+ "oauth_refresh_tokens_token_unique": {
2608
+ "name": "oauth_refresh_tokens_token_unique",
2609
+ "columns": [
2610
+ "token"
2611
+ ],
2612
+ "isUnique": true
2613
+ }
2614
+ },
2615
+ "foreignKeys": {
2616
+ "oauth_refresh_tokens_client_id_oauth_clients_client_id_fk": {
2617
+ "name": "oauth_refresh_tokens_client_id_oauth_clients_client_id_fk",
2618
+ "tableFrom": "oauth_refresh_tokens",
2619
+ "tableTo": "oauth_clients",
2620
+ "columnsFrom": [
2621
+ "client_id"
2622
+ ],
2623
+ "columnsTo": [
2624
+ "client_id"
2625
+ ],
2626
+ "onDelete": "no action",
2627
+ "onUpdate": "no action"
2628
+ },
2629
+ "oauth_refresh_tokens_session_id_sessions_id_fk": {
2630
+ "name": "oauth_refresh_tokens_session_id_sessions_id_fk",
2631
+ "tableFrom": "oauth_refresh_tokens",
2632
+ "tableTo": "sessions",
2633
+ "columnsFrom": [
2634
+ "session_id"
2635
+ ],
2636
+ "columnsTo": [
2637
+ "id"
2638
+ ],
2639
+ "onDelete": "set null",
2640
+ "onUpdate": "no action"
2641
+ },
2642
+ "oauth_refresh_tokens_user_id_users_id_fk": {
2643
+ "name": "oauth_refresh_tokens_user_id_users_id_fk",
2644
+ "tableFrom": "oauth_refresh_tokens",
2645
+ "tableTo": "users",
2646
+ "columnsFrom": [
2647
+ "user_id"
2648
+ ],
2649
+ "columnsTo": [
2650
+ "id"
2651
+ ],
2652
+ "onDelete": "no action",
2653
+ "onUpdate": "no action"
2654
+ }
2655
+ },
2656
+ "compositePrimaryKeys": {},
2657
+ "uniqueConstraints": {},
2658
+ "checkConstraints": {}
2659
+ },
2660
+ "oauth_resources": {
2661
+ "name": "oauth_resources",
2662
+ "columns": {
2663
+ "id": {
2664
+ "name": "id",
2665
+ "type": "text",
2666
+ "primaryKey": true,
2667
+ "notNull": true,
2668
+ "autoincrement": false
2669
+ },
2670
+ "identifier": {
2671
+ "name": "identifier",
2672
+ "type": "text",
2673
+ "primaryKey": false,
2674
+ "notNull": true,
2675
+ "autoincrement": false
2676
+ },
2677
+ "name": {
2678
+ "name": "name",
2679
+ "type": "text",
2680
+ "primaryKey": false,
2681
+ "notNull": true,
2682
+ "autoincrement": false
2683
+ },
2684
+ "access_token_ttl": {
2685
+ "name": "access_token_ttl",
2686
+ "type": "integer",
2687
+ "primaryKey": false,
2688
+ "notNull": false,
2689
+ "autoincrement": false
2690
+ },
2691
+ "refresh_token_ttl": {
2692
+ "name": "refresh_token_ttl",
2693
+ "type": "integer",
2694
+ "primaryKey": false,
2695
+ "notNull": false,
2696
+ "autoincrement": false
2697
+ },
2698
+ "signing_algorithm": {
2699
+ "name": "signing_algorithm",
2700
+ "type": "text",
2701
+ "primaryKey": false,
2702
+ "notNull": false,
2703
+ "autoincrement": false
2704
+ },
2705
+ "signing_key_id": {
2706
+ "name": "signing_key_id",
2707
+ "type": "text",
2708
+ "primaryKey": false,
2709
+ "notNull": false,
2710
+ "autoincrement": false
2711
+ },
2712
+ "allowed_scopes": {
2713
+ "name": "allowed_scopes",
2714
+ "type": "text",
2715
+ "primaryKey": false,
2716
+ "notNull": false,
2717
+ "autoincrement": false
2718
+ },
2719
+ "custom_claims": {
2720
+ "name": "custom_claims",
2721
+ "type": "text",
2722
+ "primaryKey": false,
2723
+ "notNull": false,
2724
+ "autoincrement": false
2725
+ },
2726
+ "dpop_bound_access_tokens_required": {
2727
+ "name": "dpop_bound_access_tokens_required",
2728
+ "type": "integer",
2729
+ "primaryKey": false,
2730
+ "notNull": false,
2731
+ "autoincrement": false,
2732
+ "default": false
2733
+ },
2734
+ "disabled": {
2735
+ "name": "disabled",
2736
+ "type": "integer",
2737
+ "primaryKey": false,
2738
+ "notNull": false,
2739
+ "autoincrement": false,
2740
+ "default": false
2741
+ },
2742
+ "created_at": {
2743
+ "name": "created_at",
2744
+ "type": "integer",
2745
+ "primaryKey": false,
2746
+ "notNull": false,
2747
+ "autoincrement": false
2748
+ },
2749
+ "updated_at": {
2750
+ "name": "updated_at",
2751
+ "type": "integer",
2752
+ "primaryKey": false,
2753
+ "notNull": false,
2754
+ "autoincrement": false
2755
+ },
2756
+ "policy_version": {
2757
+ "name": "policy_version",
2758
+ "type": "integer",
2759
+ "primaryKey": false,
2760
+ "notNull": false,
2761
+ "autoincrement": false,
2762
+ "default": 1
2763
+ },
2764
+ "metadata": {
2765
+ "name": "metadata",
2766
+ "type": "text",
2767
+ "primaryKey": false,
2768
+ "notNull": false,
2769
+ "autoincrement": false
2770
+ }
2771
+ },
2772
+ "indexes": {
2773
+ "oauth_resources_identifier_unique": {
2774
+ "name": "oauth_resources_identifier_unique",
2775
+ "columns": [
2776
+ "identifier"
2777
+ ],
2778
+ "isUnique": true
2779
+ }
2780
+ },
2781
+ "foreignKeys": {},
2782
+ "compositePrimaryKeys": {},
2783
+ "uniqueConstraints": {},
2784
+ "checkConstraints": {}
2785
+ },
2786
+ "organizations": {
2787
+ "name": "organizations",
2788
+ "columns": {
2789
+ "id": {
2790
+ "name": "id",
2791
+ "type": "text",
2792
+ "primaryKey": true,
2793
+ "notNull": true,
2794
+ "autoincrement": false
2795
+ },
2796
+ "name": {
2797
+ "name": "name",
2798
+ "type": "text",
2799
+ "primaryKey": false,
2800
+ "notNull": true,
2801
+ "autoincrement": false
2802
+ },
2803
+ "slug": {
2804
+ "name": "slug",
2805
+ "type": "text",
2806
+ "primaryKey": false,
2807
+ "notNull": false,
2808
+ "autoincrement": false
2809
+ },
2810
+ "logo": {
2811
+ "name": "logo",
2812
+ "type": "text",
2813
+ "primaryKey": false,
2814
+ "notNull": false,
2815
+ "autoincrement": false
2816
+ },
2817
+ "type": {
2818
+ "name": "type",
2819
+ "type": "text",
2820
+ "primaryKey": false,
2821
+ "notNull": false,
2822
+ "autoincrement": false
2823
+ },
2824
+ "parent_id": {
2825
+ "name": "parent_id",
2826
+ "type": "text",
2827
+ "primaryKey": false,
2828
+ "notNull": false,
2829
+ "autoincrement": false
2830
+ },
2831
+ "created_at": {
2832
+ "name": "created_at",
2833
+ "type": "integer",
2834
+ "primaryKey": false,
2835
+ "notNull": true,
2836
+ "autoincrement": false
2837
+ },
2838
+ "onboarding": {
2839
+ "name": "onboarding",
2840
+ "type": "integer",
2841
+ "primaryKey": false,
2842
+ "notNull": false,
2843
+ "autoincrement": false
2844
+ },
2845
+ "preferences": {
2846
+ "name": "preferences",
2847
+ "type": "text",
2848
+ "primaryKey": false,
2849
+ "notNull": false,
2850
+ "autoincrement": false,
2851
+ "default": "'{}'"
2852
+ },
2853
+ "metadata": {
2854
+ "name": "metadata",
2855
+ "type": "text",
2856
+ "primaryKey": false,
2857
+ "notNull": false,
2858
+ "autoincrement": false,
2859
+ "default": "'{}'"
2860
+ },
2861
+ "flags": {
2862
+ "name": "flags",
2863
+ "type": "text",
2864
+ "primaryKey": false,
2865
+ "notNull": false,
2866
+ "autoincrement": false,
2867
+ "default": "'[]'"
2868
+ },
2869
+ "locale": {
2870
+ "name": "locale",
2871
+ "type": "text",
2872
+ "primaryKey": false,
2873
+ "notNull": false,
2874
+ "autoincrement": false
2875
+ },
2876
+ "currency": {
2877
+ "name": "currency",
2878
+ "type": "text",
2879
+ "primaryKey": false,
2880
+ "notNull": false,
2881
+ "autoincrement": false
2882
+ },
2883
+ "stripe_customer_id": {
2884
+ "name": "stripe_customer_id",
2885
+ "type": "text",
2886
+ "primaryKey": false,
2887
+ "notNull": false,
2888
+ "autoincrement": false
2889
+ },
2890
+ "stripe_sandbox_customer_id": {
2891
+ "name": "stripe_sandbox_customer_id",
2892
+ "type": "text",
2893
+ "primaryKey": false,
2894
+ "notNull": false,
2895
+ "autoincrement": false
2896
+ },
2897
+ "billing_exempt": {
2898
+ "name": "billing_exempt",
2899
+ "type": "integer",
2900
+ "primaryKey": false,
2901
+ "notNull": true,
2902
+ "autoincrement": false,
2903
+ "default": false
2904
+ },
2905
+ "allow_cardless_trial": {
2906
+ "name": "allow_cardless_trial",
2907
+ "type": "integer",
2908
+ "primaryKey": false,
2909
+ "notNull": true,
2910
+ "autoincrement": false,
2911
+ "default": false
2912
+ },
2913
+ "cardless_trial_consumed": {
2914
+ "name": "cardless_trial_consumed",
2915
+ "type": "text",
2916
+ "primaryKey": false,
2917
+ "notNull": false,
2918
+ "autoincrement": false,
2919
+ "default": "'{}'"
2920
+ },
2921
+ "closed_at": {
2922
+ "name": "closed_at",
2923
+ "type": "integer",
2924
+ "primaryKey": false,
2925
+ "notNull": false,
2926
+ "autoincrement": false
2927
+ }
2928
+ },
2929
+ "indexes": {
2930
+ "organizations_slug_unique": {
2931
+ "name": "organizations_slug_unique",
2932
+ "columns": [
2933
+ "slug"
2934
+ ],
2935
+ "isUnique": true
2936
+ },
2937
+ "organizations_stripe_customer_id_unique": {
2938
+ "name": "organizations_stripe_customer_id_unique",
2939
+ "columns": [
2940
+ "stripe_customer_id"
2941
+ ],
2942
+ "isUnique": true
2943
+ },
2944
+ "organizations_stripe_sandbox_customer_id_unique": {
2945
+ "name": "organizations_stripe_sandbox_customer_id_unique",
2946
+ "columns": [
2947
+ "stripe_sandbox_customer_id"
2948
+ ],
2949
+ "isUnique": true
2950
+ }
2951
+ },
2952
+ "foreignKeys": {
2953
+ "organizations_parent_id_organizations_id_fk": {
2954
+ "name": "organizations_parent_id_organizations_id_fk",
2955
+ "tableFrom": "organizations",
2956
+ "tableTo": "organizations",
2957
+ "columnsFrom": [
2958
+ "parent_id"
2959
+ ],
2960
+ "columnsTo": [
2961
+ "id"
2962
+ ],
2963
+ "onDelete": "set null",
2964
+ "onUpdate": "no action"
2965
+ }
2966
+ },
2967
+ "compositePrimaryKeys": {},
2968
+ "uniqueConstraints": {},
2969
+ "checkConstraints": {}
2970
+ },
2971
+ "posts": {
2972
+ "name": "posts",
2973
+ "columns": {
2974
+ "id": {
2975
+ "name": "id",
2976
+ "type": "text",
2977
+ "primaryKey": true,
2978
+ "notNull": true,
2979
+ "autoincrement": false
2980
+ },
2981
+ "author_user_id": {
2982
+ "name": "author_user_id",
2983
+ "type": "text",
2984
+ "primaryKey": false,
2985
+ "notNull": false,
2986
+ "autoincrement": false
2987
+ },
2988
+ "member_id": {
2989
+ "name": "member_id",
2990
+ "type": "text",
2991
+ "primaryKey": false,
2992
+ "notNull": false,
2993
+ "autoincrement": false
2994
+ },
2995
+ "organization_id": {
2996
+ "name": "organization_id",
2997
+ "type": "text",
2998
+ "primaryKey": false,
2999
+ "notNull": false,
3000
+ "autoincrement": false
3001
+ },
3002
+ "team_id": {
3003
+ "name": "team_id",
3004
+ "type": "text",
3005
+ "primaryKey": false,
3006
+ "notNull": false,
3007
+ "autoincrement": false
3008
+ },
3009
+ "title": {
3010
+ "name": "title",
3011
+ "type": "text",
3012
+ "primaryKey": false,
3013
+ "notNull": true,
3014
+ "autoincrement": false
3015
+ },
3016
+ "slug": {
3017
+ "name": "slug",
3018
+ "type": "text",
3019
+ "primaryKey": false,
3020
+ "notNull": true,
3021
+ "autoincrement": false
3022
+ },
3023
+ "excerpt": {
3024
+ "name": "excerpt",
3025
+ "type": "text",
3026
+ "primaryKey": false,
3027
+ "notNull": false,
3028
+ "autoincrement": false
3029
+ },
3030
+ "content": {
3031
+ "name": "content",
3032
+ "type": "text",
3033
+ "primaryKey": false,
3034
+ "notNull": true,
3035
+ "autoincrement": false
3036
+ },
3037
+ "status": {
3038
+ "name": "status",
3039
+ "type": "text",
3040
+ "primaryKey": false,
3041
+ "notNull": true,
3042
+ "autoincrement": false,
3043
+ "default": "'draft'"
3044
+ },
3045
+ "published_at": {
3046
+ "name": "published_at",
3047
+ "type": "integer",
3048
+ "primaryKey": false,
3049
+ "notNull": false,
3050
+ "autoincrement": false
3051
+ },
3052
+ "created_at": {
3053
+ "name": "created_at",
3054
+ "type": "integer",
3055
+ "primaryKey": false,
3056
+ "notNull": true,
3057
+ "autoincrement": false
3058
+ },
3059
+ "updated_at": {
3060
+ "name": "updated_at",
3061
+ "type": "integer",
3062
+ "primaryKey": false,
3063
+ "notNull": false,
3064
+ "autoincrement": false
3065
+ },
3066
+ "deleted_at": {
3067
+ "name": "deleted_at",
3068
+ "type": "integer",
3069
+ "primaryKey": false,
3070
+ "notNull": false,
3071
+ "autoincrement": false
3072
+ }
3073
+ },
3074
+ "indexes": {
3075
+ "posts_slug_unique": {
3076
+ "name": "posts_slug_unique",
3077
+ "columns": [
3078
+ "slug"
3079
+ ],
3080
+ "isUnique": true
3081
+ }
3082
+ },
3083
+ "foreignKeys": {
3084
+ "posts_author_user_id_users_id_fk": {
3085
+ "name": "posts_author_user_id_users_id_fk",
3086
+ "tableFrom": "posts",
3087
+ "tableTo": "users",
3088
+ "columnsFrom": [
3089
+ "author_user_id"
3090
+ ],
3091
+ "columnsTo": [
3092
+ "id"
3093
+ ],
3094
+ "onDelete": "set null",
3095
+ "onUpdate": "no action"
3096
+ },
3097
+ "posts_member_id_members_id_fk": {
3098
+ "name": "posts_member_id_members_id_fk",
3099
+ "tableFrom": "posts",
3100
+ "tableTo": "members",
3101
+ "columnsFrom": [
3102
+ "member_id"
3103
+ ],
3104
+ "columnsTo": [
3105
+ "id"
3106
+ ],
3107
+ "onDelete": "set null",
3108
+ "onUpdate": "no action"
3109
+ },
3110
+ "posts_organization_id_organizations_id_fk": {
3111
+ "name": "posts_organization_id_organizations_id_fk",
3112
+ "tableFrom": "posts",
3113
+ "tableTo": "organizations",
3114
+ "columnsFrom": [
3115
+ "organization_id"
3116
+ ],
3117
+ "columnsTo": [
3118
+ "id"
3119
+ ],
3120
+ "onDelete": "set null",
3121
+ "onUpdate": "no action"
3122
+ }
3123
+ },
3124
+ "compositePrimaryKeys": {},
3125
+ "uniqueConstraints": {},
3126
+ "checkConstraints": {}
3127
+ },
3128
+ "sessions": {
3129
+ "name": "sessions",
3130
+ "columns": {
3131
+ "id": {
3132
+ "name": "id",
3133
+ "type": "text",
3134
+ "primaryKey": true,
3135
+ "notNull": true,
3136
+ "autoincrement": false
3137
+ },
3138
+ "expires_at": {
3139
+ "name": "expires_at",
3140
+ "type": "integer",
3141
+ "primaryKey": false,
3142
+ "notNull": true,
3143
+ "autoincrement": false
3144
+ },
3145
+ "token": {
3146
+ "name": "token",
3147
+ "type": "text",
3148
+ "primaryKey": false,
3149
+ "notNull": true,
3150
+ "autoincrement": false
3151
+ },
3152
+ "created_at": {
3153
+ "name": "created_at",
3154
+ "type": "integer",
3155
+ "primaryKey": false,
3156
+ "notNull": true,
3157
+ "autoincrement": false
3158
+ },
3159
+ "updated_at": {
3160
+ "name": "updated_at",
3161
+ "type": "integer",
3162
+ "primaryKey": false,
3163
+ "notNull": true,
3164
+ "autoincrement": false
3165
+ },
3166
+ "ip_address": {
3167
+ "name": "ip_address",
3168
+ "type": "text",
3169
+ "primaryKey": false,
3170
+ "notNull": false,
3171
+ "autoincrement": false
3172
+ },
3173
+ "user_agent": {
3174
+ "name": "user_agent",
3175
+ "type": "text",
3176
+ "primaryKey": false,
3177
+ "notNull": false,
3178
+ "autoincrement": false
3179
+ },
3180
+ "user_id": {
3181
+ "name": "user_id",
3182
+ "type": "text",
3183
+ "primaryKey": false,
3184
+ "notNull": true,
3185
+ "autoincrement": false
3186
+ },
3187
+ "impersonated_by": {
3188
+ "name": "impersonated_by",
3189
+ "type": "text",
3190
+ "primaryKey": false,
3191
+ "notNull": false,
3192
+ "autoincrement": false
3193
+ },
3194
+ "active_organization_id": {
3195
+ "name": "active_organization_id",
3196
+ "type": "text",
3197
+ "primaryKey": false,
3198
+ "notNull": false,
3199
+ "autoincrement": false
3200
+ },
3201
+ "active_organization_member_id": {
3202
+ "name": "active_organization_member_id",
3203
+ "type": "text",
3204
+ "primaryKey": false,
3205
+ "notNull": false,
3206
+ "autoincrement": false
3207
+ },
3208
+ "active_organization_role": {
3209
+ "name": "active_organization_role",
3210
+ "type": "text",
3211
+ "primaryKey": false,
3212
+ "notNull": false,
3213
+ "autoincrement": false
3214
+ },
3215
+ "active_organization_type": {
3216
+ "name": "active_organization_type",
3217
+ "type": "text",
3218
+ "primaryKey": false,
3219
+ "notNull": false,
3220
+ "autoincrement": false
3221
+ }
3222
+ },
3223
+ "indexes": {
3224
+ "sessions_token_unique": {
3225
+ "name": "sessions_token_unique",
3226
+ "columns": [
3227
+ "token"
3228
+ ],
3229
+ "isUnique": true
3230
+ }
3231
+ },
3232
+ "foreignKeys": {
3233
+ "sessions_user_id_users_id_fk": {
3234
+ "name": "sessions_user_id_users_id_fk",
3235
+ "tableFrom": "sessions",
3236
+ "tableTo": "users",
3237
+ "columnsFrom": [
3238
+ "user_id"
3239
+ ],
3240
+ "columnsTo": [
3241
+ "id"
3242
+ ],
3243
+ "onDelete": "cascade",
3244
+ "onUpdate": "no action"
3245
+ }
3246
+ },
3247
+ "compositePrimaryKeys": {},
3248
+ "uniqueConstraints": {},
3249
+ "checkConstraints": {}
3250
+ },
3251
+ "users": {
3252
+ "name": "users",
3253
+ "columns": {
3254
+ "id": {
3255
+ "name": "id",
3256
+ "type": "text",
3257
+ "primaryKey": true,
3258
+ "notNull": true,
3259
+ "autoincrement": false
3260
+ },
3261
+ "name": {
3262
+ "name": "name",
3263
+ "type": "text",
3264
+ "primaryKey": false,
3265
+ "notNull": true,
3266
+ "autoincrement": false
3267
+ },
3268
+ "email": {
3269
+ "name": "email",
3270
+ "type": "text",
3271
+ "primaryKey": false,
3272
+ "notNull": true,
3273
+ "autoincrement": false
3274
+ },
3275
+ "email_verified": {
3276
+ "name": "email_verified",
3277
+ "type": "integer",
3278
+ "primaryKey": false,
3279
+ "notNull": true,
3280
+ "autoincrement": false
3281
+ },
3282
+ "image": {
3283
+ "name": "image",
3284
+ "type": "text",
3285
+ "primaryKey": false,
3286
+ "notNull": false,
3287
+ "autoincrement": false
3288
+ },
3289
+ "created_at": {
3290
+ "name": "created_at",
3291
+ "type": "integer",
3292
+ "primaryKey": false,
3293
+ "notNull": true,
3294
+ "autoincrement": false
3295
+ },
3296
+ "updated_at": {
3297
+ "name": "updated_at",
3298
+ "type": "integer",
3299
+ "primaryKey": false,
3300
+ "notNull": true,
3301
+ "autoincrement": false
3302
+ },
3303
+ "role": {
3304
+ "name": "role",
3305
+ "type": "text",
3306
+ "primaryKey": false,
3307
+ "notNull": false,
3308
+ "autoincrement": false
3309
+ },
3310
+ "banned": {
3311
+ "name": "banned",
3312
+ "type": "integer",
3313
+ "primaryKey": false,
3314
+ "notNull": false,
3315
+ "autoincrement": false
3316
+ },
3317
+ "ban_reason": {
3318
+ "name": "ban_reason",
3319
+ "type": "text",
3320
+ "primaryKey": false,
3321
+ "notNull": false,
3322
+ "autoincrement": false
3323
+ },
3324
+ "ban_expires": {
3325
+ "name": "ban_expires",
3326
+ "type": "integer",
3327
+ "primaryKey": false,
3328
+ "notNull": false,
3329
+ "autoincrement": false
3330
+ },
3331
+ "preferences": {
3332
+ "name": "preferences",
3333
+ "type": "text",
3334
+ "primaryKey": false,
3335
+ "notNull": false,
3336
+ "autoincrement": false,
3337
+ "default": "'{}'"
3338
+ },
3339
+ "metadata": {
3340
+ "name": "metadata",
3341
+ "type": "text",
3342
+ "primaryKey": false,
3343
+ "notNull": false,
3344
+ "autoincrement": false,
3345
+ "default": "'{}'"
3346
+ },
3347
+ "onboarding": {
3348
+ "name": "onboarding",
3349
+ "type": "integer",
3350
+ "primaryKey": false,
3351
+ "notNull": false,
3352
+ "autoincrement": false
3353
+ },
3354
+ "flags": {
3355
+ "name": "flags",
3356
+ "type": "text",
3357
+ "primaryKey": false,
3358
+ "notNull": false,
3359
+ "autoincrement": false,
3360
+ "default": "'[]'"
3361
+ },
3362
+ "locale": {
3363
+ "name": "locale",
3364
+ "type": "text",
3365
+ "primaryKey": false,
3366
+ "notNull": false,
3367
+ "autoincrement": false
3368
+ },
3369
+ "closed_at": {
3370
+ "name": "closed_at",
3371
+ "type": "integer",
3372
+ "primaryKey": false,
3373
+ "notNull": false,
3374
+ "autoincrement": false
3375
+ }
3376
+ },
3377
+ "indexes": {
3378
+ "users_email_unique": {
3379
+ "name": "users_email_unique",
3380
+ "columns": [
3381
+ "email"
3382
+ ],
3383
+ "isUnique": true
3384
+ }
3385
+ },
3386
+ "foreignKeys": {},
3387
+ "compositePrimaryKeys": {},
3388
+ "uniqueConstraints": {},
3389
+ "checkConstraints": {}
3390
+ },
3391
+ "verifications": {
3392
+ "name": "verifications",
3393
+ "columns": {
3394
+ "id": {
3395
+ "name": "id",
3396
+ "type": "text",
3397
+ "primaryKey": true,
3398
+ "notNull": true,
3399
+ "autoincrement": false
3400
+ },
3401
+ "identifier": {
3402
+ "name": "identifier",
3403
+ "type": "text",
3404
+ "primaryKey": false,
3405
+ "notNull": true,
3406
+ "autoincrement": false
3407
+ },
3408
+ "value": {
3409
+ "name": "value",
3410
+ "type": "text",
3411
+ "primaryKey": false,
3412
+ "notNull": true,
3413
+ "autoincrement": false
3414
+ },
3415
+ "expires_at": {
3416
+ "name": "expires_at",
3417
+ "type": "integer",
3418
+ "primaryKey": false,
3419
+ "notNull": true,
3420
+ "autoincrement": false
3421
+ },
3422
+ "created_at": {
3423
+ "name": "created_at",
3424
+ "type": "integer",
3425
+ "primaryKey": false,
3426
+ "notNull": false,
3427
+ "autoincrement": false
3428
+ },
3429
+ "updated_at": {
3430
+ "name": "updated_at",
3431
+ "type": "integer",
3432
+ "primaryKey": false,
3433
+ "notNull": false,
3434
+ "autoincrement": false
3435
+ }
3436
+ },
3437
+ "indexes": {},
3438
+ "foreignKeys": {},
3439
+ "compositePrimaryKeys": {},
3440
+ "uniqueConstraints": {},
3441
+ "checkConstraints": {}
3442
+ },
3443
+ "waitlist": {
3444
+ "name": "waitlist",
3445
+ "columns": {
3446
+ "id": {
3447
+ "name": "id",
3448
+ "type": "text",
3449
+ "primaryKey": true,
3450
+ "notNull": true,
3451
+ "autoincrement": false
3452
+ },
3453
+ "name": {
3454
+ "name": "name",
3455
+ "type": "text",
3456
+ "primaryKey": false,
3457
+ "notNull": false,
3458
+ "autoincrement": false
3459
+ },
3460
+ "email": {
3461
+ "name": "email",
3462
+ "type": "text",
3463
+ "primaryKey": false,
3464
+ "notNull": false,
3465
+ "autoincrement": false
3466
+ },
3467
+ "created_at": {
3468
+ "name": "created_at",
3469
+ "type": "integer",
3470
+ "primaryKey": false,
3471
+ "notNull": true,
3472
+ "autoincrement": false
3473
+ },
3474
+ "updated_at": {
3475
+ "name": "updated_at",
3476
+ "type": "integer",
3477
+ "primaryKey": false,
3478
+ "notNull": false,
3479
+ "autoincrement": false
3480
+ },
3481
+ "status": {
3482
+ "name": "status",
3483
+ "type": "text",
3484
+ "primaryKey": false,
3485
+ "notNull": true,
3486
+ "autoincrement": false,
3487
+ "default": "'WAITLIST'"
3488
+ },
3489
+ "code": {
3490
+ "name": "code",
3491
+ "type": "text",
3492
+ "primaryKey": false,
3493
+ "notNull": false,
3494
+ "autoincrement": false
3495
+ },
3496
+ "expires_at": {
3497
+ "name": "expires_at",
3498
+ "type": "integer",
3499
+ "primaryKey": false,
3500
+ "notNull": false,
3501
+ "autoincrement": false
3502
+ },
3503
+ "user_id": {
3504
+ "name": "user_id",
3505
+ "type": "text",
3506
+ "primaryKey": false,
3507
+ "notNull": false,
3508
+ "autoincrement": false
3509
+ }
3510
+ },
3511
+ "indexes": {},
3512
+ "foreignKeys": {
3513
+ "waitlist_user_id_users_id_fk": {
3514
+ "name": "waitlist_user_id_users_id_fk",
3515
+ "tableFrom": "waitlist",
3516
+ "tableTo": "users",
3517
+ "columnsFrom": [
3518
+ "user_id"
3519
+ ],
3520
+ "columnsTo": [
3521
+ "id"
3522
+ ],
3523
+ "onDelete": "no action",
3524
+ "onUpdate": "no action"
3525
+ }
3526
+ },
3527
+ "compositePrimaryKeys": {},
3528
+ "uniqueConstraints": {},
3529
+ "checkConstraints": {}
3530
+ },
3531
+ "workflows": {
3532
+ "name": "workflows",
3533
+ "columns": {
3534
+ "id": {
3535
+ "name": "id",
3536
+ "type": "text",
3537
+ "primaryKey": true,
3538
+ "notNull": true,
3539
+ "autoincrement": false
3540
+ },
3541
+ "user_id": {
3542
+ "name": "user_id",
3543
+ "type": "text",
3544
+ "primaryKey": false,
3545
+ "notNull": false,
3546
+ "autoincrement": false
3547
+ },
3548
+ "job_id": {
3549
+ "name": "job_id",
3550
+ "type": "text",
3551
+ "primaryKey": false,
3552
+ "notNull": true,
3553
+ "autoincrement": false
3554
+ },
3555
+ "job_name": {
3556
+ "name": "job_name",
3557
+ "type": "text",
3558
+ "primaryKey": false,
3559
+ "notNull": true,
3560
+ "autoincrement": false
3561
+ },
3562
+ "queue_name": {
3563
+ "name": "queue_name",
3564
+ "type": "text",
3565
+ "primaryKey": false,
3566
+ "notNull": true,
3567
+ "autoincrement": false
3568
+ },
3569
+ "timeout": {
3570
+ "name": "timeout",
3571
+ "type": "integer",
3572
+ "primaryKey": false,
3573
+ "notNull": false,
3574
+ "autoincrement": false
3575
+ },
3576
+ "tags": {
3577
+ "name": "tags",
3578
+ "type": "text",
3579
+ "primaryKey": false,
3580
+ "notNull": false,
3581
+ "autoincrement": false
3582
+ },
3583
+ "input": {
3584
+ "name": "input",
3585
+ "type": "text",
3586
+ "primaryKey": false,
3587
+ "notNull": false,
3588
+ "autoincrement": false
3589
+ },
3590
+ "output": {
3591
+ "name": "output",
3592
+ "type": "text",
3593
+ "primaryKey": false,
3594
+ "notNull": false,
3595
+ "autoincrement": false
3596
+ },
3597
+ "status": {
3598
+ "name": "status",
3599
+ "type": "text",
3600
+ "primaryKey": false,
3601
+ "notNull": true,
3602
+ "autoincrement": false
3603
+ },
3604
+ "error": {
3605
+ "name": "error",
3606
+ "type": "text",
3607
+ "primaryKey": false,
3608
+ "notNull": false,
3609
+ "autoincrement": false
3610
+ },
3611
+ "retries": {
3612
+ "name": "retries",
3613
+ "type": "integer",
3614
+ "primaryKey": false,
3615
+ "notNull": true,
3616
+ "autoincrement": false,
3617
+ "default": 0
3618
+ },
3619
+ "finished_at": {
3620
+ "name": "finished_at",
3621
+ "type": "integer",
3622
+ "primaryKey": false,
3623
+ "notNull": false,
3624
+ "autoincrement": false
3625
+ },
3626
+ "processed_at": {
3627
+ "name": "processed_at",
3628
+ "type": "integer",
3629
+ "primaryKey": false,
3630
+ "notNull": false,
3631
+ "autoincrement": false
3632
+ },
3633
+ "created_at": {
3634
+ "name": "created_at",
3635
+ "type": "integer",
3636
+ "primaryKey": false,
3637
+ "notNull": true,
3638
+ "autoincrement": false
3639
+ },
3640
+ "updated_at": {
3641
+ "name": "updated_at",
3642
+ "type": "integer",
3643
+ "primaryKey": false,
3644
+ "notNull": true,
3645
+ "autoincrement": false
3646
+ }
3647
+ },
3648
+ "indexes": {
3649
+ "workflows_job_id_unique": {
3650
+ "name": "workflows_job_id_unique",
3651
+ "columns": [
3652
+ "job_id"
3653
+ ],
3654
+ "isUnique": true
3655
+ }
3656
+ },
3657
+ "foreignKeys": {
3658
+ "workflows_user_id_users_id_fk": {
3659
+ "name": "workflows_user_id_users_id_fk",
3660
+ "tableFrom": "workflows",
3661
+ "tableTo": "users",
3662
+ "columnsFrom": [
3663
+ "user_id"
3664
+ ],
3665
+ "columnsTo": [
3666
+ "id"
3667
+ ],
3668
+ "onDelete": "cascade",
3669
+ "onUpdate": "no action"
3670
+ }
3671
+ },
3672
+ "compositePrimaryKeys": {},
3673
+ "uniqueConstraints": {},
3674
+ "checkConstraints": {}
3675
+ }
3676
+ },
3677
+ "views": {},
3678
+ "enums": {},
3679
+ "_meta": {
3680
+ "schemas": {},
3681
+ "tables": {},
3682
+ "columns": {}
3683
+ },
3684
+ "internal": {
3685
+ "indexes": {}
3686
+ }
3687
+ }