create-m5kdev 0.28.7 → 0.28.8

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,1890 +1,1890 @@
1
- {
2
- "version": "6",
3
- "dialect": "sqlite",
4
- "id": "329ac971-9412-4197-8df7-30c14055ac25",
5
- "prevId": "00000000-0000-0000-0000-000000000000",
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_waitlist_id_fk": {
70
- "name": "account_claim_magic_links_claim_id_waitlist_id_fk",
71
- "tableFrom": "account_claim_magic_links",
72
- "tableTo": "waitlist",
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
- "accounts": {
101
- "name": "accounts",
102
- "columns": {
103
- "id": {
104
- "name": "id",
105
- "type": "text",
106
- "primaryKey": true,
107
- "notNull": true,
108
- "autoincrement": false
109
- },
110
- "account_id": {
111
- "name": "account_id",
112
- "type": "text",
113
- "primaryKey": false,
114
- "notNull": true,
115
- "autoincrement": false
116
- },
117
- "provider_id": {
118
- "name": "provider_id",
119
- "type": "text",
120
- "primaryKey": false,
121
- "notNull": true,
122
- "autoincrement": false
123
- },
124
- "user_id": {
125
- "name": "user_id",
126
- "type": "text",
127
- "primaryKey": false,
128
- "notNull": true,
129
- "autoincrement": false
130
- },
131
- "access_token": {
132
- "name": "access_token",
133
- "type": "text",
134
- "primaryKey": false,
135
- "notNull": false,
136
- "autoincrement": false
137
- },
138
- "refresh_token": {
139
- "name": "refresh_token",
140
- "type": "text",
141
- "primaryKey": false,
142
- "notNull": false,
143
- "autoincrement": false
144
- },
145
- "id_token": {
146
- "name": "id_token",
147
- "type": "text",
148
- "primaryKey": false,
149
- "notNull": false,
150
- "autoincrement": false
151
- },
152
- "access_token_expires_at": {
153
- "name": "access_token_expires_at",
154
- "type": "integer",
155
- "primaryKey": false,
156
- "notNull": false,
157
- "autoincrement": false
158
- },
159
- "refresh_token_expires_at": {
160
- "name": "refresh_token_expires_at",
161
- "type": "integer",
162
- "primaryKey": false,
163
- "notNull": false,
164
- "autoincrement": false
165
- },
166
- "scope": {
167
- "name": "scope",
168
- "type": "text",
169
- "primaryKey": false,
170
- "notNull": false,
171
- "autoincrement": false
172
- },
173
- "password": {
174
- "name": "password",
175
- "type": "text",
176
- "primaryKey": false,
177
- "notNull": false,
178
- "autoincrement": false
179
- },
180
- "created_at": {
181
- "name": "created_at",
182
- "type": "integer",
183
- "primaryKey": false,
184
- "notNull": true,
185
- "autoincrement": false
186
- },
187
- "updated_at": {
188
- "name": "updated_at",
189
- "type": "integer",
190
- "primaryKey": false,
191
- "notNull": true,
192
- "autoincrement": false
193
- }
194
- },
195
- "indexes": {},
196
- "foreignKeys": {
197
- "accounts_user_id_users_id_fk": {
198
- "name": "accounts_user_id_users_id_fk",
199
- "tableFrom": "accounts",
200
- "tableTo": "users",
201
- "columnsFrom": [
202
- "user_id"
203
- ],
204
- "columnsTo": [
205
- "id"
206
- ],
207
- "onDelete": "cascade",
208
- "onUpdate": "no action"
209
- }
210
- },
211
- "compositePrimaryKeys": {},
212
- "uniqueConstraints": {},
213
- "checkConstraints": {}
214
- },
215
- "apikeys": {
216
- "name": "apikeys",
217
- "columns": {
218
- "id": {
219
- "name": "id",
220
- "type": "text",
221
- "primaryKey": true,
222
- "notNull": true,
223
- "autoincrement": false
224
- },
225
- "name": {
226
- "name": "name",
227
- "type": "text",
228
- "primaryKey": false,
229
- "notNull": false,
230
- "autoincrement": false
231
- },
232
- "start": {
233
- "name": "start",
234
- "type": "text",
235
- "primaryKey": false,
236
- "notNull": false,
237
- "autoincrement": false
238
- },
239
- "prefix": {
240
- "name": "prefix",
241
- "type": "text",
242
- "primaryKey": false,
243
- "notNull": false,
244
- "autoincrement": false
245
- },
246
- "key": {
247
- "name": "key",
248
- "type": "text",
249
- "primaryKey": false,
250
- "notNull": true,
251
- "autoincrement": false
252
- },
253
- "user_id": {
254
- "name": "user_id",
255
- "type": "text",
256
- "primaryKey": false,
257
- "notNull": true,
258
- "autoincrement": false
259
- },
260
- "refill_interval": {
261
- "name": "refill_interval",
262
- "type": "integer",
263
- "primaryKey": false,
264
- "notNull": false,
265
- "autoincrement": false
266
- },
267
- "refill_amount": {
268
- "name": "refill_amount",
269
- "type": "integer",
270
- "primaryKey": false,
271
- "notNull": false,
272
- "autoincrement": false
273
- },
274
- "last_refill_at": {
275
- "name": "last_refill_at",
276
- "type": "integer",
277
- "primaryKey": false,
278
- "notNull": false,
279
- "autoincrement": false
280
- },
281
- "enabled": {
282
- "name": "enabled",
283
- "type": "integer",
284
- "primaryKey": false,
285
- "notNull": true,
286
- "autoincrement": false
287
- },
288
- "rate_limit_enabled": {
289
- "name": "rate_limit_enabled",
290
- "type": "integer",
291
- "primaryKey": false,
292
- "notNull": true,
293
- "autoincrement": false
294
- },
295
- "rate_limit_time_window": {
296
- "name": "rate_limit_time_window",
297
- "type": "integer",
298
- "primaryKey": false,
299
- "notNull": false,
300
- "autoincrement": false
301
- },
302
- "rate_limit_max": {
303
- "name": "rate_limit_max",
304
- "type": "integer",
305
- "primaryKey": false,
306
- "notNull": false,
307
- "autoincrement": false
308
- },
309
- "request_count": {
310
- "name": "request_count",
311
- "type": "integer",
312
- "primaryKey": false,
313
- "notNull": true,
314
- "autoincrement": false
315
- },
316
- "remaining": {
317
- "name": "remaining",
318
- "type": "integer",
319
- "primaryKey": false,
320
- "notNull": false,
321
- "autoincrement": false
322
- },
323
- "last_request": {
324
- "name": "last_request",
325
- "type": "integer",
326
- "primaryKey": false,
327
- "notNull": false,
328
- "autoincrement": false
329
- },
330
- "expires_at": {
331
- "name": "expires_at",
332
- "type": "integer",
333
- "primaryKey": false,
334
- "notNull": false,
335
- "autoincrement": false
336
- },
337
- "created_at": {
338
- "name": "created_at",
339
- "type": "integer",
340
- "primaryKey": false,
341
- "notNull": true,
342
- "autoincrement": false
343
- },
344
- "updated_at": {
345
- "name": "updated_at",
346
- "type": "integer",
347
- "primaryKey": false,
348
- "notNull": true,
349
- "autoincrement": false
350
- },
351
- "permissions": {
352
- "name": "permissions",
353
- "type": "text",
354
- "primaryKey": false,
355
- "notNull": false,
356
- "autoincrement": false
357
- },
358
- "metadata": {
359
- "name": "metadata",
360
- "type": "text",
361
- "primaryKey": false,
362
- "notNull": false,
363
- "autoincrement": false
364
- }
365
- },
366
- "indexes": {},
367
- "foreignKeys": {
368
- "apikeys_user_id_users_id_fk": {
369
- "name": "apikeys_user_id_users_id_fk",
370
- "tableFrom": "apikeys",
371
- "tableTo": "users",
372
- "columnsFrom": [
373
- "user_id"
374
- ],
375
- "columnsTo": [
376
- "id"
377
- ],
378
- "onDelete": "no action",
379
- "onUpdate": "no action"
380
- }
381
- },
382
- "compositePrimaryKeys": {},
383
- "uniqueConstraints": {},
384
- "checkConstraints": {}
385
- },
386
- "invitations": {
387
- "name": "invitations",
388
- "columns": {
389
- "id": {
390
- "name": "id",
391
- "type": "text",
392
- "primaryKey": true,
393
- "notNull": true,
394
- "autoincrement": false
395
- },
396
- "organization_id": {
397
- "name": "organization_id",
398
- "type": "text",
399
- "primaryKey": false,
400
- "notNull": true,
401
- "autoincrement": false
402
- },
403
- "team_id": {
404
- "name": "team_id",
405
- "type": "text",
406
- "primaryKey": false,
407
- "notNull": false,
408
- "autoincrement": false
409
- },
410
- "email": {
411
- "name": "email",
412
- "type": "text",
413
- "primaryKey": false,
414
- "notNull": true,
415
- "autoincrement": false
416
- },
417
- "role": {
418
- "name": "role",
419
- "type": "text",
420
- "primaryKey": false,
421
- "notNull": false,
422
- "autoincrement": false
423
- },
424
- "status": {
425
- "name": "status",
426
- "type": "text",
427
- "primaryKey": false,
428
- "notNull": true,
429
- "autoincrement": false
430
- },
431
- "created_at": {
432
- "name": "created_at",
433
- "type": "integer",
434
- "primaryKey": false,
435
- "notNull": true,
436
- "autoincrement": false
437
- },
438
- "expires_at": {
439
- "name": "expires_at",
440
- "type": "integer",
441
- "primaryKey": false,
442
- "notNull": true,
443
- "autoincrement": false
444
- },
445
- "inviter_id": {
446
- "name": "inviter_id",
447
- "type": "text",
448
- "primaryKey": false,
449
- "notNull": true,
450
- "autoincrement": false
451
- }
452
- },
453
- "indexes": {},
454
- "foreignKeys": {
455
- "invitations_organization_id_organizations_id_fk": {
456
- "name": "invitations_organization_id_organizations_id_fk",
457
- "tableFrom": "invitations",
458
- "tableTo": "organizations",
459
- "columnsFrom": [
460
- "organization_id"
461
- ],
462
- "columnsTo": [
463
- "id"
464
- ],
465
- "onDelete": "no action",
466
- "onUpdate": "no action"
467
- },
468
- "invitations_team_id_teams_id_fk": {
469
- "name": "invitations_team_id_teams_id_fk",
470
- "tableFrom": "invitations",
471
- "tableTo": "teams",
472
- "columnsFrom": [
473
- "team_id"
474
- ],
475
- "columnsTo": [
476
- "id"
477
- ],
478
- "onDelete": "no action",
479
- "onUpdate": "no action"
480
- },
481
- "invitations_inviter_id_users_id_fk": {
482
- "name": "invitations_inviter_id_users_id_fk",
483
- "tableFrom": "invitations",
484
- "tableTo": "users",
485
- "columnsFrom": [
486
- "inviter_id"
487
- ],
488
- "columnsTo": [
489
- "id"
490
- ],
491
- "onDelete": "no action",
492
- "onUpdate": "no action"
493
- }
494
- },
495
- "compositePrimaryKeys": {},
496
- "uniqueConstraints": {},
497
- "checkConstraints": {}
498
- },
499
- "members": {
500
- "name": "members",
501
- "columns": {
502
- "id": {
503
- "name": "id",
504
- "type": "text",
505
- "primaryKey": true,
506
- "notNull": true,
507
- "autoincrement": false
508
- },
509
- "organization_id": {
510
- "name": "organization_id",
511
- "type": "text",
512
- "primaryKey": false,
513
- "notNull": true,
514
- "autoincrement": false
515
- },
516
- "user_id": {
517
- "name": "user_id",
518
- "type": "text",
519
- "primaryKey": false,
520
- "notNull": true,
521
- "autoincrement": false
522
- },
523
- "role": {
524
- "name": "role",
525
- "type": "text",
526
- "primaryKey": false,
527
- "notNull": true,
528
- "autoincrement": false
529
- },
530
- "created_at": {
531
- "name": "created_at",
532
- "type": "integer",
533
- "primaryKey": false,
534
- "notNull": true,
535
- "autoincrement": false
536
- },
537
- "preferences": {
538
- "name": "preferences",
539
- "type": "text",
540
- "primaryKey": false,
541
- "notNull": false,
542
- "autoincrement": false,
543
- "default": "'{}'"
544
- },
545
- "metadata": {
546
- "name": "metadata",
547
- "type": "text",
548
- "primaryKey": false,
549
- "notNull": false,
550
- "autoincrement": false,
551
- "default": "'{}'"
552
- },
553
- "onboarding": {
554
- "name": "onboarding",
555
- "type": "integer",
556
- "primaryKey": false,
557
- "notNull": false,
558
- "autoincrement": false
559
- },
560
- "flags": {
561
- "name": "flags",
562
- "type": "text",
563
- "primaryKey": false,
564
- "notNull": false,
565
- "autoincrement": false,
566
- "default": "'[]'"
567
- }
568
- },
569
- "indexes": {},
570
- "foreignKeys": {
571
- "members_organization_id_organizations_id_fk": {
572
- "name": "members_organization_id_organizations_id_fk",
573
- "tableFrom": "members",
574
- "tableTo": "organizations",
575
- "columnsFrom": [
576
- "organization_id"
577
- ],
578
- "columnsTo": [
579
- "id"
580
- ],
581
- "onDelete": "no action",
582
- "onUpdate": "no action"
583
- },
584
- "members_user_id_users_id_fk": {
585
- "name": "members_user_id_users_id_fk",
586
- "tableFrom": "members",
587
- "tableTo": "users",
588
- "columnsFrom": [
589
- "user_id"
590
- ],
591
- "columnsTo": [
592
- "id"
593
- ],
594
- "onDelete": "no action",
595
- "onUpdate": "no action"
596
- }
597
- },
598
- "compositePrimaryKeys": {},
599
- "uniqueConstraints": {},
600
- "checkConstraints": {}
601
- },
602
- "notification_devices": {
603
- "name": "notification_devices",
604
- "columns": {
605
- "id": {
606
- "name": "id",
607
- "type": "text",
608
- "primaryKey": true,
609
- "notNull": true,
610
- "autoincrement": false
611
- },
612
- "user_id": {
613
- "name": "user_id",
614
- "type": "text",
615
- "primaryKey": false,
616
- "notNull": true,
617
- "autoincrement": false
618
- },
619
- "platform": {
620
- "name": "platform",
621
- "type": "text",
622
- "primaryKey": false,
623
- "notNull": true,
624
- "autoincrement": false
625
- },
626
- "endpoint": {
627
- "name": "endpoint",
628
- "type": "text",
629
- "primaryKey": false,
630
- "notNull": false,
631
- "autoincrement": false
632
- },
633
- "subscription": {
634
- "name": "subscription",
635
- "type": "text",
636
- "primaryKey": false,
637
- "notNull": false,
638
- "autoincrement": false
639
- },
640
- "token": {
641
- "name": "token",
642
- "type": "text",
643
- "primaryKey": false,
644
- "notNull": false,
645
- "autoincrement": false
646
- },
647
- "label": {
648
- "name": "label",
649
- "type": "text",
650
- "primaryKey": false,
651
- "notNull": false,
652
- "autoincrement": false
653
- },
654
- "enabled": {
655
- "name": "enabled",
656
- "type": "integer",
657
- "primaryKey": false,
658
- "notNull": true,
659
- "autoincrement": false,
660
- "default": true
661
- },
662
- "created_at": {
663
- "name": "created_at",
664
- "type": "integer",
665
- "primaryKey": false,
666
- "notNull": true,
667
- "autoincrement": false
668
- },
669
- "updated_at": {
670
- "name": "updated_at",
671
- "type": "integer",
672
- "primaryKey": false,
673
- "notNull": true,
674
- "autoincrement": false
675
- }
676
- },
677
- "indexes": {
678
- "notification_devices_endpoint_unique": {
679
- "name": "notification_devices_endpoint_unique",
680
- "columns": [
681
- "endpoint"
682
- ],
683
- "isUnique": true
684
- },
685
- "notification_devices_token_unique": {
686
- "name": "notification_devices_token_unique",
687
- "columns": [
688
- "token"
689
- ],
690
- "isUnique": true
691
- }
692
- },
693
- "foreignKeys": {
694
- "notification_devices_user_id_users_id_fk": {
695
- "name": "notification_devices_user_id_users_id_fk",
696
- "tableFrom": "notification_devices",
697
- "tableTo": "users",
698
- "columnsFrom": [
699
- "user_id"
700
- ],
701
- "columnsTo": [
702
- "id"
703
- ],
704
- "onDelete": "cascade",
705
- "onUpdate": "no action"
706
- }
707
- },
708
- "compositePrimaryKeys": {},
709
- "uniqueConstraints": {},
710
- "checkConstraints": {}
711
- },
712
- "notification_send_logs": {
713
- "name": "notification_send_logs",
714
- "columns": {
715
- "id": {
716
- "name": "id",
717
- "type": "text",
718
- "primaryKey": true,
719
- "notNull": true,
720
- "autoincrement": false
721
- },
722
- "batch_id": {
723
- "name": "batch_id",
724
- "type": "text",
725
- "primaryKey": false,
726
- "notNull": true,
727
- "autoincrement": false
728
- },
729
- "user_id": {
730
- "name": "user_id",
731
- "type": "text",
732
- "primaryKey": false,
733
- "notNull": true,
734
- "autoincrement": false
735
- },
736
- "device_id": {
737
- "name": "device_id",
738
- "type": "text",
739
- "primaryKey": false,
740
- "notNull": true,
741
- "autoincrement": false
742
- },
743
- "provider": {
744
- "name": "provider",
745
- "type": "text",
746
- "primaryKey": false,
747
- "notNull": true,
748
- "autoincrement": false
749
- },
750
- "title": {
751
- "name": "title",
752
- "type": "text",
753
- "primaryKey": false,
754
- "notNull": true,
755
- "autoincrement": false
756
- },
757
- "body": {
758
- "name": "body",
759
- "type": "text",
760
- "primaryKey": false,
761
- "notNull": true,
762
- "autoincrement": false
763
- },
764
- "data": {
765
- "name": "data",
766
- "type": "text",
767
- "primaryKey": false,
768
- "notNull": false,
769
- "autoincrement": false
770
- },
771
- "status": {
772
- "name": "status",
773
- "type": "text",
774
- "primaryKey": false,
775
- "notNull": true,
776
- "autoincrement": false
777
- },
778
- "error": {
779
- "name": "error",
780
- "type": "text",
781
- "primaryKey": false,
782
- "notNull": false,
783
- "autoincrement": false
784
- },
785
- "job_id": {
786
- "name": "job_id",
787
- "type": "text",
788
- "primaryKey": false,
789
- "notNull": false,
790
- "autoincrement": false
791
- },
792
- "created_at": {
793
- "name": "created_at",
794
- "type": "integer",
795
- "primaryKey": false,
796
- "notNull": true,
797
- "autoincrement": false
798
- },
799
- "updated_at": {
800
- "name": "updated_at",
801
- "type": "integer",
802
- "primaryKey": false,
803
- "notNull": true,
804
- "autoincrement": false
805
- }
806
- },
807
- "indexes": {},
808
- "foreignKeys": {
809
- "notification_send_logs_user_id_users_id_fk": {
810
- "name": "notification_send_logs_user_id_users_id_fk",
811
- "tableFrom": "notification_send_logs",
812
- "tableTo": "users",
813
- "columnsFrom": [
814
- "user_id"
815
- ],
816
- "columnsTo": [
817
- "id"
818
- ],
819
- "onDelete": "cascade",
820
- "onUpdate": "no action"
821
- },
822
- "notification_send_logs_device_id_notification_devices_id_fk": {
823
- "name": "notification_send_logs_device_id_notification_devices_id_fk",
824
- "tableFrom": "notification_send_logs",
825
- "tableTo": "notification_devices",
826
- "columnsFrom": [
827
- "device_id"
828
- ],
829
- "columnsTo": [
830
- "id"
831
- ],
832
- "onDelete": "cascade",
833
- "onUpdate": "no action"
834
- }
835
- },
836
- "compositePrimaryKeys": {},
837
- "uniqueConstraints": {},
838
- "checkConstraints": {}
839
- },
840
- "organizations": {
841
- "name": "organizations",
842
- "columns": {
843
- "id": {
844
- "name": "id",
845
- "type": "text",
846
- "primaryKey": true,
847
- "notNull": true,
848
- "autoincrement": false
849
- },
850
- "name": {
851
- "name": "name",
852
- "type": "text",
853
- "primaryKey": false,
854
- "notNull": true,
855
- "autoincrement": false
856
- },
857
- "slug": {
858
- "name": "slug",
859
- "type": "text",
860
- "primaryKey": false,
861
- "notNull": false,
862
- "autoincrement": false
863
- },
864
- "logo": {
865
- "name": "logo",
866
- "type": "text",
867
- "primaryKey": false,
868
- "notNull": false,
869
- "autoincrement": false
870
- },
871
- "type": {
872
- "name": "type",
873
- "type": "text",
874
- "primaryKey": false,
875
- "notNull": false,
876
- "autoincrement": false
877
- },
878
- "parent_id": {
879
- "name": "parent_id",
880
- "type": "text",
881
- "primaryKey": false,
882
- "notNull": false,
883
- "autoincrement": false
884
- },
885
- "created_at": {
886
- "name": "created_at",
887
- "type": "integer",
888
- "primaryKey": false,
889
- "notNull": true,
890
- "autoincrement": false
891
- },
892
- "onboarding": {
893
- "name": "onboarding",
894
- "type": "integer",
895
- "primaryKey": false,
896
- "notNull": false,
897
- "autoincrement": false
898
- },
899
- "preferences": {
900
- "name": "preferences",
901
- "type": "text",
902
- "primaryKey": false,
903
- "notNull": false,
904
- "autoincrement": false,
905
- "default": "'{}'"
906
- },
907
- "metadata": {
908
- "name": "metadata",
909
- "type": "text",
910
- "primaryKey": false,
911
- "notNull": false,
912
- "autoincrement": false,
913
- "default": "'{}'"
914
- },
915
- "flags": {
916
- "name": "flags",
917
- "type": "text",
918
- "primaryKey": false,
919
- "notNull": false,
920
- "autoincrement": false,
921
- "default": "'[]'"
922
- },
923
- "locale": {
924
- "name": "locale",
925
- "type": "text",
926
- "primaryKey": false,
927
- "notNull": false,
928
- "autoincrement": false
929
- }
930
- },
931
- "indexes": {
932
- "organizations_slug_unique": {
933
- "name": "organizations_slug_unique",
934
- "columns": [
935
- "slug"
936
- ],
937
- "isUnique": true
938
- }
939
- },
940
- "foreignKeys": {
941
- "organizations_parent_id_organizations_id_fk": {
942
- "name": "organizations_parent_id_organizations_id_fk",
943
- "tableFrom": "organizations",
944
- "tableTo": "organizations",
945
- "columnsFrom": [
946
- "parent_id"
947
- ],
948
- "columnsTo": [
949
- "id"
950
- ],
951
- "onDelete": "set null",
952
- "onUpdate": "no action"
953
- }
954
- },
955
- "compositePrimaryKeys": {},
956
- "uniqueConstraints": {},
957
- "checkConstraints": {}
958
- },
959
- "posts": {
960
- "name": "posts",
961
- "columns": {
962
- "id": {
963
- "name": "id",
964
- "type": "text",
965
- "primaryKey": true,
966
- "notNull": true,
967
- "autoincrement": false
968
- },
969
- "author_user_id": {
970
- "name": "author_user_id",
971
- "type": "text",
972
- "primaryKey": false,
973
- "notNull": false,
974
- "autoincrement": false
975
- },
976
- "organization_id": {
977
- "name": "organization_id",
978
- "type": "text",
979
- "primaryKey": false,
980
- "notNull": false,
981
- "autoincrement": false
982
- },
983
- "team_id": {
984
- "name": "team_id",
985
- "type": "text",
986
- "primaryKey": false,
987
- "notNull": false,
988
- "autoincrement": false
989
- },
990
- "title": {
991
- "name": "title",
992
- "type": "text",
993
- "primaryKey": false,
994
- "notNull": true,
995
- "autoincrement": false
996
- },
997
- "slug": {
998
- "name": "slug",
999
- "type": "text",
1000
- "primaryKey": false,
1001
- "notNull": true,
1002
- "autoincrement": false
1003
- },
1004
- "excerpt": {
1005
- "name": "excerpt",
1006
- "type": "text",
1007
- "primaryKey": false,
1008
- "notNull": false,
1009
- "autoincrement": false
1010
- },
1011
- "content": {
1012
- "name": "content",
1013
- "type": "text",
1014
- "primaryKey": false,
1015
- "notNull": true,
1016
- "autoincrement": false
1017
- },
1018
- "status": {
1019
- "name": "status",
1020
- "type": "text",
1021
- "primaryKey": false,
1022
- "notNull": true,
1023
- "autoincrement": false,
1024
- "default": "'draft'"
1025
- },
1026
- "published_at": {
1027
- "name": "published_at",
1028
- "type": "integer",
1029
- "primaryKey": false,
1030
- "notNull": false,
1031
- "autoincrement": false
1032
- },
1033
- "created_at": {
1034
- "name": "created_at",
1035
- "type": "integer",
1036
- "primaryKey": false,
1037
- "notNull": true,
1038
- "autoincrement": false
1039
- },
1040
- "updated_at": {
1041
- "name": "updated_at",
1042
- "type": "integer",
1043
- "primaryKey": false,
1044
- "notNull": false,
1045
- "autoincrement": false
1046
- },
1047
- "deleted_at": {
1048
- "name": "deleted_at",
1049
- "type": "integer",
1050
- "primaryKey": false,
1051
- "notNull": false,
1052
- "autoincrement": false
1053
- }
1054
- },
1055
- "indexes": {
1056
- "posts_slug_unique": {
1057
- "name": "posts_slug_unique",
1058
- "columns": [
1059
- "slug"
1060
- ],
1061
- "isUnique": true
1062
- }
1063
- },
1064
- "foreignKeys": {
1065
- "posts_author_user_id_users_id_fk": {
1066
- "name": "posts_author_user_id_users_id_fk",
1067
- "tableFrom": "posts",
1068
- "tableTo": "users",
1069
- "columnsFrom": [
1070
- "author_user_id"
1071
- ],
1072
- "columnsTo": [
1073
- "id"
1074
- ],
1075
- "onDelete": "set null",
1076
- "onUpdate": "no action"
1077
- },
1078
- "posts_organization_id_organizations_id_fk": {
1079
- "name": "posts_organization_id_organizations_id_fk",
1080
- "tableFrom": "posts",
1081
- "tableTo": "organizations",
1082
- "columnsFrom": [
1083
- "organization_id"
1084
- ],
1085
- "columnsTo": [
1086
- "id"
1087
- ],
1088
- "onDelete": "set null",
1089
- "onUpdate": "no action"
1090
- },
1091
- "posts_team_id_teams_id_fk": {
1092
- "name": "posts_team_id_teams_id_fk",
1093
- "tableFrom": "posts",
1094
- "tableTo": "teams",
1095
- "columnsFrom": [
1096
- "team_id"
1097
- ],
1098
- "columnsTo": [
1099
- "id"
1100
- ],
1101
- "onDelete": "set null",
1102
- "onUpdate": "no action"
1103
- }
1104
- },
1105
- "compositePrimaryKeys": {},
1106
- "uniqueConstraints": {},
1107
- "checkConstraints": {}
1108
- },
1109
- "sessions": {
1110
- "name": "sessions",
1111
- "columns": {
1112
- "id": {
1113
- "name": "id",
1114
- "type": "text",
1115
- "primaryKey": true,
1116
- "notNull": true,
1117
- "autoincrement": false
1118
- },
1119
- "expires_at": {
1120
- "name": "expires_at",
1121
- "type": "integer",
1122
- "primaryKey": false,
1123
- "notNull": true,
1124
- "autoincrement": false
1125
- },
1126
- "token": {
1127
- "name": "token",
1128
- "type": "text",
1129
- "primaryKey": false,
1130
- "notNull": true,
1131
- "autoincrement": false
1132
- },
1133
- "created_at": {
1134
- "name": "created_at",
1135
- "type": "integer",
1136
- "primaryKey": false,
1137
- "notNull": true,
1138
- "autoincrement": false
1139
- },
1140
- "updated_at": {
1141
- "name": "updated_at",
1142
- "type": "integer",
1143
- "primaryKey": false,
1144
- "notNull": true,
1145
- "autoincrement": false
1146
- },
1147
- "ip_address": {
1148
- "name": "ip_address",
1149
- "type": "text",
1150
- "primaryKey": false,
1151
- "notNull": false,
1152
- "autoincrement": false
1153
- },
1154
- "user_agent": {
1155
- "name": "user_agent",
1156
- "type": "text",
1157
- "primaryKey": false,
1158
- "notNull": false,
1159
- "autoincrement": false
1160
- },
1161
- "user_id": {
1162
- "name": "user_id",
1163
- "type": "text",
1164
- "primaryKey": false,
1165
- "notNull": true,
1166
- "autoincrement": false
1167
- },
1168
- "impersonated_by": {
1169
- "name": "impersonated_by",
1170
- "type": "text",
1171
- "primaryKey": false,
1172
- "notNull": false,
1173
- "autoincrement": false
1174
- },
1175
- "active_organization_id": {
1176
- "name": "active_organization_id",
1177
- "type": "text",
1178
- "primaryKey": false,
1179
- "notNull": false,
1180
- "autoincrement": false
1181
- },
1182
- "active_organization_member_id": {
1183
- "name": "active_organization_member_id",
1184
- "type": "text",
1185
- "primaryKey": false,
1186
- "notNull": false,
1187
- "autoincrement": false
1188
- },
1189
- "active_organization_role": {
1190
- "name": "active_organization_role",
1191
- "type": "text",
1192
- "primaryKey": false,
1193
- "notNull": false,
1194
- "autoincrement": false
1195
- },
1196
- "active_organization_type": {
1197
- "name": "active_organization_type",
1198
- "type": "text",
1199
- "primaryKey": false,
1200
- "notNull": false,
1201
- "autoincrement": false
1202
- },
1203
- "active_team_id": {
1204
- "name": "active_team_id",
1205
- "type": "text",
1206
- "primaryKey": false,
1207
- "notNull": false,
1208
- "autoincrement": false
1209
- },
1210
- "active_team_role": {
1211
- "name": "active_team_role",
1212
- "type": "text",
1213
- "primaryKey": false,
1214
- "notNull": false,
1215
- "autoincrement": false
1216
- }
1217
- },
1218
- "indexes": {
1219
- "sessions_token_unique": {
1220
- "name": "sessions_token_unique",
1221
- "columns": [
1222
- "token"
1223
- ],
1224
- "isUnique": true
1225
- }
1226
- },
1227
- "foreignKeys": {
1228
- "sessions_user_id_users_id_fk": {
1229
- "name": "sessions_user_id_users_id_fk",
1230
- "tableFrom": "sessions",
1231
- "tableTo": "users",
1232
- "columnsFrom": [
1233
- "user_id"
1234
- ],
1235
- "columnsTo": [
1236
- "id"
1237
- ],
1238
- "onDelete": "cascade",
1239
- "onUpdate": "no action"
1240
- }
1241
- },
1242
- "compositePrimaryKeys": {},
1243
- "uniqueConstraints": {},
1244
- "checkConstraints": {}
1245
- },
1246
- "teammembers": {
1247
- "name": "teammembers",
1248
- "columns": {
1249
- "id": {
1250
- "name": "id",
1251
- "type": "text",
1252
- "primaryKey": true,
1253
- "notNull": true,
1254
- "autoincrement": false
1255
- },
1256
- "team_id": {
1257
- "name": "team_id",
1258
- "type": "text",
1259
- "primaryKey": false,
1260
- "notNull": true,
1261
- "autoincrement": false
1262
- },
1263
- "user_id": {
1264
- "name": "user_id",
1265
- "type": "text",
1266
- "primaryKey": false,
1267
- "notNull": true,
1268
- "autoincrement": false
1269
- },
1270
- "role": {
1271
- "name": "role",
1272
- "type": "text",
1273
- "primaryKey": false,
1274
- "notNull": true,
1275
- "autoincrement": false
1276
- },
1277
- "created_at": {
1278
- "name": "created_at",
1279
- "type": "integer",
1280
- "primaryKey": false,
1281
- "notNull": true,
1282
- "autoincrement": false
1283
- }
1284
- },
1285
- "indexes": {},
1286
- "foreignKeys": {
1287
- "teammembers_team_id_teams_id_fk": {
1288
- "name": "teammembers_team_id_teams_id_fk",
1289
- "tableFrom": "teammembers",
1290
- "tableTo": "teams",
1291
- "columnsFrom": [
1292
- "team_id"
1293
- ],
1294
- "columnsTo": [
1295
- "id"
1296
- ],
1297
- "onDelete": "no action",
1298
- "onUpdate": "no action"
1299
- },
1300
- "teammembers_user_id_users_id_fk": {
1301
- "name": "teammembers_user_id_users_id_fk",
1302
- "tableFrom": "teammembers",
1303
- "tableTo": "users",
1304
- "columnsFrom": [
1305
- "user_id"
1306
- ],
1307
- "columnsTo": [
1308
- "id"
1309
- ],
1310
- "onDelete": "no action",
1311
- "onUpdate": "no action"
1312
- }
1313
- },
1314
- "compositePrimaryKeys": {},
1315
- "uniqueConstraints": {},
1316
- "checkConstraints": {}
1317
- },
1318
- "teams": {
1319
- "name": "teams",
1320
- "columns": {
1321
- "id": {
1322
- "name": "id",
1323
- "type": "text",
1324
- "primaryKey": true,
1325
- "notNull": true,
1326
- "autoincrement": false
1327
- },
1328
- "name": {
1329
- "name": "name",
1330
- "type": "text",
1331
- "primaryKey": false,
1332
- "notNull": true,
1333
- "autoincrement": false
1334
- },
1335
- "organization_id": {
1336
- "name": "organization_id",
1337
- "type": "text",
1338
- "primaryKey": false,
1339
- "notNull": true,
1340
- "autoincrement": false
1341
- },
1342
- "created_at": {
1343
- "name": "created_at",
1344
- "type": "integer",
1345
- "primaryKey": false,
1346
- "notNull": true,
1347
- "autoincrement": false
1348
- },
1349
- "updated_at": {
1350
- "name": "updated_at",
1351
- "type": "integer",
1352
- "primaryKey": false,
1353
- "notNull": false,
1354
- "autoincrement": false
1355
- }
1356
- },
1357
- "indexes": {},
1358
- "foreignKeys": {
1359
- "teams_organization_id_organizations_id_fk": {
1360
- "name": "teams_organization_id_organizations_id_fk",
1361
- "tableFrom": "teams",
1362
- "tableTo": "organizations",
1363
- "columnsFrom": [
1364
- "organization_id"
1365
- ],
1366
- "columnsTo": [
1367
- "id"
1368
- ],
1369
- "onDelete": "no action",
1370
- "onUpdate": "no action"
1371
- }
1372
- },
1373
- "compositePrimaryKeys": {},
1374
- "uniqueConstraints": {},
1375
- "checkConstraints": {}
1376
- },
1377
- "users": {
1378
- "name": "users",
1379
- "columns": {
1380
- "id": {
1381
- "name": "id",
1382
- "type": "text",
1383
- "primaryKey": true,
1384
- "notNull": true,
1385
- "autoincrement": false
1386
- },
1387
- "name": {
1388
- "name": "name",
1389
- "type": "text",
1390
- "primaryKey": false,
1391
- "notNull": true,
1392
- "autoincrement": false
1393
- },
1394
- "email": {
1395
- "name": "email",
1396
- "type": "text",
1397
- "primaryKey": false,
1398
- "notNull": true,
1399
- "autoincrement": false
1400
- },
1401
- "email_verified": {
1402
- "name": "email_verified",
1403
- "type": "integer",
1404
- "primaryKey": false,
1405
- "notNull": true,
1406
- "autoincrement": false
1407
- },
1408
- "image": {
1409
- "name": "image",
1410
- "type": "text",
1411
- "primaryKey": false,
1412
- "notNull": false,
1413
- "autoincrement": false
1414
- },
1415
- "created_at": {
1416
- "name": "created_at",
1417
- "type": "integer",
1418
- "primaryKey": false,
1419
- "notNull": true,
1420
- "autoincrement": false
1421
- },
1422
- "updated_at": {
1423
- "name": "updated_at",
1424
- "type": "integer",
1425
- "primaryKey": false,
1426
- "notNull": true,
1427
- "autoincrement": false
1428
- },
1429
- "role": {
1430
- "name": "role",
1431
- "type": "text",
1432
- "primaryKey": false,
1433
- "notNull": false,
1434
- "autoincrement": false
1435
- },
1436
- "banned": {
1437
- "name": "banned",
1438
- "type": "integer",
1439
- "primaryKey": false,
1440
- "notNull": false,
1441
- "autoincrement": false
1442
- },
1443
- "ban_reason": {
1444
- "name": "ban_reason",
1445
- "type": "text",
1446
- "primaryKey": false,
1447
- "notNull": false,
1448
- "autoincrement": false
1449
- },
1450
- "ban_expires": {
1451
- "name": "ban_expires",
1452
- "type": "integer",
1453
- "primaryKey": false,
1454
- "notNull": false,
1455
- "autoincrement": false
1456
- },
1457
- "stripe_customer_id": {
1458
- "name": "stripe_customer_id",
1459
- "type": "text",
1460
- "primaryKey": false,
1461
- "notNull": false,
1462
- "autoincrement": false
1463
- },
1464
- "payment_customer_id": {
1465
- "name": "payment_customer_id",
1466
- "type": "text",
1467
- "primaryKey": false,
1468
- "notNull": false,
1469
- "autoincrement": false
1470
- },
1471
- "payment_plan_tier": {
1472
- "name": "payment_plan_tier",
1473
- "type": "text",
1474
- "primaryKey": false,
1475
- "notNull": false,
1476
- "autoincrement": false
1477
- },
1478
- "payment_plan_expires_at": {
1479
- "name": "payment_plan_expires_at",
1480
- "type": "integer",
1481
- "primaryKey": false,
1482
- "notNull": false,
1483
- "autoincrement": false
1484
- },
1485
- "preferences": {
1486
- "name": "preferences",
1487
- "type": "text",
1488
- "primaryKey": false,
1489
- "notNull": false,
1490
- "autoincrement": false,
1491
- "default": "'{}'"
1492
- },
1493
- "metadata": {
1494
- "name": "metadata",
1495
- "type": "text",
1496
- "primaryKey": false,
1497
- "notNull": false,
1498
- "autoincrement": false,
1499
- "default": "'{}'"
1500
- },
1501
- "onboarding": {
1502
- "name": "onboarding",
1503
- "type": "integer",
1504
- "primaryKey": false,
1505
- "notNull": false,
1506
- "autoincrement": false
1507
- },
1508
- "flags": {
1509
- "name": "flags",
1510
- "type": "text",
1511
- "primaryKey": false,
1512
- "notNull": false,
1513
- "autoincrement": false,
1514
- "default": "'[]'"
1515
- },
1516
- "locale": {
1517
- "name": "locale",
1518
- "type": "text",
1519
- "primaryKey": false,
1520
- "notNull": false,
1521
- "autoincrement": false
1522
- }
1523
- },
1524
- "indexes": {
1525
- "users_email_unique": {
1526
- "name": "users_email_unique",
1527
- "columns": [
1528
- "email"
1529
- ],
1530
- "isUnique": true
1531
- },
1532
- "users_stripe_customer_id_unique": {
1533
- "name": "users_stripe_customer_id_unique",
1534
- "columns": [
1535
- "stripe_customer_id"
1536
- ],
1537
- "isUnique": true
1538
- },
1539
- "users_payment_customer_id_unique": {
1540
- "name": "users_payment_customer_id_unique",
1541
- "columns": [
1542
- "payment_customer_id"
1543
- ],
1544
- "isUnique": true
1545
- }
1546
- },
1547
- "foreignKeys": {},
1548
- "compositePrimaryKeys": {},
1549
- "uniqueConstraints": {},
1550
- "checkConstraints": {}
1551
- },
1552
- "verifications": {
1553
- "name": "verifications",
1554
- "columns": {
1555
- "id": {
1556
- "name": "id",
1557
- "type": "text",
1558
- "primaryKey": true,
1559
- "notNull": true,
1560
- "autoincrement": false
1561
- },
1562
- "identifier": {
1563
- "name": "identifier",
1564
- "type": "text",
1565
- "primaryKey": false,
1566
- "notNull": true,
1567
- "autoincrement": false
1568
- },
1569
- "value": {
1570
- "name": "value",
1571
- "type": "text",
1572
- "primaryKey": false,
1573
- "notNull": true,
1574
- "autoincrement": false
1575
- },
1576
- "expires_at": {
1577
- "name": "expires_at",
1578
- "type": "integer",
1579
- "primaryKey": false,
1580
- "notNull": true,
1581
- "autoincrement": false
1582
- },
1583
- "created_at": {
1584
- "name": "created_at",
1585
- "type": "integer",
1586
- "primaryKey": false,
1587
- "notNull": false,
1588
- "autoincrement": false
1589
- },
1590
- "updated_at": {
1591
- "name": "updated_at",
1592
- "type": "integer",
1593
- "primaryKey": false,
1594
- "notNull": false,
1595
- "autoincrement": false
1596
- }
1597
- },
1598
- "indexes": {},
1599
- "foreignKeys": {},
1600
- "compositePrimaryKeys": {},
1601
- "uniqueConstraints": {},
1602
- "checkConstraints": {}
1603
- },
1604
- "waitlist": {
1605
- "name": "waitlist",
1606
- "columns": {
1607
- "id": {
1608
- "name": "id",
1609
- "type": "text",
1610
- "primaryKey": true,
1611
- "notNull": true,
1612
- "autoincrement": false
1613
- },
1614
- "name": {
1615
- "name": "name",
1616
- "type": "text",
1617
- "primaryKey": false,
1618
- "notNull": false,
1619
- "autoincrement": false
1620
- },
1621
- "email": {
1622
- "name": "email",
1623
- "type": "text",
1624
- "primaryKey": false,
1625
- "notNull": false,
1626
- "autoincrement": false
1627
- },
1628
- "created_at": {
1629
- "name": "created_at",
1630
- "type": "integer",
1631
- "primaryKey": false,
1632
- "notNull": true,
1633
- "autoincrement": false
1634
- },
1635
- "updated_at": {
1636
- "name": "updated_at",
1637
- "type": "integer",
1638
- "primaryKey": false,
1639
- "notNull": false,
1640
- "autoincrement": false
1641
- },
1642
- "status": {
1643
- "name": "status",
1644
- "type": "text",
1645
- "primaryKey": false,
1646
- "notNull": true,
1647
- "autoincrement": false,
1648
- "default": "'WAITLIST'"
1649
- },
1650
- "type": {
1651
- "name": "type",
1652
- "type": "text",
1653
- "primaryKey": false,
1654
- "notNull": true,
1655
- "autoincrement": false,
1656
- "default": "'WAITLIST'"
1657
- },
1658
- "code": {
1659
- "name": "code",
1660
- "type": "text",
1661
- "primaryKey": false,
1662
- "notNull": false,
1663
- "autoincrement": false
1664
- },
1665
- "expires_at": {
1666
- "name": "expires_at",
1667
- "type": "integer",
1668
- "primaryKey": false,
1669
- "notNull": false,
1670
- "autoincrement": false
1671
- },
1672
- "user_id": {
1673
- "name": "user_id",
1674
- "type": "text",
1675
- "primaryKey": false,
1676
- "notNull": false,
1677
- "autoincrement": false
1678
- },
1679
- "claim_user_id": {
1680
- "name": "claim_user_id",
1681
- "type": "text",
1682
- "primaryKey": false,
1683
- "notNull": false,
1684
- "autoincrement": false
1685
- },
1686
- "claimed_at": {
1687
- "name": "claimed_at",
1688
- "type": "integer",
1689
- "primaryKey": false,
1690
- "notNull": false,
1691
- "autoincrement": false
1692
- },
1693
- "claimed_email": {
1694
- "name": "claimed_email",
1695
- "type": "text",
1696
- "primaryKey": false,
1697
- "notNull": false,
1698
- "autoincrement": false
1699
- }
1700
- },
1701
- "indexes": {},
1702
- "foreignKeys": {
1703
- "waitlist_user_id_users_id_fk": {
1704
- "name": "waitlist_user_id_users_id_fk",
1705
- "tableFrom": "waitlist",
1706
- "tableTo": "users",
1707
- "columnsFrom": [
1708
- "user_id"
1709
- ],
1710
- "columnsTo": [
1711
- "id"
1712
- ],
1713
- "onDelete": "no action",
1714
- "onUpdate": "no action"
1715
- },
1716
- "waitlist_claim_user_id_users_id_fk": {
1717
- "name": "waitlist_claim_user_id_users_id_fk",
1718
- "tableFrom": "waitlist",
1719
- "tableTo": "users",
1720
- "columnsFrom": [
1721
- "claim_user_id"
1722
- ],
1723
- "columnsTo": [
1724
- "id"
1725
- ],
1726
- "onDelete": "no action",
1727
- "onUpdate": "no action"
1728
- }
1729
- },
1730
- "compositePrimaryKeys": {},
1731
- "uniqueConstraints": {},
1732
- "checkConstraints": {}
1733
- },
1734
- "workflows": {
1735
- "name": "workflows",
1736
- "columns": {
1737
- "id": {
1738
- "name": "id",
1739
- "type": "text",
1740
- "primaryKey": true,
1741
- "notNull": true,
1742
- "autoincrement": false
1743
- },
1744
- "user_id": {
1745
- "name": "user_id",
1746
- "type": "text",
1747
- "primaryKey": false,
1748
- "notNull": false,
1749
- "autoincrement": false
1750
- },
1751
- "job_id": {
1752
- "name": "job_id",
1753
- "type": "text",
1754
- "primaryKey": false,
1755
- "notNull": true,
1756
- "autoincrement": false
1757
- },
1758
- "job_name": {
1759
- "name": "job_name",
1760
- "type": "text",
1761
- "primaryKey": false,
1762
- "notNull": true,
1763
- "autoincrement": false
1764
- },
1765
- "queue_name": {
1766
- "name": "queue_name",
1767
- "type": "text",
1768
- "primaryKey": false,
1769
- "notNull": true,
1770
- "autoincrement": false
1771
- },
1772
- "timeout": {
1773
- "name": "timeout",
1774
- "type": "integer",
1775
- "primaryKey": false,
1776
- "notNull": false,
1777
- "autoincrement": false
1778
- },
1779
- "tags": {
1780
- "name": "tags",
1781
- "type": "text",
1782
- "primaryKey": false,
1783
- "notNull": false,
1784
- "autoincrement": false
1785
- },
1786
- "input": {
1787
- "name": "input",
1788
- "type": "text",
1789
- "primaryKey": false,
1790
- "notNull": false,
1791
- "autoincrement": false
1792
- },
1793
- "output": {
1794
- "name": "output",
1795
- "type": "text",
1796
- "primaryKey": false,
1797
- "notNull": false,
1798
- "autoincrement": false
1799
- },
1800
- "status": {
1801
- "name": "status",
1802
- "type": "text",
1803
- "primaryKey": false,
1804
- "notNull": true,
1805
- "autoincrement": false
1806
- },
1807
- "error": {
1808
- "name": "error",
1809
- "type": "text",
1810
- "primaryKey": false,
1811
- "notNull": false,
1812
- "autoincrement": false
1813
- },
1814
- "retries": {
1815
- "name": "retries",
1816
- "type": "integer",
1817
- "primaryKey": false,
1818
- "notNull": true,
1819
- "autoincrement": false,
1820
- "default": 0
1821
- },
1822
- "finished_at": {
1823
- "name": "finished_at",
1824
- "type": "integer",
1825
- "primaryKey": false,
1826
- "notNull": false,
1827
- "autoincrement": false
1828
- },
1829
- "processed_at": {
1830
- "name": "processed_at",
1831
- "type": "integer",
1832
- "primaryKey": false,
1833
- "notNull": false,
1834
- "autoincrement": false
1835
- },
1836
- "created_at": {
1837
- "name": "created_at",
1838
- "type": "integer",
1839
- "primaryKey": false,
1840
- "notNull": true,
1841
- "autoincrement": false
1842
- },
1843
- "updated_at": {
1844
- "name": "updated_at",
1845
- "type": "integer",
1846
- "primaryKey": false,
1847
- "notNull": true,
1848
- "autoincrement": false
1849
- }
1850
- },
1851
- "indexes": {
1852
- "workflows_job_id_unique": {
1853
- "name": "workflows_job_id_unique",
1854
- "columns": [
1855
- "job_id"
1856
- ],
1857
- "isUnique": true
1858
- }
1859
- },
1860
- "foreignKeys": {
1861
- "workflows_user_id_users_id_fk": {
1862
- "name": "workflows_user_id_users_id_fk",
1863
- "tableFrom": "workflows",
1864
- "tableTo": "users",
1865
- "columnsFrom": [
1866
- "user_id"
1867
- ],
1868
- "columnsTo": [
1869
- "id"
1870
- ],
1871
- "onDelete": "cascade",
1872
- "onUpdate": "no action"
1873
- }
1874
- },
1875
- "compositePrimaryKeys": {},
1876
- "uniqueConstraints": {},
1877
- "checkConstraints": {}
1878
- }
1879
- },
1880
- "views": {},
1881
- "enums": {},
1882
- "_meta": {
1883
- "schemas": {},
1884
- "tables": {},
1885
- "columns": {}
1886
- },
1887
- "internal": {
1888
- "indexes": {}
1889
- }
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "329ac971-9412-4197-8df7-30c14055ac25",
5
+ "prevId": "00000000-0000-0000-0000-000000000000",
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_waitlist_id_fk": {
70
+ "name": "account_claim_magic_links_claim_id_waitlist_id_fk",
71
+ "tableFrom": "account_claim_magic_links",
72
+ "tableTo": "waitlist",
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
+ "accounts": {
101
+ "name": "accounts",
102
+ "columns": {
103
+ "id": {
104
+ "name": "id",
105
+ "type": "text",
106
+ "primaryKey": true,
107
+ "notNull": true,
108
+ "autoincrement": false
109
+ },
110
+ "account_id": {
111
+ "name": "account_id",
112
+ "type": "text",
113
+ "primaryKey": false,
114
+ "notNull": true,
115
+ "autoincrement": false
116
+ },
117
+ "provider_id": {
118
+ "name": "provider_id",
119
+ "type": "text",
120
+ "primaryKey": false,
121
+ "notNull": true,
122
+ "autoincrement": false
123
+ },
124
+ "user_id": {
125
+ "name": "user_id",
126
+ "type": "text",
127
+ "primaryKey": false,
128
+ "notNull": true,
129
+ "autoincrement": false
130
+ },
131
+ "access_token": {
132
+ "name": "access_token",
133
+ "type": "text",
134
+ "primaryKey": false,
135
+ "notNull": false,
136
+ "autoincrement": false
137
+ },
138
+ "refresh_token": {
139
+ "name": "refresh_token",
140
+ "type": "text",
141
+ "primaryKey": false,
142
+ "notNull": false,
143
+ "autoincrement": false
144
+ },
145
+ "id_token": {
146
+ "name": "id_token",
147
+ "type": "text",
148
+ "primaryKey": false,
149
+ "notNull": false,
150
+ "autoincrement": false
151
+ },
152
+ "access_token_expires_at": {
153
+ "name": "access_token_expires_at",
154
+ "type": "integer",
155
+ "primaryKey": false,
156
+ "notNull": false,
157
+ "autoincrement": false
158
+ },
159
+ "refresh_token_expires_at": {
160
+ "name": "refresh_token_expires_at",
161
+ "type": "integer",
162
+ "primaryKey": false,
163
+ "notNull": false,
164
+ "autoincrement": false
165
+ },
166
+ "scope": {
167
+ "name": "scope",
168
+ "type": "text",
169
+ "primaryKey": false,
170
+ "notNull": false,
171
+ "autoincrement": false
172
+ },
173
+ "password": {
174
+ "name": "password",
175
+ "type": "text",
176
+ "primaryKey": false,
177
+ "notNull": false,
178
+ "autoincrement": false
179
+ },
180
+ "created_at": {
181
+ "name": "created_at",
182
+ "type": "integer",
183
+ "primaryKey": false,
184
+ "notNull": true,
185
+ "autoincrement": false
186
+ },
187
+ "updated_at": {
188
+ "name": "updated_at",
189
+ "type": "integer",
190
+ "primaryKey": false,
191
+ "notNull": true,
192
+ "autoincrement": false
193
+ }
194
+ },
195
+ "indexes": {},
196
+ "foreignKeys": {
197
+ "accounts_user_id_users_id_fk": {
198
+ "name": "accounts_user_id_users_id_fk",
199
+ "tableFrom": "accounts",
200
+ "tableTo": "users",
201
+ "columnsFrom": [
202
+ "user_id"
203
+ ],
204
+ "columnsTo": [
205
+ "id"
206
+ ],
207
+ "onDelete": "cascade",
208
+ "onUpdate": "no action"
209
+ }
210
+ },
211
+ "compositePrimaryKeys": {},
212
+ "uniqueConstraints": {},
213
+ "checkConstraints": {}
214
+ },
215
+ "apikeys": {
216
+ "name": "apikeys",
217
+ "columns": {
218
+ "id": {
219
+ "name": "id",
220
+ "type": "text",
221
+ "primaryKey": true,
222
+ "notNull": true,
223
+ "autoincrement": false
224
+ },
225
+ "name": {
226
+ "name": "name",
227
+ "type": "text",
228
+ "primaryKey": false,
229
+ "notNull": false,
230
+ "autoincrement": false
231
+ },
232
+ "start": {
233
+ "name": "start",
234
+ "type": "text",
235
+ "primaryKey": false,
236
+ "notNull": false,
237
+ "autoincrement": false
238
+ },
239
+ "prefix": {
240
+ "name": "prefix",
241
+ "type": "text",
242
+ "primaryKey": false,
243
+ "notNull": false,
244
+ "autoincrement": false
245
+ },
246
+ "key": {
247
+ "name": "key",
248
+ "type": "text",
249
+ "primaryKey": false,
250
+ "notNull": true,
251
+ "autoincrement": false
252
+ },
253
+ "user_id": {
254
+ "name": "user_id",
255
+ "type": "text",
256
+ "primaryKey": false,
257
+ "notNull": true,
258
+ "autoincrement": false
259
+ },
260
+ "refill_interval": {
261
+ "name": "refill_interval",
262
+ "type": "integer",
263
+ "primaryKey": false,
264
+ "notNull": false,
265
+ "autoincrement": false
266
+ },
267
+ "refill_amount": {
268
+ "name": "refill_amount",
269
+ "type": "integer",
270
+ "primaryKey": false,
271
+ "notNull": false,
272
+ "autoincrement": false
273
+ },
274
+ "last_refill_at": {
275
+ "name": "last_refill_at",
276
+ "type": "integer",
277
+ "primaryKey": false,
278
+ "notNull": false,
279
+ "autoincrement": false
280
+ },
281
+ "enabled": {
282
+ "name": "enabled",
283
+ "type": "integer",
284
+ "primaryKey": false,
285
+ "notNull": true,
286
+ "autoincrement": false
287
+ },
288
+ "rate_limit_enabled": {
289
+ "name": "rate_limit_enabled",
290
+ "type": "integer",
291
+ "primaryKey": false,
292
+ "notNull": true,
293
+ "autoincrement": false
294
+ },
295
+ "rate_limit_time_window": {
296
+ "name": "rate_limit_time_window",
297
+ "type": "integer",
298
+ "primaryKey": false,
299
+ "notNull": false,
300
+ "autoincrement": false
301
+ },
302
+ "rate_limit_max": {
303
+ "name": "rate_limit_max",
304
+ "type": "integer",
305
+ "primaryKey": false,
306
+ "notNull": false,
307
+ "autoincrement": false
308
+ },
309
+ "request_count": {
310
+ "name": "request_count",
311
+ "type": "integer",
312
+ "primaryKey": false,
313
+ "notNull": true,
314
+ "autoincrement": false
315
+ },
316
+ "remaining": {
317
+ "name": "remaining",
318
+ "type": "integer",
319
+ "primaryKey": false,
320
+ "notNull": false,
321
+ "autoincrement": false
322
+ },
323
+ "last_request": {
324
+ "name": "last_request",
325
+ "type": "integer",
326
+ "primaryKey": false,
327
+ "notNull": false,
328
+ "autoincrement": false
329
+ },
330
+ "expires_at": {
331
+ "name": "expires_at",
332
+ "type": "integer",
333
+ "primaryKey": false,
334
+ "notNull": false,
335
+ "autoincrement": false
336
+ },
337
+ "created_at": {
338
+ "name": "created_at",
339
+ "type": "integer",
340
+ "primaryKey": false,
341
+ "notNull": true,
342
+ "autoincrement": false
343
+ },
344
+ "updated_at": {
345
+ "name": "updated_at",
346
+ "type": "integer",
347
+ "primaryKey": false,
348
+ "notNull": true,
349
+ "autoincrement": false
350
+ },
351
+ "permissions": {
352
+ "name": "permissions",
353
+ "type": "text",
354
+ "primaryKey": false,
355
+ "notNull": false,
356
+ "autoincrement": false
357
+ },
358
+ "metadata": {
359
+ "name": "metadata",
360
+ "type": "text",
361
+ "primaryKey": false,
362
+ "notNull": false,
363
+ "autoincrement": false
364
+ }
365
+ },
366
+ "indexes": {},
367
+ "foreignKeys": {
368
+ "apikeys_user_id_users_id_fk": {
369
+ "name": "apikeys_user_id_users_id_fk",
370
+ "tableFrom": "apikeys",
371
+ "tableTo": "users",
372
+ "columnsFrom": [
373
+ "user_id"
374
+ ],
375
+ "columnsTo": [
376
+ "id"
377
+ ],
378
+ "onDelete": "no action",
379
+ "onUpdate": "no action"
380
+ }
381
+ },
382
+ "compositePrimaryKeys": {},
383
+ "uniqueConstraints": {},
384
+ "checkConstraints": {}
385
+ },
386
+ "invitations": {
387
+ "name": "invitations",
388
+ "columns": {
389
+ "id": {
390
+ "name": "id",
391
+ "type": "text",
392
+ "primaryKey": true,
393
+ "notNull": true,
394
+ "autoincrement": false
395
+ },
396
+ "organization_id": {
397
+ "name": "organization_id",
398
+ "type": "text",
399
+ "primaryKey": false,
400
+ "notNull": true,
401
+ "autoincrement": false
402
+ },
403
+ "team_id": {
404
+ "name": "team_id",
405
+ "type": "text",
406
+ "primaryKey": false,
407
+ "notNull": false,
408
+ "autoincrement": false
409
+ },
410
+ "email": {
411
+ "name": "email",
412
+ "type": "text",
413
+ "primaryKey": false,
414
+ "notNull": true,
415
+ "autoincrement": false
416
+ },
417
+ "role": {
418
+ "name": "role",
419
+ "type": "text",
420
+ "primaryKey": false,
421
+ "notNull": false,
422
+ "autoincrement": false
423
+ },
424
+ "status": {
425
+ "name": "status",
426
+ "type": "text",
427
+ "primaryKey": false,
428
+ "notNull": true,
429
+ "autoincrement": false
430
+ },
431
+ "created_at": {
432
+ "name": "created_at",
433
+ "type": "integer",
434
+ "primaryKey": false,
435
+ "notNull": true,
436
+ "autoincrement": false
437
+ },
438
+ "expires_at": {
439
+ "name": "expires_at",
440
+ "type": "integer",
441
+ "primaryKey": false,
442
+ "notNull": true,
443
+ "autoincrement": false
444
+ },
445
+ "inviter_id": {
446
+ "name": "inviter_id",
447
+ "type": "text",
448
+ "primaryKey": false,
449
+ "notNull": true,
450
+ "autoincrement": false
451
+ }
452
+ },
453
+ "indexes": {},
454
+ "foreignKeys": {
455
+ "invitations_organization_id_organizations_id_fk": {
456
+ "name": "invitations_organization_id_organizations_id_fk",
457
+ "tableFrom": "invitations",
458
+ "tableTo": "organizations",
459
+ "columnsFrom": [
460
+ "organization_id"
461
+ ],
462
+ "columnsTo": [
463
+ "id"
464
+ ],
465
+ "onDelete": "no action",
466
+ "onUpdate": "no action"
467
+ },
468
+ "invitations_team_id_teams_id_fk": {
469
+ "name": "invitations_team_id_teams_id_fk",
470
+ "tableFrom": "invitations",
471
+ "tableTo": "teams",
472
+ "columnsFrom": [
473
+ "team_id"
474
+ ],
475
+ "columnsTo": [
476
+ "id"
477
+ ],
478
+ "onDelete": "no action",
479
+ "onUpdate": "no action"
480
+ },
481
+ "invitations_inviter_id_users_id_fk": {
482
+ "name": "invitations_inviter_id_users_id_fk",
483
+ "tableFrom": "invitations",
484
+ "tableTo": "users",
485
+ "columnsFrom": [
486
+ "inviter_id"
487
+ ],
488
+ "columnsTo": [
489
+ "id"
490
+ ],
491
+ "onDelete": "no action",
492
+ "onUpdate": "no action"
493
+ }
494
+ },
495
+ "compositePrimaryKeys": {},
496
+ "uniqueConstraints": {},
497
+ "checkConstraints": {}
498
+ },
499
+ "members": {
500
+ "name": "members",
501
+ "columns": {
502
+ "id": {
503
+ "name": "id",
504
+ "type": "text",
505
+ "primaryKey": true,
506
+ "notNull": true,
507
+ "autoincrement": false
508
+ },
509
+ "organization_id": {
510
+ "name": "organization_id",
511
+ "type": "text",
512
+ "primaryKey": false,
513
+ "notNull": true,
514
+ "autoincrement": false
515
+ },
516
+ "user_id": {
517
+ "name": "user_id",
518
+ "type": "text",
519
+ "primaryKey": false,
520
+ "notNull": true,
521
+ "autoincrement": false
522
+ },
523
+ "role": {
524
+ "name": "role",
525
+ "type": "text",
526
+ "primaryKey": false,
527
+ "notNull": true,
528
+ "autoincrement": false
529
+ },
530
+ "created_at": {
531
+ "name": "created_at",
532
+ "type": "integer",
533
+ "primaryKey": false,
534
+ "notNull": true,
535
+ "autoincrement": false
536
+ },
537
+ "preferences": {
538
+ "name": "preferences",
539
+ "type": "text",
540
+ "primaryKey": false,
541
+ "notNull": false,
542
+ "autoincrement": false,
543
+ "default": "'{}'"
544
+ },
545
+ "metadata": {
546
+ "name": "metadata",
547
+ "type": "text",
548
+ "primaryKey": false,
549
+ "notNull": false,
550
+ "autoincrement": false,
551
+ "default": "'{}'"
552
+ },
553
+ "onboarding": {
554
+ "name": "onboarding",
555
+ "type": "integer",
556
+ "primaryKey": false,
557
+ "notNull": false,
558
+ "autoincrement": false
559
+ },
560
+ "flags": {
561
+ "name": "flags",
562
+ "type": "text",
563
+ "primaryKey": false,
564
+ "notNull": false,
565
+ "autoincrement": false,
566
+ "default": "'[]'"
567
+ }
568
+ },
569
+ "indexes": {},
570
+ "foreignKeys": {
571
+ "members_organization_id_organizations_id_fk": {
572
+ "name": "members_organization_id_organizations_id_fk",
573
+ "tableFrom": "members",
574
+ "tableTo": "organizations",
575
+ "columnsFrom": [
576
+ "organization_id"
577
+ ],
578
+ "columnsTo": [
579
+ "id"
580
+ ],
581
+ "onDelete": "no action",
582
+ "onUpdate": "no action"
583
+ },
584
+ "members_user_id_users_id_fk": {
585
+ "name": "members_user_id_users_id_fk",
586
+ "tableFrom": "members",
587
+ "tableTo": "users",
588
+ "columnsFrom": [
589
+ "user_id"
590
+ ],
591
+ "columnsTo": [
592
+ "id"
593
+ ],
594
+ "onDelete": "no action",
595
+ "onUpdate": "no action"
596
+ }
597
+ },
598
+ "compositePrimaryKeys": {},
599
+ "uniqueConstraints": {},
600
+ "checkConstraints": {}
601
+ },
602
+ "notification_devices": {
603
+ "name": "notification_devices",
604
+ "columns": {
605
+ "id": {
606
+ "name": "id",
607
+ "type": "text",
608
+ "primaryKey": true,
609
+ "notNull": true,
610
+ "autoincrement": false
611
+ },
612
+ "user_id": {
613
+ "name": "user_id",
614
+ "type": "text",
615
+ "primaryKey": false,
616
+ "notNull": true,
617
+ "autoincrement": false
618
+ },
619
+ "platform": {
620
+ "name": "platform",
621
+ "type": "text",
622
+ "primaryKey": false,
623
+ "notNull": true,
624
+ "autoincrement": false
625
+ },
626
+ "endpoint": {
627
+ "name": "endpoint",
628
+ "type": "text",
629
+ "primaryKey": false,
630
+ "notNull": false,
631
+ "autoincrement": false
632
+ },
633
+ "subscription": {
634
+ "name": "subscription",
635
+ "type": "text",
636
+ "primaryKey": false,
637
+ "notNull": false,
638
+ "autoincrement": false
639
+ },
640
+ "token": {
641
+ "name": "token",
642
+ "type": "text",
643
+ "primaryKey": false,
644
+ "notNull": false,
645
+ "autoincrement": false
646
+ },
647
+ "label": {
648
+ "name": "label",
649
+ "type": "text",
650
+ "primaryKey": false,
651
+ "notNull": false,
652
+ "autoincrement": false
653
+ },
654
+ "enabled": {
655
+ "name": "enabled",
656
+ "type": "integer",
657
+ "primaryKey": false,
658
+ "notNull": true,
659
+ "autoincrement": false,
660
+ "default": true
661
+ },
662
+ "created_at": {
663
+ "name": "created_at",
664
+ "type": "integer",
665
+ "primaryKey": false,
666
+ "notNull": true,
667
+ "autoincrement": false
668
+ },
669
+ "updated_at": {
670
+ "name": "updated_at",
671
+ "type": "integer",
672
+ "primaryKey": false,
673
+ "notNull": true,
674
+ "autoincrement": false
675
+ }
676
+ },
677
+ "indexes": {
678
+ "notification_devices_endpoint_unique": {
679
+ "name": "notification_devices_endpoint_unique",
680
+ "columns": [
681
+ "endpoint"
682
+ ],
683
+ "isUnique": true
684
+ },
685
+ "notification_devices_token_unique": {
686
+ "name": "notification_devices_token_unique",
687
+ "columns": [
688
+ "token"
689
+ ],
690
+ "isUnique": true
691
+ }
692
+ },
693
+ "foreignKeys": {
694
+ "notification_devices_user_id_users_id_fk": {
695
+ "name": "notification_devices_user_id_users_id_fk",
696
+ "tableFrom": "notification_devices",
697
+ "tableTo": "users",
698
+ "columnsFrom": [
699
+ "user_id"
700
+ ],
701
+ "columnsTo": [
702
+ "id"
703
+ ],
704
+ "onDelete": "cascade",
705
+ "onUpdate": "no action"
706
+ }
707
+ },
708
+ "compositePrimaryKeys": {},
709
+ "uniqueConstraints": {},
710
+ "checkConstraints": {}
711
+ },
712
+ "notification_send_logs": {
713
+ "name": "notification_send_logs",
714
+ "columns": {
715
+ "id": {
716
+ "name": "id",
717
+ "type": "text",
718
+ "primaryKey": true,
719
+ "notNull": true,
720
+ "autoincrement": false
721
+ },
722
+ "batch_id": {
723
+ "name": "batch_id",
724
+ "type": "text",
725
+ "primaryKey": false,
726
+ "notNull": true,
727
+ "autoincrement": false
728
+ },
729
+ "user_id": {
730
+ "name": "user_id",
731
+ "type": "text",
732
+ "primaryKey": false,
733
+ "notNull": true,
734
+ "autoincrement": false
735
+ },
736
+ "device_id": {
737
+ "name": "device_id",
738
+ "type": "text",
739
+ "primaryKey": false,
740
+ "notNull": true,
741
+ "autoincrement": false
742
+ },
743
+ "provider": {
744
+ "name": "provider",
745
+ "type": "text",
746
+ "primaryKey": false,
747
+ "notNull": true,
748
+ "autoincrement": false
749
+ },
750
+ "title": {
751
+ "name": "title",
752
+ "type": "text",
753
+ "primaryKey": false,
754
+ "notNull": true,
755
+ "autoincrement": false
756
+ },
757
+ "body": {
758
+ "name": "body",
759
+ "type": "text",
760
+ "primaryKey": false,
761
+ "notNull": true,
762
+ "autoincrement": false
763
+ },
764
+ "data": {
765
+ "name": "data",
766
+ "type": "text",
767
+ "primaryKey": false,
768
+ "notNull": false,
769
+ "autoincrement": false
770
+ },
771
+ "status": {
772
+ "name": "status",
773
+ "type": "text",
774
+ "primaryKey": false,
775
+ "notNull": true,
776
+ "autoincrement": false
777
+ },
778
+ "error": {
779
+ "name": "error",
780
+ "type": "text",
781
+ "primaryKey": false,
782
+ "notNull": false,
783
+ "autoincrement": false
784
+ },
785
+ "job_id": {
786
+ "name": "job_id",
787
+ "type": "text",
788
+ "primaryKey": false,
789
+ "notNull": false,
790
+ "autoincrement": false
791
+ },
792
+ "created_at": {
793
+ "name": "created_at",
794
+ "type": "integer",
795
+ "primaryKey": false,
796
+ "notNull": true,
797
+ "autoincrement": false
798
+ },
799
+ "updated_at": {
800
+ "name": "updated_at",
801
+ "type": "integer",
802
+ "primaryKey": false,
803
+ "notNull": true,
804
+ "autoincrement": false
805
+ }
806
+ },
807
+ "indexes": {},
808
+ "foreignKeys": {
809
+ "notification_send_logs_user_id_users_id_fk": {
810
+ "name": "notification_send_logs_user_id_users_id_fk",
811
+ "tableFrom": "notification_send_logs",
812
+ "tableTo": "users",
813
+ "columnsFrom": [
814
+ "user_id"
815
+ ],
816
+ "columnsTo": [
817
+ "id"
818
+ ],
819
+ "onDelete": "cascade",
820
+ "onUpdate": "no action"
821
+ },
822
+ "notification_send_logs_device_id_notification_devices_id_fk": {
823
+ "name": "notification_send_logs_device_id_notification_devices_id_fk",
824
+ "tableFrom": "notification_send_logs",
825
+ "tableTo": "notification_devices",
826
+ "columnsFrom": [
827
+ "device_id"
828
+ ],
829
+ "columnsTo": [
830
+ "id"
831
+ ],
832
+ "onDelete": "cascade",
833
+ "onUpdate": "no action"
834
+ }
835
+ },
836
+ "compositePrimaryKeys": {},
837
+ "uniqueConstraints": {},
838
+ "checkConstraints": {}
839
+ },
840
+ "organizations": {
841
+ "name": "organizations",
842
+ "columns": {
843
+ "id": {
844
+ "name": "id",
845
+ "type": "text",
846
+ "primaryKey": true,
847
+ "notNull": true,
848
+ "autoincrement": false
849
+ },
850
+ "name": {
851
+ "name": "name",
852
+ "type": "text",
853
+ "primaryKey": false,
854
+ "notNull": true,
855
+ "autoincrement": false
856
+ },
857
+ "slug": {
858
+ "name": "slug",
859
+ "type": "text",
860
+ "primaryKey": false,
861
+ "notNull": false,
862
+ "autoincrement": false
863
+ },
864
+ "logo": {
865
+ "name": "logo",
866
+ "type": "text",
867
+ "primaryKey": false,
868
+ "notNull": false,
869
+ "autoincrement": false
870
+ },
871
+ "type": {
872
+ "name": "type",
873
+ "type": "text",
874
+ "primaryKey": false,
875
+ "notNull": false,
876
+ "autoincrement": false
877
+ },
878
+ "parent_id": {
879
+ "name": "parent_id",
880
+ "type": "text",
881
+ "primaryKey": false,
882
+ "notNull": false,
883
+ "autoincrement": false
884
+ },
885
+ "created_at": {
886
+ "name": "created_at",
887
+ "type": "integer",
888
+ "primaryKey": false,
889
+ "notNull": true,
890
+ "autoincrement": false
891
+ },
892
+ "onboarding": {
893
+ "name": "onboarding",
894
+ "type": "integer",
895
+ "primaryKey": false,
896
+ "notNull": false,
897
+ "autoincrement": false
898
+ },
899
+ "preferences": {
900
+ "name": "preferences",
901
+ "type": "text",
902
+ "primaryKey": false,
903
+ "notNull": false,
904
+ "autoincrement": false,
905
+ "default": "'{}'"
906
+ },
907
+ "metadata": {
908
+ "name": "metadata",
909
+ "type": "text",
910
+ "primaryKey": false,
911
+ "notNull": false,
912
+ "autoincrement": false,
913
+ "default": "'{}'"
914
+ },
915
+ "flags": {
916
+ "name": "flags",
917
+ "type": "text",
918
+ "primaryKey": false,
919
+ "notNull": false,
920
+ "autoincrement": false,
921
+ "default": "'[]'"
922
+ },
923
+ "locale": {
924
+ "name": "locale",
925
+ "type": "text",
926
+ "primaryKey": false,
927
+ "notNull": false,
928
+ "autoincrement": false
929
+ }
930
+ },
931
+ "indexes": {
932
+ "organizations_slug_unique": {
933
+ "name": "organizations_slug_unique",
934
+ "columns": [
935
+ "slug"
936
+ ],
937
+ "isUnique": true
938
+ }
939
+ },
940
+ "foreignKeys": {
941
+ "organizations_parent_id_organizations_id_fk": {
942
+ "name": "organizations_parent_id_organizations_id_fk",
943
+ "tableFrom": "organizations",
944
+ "tableTo": "organizations",
945
+ "columnsFrom": [
946
+ "parent_id"
947
+ ],
948
+ "columnsTo": [
949
+ "id"
950
+ ],
951
+ "onDelete": "set null",
952
+ "onUpdate": "no action"
953
+ }
954
+ },
955
+ "compositePrimaryKeys": {},
956
+ "uniqueConstraints": {},
957
+ "checkConstraints": {}
958
+ },
959
+ "posts": {
960
+ "name": "posts",
961
+ "columns": {
962
+ "id": {
963
+ "name": "id",
964
+ "type": "text",
965
+ "primaryKey": true,
966
+ "notNull": true,
967
+ "autoincrement": false
968
+ },
969
+ "author_user_id": {
970
+ "name": "author_user_id",
971
+ "type": "text",
972
+ "primaryKey": false,
973
+ "notNull": false,
974
+ "autoincrement": false
975
+ },
976
+ "organization_id": {
977
+ "name": "organization_id",
978
+ "type": "text",
979
+ "primaryKey": false,
980
+ "notNull": false,
981
+ "autoincrement": false
982
+ },
983
+ "team_id": {
984
+ "name": "team_id",
985
+ "type": "text",
986
+ "primaryKey": false,
987
+ "notNull": false,
988
+ "autoincrement": false
989
+ },
990
+ "title": {
991
+ "name": "title",
992
+ "type": "text",
993
+ "primaryKey": false,
994
+ "notNull": true,
995
+ "autoincrement": false
996
+ },
997
+ "slug": {
998
+ "name": "slug",
999
+ "type": "text",
1000
+ "primaryKey": false,
1001
+ "notNull": true,
1002
+ "autoincrement": false
1003
+ },
1004
+ "excerpt": {
1005
+ "name": "excerpt",
1006
+ "type": "text",
1007
+ "primaryKey": false,
1008
+ "notNull": false,
1009
+ "autoincrement": false
1010
+ },
1011
+ "content": {
1012
+ "name": "content",
1013
+ "type": "text",
1014
+ "primaryKey": false,
1015
+ "notNull": true,
1016
+ "autoincrement": false
1017
+ },
1018
+ "status": {
1019
+ "name": "status",
1020
+ "type": "text",
1021
+ "primaryKey": false,
1022
+ "notNull": true,
1023
+ "autoincrement": false,
1024
+ "default": "'draft'"
1025
+ },
1026
+ "published_at": {
1027
+ "name": "published_at",
1028
+ "type": "integer",
1029
+ "primaryKey": false,
1030
+ "notNull": false,
1031
+ "autoincrement": false
1032
+ },
1033
+ "created_at": {
1034
+ "name": "created_at",
1035
+ "type": "integer",
1036
+ "primaryKey": false,
1037
+ "notNull": true,
1038
+ "autoincrement": false
1039
+ },
1040
+ "updated_at": {
1041
+ "name": "updated_at",
1042
+ "type": "integer",
1043
+ "primaryKey": false,
1044
+ "notNull": false,
1045
+ "autoincrement": false
1046
+ },
1047
+ "deleted_at": {
1048
+ "name": "deleted_at",
1049
+ "type": "integer",
1050
+ "primaryKey": false,
1051
+ "notNull": false,
1052
+ "autoincrement": false
1053
+ }
1054
+ },
1055
+ "indexes": {
1056
+ "posts_slug_unique": {
1057
+ "name": "posts_slug_unique",
1058
+ "columns": [
1059
+ "slug"
1060
+ ],
1061
+ "isUnique": true
1062
+ }
1063
+ },
1064
+ "foreignKeys": {
1065
+ "posts_author_user_id_users_id_fk": {
1066
+ "name": "posts_author_user_id_users_id_fk",
1067
+ "tableFrom": "posts",
1068
+ "tableTo": "users",
1069
+ "columnsFrom": [
1070
+ "author_user_id"
1071
+ ],
1072
+ "columnsTo": [
1073
+ "id"
1074
+ ],
1075
+ "onDelete": "set null",
1076
+ "onUpdate": "no action"
1077
+ },
1078
+ "posts_organization_id_organizations_id_fk": {
1079
+ "name": "posts_organization_id_organizations_id_fk",
1080
+ "tableFrom": "posts",
1081
+ "tableTo": "organizations",
1082
+ "columnsFrom": [
1083
+ "organization_id"
1084
+ ],
1085
+ "columnsTo": [
1086
+ "id"
1087
+ ],
1088
+ "onDelete": "set null",
1089
+ "onUpdate": "no action"
1090
+ },
1091
+ "posts_team_id_teams_id_fk": {
1092
+ "name": "posts_team_id_teams_id_fk",
1093
+ "tableFrom": "posts",
1094
+ "tableTo": "teams",
1095
+ "columnsFrom": [
1096
+ "team_id"
1097
+ ],
1098
+ "columnsTo": [
1099
+ "id"
1100
+ ],
1101
+ "onDelete": "set null",
1102
+ "onUpdate": "no action"
1103
+ }
1104
+ },
1105
+ "compositePrimaryKeys": {},
1106
+ "uniqueConstraints": {},
1107
+ "checkConstraints": {}
1108
+ },
1109
+ "sessions": {
1110
+ "name": "sessions",
1111
+ "columns": {
1112
+ "id": {
1113
+ "name": "id",
1114
+ "type": "text",
1115
+ "primaryKey": true,
1116
+ "notNull": true,
1117
+ "autoincrement": false
1118
+ },
1119
+ "expires_at": {
1120
+ "name": "expires_at",
1121
+ "type": "integer",
1122
+ "primaryKey": false,
1123
+ "notNull": true,
1124
+ "autoincrement": false
1125
+ },
1126
+ "token": {
1127
+ "name": "token",
1128
+ "type": "text",
1129
+ "primaryKey": false,
1130
+ "notNull": true,
1131
+ "autoincrement": false
1132
+ },
1133
+ "created_at": {
1134
+ "name": "created_at",
1135
+ "type": "integer",
1136
+ "primaryKey": false,
1137
+ "notNull": true,
1138
+ "autoincrement": false
1139
+ },
1140
+ "updated_at": {
1141
+ "name": "updated_at",
1142
+ "type": "integer",
1143
+ "primaryKey": false,
1144
+ "notNull": true,
1145
+ "autoincrement": false
1146
+ },
1147
+ "ip_address": {
1148
+ "name": "ip_address",
1149
+ "type": "text",
1150
+ "primaryKey": false,
1151
+ "notNull": false,
1152
+ "autoincrement": false
1153
+ },
1154
+ "user_agent": {
1155
+ "name": "user_agent",
1156
+ "type": "text",
1157
+ "primaryKey": false,
1158
+ "notNull": false,
1159
+ "autoincrement": false
1160
+ },
1161
+ "user_id": {
1162
+ "name": "user_id",
1163
+ "type": "text",
1164
+ "primaryKey": false,
1165
+ "notNull": true,
1166
+ "autoincrement": false
1167
+ },
1168
+ "impersonated_by": {
1169
+ "name": "impersonated_by",
1170
+ "type": "text",
1171
+ "primaryKey": false,
1172
+ "notNull": false,
1173
+ "autoincrement": false
1174
+ },
1175
+ "active_organization_id": {
1176
+ "name": "active_organization_id",
1177
+ "type": "text",
1178
+ "primaryKey": false,
1179
+ "notNull": false,
1180
+ "autoincrement": false
1181
+ },
1182
+ "active_organization_member_id": {
1183
+ "name": "active_organization_member_id",
1184
+ "type": "text",
1185
+ "primaryKey": false,
1186
+ "notNull": false,
1187
+ "autoincrement": false
1188
+ },
1189
+ "active_organization_role": {
1190
+ "name": "active_organization_role",
1191
+ "type": "text",
1192
+ "primaryKey": false,
1193
+ "notNull": false,
1194
+ "autoincrement": false
1195
+ },
1196
+ "active_organization_type": {
1197
+ "name": "active_organization_type",
1198
+ "type": "text",
1199
+ "primaryKey": false,
1200
+ "notNull": false,
1201
+ "autoincrement": false
1202
+ },
1203
+ "active_team_id": {
1204
+ "name": "active_team_id",
1205
+ "type": "text",
1206
+ "primaryKey": false,
1207
+ "notNull": false,
1208
+ "autoincrement": false
1209
+ },
1210
+ "active_team_role": {
1211
+ "name": "active_team_role",
1212
+ "type": "text",
1213
+ "primaryKey": false,
1214
+ "notNull": false,
1215
+ "autoincrement": false
1216
+ }
1217
+ },
1218
+ "indexes": {
1219
+ "sessions_token_unique": {
1220
+ "name": "sessions_token_unique",
1221
+ "columns": [
1222
+ "token"
1223
+ ],
1224
+ "isUnique": true
1225
+ }
1226
+ },
1227
+ "foreignKeys": {
1228
+ "sessions_user_id_users_id_fk": {
1229
+ "name": "sessions_user_id_users_id_fk",
1230
+ "tableFrom": "sessions",
1231
+ "tableTo": "users",
1232
+ "columnsFrom": [
1233
+ "user_id"
1234
+ ],
1235
+ "columnsTo": [
1236
+ "id"
1237
+ ],
1238
+ "onDelete": "cascade",
1239
+ "onUpdate": "no action"
1240
+ }
1241
+ },
1242
+ "compositePrimaryKeys": {},
1243
+ "uniqueConstraints": {},
1244
+ "checkConstraints": {}
1245
+ },
1246
+ "teammembers": {
1247
+ "name": "teammembers",
1248
+ "columns": {
1249
+ "id": {
1250
+ "name": "id",
1251
+ "type": "text",
1252
+ "primaryKey": true,
1253
+ "notNull": true,
1254
+ "autoincrement": false
1255
+ },
1256
+ "team_id": {
1257
+ "name": "team_id",
1258
+ "type": "text",
1259
+ "primaryKey": false,
1260
+ "notNull": true,
1261
+ "autoincrement": false
1262
+ },
1263
+ "user_id": {
1264
+ "name": "user_id",
1265
+ "type": "text",
1266
+ "primaryKey": false,
1267
+ "notNull": true,
1268
+ "autoincrement": false
1269
+ },
1270
+ "role": {
1271
+ "name": "role",
1272
+ "type": "text",
1273
+ "primaryKey": false,
1274
+ "notNull": true,
1275
+ "autoincrement": false
1276
+ },
1277
+ "created_at": {
1278
+ "name": "created_at",
1279
+ "type": "integer",
1280
+ "primaryKey": false,
1281
+ "notNull": true,
1282
+ "autoincrement": false
1283
+ }
1284
+ },
1285
+ "indexes": {},
1286
+ "foreignKeys": {
1287
+ "teammembers_team_id_teams_id_fk": {
1288
+ "name": "teammembers_team_id_teams_id_fk",
1289
+ "tableFrom": "teammembers",
1290
+ "tableTo": "teams",
1291
+ "columnsFrom": [
1292
+ "team_id"
1293
+ ],
1294
+ "columnsTo": [
1295
+ "id"
1296
+ ],
1297
+ "onDelete": "no action",
1298
+ "onUpdate": "no action"
1299
+ },
1300
+ "teammembers_user_id_users_id_fk": {
1301
+ "name": "teammembers_user_id_users_id_fk",
1302
+ "tableFrom": "teammembers",
1303
+ "tableTo": "users",
1304
+ "columnsFrom": [
1305
+ "user_id"
1306
+ ],
1307
+ "columnsTo": [
1308
+ "id"
1309
+ ],
1310
+ "onDelete": "no action",
1311
+ "onUpdate": "no action"
1312
+ }
1313
+ },
1314
+ "compositePrimaryKeys": {},
1315
+ "uniqueConstraints": {},
1316
+ "checkConstraints": {}
1317
+ },
1318
+ "teams": {
1319
+ "name": "teams",
1320
+ "columns": {
1321
+ "id": {
1322
+ "name": "id",
1323
+ "type": "text",
1324
+ "primaryKey": true,
1325
+ "notNull": true,
1326
+ "autoincrement": false
1327
+ },
1328
+ "name": {
1329
+ "name": "name",
1330
+ "type": "text",
1331
+ "primaryKey": false,
1332
+ "notNull": true,
1333
+ "autoincrement": false
1334
+ },
1335
+ "organization_id": {
1336
+ "name": "organization_id",
1337
+ "type": "text",
1338
+ "primaryKey": false,
1339
+ "notNull": true,
1340
+ "autoincrement": false
1341
+ },
1342
+ "created_at": {
1343
+ "name": "created_at",
1344
+ "type": "integer",
1345
+ "primaryKey": false,
1346
+ "notNull": true,
1347
+ "autoincrement": false
1348
+ },
1349
+ "updated_at": {
1350
+ "name": "updated_at",
1351
+ "type": "integer",
1352
+ "primaryKey": false,
1353
+ "notNull": false,
1354
+ "autoincrement": false
1355
+ }
1356
+ },
1357
+ "indexes": {},
1358
+ "foreignKeys": {
1359
+ "teams_organization_id_organizations_id_fk": {
1360
+ "name": "teams_organization_id_organizations_id_fk",
1361
+ "tableFrom": "teams",
1362
+ "tableTo": "organizations",
1363
+ "columnsFrom": [
1364
+ "organization_id"
1365
+ ],
1366
+ "columnsTo": [
1367
+ "id"
1368
+ ],
1369
+ "onDelete": "no action",
1370
+ "onUpdate": "no action"
1371
+ }
1372
+ },
1373
+ "compositePrimaryKeys": {},
1374
+ "uniqueConstraints": {},
1375
+ "checkConstraints": {}
1376
+ },
1377
+ "users": {
1378
+ "name": "users",
1379
+ "columns": {
1380
+ "id": {
1381
+ "name": "id",
1382
+ "type": "text",
1383
+ "primaryKey": true,
1384
+ "notNull": true,
1385
+ "autoincrement": false
1386
+ },
1387
+ "name": {
1388
+ "name": "name",
1389
+ "type": "text",
1390
+ "primaryKey": false,
1391
+ "notNull": true,
1392
+ "autoincrement": false
1393
+ },
1394
+ "email": {
1395
+ "name": "email",
1396
+ "type": "text",
1397
+ "primaryKey": false,
1398
+ "notNull": true,
1399
+ "autoincrement": false
1400
+ },
1401
+ "email_verified": {
1402
+ "name": "email_verified",
1403
+ "type": "integer",
1404
+ "primaryKey": false,
1405
+ "notNull": true,
1406
+ "autoincrement": false
1407
+ },
1408
+ "image": {
1409
+ "name": "image",
1410
+ "type": "text",
1411
+ "primaryKey": false,
1412
+ "notNull": false,
1413
+ "autoincrement": false
1414
+ },
1415
+ "created_at": {
1416
+ "name": "created_at",
1417
+ "type": "integer",
1418
+ "primaryKey": false,
1419
+ "notNull": true,
1420
+ "autoincrement": false
1421
+ },
1422
+ "updated_at": {
1423
+ "name": "updated_at",
1424
+ "type": "integer",
1425
+ "primaryKey": false,
1426
+ "notNull": true,
1427
+ "autoincrement": false
1428
+ },
1429
+ "role": {
1430
+ "name": "role",
1431
+ "type": "text",
1432
+ "primaryKey": false,
1433
+ "notNull": false,
1434
+ "autoincrement": false
1435
+ },
1436
+ "banned": {
1437
+ "name": "banned",
1438
+ "type": "integer",
1439
+ "primaryKey": false,
1440
+ "notNull": false,
1441
+ "autoincrement": false
1442
+ },
1443
+ "ban_reason": {
1444
+ "name": "ban_reason",
1445
+ "type": "text",
1446
+ "primaryKey": false,
1447
+ "notNull": false,
1448
+ "autoincrement": false
1449
+ },
1450
+ "ban_expires": {
1451
+ "name": "ban_expires",
1452
+ "type": "integer",
1453
+ "primaryKey": false,
1454
+ "notNull": false,
1455
+ "autoincrement": false
1456
+ },
1457
+ "stripe_customer_id": {
1458
+ "name": "stripe_customer_id",
1459
+ "type": "text",
1460
+ "primaryKey": false,
1461
+ "notNull": false,
1462
+ "autoincrement": false
1463
+ },
1464
+ "payment_customer_id": {
1465
+ "name": "payment_customer_id",
1466
+ "type": "text",
1467
+ "primaryKey": false,
1468
+ "notNull": false,
1469
+ "autoincrement": false
1470
+ },
1471
+ "payment_plan_tier": {
1472
+ "name": "payment_plan_tier",
1473
+ "type": "text",
1474
+ "primaryKey": false,
1475
+ "notNull": false,
1476
+ "autoincrement": false
1477
+ },
1478
+ "payment_plan_expires_at": {
1479
+ "name": "payment_plan_expires_at",
1480
+ "type": "integer",
1481
+ "primaryKey": false,
1482
+ "notNull": false,
1483
+ "autoincrement": false
1484
+ },
1485
+ "preferences": {
1486
+ "name": "preferences",
1487
+ "type": "text",
1488
+ "primaryKey": false,
1489
+ "notNull": false,
1490
+ "autoincrement": false,
1491
+ "default": "'{}'"
1492
+ },
1493
+ "metadata": {
1494
+ "name": "metadata",
1495
+ "type": "text",
1496
+ "primaryKey": false,
1497
+ "notNull": false,
1498
+ "autoincrement": false,
1499
+ "default": "'{}'"
1500
+ },
1501
+ "onboarding": {
1502
+ "name": "onboarding",
1503
+ "type": "integer",
1504
+ "primaryKey": false,
1505
+ "notNull": false,
1506
+ "autoincrement": false
1507
+ },
1508
+ "flags": {
1509
+ "name": "flags",
1510
+ "type": "text",
1511
+ "primaryKey": false,
1512
+ "notNull": false,
1513
+ "autoincrement": false,
1514
+ "default": "'[]'"
1515
+ },
1516
+ "locale": {
1517
+ "name": "locale",
1518
+ "type": "text",
1519
+ "primaryKey": false,
1520
+ "notNull": false,
1521
+ "autoincrement": false
1522
+ }
1523
+ },
1524
+ "indexes": {
1525
+ "users_email_unique": {
1526
+ "name": "users_email_unique",
1527
+ "columns": [
1528
+ "email"
1529
+ ],
1530
+ "isUnique": true
1531
+ },
1532
+ "users_stripe_customer_id_unique": {
1533
+ "name": "users_stripe_customer_id_unique",
1534
+ "columns": [
1535
+ "stripe_customer_id"
1536
+ ],
1537
+ "isUnique": true
1538
+ },
1539
+ "users_payment_customer_id_unique": {
1540
+ "name": "users_payment_customer_id_unique",
1541
+ "columns": [
1542
+ "payment_customer_id"
1543
+ ],
1544
+ "isUnique": true
1545
+ }
1546
+ },
1547
+ "foreignKeys": {},
1548
+ "compositePrimaryKeys": {},
1549
+ "uniqueConstraints": {},
1550
+ "checkConstraints": {}
1551
+ },
1552
+ "verifications": {
1553
+ "name": "verifications",
1554
+ "columns": {
1555
+ "id": {
1556
+ "name": "id",
1557
+ "type": "text",
1558
+ "primaryKey": true,
1559
+ "notNull": true,
1560
+ "autoincrement": false
1561
+ },
1562
+ "identifier": {
1563
+ "name": "identifier",
1564
+ "type": "text",
1565
+ "primaryKey": false,
1566
+ "notNull": true,
1567
+ "autoincrement": false
1568
+ },
1569
+ "value": {
1570
+ "name": "value",
1571
+ "type": "text",
1572
+ "primaryKey": false,
1573
+ "notNull": true,
1574
+ "autoincrement": false
1575
+ },
1576
+ "expires_at": {
1577
+ "name": "expires_at",
1578
+ "type": "integer",
1579
+ "primaryKey": false,
1580
+ "notNull": true,
1581
+ "autoincrement": false
1582
+ },
1583
+ "created_at": {
1584
+ "name": "created_at",
1585
+ "type": "integer",
1586
+ "primaryKey": false,
1587
+ "notNull": false,
1588
+ "autoincrement": false
1589
+ },
1590
+ "updated_at": {
1591
+ "name": "updated_at",
1592
+ "type": "integer",
1593
+ "primaryKey": false,
1594
+ "notNull": false,
1595
+ "autoincrement": false
1596
+ }
1597
+ },
1598
+ "indexes": {},
1599
+ "foreignKeys": {},
1600
+ "compositePrimaryKeys": {},
1601
+ "uniqueConstraints": {},
1602
+ "checkConstraints": {}
1603
+ },
1604
+ "waitlist": {
1605
+ "name": "waitlist",
1606
+ "columns": {
1607
+ "id": {
1608
+ "name": "id",
1609
+ "type": "text",
1610
+ "primaryKey": true,
1611
+ "notNull": true,
1612
+ "autoincrement": false
1613
+ },
1614
+ "name": {
1615
+ "name": "name",
1616
+ "type": "text",
1617
+ "primaryKey": false,
1618
+ "notNull": false,
1619
+ "autoincrement": false
1620
+ },
1621
+ "email": {
1622
+ "name": "email",
1623
+ "type": "text",
1624
+ "primaryKey": false,
1625
+ "notNull": false,
1626
+ "autoincrement": false
1627
+ },
1628
+ "created_at": {
1629
+ "name": "created_at",
1630
+ "type": "integer",
1631
+ "primaryKey": false,
1632
+ "notNull": true,
1633
+ "autoincrement": false
1634
+ },
1635
+ "updated_at": {
1636
+ "name": "updated_at",
1637
+ "type": "integer",
1638
+ "primaryKey": false,
1639
+ "notNull": false,
1640
+ "autoincrement": false
1641
+ },
1642
+ "status": {
1643
+ "name": "status",
1644
+ "type": "text",
1645
+ "primaryKey": false,
1646
+ "notNull": true,
1647
+ "autoincrement": false,
1648
+ "default": "'WAITLIST'"
1649
+ },
1650
+ "type": {
1651
+ "name": "type",
1652
+ "type": "text",
1653
+ "primaryKey": false,
1654
+ "notNull": true,
1655
+ "autoincrement": false,
1656
+ "default": "'WAITLIST'"
1657
+ },
1658
+ "code": {
1659
+ "name": "code",
1660
+ "type": "text",
1661
+ "primaryKey": false,
1662
+ "notNull": false,
1663
+ "autoincrement": false
1664
+ },
1665
+ "expires_at": {
1666
+ "name": "expires_at",
1667
+ "type": "integer",
1668
+ "primaryKey": false,
1669
+ "notNull": false,
1670
+ "autoincrement": false
1671
+ },
1672
+ "user_id": {
1673
+ "name": "user_id",
1674
+ "type": "text",
1675
+ "primaryKey": false,
1676
+ "notNull": false,
1677
+ "autoincrement": false
1678
+ },
1679
+ "claim_user_id": {
1680
+ "name": "claim_user_id",
1681
+ "type": "text",
1682
+ "primaryKey": false,
1683
+ "notNull": false,
1684
+ "autoincrement": false
1685
+ },
1686
+ "claimed_at": {
1687
+ "name": "claimed_at",
1688
+ "type": "integer",
1689
+ "primaryKey": false,
1690
+ "notNull": false,
1691
+ "autoincrement": false
1692
+ },
1693
+ "claimed_email": {
1694
+ "name": "claimed_email",
1695
+ "type": "text",
1696
+ "primaryKey": false,
1697
+ "notNull": false,
1698
+ "autoincrement": false
1699
+ }
1700
+ },
1701
+ "indexes": {},
1702
+ "foreignKeys": {
1703
+ "waitlist_user_id_users_id_fk": {
1704
+ "name": "waitlist_user_id_users_id_fk",
1705
+ "tableFrom": "waitlist",
1706
+ "tableTo": "users",
1707
+ "columnsFrom": [
1708
+ "user_id"
1709
+ ],
1710
+ "columnsTo": [
1711
+ "id"
1712
+ ],
1713
+ "onDelete": "no action",
1714
+ "onUpdate": "no action"
1715
+ },
1716
+ "waitlist_claim_user_id_users_id_fk": {
1717
+ "name": "waitlist_claim_user_id_users_id_fk",
1718
+ "tableFrom": "waitlist",
1719
+ "tableTo": "users",
1720
+ "columnsFrom": [
1721
+ "claim_user_id"
1722
+ ],
1723
+ "columnsTo": [
1724
+ "id"
1725
+ ],
1726
+ "onDelete": "no action",
1727
+ "onUpdate": "no action"
1728
+ }
1729
+ },
1730
+ "compositePrimaryKeys": {},
1731
+ "uniqueConstraints": {},
1732
+ "checkConstraints": {}
1733
+ },
1734
+ "workflows": {
1735
+ "name": "workflows",
1736
+ "columns": {
1737
+ "id": {
1738
+ "name": "id",
1739
+ "type": "text",
1740
+ "primaryKey": true,
1741
+ "notNull": true,
1742
+ "autoincrement": false
1743
+ },
1744
+ "user_id": {
1745
+ "name": "user_id",
1746
+ "type": "text",
1747
+ "primaryKey": false,
1748
+ "notNull": false,
1749
+ "autoincrement": false
1750
+ },
1751
+ "job_id": {
1752
+ "name": "job_id",
1753
+ "type": "text",
1754
+ "primaryKey": false,
1755
+ "notNull": true,
1756
+ "autoincrement": false
1757
+ },
1758
+ "job_name": {
1759
+ "name": "job_name",
1760
+ "type": "text",
1761
+ "primaryKey": false,
1762
+ "notNull": true,
1763
+ "autoincrement": false
1764
+ },
1765
+ "queue_name": {
1766
+ "name": "queue_name",
1767
+ "type": "text",
1768
+ "primaryKey": false,
1769
+ "notNull": true,
1770
+ "autoincrement": false
1771
+ },
1772
+ "timeout": {
1773
+ "name": "timeout",
1774
+ "type": "integer",
1775
+ "primaryKey": false,
1776
+ "notNull": false,
1777
+ "autoincrement": false
1778
+ },
1779
+ "tags": {
1780
+ "name": "tags",
1781
+ "type": "text",
1782
+ "primaryKey": false,
1783
+ "notNull": false,
1784
+ "autoincrement": false
1785
+ },
1786
+ "input": {
1787
+ "name": "input",
1788
+ "type": "text",
1789
+ "primaryKey": false,
1790
+ "notNull": false,
1791
+ "autoincrement": false
1792
+ },
1793
+ "output": {
1794
+ "name": "output",
1795
+ "type": "text",
1796
+ "primaryKey": false,
1797
+ "notNull": false,
1798
+ "autoincrement": false
1799
+ },
1800
+ "status": {
1801
+ "name": "status",
1802
+ "type": "text",
1803
+ "primaryKey": false,
1804
+ "notNull": true,
1805
+ "autoincrement": false
1806
+ },
1807
+ "error": {
1808
+ "name": "error",
1809
+ "type": "text",
1810
+ "primaryKey": false,
1811
+ "notNull": false,
1812
+ "autoincrement": false
1813
+ },
1814
+ "retries": {
1815
+ "name": "retries",
1816
+ "type": "integer",
1817
+ "primaryKey": false,
1818
+ "notNull": true,
1819
+ "autoincrement": false,
1820
+ "default": 0
1821
+ },
1822
+ "finished_at": {
1823
+ "name": "finished_at",
1824
+ "type": "integer",
1825
+ "primaryKey": false,
1826
+ "notNull": false,
1827
+ "autoincrement": false
1828
+ },
1829
+ "processed_at": {
1830
+ "name": "processed_at",
1831
+ "type": "integer",
1832
+ "primaryKey": false,
1833
+ "notNull": false,
1834
+ "autoincrement": false
1835
+ },
1836
+ "created_at": {
1837
+ "name": "created_at",
1838
+ "type": "integer",
1839
+ "primaryKey": false,
1840
+ "notNull": true,
1841
+ "autoincrement": false
1842
+ },
1843
+ "updated_at": {
1844
+ "name": "updated_at",
1845
+ "type": "integer",
1846
+ "primaryKey": false,
1847
+ "notNull": true,
1848
+ "autoincrement": false
1849
+ }
1850
+ },
1851
+ "indexes": {
1852
+ "workflows_job_id_unique": {
1853
+ "name": "workflows_job_id_unique",
1854
+ "columns": [
1855
+ "job_id"
1856
+ ],
1857
+ "isUnique": true
1858
+ }
1859
+ },
1860
+ "foreignKeys": {
1861
+ "workflows_user_id_users_id_fk": {
1862
+ "name": "workflows_user_id_users_id_fk",
1863
+ "tableFrom": "workflows",
1864
+ "tableTo": "users",
1865
+ "columnsFrom": [
1866
+ "user_id"
1867
+ ],
1868
+ "columnsTo": [
1869
+ "id"
1870
+ ],
1871
+ "onDelete": "cascade",
1872
+ "onUpdate": "no action"
1873
+ }
1874
+ },
1875
+ "compositePrimaryKeys": {},
1876
+ "uniqueConstraints": {},
1877
+ "checkConstraints": {}
1878
+ }
1879
+ },
1880
+ "views": {},
1881
+ "enums": {},
1882
+ "_meta": {
1883
+ "schemas": {},
1884
+ "tables": {},
1885
+ "columns": {}
1886
+ },
1887
+ "internal": {
1888
+ "indexes": {}
1889
+ }
1890
1890
  }