@velocity-astro/cms-db 0.1.0-beta.11 → 0.1.0-beta.12

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,1524 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "afb96710-73ac-432a-8a1b-6015a651d7bf",
5
+ "prevId": "2979c760-6fec-4f6c-bf6a-7b0eca92347a",
6
+ "tables": {
7
+ "contact_notes": {
8
+ "name": "contact_notes",
9
+ "columns": {
10
+ "id": {
11
+ "name": "id",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "contact_id": {
18
+ "name": "contact_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "text": {
25
+ "name": "text",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false
30
+ },
31
+ "moved_from": {
32
+ "name": "moved_from",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": false,
36
+ "autoincrement": false
37
+ },
38
+ "moved_to": {
39
+ "name": "moved_to",
40
+ "type": "text",
41
+ "primaryKey": false,
42
+ "notNull": false,
43
+ "autoincrement": false
44
+ },
45
+ "created_by": {
46
+ "name": "created_by",
47
+ "type": "text",
48
+ "primaryKey": false,
49
+ "notNull": true,
50
+ "autoincrement": false
51
+ },
52
+ "created_at": {
53
+ "name": "created_at",
54
+ "type": "text",
55
+ "primaryKey": false,
56
+ "notNull": true,
57
+ "autoincrement": false
58
+ }
59
+ },
60
+ "indexes": {
61
+ "contact_notes_contact": {
62
+ "name": "contact_notes_contact",
63
+ "columns": [
64
+ "contact_id",
65
+ "created_at"
66
+ ],
67
+ "isUnique": false
68
+ }
69
+ },
70
+ "foreignKeys": {},
71
+ "compositePrimaryKeys": {},
72
+ "uniqueConstraints": {},
73
+ "checkConstraints": {}
74
+ },
75
+ "contacts": {
76
+ "name": "contacts",
77
+ "columns": {
78
+ "id": {
79
+ "name": "id",
80
+ "type": "text",
81
+ "primaryKey": true,
82
+ "notNull": true,
83
+ "autoincrement": false
84
+ },
85
+ "email": {
86
+ "name": "email",
87
+ "type": "text",
88
+ "primaryKey": false,
89
+ "notNull": true,
90
+ "autoincrement": false
91
+ },
92
+ "name": {
93
+ "name": "name",
94
+ "type": "text",
95
+ "primaryKey": false,
96
+ "notNull": false,
97
+ "autoincrement": false
98
+ },
99
+ "phone": {
100
+ "name": "phone",
101
+ "type": "text",
102
+ "primaryKey": false,
103
+ "notNull": false,
104
+ "autoincrement": false
105
+ },
106
+ "source_form_id": {
107
+ "name": "source_form_id",
108
+ "type": "text",
109
+ "primaryKey": false,
110
+ "notNull": false,
111
+ "autoincrement": false
112
+ },
113
+ "source_page": {
114
+ "name": "source_page",
115
+ "type": "text",
116
+ "primaryKey": false,
117
+ "notNull": false,
118
+ "autoincrement": false
119
+ },
120
+ "stage": {
121
+ "name": "stage",
122
+ "type": "text",
123
+ "primaryKey": false,
124
+ "notNull": true,
125
+ "autoincrement": false,
126
+ "default": "'new'"
127
+ },
128
+ "owner_id": {
129
+ "name": "owner_id",
130
+ "type": "text",
131
+ "primaryKey": false,
132
+ "notNull": false,
133
+ "autoincrement": false
134
+ },
135
+ "follow_up_at": {
136
+ "name": "follow_up_at",
137
+ "type": "text",
138
+ "primaryKey": false,
139
+ "notNull": false,
140
+ "autoincrement": false
141
+ },
142
+ "data": {
143
+ "name": "data",
144
+ "type": "text",
145
+ "primaryKey": false,
146
+ "notNull": false,
147
+ "autoincrement": false
148
+ },
149
+ "revision": {
150
+ "name": "revision",
151
+ "type": "integer",
152
+ "primaryKey": false,
153
+ "notNull": true,
154
+ "autoincrement": false
155
+ },
156
+ "created_at": {
157
+ "name": "created_at",
158
+ "type": "text",
159
+ "primaryKey": false,
160
+ "notNull": true,
161
+ "autoincrement": false
162
+ },
163
+ "updated_at": {
164
+ "name": "updated_at",
165
+ "type": "text",
166
+ "primaryKey": false,
167
+ "notNull": true,
168
+ "autoincrement": false
169
+ }
170
+ },
171
+ "indexes": {
172
+ "contacts_email": {
173
+ "name": "contacts_email",
174
+ "columns": [
175
+ "email"
176
+ ],
177
+ "isUnique": true
178
+ },
179
+ "contacts_created": {
180
+ "name": "contacts_created",
181
+ "columns": [
182
+ "created_at"
183
+ ],
184
+ "isUnique": false
185
+ },
186
+ "contacts_stage": {
187
+ "name": "contacts_stage",
188
+ "columns": [
189
+ "stage",
190
+ "created_at"
191
+ ],
192
+ "isUnique": false
193
+ },
194
+ "contacts_follow_up": {
195
+ "name": "contacts_follow_up",
196
+ "columns": [
197
+ "follow_up_at"
198
+ ],
199
+ "isUnique": false
200
+ }
201
+ },
202
+ "foreignKeys": {},
203
+ "compositePrimaryKeys": {},
204
+ "uniqueConstraints": {},
205
+ "checkConstraints": {}
206
+ },
207
+ "content_types": {
208
+ "name": "content_types",
209
+ "columns": {
210
+ "id": {
211
+ "name": "id",
212
+ "type": "text",
213
+ "primaryKey": true,
214
+ "notNull": true,
215
+ "autoincrement": false
216
+ },
217
+ "key": {
218
+ "name": "key",
219
+ "type": "text",
220
+ "primaryKey": false,
221
+ "notNull": true,
222
+ "autoincrement": false
223
+ },
224
+ "definition": {
225
+ "name": "definition",
226
+ "type": "text",
227
+ "primaryKey": false,
228
+ "notNull": true,
229
+ "autoincrement": false
230
+ }
231
+ },
232
+ "indexes": {
233
+ "content_types_key": {
234
+ "name": "content_types_key",
235
+ "columns": [
236
+ "key"
237
+ ],
238
+ "isUnique": true
239
+ }
240
+ },
241
+ "foreignKeys": {},
242
+ "compositePrimaryKeys": {},
243
+ "uniqueConstraints": {},
244
+ "checkConstraints": {}
245
+ },
246
+ "deals": {
247
+ "name": "deals",
248
+ "columns": {
249
+ "id": {
250
+ "name": "id",
251
+ "type": "text",
252
+ "primaryKey": true,
253
+ "notNull": true,
254
+ "autoincrement": false
255
+ },
256
+ "contact_id": {
257
+ "name": "contact_id",
258
+ "type": "text",
259
+ "primaryKey": false,
260
+ "notNull": true,
261
+ "autoincrement": false
262
+ },
263
+ "title": {
264
+ "name": "title",
265
+ "type": "text",
266
+ "primaryKey": false,
267
+ "notNull": true,
268
+ "autoincrement": false
269
+ },
270
+ "about_type": {
271
+ "name": "about_type",
272
+ "type": "text",
273
+ "primaryKey": false,
274
+ "notNull": false,
275
+ "autoincrement": false
276
+ },
277
+ "about_entry": {
278
+ "name": "about_entry",
279
+ "type": "text",
280
+ "primaryKey": false,
281
+ "notNull": false,
282
+ "autoincrement": false
283
+ },
284
+ "value": {
285
+ "name": "value",
286
+ "type": "integer",
287
+ "primaryKey": false,
288
+ "notNull": true,
289
+ "autoincrement": false
290
+ },
291
+ "stage": {
292
+ "name": "stage",
293
+ "type": "text",
294
+ "primaryKey": false,
295
+ "notNull": true,
296
+ "autoincrement": false
297
+ },
298
+ "owner_id": {
299
+ "name": "owner_id",
300
+ "type": "text",
301
+ "primaryKey": false,
302
+ "notNull": false,
303
+ "autoincrement": false
304
+ },
305
+ "close_on": {
306
+ "name": "close_on",
307
+ "type": "text",
308
+ "primaryKey": false,
309
+ "notNull": false,
310
+ "autoincrement": false
311
+ },
312
+ "closed_at": {
313
+ "name": "closed_at",
314
+ "type": "text",
315
+ "primaryKey": false,
316
+ "notNull": false,
317
+ "autoincrement": false
318
+ },
319
+ "data": {
320
+ "name": "data",
321
+ "type": "text",
322
+ "primaryKey": false,
323
+ "notNull": false,
324
+ "autoincrement": false
325
+ },
326
+ "revision": {
327
+ "name": "revision",
328
+ "type": "integer",
329
+ "primaryKey": false,
330
+ "notNull": true,
331
+ "autoincrement": false
332
+ },
333
+ "created_at": {
334
+ "name": "created_at",
335
+ "type": "text",
336
+ "primaryKey": false,
337
+ "notNull": true,
338
+ "autoincrement": false
339
+ },
340
+ "updated_at": {
341
+ "name": "updated_at",
342
+ "type": "text",
343
+ "primaryKey": false,
344
+ "notNull": true,
345
+ "autoincrement": false
346
+ }
347
+ },
348
+ "indexes": {
349
+ "deals_contact": {
350
+ "name": "deals_contact",
351
+ "columns": [
352
+ "contact_id"
353
+ ],
354
+ "isUnique": false
355
+ },
356
+ "deals_stage": {
357
+ "name": "deals_stage",
358
+ "columns": [
359
+ "stage",
360
+ "created_at"
361
+ ],
362
+ "isUnique": false
363
+ },
364
+ "deals_about": {
365
+ "name": "deals_about",
366
+ "columns": [
367
+ "about_entry"
368
+ ],
369
+ "isUnique": false
370
+ }
371
+ },
372
+ "foreignKeys": {},
373
+ "compositePrimaryKeys": {},
374
+ "uniqueConstraints": {},
375
+ "checkConstraints": {}
376
+ },
377
+ "entries": {
378
+ "name": "entries",
379
+ "columns": {
380
+ "id": {
381
+ "name": "id",
382
+ "type": "text",
383
+ "primaryKey": true,
384
+ "notNull": true,
385
+ "autoincrement": false
386
+ },
387
+ "type_id": {
388
+ "name": "type_id",
389
+ "type": "text",
390
+ "primaryKey": false,
391
+ "notNull": true,
392
+ "autoincrement": false
393
+ },
394
+ "locale": {
395
+ "name": "locale",
396
+ "type": "text",
397
+ "primaryKey": false,
398
+ "notNull": true,
399
+ "autoincrement": false
400
+ },
401
+ "translation_group": {
402
+ "name": "translation_group",
403
+ "type": "text",
404
+ "primaryKey": false,
405
+ "notNull": true,
406
+ "autoincrement": false
407
+ },
408
+ "slug": {
409
+ "name": "slug",
410
+ "type": "text",
411
+ "primaryKey": false,
412
+ "notNull": true,
413
+ "autoincrement": false
414
+ },
415
+ "status": {
416
+ "name": "status",
417
+ "type": "text",
418
+ "primaryKey": false,
419
+ "notNull": true,
420
+ "autoincrement": false
421
+ },
422
+ "data": {
423
+ "name": "data",
424
+ "type": "text",
425
+ "primaryKey": false,
426
+ "notNull": true,
427
+ "autoincrement": false
428
+ },
429
+ "revision": {
430
+ "name": "revision",
431
+ "type": "integer",
432
+ "primaryKey": false,
433
+ "notNull": true,
434
+ "autoincrement": false
435
+ },
436
+ "publish_at": {
437
+ "name": "publish_at",
438
+ "type": "text",
439
+ "primaryKey": false,
440
+ "notNull": false,
441
+ "autoincrement": false
442
+ },
443
+ "publish_problem": {
444
+ "name": "publish_problem",
445
+ "type": "text",
446
+ "primaryKey": false,
447
+ "notNull": false,
448
+ "autoincrement": false
449
+ },
450
+ "published_slug": {
451
+ "name": "published_slug",
452
+ "type": "text",
453
+ "primaryKey": false,
454
+ "notNull": false,
455
+ "autoincrement": false
456
+ },
457
+ "published_data": {
458
+ "name": "published_data",
459
+ "type": "text",
460
+ "primaryKey": false,
461
+ "notNull": false,
462
+ "autoincrement": false
463
+ },
464
+ "published_revision": {
465
+ "name": "published_revision",
466
+ "type": "integer",
467
+ "primaryKey": false,
468
+ "notNull": false,
469
+ "autoincrement": false
470
+ },
471
+ "published_at": {
472
+ "name": "published_at",
473
+ "type": "text",
474
+ "primaryKey": false,
475
+ "notNull": false,
476
+ "autoincrement": false
477
+ },
478
+ "created_at": {
479
+ "name": "created_at",
480
+ "type": "text",
481
+ "primaryKey": false,
482
+ "notNull": true,
483
+ "autoincrement": false
484
+ },
485
+ "updated_at": {
486
+ "name": "updated_at",
487
+ "type": "text",
488
+ "primaryKey": false,
489
+ "notNull": true,
490
+ "autoincrement": false
491
+ },
492
+ "deleted_at": {
493
+ "name": "deleted_at",
494
+ "type": "text",
495
+ "primaryKey": false,
496
+ "notNull": false,
497
+ "autoincrement": false
498
+ }
499
+ },
500
+ "indexes": {
501
+ "entries_type_locale_slug": {
502
+ "name": "entries_type_locale_slug",
503
+ "columns": [
504
+ "type_id",
505
+ "locale",
506
+ "slug"
507
+ ],
508
+ "isUnique": true,
509
+ "where": "\"entries\".\"deleted_at\" is null"
510
+ },
511
+ "entries_type_locale_published_slug": {
512
+ "name": "entries_type_locale_published_slug",
513
+ "columns": [
514
+ "type_id",
515
+ "locale",
516
+ "published_slug"
517
+ ],
518
+ "isUnique": true
519
+ },
520
+ "entries_type_status": {
521
+ "name": "entries_type_status",
522
+ "columns": [
523
+ "type_id",
524
+ "status"
525
+ ],
526
+ "isUnique": false
527
+ },
528
+ "entries_translation_group": {
529
+ "name": "entries_translation_group",
530
+ "columns": [
531
+ "translation_group"
532
+ ],
533
+ "isUnique": false
534
+ }
535
+ },
536
+ "foreignKeys": {},
537
+ "compositePrimaryKeys": {},
538
+ "uniqueConstraints": {},
539
+ "checkConstraints": {}
540
+ },
541
+ "form_submissions": {
542
+ "name": "form_submissions",
543
+ "columns": {
544
+ "id": {
545
+ "name": "id",
546
+ "type": "text",
547
+ "primaryKey": true,
548
+ "notNull": true,
549
+ "autoincrement": false
550
+ },
551
+ "form_id": {
552
+ "name": "form_id",
553
+ "type": "text",
554
+ "primaryKey": false,
555
+ "notNull": true,
556
+ "autoincrement": false
557
+ },
558
+ "status": {
559
+ "name": "status",
560
+ "type": "text",
561
+ "primaryKey": false,
562
+ "notNull": true,
563
+ "autoincrement": false
564
+ },
565
+ "data": {
566
+ "name": "data",
567
+ "type": "text",
568
+ "primaryKey": false,
569
+ "notNull": true,
570
+ "autoincrement": false
571
+ },
572
+ "email": {
573
+ "name": "email",
574
+ "type": "text",
575
+ "primaryKey": false,
576
+ "notNull": false,
577
+ "autoincrement": false
578
+ },
579
+ "locale": {
580
+ "name": "locale",
581
+ "type": "text",
582
+ "primaryKey": false,
583
+ "notNull": false,
584
+ "autoincrement": false
585
+ },
586
+ "page": {
587
+ "name": "page",
588
+ "type": "text",
589
+ "primaryKey": false,
590
+ "notNull": false,
591
+ "autoincrement": false
592
+ },
593
+ "about_type": {
594
+ "name": "about_type",
595
+ "type": "text",
596
+ "primaryKey": false,
597
+ "notNull": false,
598
+ "autoincrement": false
599
+ },
600
+ "about_entry": {
601
+ "name": "about_entry",
602
+ "type": "text",
603
+ "primaryKey": false,
604
+ "notNull": false,
605
+ "autoincrement": false
606
+ },
607
+ "created_at": {
608
+ "name": "created_at",
609
+ "type": "text",
610
+ "primaryKey": false,
611
+ "notNull": true,
612
+ "autoincrement": false
613
+ },
614
+ "handled_at": {
615
+ "name": "handled_at",
616
+ "type": "text",
617
+ "primaryKey": false,
618
+ "notNull": false,
619
+ "autoincrement": false
620
+ },
621
+ "handled_by": {
622
+ "name": "handled_by",
623
+ "type": "text",
624
+ "primaryKey": false,
625
+ "notNull": false,
626
+ "autoincrement": false
627
+ }
628
+ },
629
+ "indexes": {
630
+ "form_submissions_form_created": {
631
+ "name": "form_submissions_form_created",
632
+ "columns": [
633
+ "form_id",
634
+ "created_at"
635
+ ],
636
+ "isUnique": false
637
+ },
638
+ "form_submissions_email": {
639
+ "name": "form_submissions_email",
640
+ "columns": [
641
+ "email"
642
+ ],
643
+ "isUnique": false
644
+ }
645
+ },
646
+ "foreignKeys": {},
647
+ "compositePrimaryKeys": {},
648
+ "uniqueConstraints": {},
649
+ "checkConstraints": {}
650
+ },
651
+ "forms": {
652
+ "name": "forms",
653
+ "columns": {
654
+ "id": {
655
+ "name": "id",
656
+ "type": "text",
657
+ "primaryKey": true,
658
+ "notNull": true,
659
+ "autoincrement": false
660
+ },
661
+ "key": {
662
+ "name": "key",
663
+ "type": "text",
664
+ "primaryKey": false,
665
+ "notNull": true,
666
+ "autoincrement": false
667
+ },
668
+ "revision": {
669
+ "name": "revision",
670
+ "type": "integer",
671
+ "primaryKey": false,
672
+ "notNull": true,
673
+ "autoincrement": false
674
+ },
675
+ "definition": {
676
+ "name": "definition",
677
+ "type": "text",
678
+ "primaryKey": false,
679
+ "notNull": true,
680
+ "autoincrement": false
681
+ },
682
+ "deleted_at": {
683
+ "name": "deleted_at",
684
+ "type": "text",
685
+ "primaryKey": false,
686
+ "notNull": false,
687
+ "autoincrement": false
688
+ }
689
+ },
690
+ "indexes": {
691
+ "forms_key": {
692
+ "name": "forms_key",
693
+ "columns": [
694
+ "key"
695
+ ],
696
+ "isUnique": true,
697
+ "where": "\"forms\".\"deleted_at\" is null"
698
+ }
699
+ },
700
+ "foreignKeys": {},
701
+ "compositePrimaryKeys": {},
702
+ "uniqueConstraints": {},
703
+ "checkConstraints": {}
704
+ },
705
+ "media": {
706
+ "name": "media",
707
+ "columns": {
708
+ "name": {
709
+ "name": "name",
710
+ "type": "text",
711
+ "primaryKey": true,
712
+ "notNull": true,
713
+ "autoincrement": false
714
+ },
715
+ "key": {
716
+ "name": "key",
717
+ "type": "text",
718
+ "primaryKey": false,
719
+ "notNull": true,
720
+ "autoincrement": false
721
+ },
722
+ "content_type": {
723
+ "name": "content_type",
724
+ "type": "text",
725
+ "primaryKey": false,
726
+ "notNull": true,
727
+ "autoincrement": false
728
+ },
729
+ "width": {
730
+ "name": "width",
731
+ "type": "integer",
732
+ "primaryKey": false,
733
+ "notNull": true,
734
+ "autoincrement": false
735
+ },
736
+ "height": {
737
+ "name": "height",
738
+ "type": "integer",
739
+ "primaryKey": false,
740
+ "notNull": true,
741
+ "autoincrement": false
742
+ },
743
+ "size": {
744
+ "name": "size",
745
+ "type": "integer",
746
+ "primaryKey": false,
747
+ "notNull": true,
748
+ "autoincrement": false
749
+ },
750
+ "created_at": {
751
+ "name": "created_at",
752
+ "type": "text",
753
+ "primaryKey": false,
754
+ "notNull": true,
755
+ "autoincrement": false
756
+ },
757
+ "created_by": {
758
+ "name": "created_by",
759
+ "type": "text",
760
+ "primaryKey": false,
761
+ "notNull": true,
762
+ "autoincrement": false
763
+ }
764
+ },
765
+ "indexes": {
766
+ "media_key": {
767
+ "name": "media_key",
768
+ "columns": [
769
+ "key"
770
+ ],
771
+ "isUnique": true
772
+ }
773
+ },
774
+ "foreignKeys": {},
775
+ "compositePrimaryKeys": {},
776
+ "uniqueConstraints": {},
777
+ "checkConstraints": {}
778
+ },
779
+ "plugin_data": {
780
+ "name": "plugin_data",
781
+ "columns": {
782
+ "plugin": {
783
+ "name": "plugin",
784
+ "type": "text",
785
+ "primaryKey": false,
786
+ "notNull": true,
787
+ "autoincrement": false
788
+ },
789
+ "key": {
790
+ "name": "key",
791
+ "type": "text",
792
+ "primaryKey": false,
793
+ "notNull": true,
794
+ "autoincrement": false
795
+ },
796
+ "value": {
797
+ "name": "value",
798
+ "type": "text",
799
+ "primaryKey": false,
800
+ "notNull": true,
801
+ "autoincrement": false
802
+ },
803
+ "updated_at": {
804
+ "name": "updated_at",
805
+ "type": "text",
806
+ "primaryKey": false,
807
+ "notNull": true,
808
+ "autoincrement": false
809
+ }
810
+ },
811
+ "indexes": {},
812
+ "foreignKeys": {},
813
+ "compositePrimaryKeys": {
814
+ "plugin_data_plugin_key_pk": {
815
+ "columns": [
816
+ "plugin",
817
+ "key"
818
+ ],
819
+ "name": "plugin_data_plugin_key_pk"
820
+ }
821
+ },
822
+ "uniqueConstraints": {},
823
+ "checkConstraints": {}
824
+ },
825
+ "revisions": {
826
+ "name": "revisions",
827
+ "columns": {
828
+ "entry_id": {
829
+ "name": "entry_id",
830
+ "type": "text",
831
+ "primaryKey": false,
832
+ "notNull": true,
833
+ "autoincrement": false
834
+ },
835
+ "revision": {
836
+ "name": "revision",
837
+ "type": "integer",
838
+ "primaryKey": false,
839
+ "notNull": true,
840
+ "autoincrement": false
841
+ },
842
+ "status": {
843
+ "name": "status",
844
+ "type": "text",
845
+ "primaryKey": false,
846
+ "notNull": true,
847
+ "autoincrement": false
848
+ },
849
+ "data": {
850
+ "name": "data",
851
+ "type": "text",
852
+ "primaryKey": false,
853
+ "notNull": true,
854
+ "autoincrement": false
855
+ },
856
+ "actor_id": {
857
+ "name": "actor_id",
858
+ "type": "text",
859
+ "primaryKey": false,
860
+ "notNull": true,
861
+ "autoincrement": false
862
+ },
863
+ "created_at": {
864
+ "name": "created_at",
865
+ "type": "text",
866
+ "primaryKey": false,
867
+ "notNull": true,
868
+ "autoincrement": false
869
+ }
870
+ },
871
+ "indexes": {},
872
+ "foreignKeys": {},
873
+ "compositePrimaryKeys": {
874
+ "revisions_entry_id_revision_pk": {
875
+ "columns": [
876
+ "entry_id",
877
+ "revision"
878
+ ],
879
+ "name": "revisions_entry_id_revision_pk"
880
+ }
881
+ },
882
+ "uniqueConstraints": {},
883
+ "checkConstraints": {}
884
+ },
885
+ "site_settings": {
886
+ "name": "site_settings",
887
+ "columns": {
888
+ "key": {
889
+ "name": "key",
890
+ "type": "text",
891
+ "primaryKey": true,
892
+ "notNull": true,
893
+ "autoincrement": false
894
+ },
895
+ "revision": {
896
+ "name": "revision",
897
+ "type": "integer",
898
+ "primaryKey": false,
899
+ "notNull": true,
900
+ "autoincrement": false
901
+ },
902
+ "value": {
903
+ "name": "value",
904
+ "type": "text",
905
+ "primaryKey": false,
906
+ "notNull": true,
907
+ "autoincrement": false
908
+ }
909
+ },
910
+ "indexes": {},
911
+ "foreignKeys": {},
912
+ "compositePrimaryKeys": {},
913
+ "uniqueConstraints": {},
914
+ "checkConstraints": {}
915
+ },
916
+ "auth_account": {
917
+ "name": "auth_account",
918
+ "columns": {
919
+ "id": {
920
+ "name": "id",
921
+ "type": "text",
922
+ "primaryKey": true,
923
+ "notNull": true,
924
+ "autoincrement": false
925
+ },
926
+ "account_id": {
927
+ "name": "account_id",
928
+ "type": "text",
929
+ "primaryKey": false,
930
+ "notNull": true,
931
+ "autoincrement": false
932
+ },
933
+ "provider_id": {
934
+ "name": "provider_id",
935
+ "type": "text",
936
+ "primaryKey": false,
937
+ "notNull": true,
938
+ "autoincrement": false
939
+ },
940
+ "user_id": {
941
+ "name": "user_id",
942
+ "type": "text",
943
+ "primaryKey": false,
944
+ "notNull": true,
945
+ "autoincrement": false
946
+ },
947
+ "access_token": {
948
+ "name": "access_token",
949
+ "type": "text",
950
+ "primaryKey": false,
951
+ "notNull": false,
952
+ "autoincrement": false
953
+ },
954
+ "refresh_token": {
955
+ "name": "refresh_token",
956
+ "type": "text",
957
+ "primaryKey": false,
958
+ "notNull": false,
959
+ "autoincrement": false
960
+ },
961
+ "id_token": {
962
+ "name": "id_token",
963
+ "type": "text",
964
+ "primaryKey": false,
965
+ "notNull": false,
966
+ "autoincrement": false
967
+ },
968
+ "access_token_expires_at": {
969
+ "name": "access_token_expires_at",
970
+ "type": "integer",
971
+ "primaryKey": false,
972
+ "notNull": false,
973
+ "autoincrement": false
974
+ },
975
+ "refresh_token_expires_at": {
976
+ "name": "refresh_token_expires_at",
977
+ "type": "integer",
978
+ "primaryKey": false,
979
+ "notNull": false,
980
+ "autoincrement": false
981
+ },
982
+ "scope": {
983
+ "name": "scope",
984
+ "type": "text",
985
+ "primaryKey": false,
986
+ "notNull": false,
987
+ "autoincrement": false
988
+ },
989
+ "password": {
990
+ "name": "password",
991
+ "type": "text",
992
+ "primaryKey": false,
993
+ "notNull": false,
994
+ "autoincrement": false
995
+ },
996
+ "created_at": {
997
+ "name": "created_at",
998
+ "type": "integer",
999
+ "primaryKey": false,
1000
+ "notNull": true,
1001
+ "autoincrement": false,
1002
+ "default": "(cast(unixepoch('subsecond') * 1000 as integer))"
1003
+ },
1004
+ "updated_at": {
1005
+ "name": "updated_at",
1006
+ "type": "integer",
1007
+ "primaryKey": false,
1008
+ "notNull": true,
1009
+ "autoincrement": false,
1010
+ "default": "(cast(unixepoch('subsecond') * 1000 as integer))"
1011
+ }
1012
+ },
1013
+ "indexes": {
1014
+ "auth_account_user_id": {
1015
+ "name": "auth_account_user_id",
1016
+ "columns": [
1017
+ "user_id"
1018
+ ],
1019
+ "isUnique": false
1020
+ }
1021
+ },
1022
+ "foreignKeys": {
1023
+ "auth_account_user_id_auth_user_id_fk": {
1024
+ "name": "auth_account_user_id_auth_user_id_fk",
1025
+ "tableFrom": "auth_account",
1026
+ "tableTo": "auth_user",
1027
+ "columnsFrom": [
1028
+ "user_id"
1029
+ ],
1030
+ "columnsTo": [
1031
+ "id"
1032
+ ],
1033
+ "onDelete": "cascade",
1034
+ "onUpdate": "no action"
1035
+ }
1036
+ },
1037
+ "compositePrimaryKeys": {},
1038
+ "uniqueConstraints": {},
1039
+ "checkConstraints": {}
1040
+ },
1041
+ "auth_passkey": {
1042
+ "name": "auth_passkey",
1043
+ "columns": {
1044
+ "id": {
1045
+ "name": "id",
1046
+ "type": "text",
1047
+ "primaryKey": true,
1048
+ "notNull": true,
1049
+ "autoincrement": false
1050
+ },
1051
+ "name": {
1052
+ "name": "name",
1053
+ "type": "text",
1054
+ "primaryKey": false,
1055
+ "notNull": false,
1056
+ "autoincrement": false
1057
+ },
1058
+ "public_key": {
1059
+ "name": "public_key",
1060
+ "type": "text",
1061
+ "primaryKey": false,
1062
+ "notNull": true,
1063
+ "autoincrement": false
1064
+ },
1065
+ "user_id": {
1066
+ "name": "user_id",
1067
+ "type": "text",
1068
+ "primaryKey": false,
1069
+ "notNull": true,
1070
+ "autoincrement": false
1071
+ },
1072
+ "credential_id": {
1073
+ "name": "credential_id",
1074
+ "type": "text",
1075
+ "primaryKey": false,
1076
+ "notNull": true,
1077
+ "autoincrement": false
1078
+ },
1079
+ "counter": {
1080
+ "name": "counter",
1081
+ "type": "integer",
1082
+ "primaryKey": false,
1083
+ "notNull": true,
1084
+ "autoincrement": false
1085
+ },
1086
+ "device_type": {
1087
+ "name": "device_type",
1088
+ "type": "text",
1089
+ "primaryKey": false,
1090
+ "notNull": true,
1091
+ "autoincrement": false
1092
+ },
1093
+ "backed_up": {
1094
+ "name": "backed_up",
1095
+ "type": "integer",
1096
+ "primaryKey": false,
1097
+ "notNull": true,
1098
+ "autoincrement": false
1099
+ },
1100
+ "transports": {
1101
+ "name": "transports",
1102
+ "type": "text",
1103
+ "primaryKey": false,
1104
+ "notNull": false,
1105
+ "autoincrement": false
1106
+ },
1107
+ "created_at": {
1108
+ "name": "created_at",
1109
+ "type": "integer",
1110
+ "primaryKey": false,
1111
+ "notNull": false,
1112
+ "autoincrement": false
1113
+ },
1114
+ "aaguid": {
1115
+ "name": "aaguid",
1116
+ "type": "text",
1117
+ "primaryKey": false,
1118
+ "notNull": false,
1119
+ "autoincrement": false
1120
+ }
1121
+ },
1122
+ "indexes": {
1123
+ "auth_passkey_user_id": {
1124
+ "name": "auth_passkey_user_id",
1125
+ "columns": [
1126
+ "user_id"
1127
+ ],
1128
+ "isUnique": false
1129
+ },
1130
+ "auth_passkey_credential_id": {
1131
+ "name": "auth_passkey_credential_id",
1132
+ "columns": [
1133
+ "credential_id"
1134
+ ],
1135
+ "isUnique": false
1136
+ }
1137
+ },
1138
+ "foreignKeys": {
1139
+ "auth_passkey_user_id_auth_user_id_fk": {
1140
+ "name": "auth_passkey_user_id_auth_user_id_fk",
1141
+ "tableFrom": "auth_passkey",
1142
+ "tableTo": "auth_user",
1143
+ "columnsFrom": [
1144
+ "user_id"
1145
+ ],
1146
+ "columnsTo": [
1147
+ "id"
1148
+ ],
1149
+ "onDelete": "cascade",
1150
+ "onUpdate": "no action"
1151
+ }
1152
+ },
1153
+ "compositePrimaryKeys": {},
1154
+ "uniqueConstraints": {},
1155
+ "checkConstraints": {}
1156
+ },
1157
+ "auth_session": {
1158
+ "name": "auth_session",
1159
+ "columns": {
1160
+ "id": {
1161
+ "name": "id",
1162
+ "type": "text",
1163
+ "primaryKey": true,
1164
+ "notNull": true,
1165
+ "autoincrement": false
1166
+ },
1167
+ "expires_at": {
1168
+ "name": "expires_at",
1169
+ "type": "integer",
1170
+ "primaryKey": false,
1171
+ "notNull": true,
1172
+ "autoincrement": false
1173
+ },
1174
+ "token": {
1175
+ "name": "token",
1176
+ "type": "text",
1177
+ "primaryKey": false,
1178
+ "notNull": true,
1179
+ "autoincrement": false
1180
+ },
1181
+ "created_at": {
1182
+ "name": "created_at",
1183
+ "type": "integer",
1184
+ "primaryKey": false,
1185
+ "notNull": true,
1186
+ "autoincrement": false,
1187
+ "default": "(cast(unixepoch('subsecond') * 1000 as integer))"
1188
+ },
1189
+ "updated_at": {
1190
+ "name": "updated_at",
1191
+ "type": "integer",
1192
+ "primaryKey": false,
1193
+ "notNull": true,
1194
+ "autoincrement": false,
1195
+ "default": "(cast(unixepoch('subsecond') * 1000 as integer))"
1196
+ },
1197
+ "ip_address": {
1198
+ "name": "ip_address",
1199
+ "type": "text",
1200
+ "primaryKey": false,
1201
+ "notNull": false,
1202
+ "autoincrement": false
1203
+ },
1204
+ "user_agent": {
1205
+ "name": "user_agent",
1206
+ "type": "text",
1207
+ "primaryKey": false,
1208
+ "notNull": false,
1209
+ "autoincrement": false
1210
+ },
1211
+ "user_id": {
1212
+ "name": "user_id",
1213
+ "type": "text",
1214
+ "primaryKey": false,
1215
+ "notNull": true,
1216
+ "autoincrement": false
1217
+ }
1218
+ },
1219
+ "indexes": {
1220
+ "auth_session_token_unique": {
1221
+ "name": "auth_session_token_unique",
1222
+ "columns": [
1223
+ "token"
1224
+ ],
1225
+ "isUnique": true
1226
+ },
1227
+ "auth_session_user_id": {
1228
+ "name": "auth_session_user_id",
1229
+ "columns": [
1230
+ "user_id"
1231
+ ],
1232
+ "isUnique": false
1233
+ }
1234
+ },
1235
+ "foreignKeys": {
1236
+ "auth_session_user_id_auth_user_id_fk": {
1237
+ "name": "auth_session_user_id_auth_user_id_fk",
1238
+ "tableFrom": "auth_session",
1239
+ "tableTo": "auth_user",
1240
+ "columnsFrom": [
1241
+ "user_id"
1242
+ ],
1243
+ "columnsTo": [
1244
+ "id"
1245
+ ],
1246
+ "onDelete": "cascade",
1247
+ "onUpdate": "no action"
1248
+ }
1249
+ },
1250
+ "compositePrimaryKeys": {},
1251
+ "uniqueConstraints": {},
1252
+ "checkConstraints": {}
1253
+ },
1254
+ "auth_token": {
1255
+ "name": "auth_token",
1256
+ "columns": {
1257
+ "id": {
1258
+ "name": "id",
1259
+ "type": "text",
1260
+ "primaryKey": true,
1261
+ "notNull": true,
1262
+ "autoincrement": false
1263
+ },
1264
+ "name": {
1265
+ "name": "name",
1266
+ "type": "text",
1267
+ "primaryKey": false,
1268
+ "notNull": true,
1269
+ "autoincrement": false
1270
+ },
1271
+ "hash": {
1272
+ "name": "hash",
1273
+ "type": "text",
1274
+ "primaryKey": false,
1275
+ "notNull": true,
1276
+ "autoincrement": false
1277
+ },
1278
+ "hint": {
1279
+ "name": "hint",
1280
+ "type": "text",
1281
+ "primaryKey": false,
1282
+ "notNull": true,
1283
+ "autoincrement": false
1284
+ },
1285
+ "role": {
1286
+ "name": "role",
1287
+ "type": "text",
1288
+ "primaryKey": false,
1289
+ "notNull": true,
1290
+ "autoincrement": false
1291
+ },
1292
+ "can_publish": {
1293
+ "name": "can_publish",
1294
+ "type": "integer",
1295
+ "primaryKey": false,
1296
+ "notNull": true,
1297
+ "autoincrement": false,
1298
+ "default": false
1299
+ },
1300
+ "personal_data": {
1301
+ "name": "personal_data",
1302
+ "type": "integer",
1303
+ "primaryKey": false,
1304
+ "notNull": true,
1305
+ "autoincrement": false,
1306
+ "default": false
1307
+ },
1308
+ "user_id": {
1309
+ "name": "user_id",
1310
+ "type": "text",
1311
+ "primaryKey": false,
1312
+ "notNull": false,
1313
+ "autoincrement": false
1314
+ },
1315
+ "expires_at": {
1316
+ "name": "expires_at",
1317
+ "type": "integer",
1318
+ "primaryKey": false,
1319
+ "notNull": true,
1320
+ "autoincrement": false
1321
+ },
1322
+ "last_used_at": {
1323
+ "name": "last_used_at",
1324
+ "type": "integer",
1325
+ "primaryKey": false,
1326
+ "notNull": false,
1327
+ "autoincrement": false
1328
+ },
1329
+ "created_at": {
1330
+ "name": "created_at",
1331
+ "type": "integer",
1332
+ "primaryKey": false,
1333
+ "notNull": true,
1334
+ "autoincrement": false,
1335
+ "default": "(cast(unixepoch('subsecond') * 1000 as integer))"
1336
+ }
1337
+ },
1338
+ "indexes": {
1339
+ "auth_token_hash_unique": {
1340
+ "name": "auth_token_hash_unique",
1341
+ "columns": [
1342
+ "hash"
1343
+ ],
1344
+ "isUnique": true
1345
+ },
1346
+ "auth_token_user_id": {
1347
+ "name": "auth_token_user_id",
1348
+ "columns": [
1349
+ "user_id"
1350
+ ],
1351
+ "isUnique": false
1352
+ }
1353
+ },
1354
+ "foreignKeys": {
1355
+ "auth_token_user_id_auth_user_id_fk": {
1356
+ "name": "auth_token_user_id_auth_user_id_fk",
1357
+ "tableFrom": "auth_token",
1358
+ "tableTo": "auth_user",
1359
+ "columnsFrom": [
1360
+ "user_id"
1361
+ ],
1362
+ "columnsTo": [
1363
+ "id"
1364
+ ],
1365
+ "onDelete": "cascade",
1366
+ "onUpdate": "no action"
1367
+ }
1368
+ },
1369
+ "compositePrimaryKeys": {},
1370
+ "uniqueConstraints": {},
1371
+ "checkConstraints": {}
1372
+ },
1373
+ "auth_user": {
1374
+ "name": "auth_user",
1375
+ "columns": {
1376
+ "id": {
1377
+ "name": "id",
1378
+ "type": "text",
1379
+ "primaryKey": true,
1380
+ "notNull": true,
1381
+ "autoincrement": false
1382
+ },
1383
+ "name": {
1384
+ "name": "name",
1385
+ "type": "text",
1386
+ "primaryKey": false,
1387
+ "notNull": true,
1388
+ "autoincrement": false
1389
+ },
1390
+ "email": {
1391
+ "name": "email",
1392
+ "type": "text",
1393
+ "primaryKey": false,
1394
+ "notNull": true,
1395
+ "autoincrement": false
1396
+ },
1397
+ "email_verified": {
1398
+ "name": "email_verified",
1399
+ "type": "integer",
1400
+ "primaryKey": false,
1401
+ "notNull": true,
1402
+ "autoincrement": false,
1403
+ "default": false
1404
+ },
1405
+ "image": {
1406
+ "name": "image",
1407
+ "type": "text",
1408
+ "primaryKey": false,
1409
+ "notNull": false,
1410
+ "autoincrement": false
1411
+ },
1412
+ "created_at": {
1413
+ "name": "created_at",
1414
+ "type": "integer",
1415
+ "primaryKey": false,
1416
+ "notNull": true,
1417
+ "autoincrement": false,
1418
+ "default": "(cast(unixepoch('subsecond') * 1000 as integer))"
1419
+ },
1420
+ "updated_at": {
1421
+ "name": "updated_at",
1422
+ "type": "integer",
1423
+ "primaryKey": false,
1424
+ "notNull": true,
1425
+ "autoincrement": false,
1426
+ "default": "(cast(unixepoch('subsecond') * 1000 as integer))"
1427
+ },
1428
+ "role": {
1429
+ "name": "role",
1430
+ "type": "text",
1431
+ "primaryKey": false,
1432
+ "notNull": true,
1433
+ "autoincrement": false,
1434
+ "default": "'author'"
1435
+ }
1436
+ },
1437
+ "indexes": {
1438
+ "auth_user_email_unique": {
1439
+ "name": "auth_user_email_unique",
1440
+ "columns": [
1441
+ "email"
1442
+ ],
1443
+ "isUnique": true
1444
+ }
1445
+ },
1446
+ "foreignKeys": {},
1447
+ "compositePrimaryKeys": {},
1448
+ "uniqueConstraints": {},
1449
+ "checkConstraints": {}
1450
+ },
1451
+ "auth_verification": {
1452
+ "name": "auth_verification",
1453
+ "columns": {
1454
+ "id": {
1455
+ "name": "id",
1456
+ "type": "text",
1457
+ "primaryKey": true,
1458
+ "notNull": true,
1459
+ "autoincrement": false
1460
+ },
1461
+ "identifier": {
1462
+ "name": "identifier",
1463
+ "type": "text",
1464
+ "primaryKey": false,
1465
+ "notNull": true,
1466
+ "autoincrement": false
1467
+ },
1468
+ "value": {
1469
+ "name": "value",
1470
+ "type": "text",
1471
+ "primaryKey": false,
1472
+ "notNull": true,
1473
+ "autoincrement": false
1474
+ },
1475
+ "expires_at": {
1476
+ "name": "expires_at",
1477
+ "type": "integer",
1478
+ "primaryKey": false,
1479
+ "notNull": true,
1480
+ "autoincrement": false
1481
+ },
1482
+ "created_at": {
1483
+ "name": "created_at",
1484
+ "type": "integer",
1485
+ "primaryKey": false,
1486
+ "notNull": true,
1487
+ "autoincrement": false,
1488
+ "default": "(cast(unixepoch('subsecond') * 1000 as integer))"
1489
+ },
1490
+ "updated_at": {
1491
+ "name": "updated_at",
1492
+ "type": "integer",
1493
+ "primaryKey": false,
1494
+ "notNull": true,
1495
+ "autoincrement": false,
1496
+ "default": "(cast(unixepoch('subsecond') * 1000 as integer))"
1497
+ }
1498
+ },
1499
+ "indexes": {
1500
+ "auth_verification_identifier": {
1501
+ "name": "auth_verification_identifier",
1502
+ "columns": [
1503
+ "identifier"
1504
+ ],
1505
+ "isUnique": false
1506
+ }
1507
+ },
1508
+ "foreignKeys": {},
1509
+ "compositePrimaryKeys": {},
1510
+ "uniqueConstraints": {},
1511
+ "checkConstraints": {}
1512
+ }
1513
+ },
1514
+ "views": {},
1515
+ "enums": {},
1516
+ "_meta": {
1517
+ "schemas": {},
1518
+ "tables": {},
1519
+ "columns": {}
1520
+ },
1521
+ "internal": {
1522
+ "indexes": {}
1523
+ }
1524
+ }