sandcms 0.6.1 → 0.6.2

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.
Files changed (41) hide show
  1. package/README.md +1 -1
  2. package/dist/cli/doctor.js +2 -2
  3. package/dist/cli/files.js +11 -6
  4. package/dist/cli/index.js +1 -1
  5. package/dist/cli/upgrade.js +2 -1
  6. package/dist/env.d.ts +80 -0
  7. package/dist/env.js +103 -0
  8. package/dist/server/admin-load.d.ts +46 -76
  9. package/dist/server/admin-load.js +98 -24
  10. package/dist/server/api-pagination.d.ts +2 -0
  11. package/dist/server/api-pagination.js +51 -7
  12. package/dist/server/cms.d.ts +17 -2
  13. package/dist/server/cms.js +3 -1
  14. package/dist/server/content.d.ts +15 -2
  15. package/dist/server/content.js +72 -30
  16. package/dist/server/db/migration-data.js +8 -0
  17. package/dist/server/db/migrations/0007_content_and_job_indexes.sql +2 -0
  18. package/dist/server/db/migrations/0008_search_text_cache.sql +45 -0
  19. package/dist/server/db/migrations/meta/0007_snapshot.json +1643 -0
  20. package/dist/server/db/migrations/meta/0008_snapshot.json +1711 -0
  21. package/dist/server/db/migrations/meta/_journal.json +14 -0
  22. package/dist/server/db/schema.d.ts +83 -0
  23. package/dist/server/db/schema.js +23 -5
  24. package/dist/server/email/index.d.ts +5 -1
  25. package/dist/server/email/index.js +12 -11
  26. package/dist/server/media/runner.js +217 -191
  27. package/dist/server/media/service.d.ts +6 -0
  28. package/dist/server/media/service.js +36 -3
  29. package/dist/server/search.d.ts +2 -0
  30. package/dist/server/search.js +7 -0
  31. package/dist/worker/index.js +129 -76
  32. package/docs/cloudflare.md +1 -1
  33. package/docs/deployment.md +15 -1
  34. package/docs/email.md +5 -5
  35. package/docs/media.md +2 -2
  36. package/docs/package.md +4 -4
  37. package/docs/releases.md +10 -0
  38. package/docs/upgrades.md +31 -1
  39. package/package.json +5 -1
  40. package/templates/env.ts +8 -0
  41. package/templates/integration.ts +5 -5
@@ -0,0 +1,1711 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "ff7b1ea1-e6a8-40fb-b4eb-99e0edfd2cbf",
5
+ "prevId": "0f368a05-5ce4-4d23-8947-ddb5a25b68c6",
6
+ "tables": {
7
+ "access_links": {
8
+ "name": "access_links",
9
+ "columns": {
10
+ "id": {
11
+ "name": "id",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "kind": {
18
+ "name": "kind",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "email": {
25
+ "name": "email",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false
30
+ },
31
+ "role": {
32
+ "name": "role",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": true,
36
+ "autoincrement": false,
37
+ "default": "'editor'"
38
+ },
39
+ "tokenHash": {
40
+ "name": "tokenHash",
41
+ "type": "text",
42
+ "primaryKey": false,
43
+ "notNull": true,
44
+ "autoincrement": false
45
+ },
46
+ "credentialHash": {
47
+ "name": "credentialHash",
48
+ "type": "text",
49
+ "primaryKey": false,
50
+ "notNull": false,
51
+ "autoincrement": false
52
+ },
53
+ "expiresAt": {
54
+ "name": "expiresAt",
55
+ "type": "integer",
56
+ "primaryKey": false,
57
+ "notNull": true,
58
+ "autoincrement": false
59
+ },
60
+ "status": {
61
+ "name": "status",
62
+ "type": "text",
63
+ "primaryKey": false,
64
+ "notNull": true,
65
+ "autoincrement": false
66
+ },
67
+ "failureReason": {
68
+ "name": "failureReason",
69
+ "type": "text",
70
+ "primaryKey": false,
71
+ "notNull": false,
72
+ "autoincrement": false
73
+ },
74
+ "createdAt": {
75
+ "name": "createdAt",
76
+ "type": "integer",
77
+ "primaryKey": false,
78
+ "notNull": true,
79
+ "autoincrement": false
80
+ }
81
+ },
82
+ "indexes": {
83
+ "access_links_tokenHash_unique": {
84
+ "name": "access_links_tokenHash_unique",
85
+ "columns": [
86
+ "tokenHash"
87
+ ],
88
+ "isUnique": true
89
+ },
90
+ "access_link_recipient": {
91
+ "name": "access_link_recipient",
92
+ "columns": [
93
+ "kind",
94
+ "email"
95
+ ],
96
+ "isUnique": false
97
+ },
98
+ "access_invite_recipient": {
99
+ "name": "access_invite_recipient",
100
+ "columns": [
101
+ "kind",
102
+ "email"
103
+ ],
104
+ "isUnique": true,
105
+ "where": "\"access_links\".\"kind\" = 'invite'"
106
+ }
107
+ },
108
+ "foreignKeys": {},
109
+ "compositePrimaryKeys": {},
110
+ "uniqueConstraints": {},
111
+ "checkConstraints": {}
112
+ },
113
+ "account": {
114
+ "name": "account",
115
+ "columns": {
116
+ "id": {
117
+ "name": "id",
118
+ "type": "text",
119
+ "primaryKey": true,
120
+ "notNull": true,
121
+ "autoincrement": false
122
+ },
123
+ "accountId": {
124
+ "name": "accountId",
125
+ "type": "text",
126
+ "primaryKey": false,
127
+ "notNull": true,
128
+ "autoincrement": false
129
+ },
130
+ "providerId": {
131
+ "name": "providerId",
132
+ "type": "text",
133
+ "primaryKey": false,
134
+ "notNull": true,
135
+ "autoincrement": false
136
+ },
137
+ "userId": {
138
+ "name": "userId",
139
+ "type": "text",
140
+ "primaryKey": false,
141
+ "notNull": true,
142
+ "autoincrement": false
143
+ },
144
+ "accessToken": {
145
+ "name": "accessToken",
146
+ "type": "text",
147
+ "primaryKey": false,
148
+ "notNull": false,
149
+ "autoincrement": false
150
+ },
151
+ "refreshToken": {
152
+ "name": "refreshToken",
153
+ "type": "text",
154
+ "primaryKey": false,
155
+ "notNull": false,
156
+ "autoincrement": false
157
+ },
158
+ "idToken": {
159
+ "name": "idToken",
160
+ "type": "text",
161
+ "primaryKey": false,
162
+ "notNull": false,
163
+ "autoincrement": false
164
+ },
165
+ "accessTokenExpiresAt": {
166
+ "name": "accessTokenExpiresAt",
167
+ "type": "integer",
168
+ "primaryKey": false,
169
+ "notNull": false,
170
+ "autoincrement": false
171
+ },
172
+ "refreshTokenExpiresAt": {
173
+ "name": "refreshTokenExpiresAt",
174
+ "type": "integer",
175
+ "primaryKey": false,
176
+ "notNull": false,
177
+ "autoincrement": false
178
+ },
179
+ "scope": {
180
+ "name": "scope",
181
+ "type": "text",
182
+ "primaryKey": false,
183
+ "notNull": false,
184
+ "autoincrement": false
185
+ },
186
+ "password": {
187
+ "name": "password",
188
+ "type": "text",
189
+ "primaryKey": false,
190
+ "notNull": false,
191
+ "autoincrement": false
192
+ },
193
+ "createdAt": {
194
+ "name": "createdAt",
195
+ "type": "integer",
196
+ "primaryKey": false,
197
+ "notNull": true,
198
+ "autoincrement": false
199
+ },
200
+ "updatedAt": {
201
+ "name": "updatedAt",
202
+ "type": "integer",
203
+ "primaryKey": false,
204
+ "notNull": true,
205
+ "autoincrement": false
206
+ }
207
+ },
208
+ "indexes": {
209
+ "account_user": {
210
+ "name": "account_user",
211
+ "columns": [
212
+ "userId"
213
+ ],
214
+ "isUnique": false
215
+ }
216
+ },
217
+ "foreignKeys": {
218
+ "account_userId_user_id_fk": {
219
+ "name": "account_userId_user_id_fk",
220
+ "tableFrom": "account",
221
+ "tableTo": "user",
222
+ "columnsFrom": [
223
+ "userId"
224
+ ],
225
+ "columnsTo": [
226
+ "id"
227
+ ],
228
+ "onDelete": "cascade",
229
+ "onUpdate": "no action"
230
+ }
231
+ },
232
+ "compositePrimaryKeys": {},
233
+ "uniqueConstraints": {},
234
+ "checkConstraints": {}
235
+ },
236
+ "api_requests": {
237
+ "name": "api_requests",
238
+ "columns": {
239
+ "id": {
240
+ "name": "id",
241
+ "type": "text",
242
+ "primaryKey": true,
243
+ "notNull": true,
244
+ "autoincrement": false
245
+ },
246
+ "userId": {
247
+ "name": "userId",
248
+ "type": "text",
249
+ "primaryKey": false,
250
+ "notNull": true,
251
+ "autoincrement": false
252
+ },
253
+ "fingerprint": {
254
+ "name": "fingerprint",
255
+ "type": "text",
256
+ "primaryKey": false,
257
+ "notNull": true,
258
+ "autoincrement": false
259
+ },
260
+ "response": {
261
+ "name": "response",
262
+ "type": "text",
263
+ "primaryKey": false,
264
+ "notNull": true,
265
+ "autoincrement": false
266
+ },
267
+ "createdAt": {
268
+ "name": "createdAt",
269
+ "type": "integer",
270
+ "primaryKey": false,
271
+ "notNull": true,
272
+ "autoincrement": false
273
+ }
274
+ },
275
+ "indexes": {
276
+ "api_requests_created": {
277
+ "name": "api_requests_created",
278
+ "columns": [
279
+ "createdAt"
280
+ ],
281
+ "isUnique": false
282
+ }
283
+ },
284
+ "foreignKeys": {
285
+ "api_requests_userId_user_id_fk": {
286
+ "name": "api_requests_userId_user_id_fk",
287
+ "tableFrom": "api_requests",
288
+ "tableTo": "user",
289
+ "columnsFrom": [
290
+ "userId"
291
+ ],
292
+ "columnsTo": [
293
+ "id"
294
+ ],
295
+ "onDelete": "cascade",
296
+ "onUpdate": "no action"
297
+ }
298
+ },
299
+ "compositePrimaryKeys": {},
300
+ "uniqueConstraints": {},
301
+ "checkConstraints": {}
302
+ },
303
+ "apikey": {
304
+ "name": "apikey",
305
+ "columns": {
306
+ "id": {
307
+ "name": "id",
308
+ "type": "text",
309
+ "primaryKey": true,
310
+ "notNull": true,
311
+ "autoincrement": false
312
+ },
313
+ "configId": {
314
+ "name": "configId",
315
+ "type": "text",
316
+ "primaryKey": false,
317
+ "notNull": true,
318
+ "autoincrement": false,
319
+ "default": "'default'"
320
+ },
321
+ "name": {
322
+ "name": "name",
323
+ "type": "text",
324
+ "primaryKey": false,
325
+ "notNull": false,
326
+ "autoincrement": false
327
+ },
328
+ "start": {
329
+ "name": "start",
330
+ "type": "text",
331
+ "primaryKey": false,
332
+ "notNull": false,
333
+ "autoincrement": false
334
+ },
335
+ "prefix": {
336
+ "name": "prefix",
337
+ "type": "text",
338
+ "primaryKey": false,
339
+ "notNull": false,
340
+ "autoincrement": false
341
+ },
342
+ "key": {
343
+ "name": "key",
344
+ "type": "text",
345
+ "primaryKey": false,
346
+ "notNull": true,
347
+ "autoincrement": false
348
+ },
349
+ "referenceId": {
350
+ "name": "referenceId",
351
+ "type": "text",
352
+ "primaryKey": false,
353
+ "notNull": true,
354
+ "autoincrement": false
355
+ },
356
+ "refillInterval": {
357
+ "name": "refillInterval",
358
+ "type": "integer",
359
+ "primaryKey": false,
360
+ "notNull": false,
361
+ "autoincrement": false
362
+ },
363
+ "refillAmount": {
364
+ "name": "refillAmount",
365
+ "type": "integer",
366
+ "primaryKey": false,
367
+ "notNull": false,
368
+ "autoincrement": false
369
+ },
370
+ "lastRefillAt": {
371
+ "name": "lastRefillAt",
372
+ "type": "integer",
373
+ "primaryKey": false,
374
+ "notNull": false,
375
+ "autoincrement": false
376
+ },
377
+ "enabled": {
378
+ "name": "enabled",
379
+ "type": "integer",
380
+ "primaryKey": false,
381
+ "notNull": false,
382
+ "autoincrement": false,
383
+ "default": true
384
+ },
385
+ "rateLimitEnabled": {
386
+ "name": "rateLimitEnabled",
387
+ "type": "integer",
388
+ "primaryKey": false,
389
+ "notNull": false,
390
+ "autoincrement": false,
391
+ "default": true
392
+ },
393
+ "rateLimitTimeWindow": {
394
+ "name": "rateLimitTimeWindow",
395
+ "type": "integer",
396
+ "primaryKey": false,
397
+ "notNull": false,
398
+ "autoincrement": false,
399
+ "default": 60000
400
+ },
401
+ "rateLimitMax": {
402
+ "name": "rateLimitMax",
403
+ "type": "integer",
404
+ "primaryKey": false,
405
+ "notNull": false,
406
+ "autoincrement": false,
407
+ "default": 120
408
+ },
409
+ "requestCount": {
410
+ "name": "requestCount",
411
+ "type": "integer",
412
+ "primaryKey": false,
413
+ "notNull": false,
414
+ "autoincrement": false,
415
+ "default": 0
416
+ },
417
+ "remaining": {
418
+ "name": "remaining",
419
+ "type": "integer",
420
+ "primaryKey": false,
421
+ "notNull": false,
422
+ "autoincrement": false
423
+ },
424
+ "lastRequest": {
425
+ "name": "lastRequest",
426
+ "type": "integer",
427
+ "primaryKey": false,
428
+ "notNull": false,
429
+ "autoincrement": false
430
+ },
431
+ "expiresAt": {
432
+ "name": "expiresAt",
433
+ "type": "integer",
434
+ "primaryKey": false,
435
+ "notNull": false,
436
+ "autoincrement": false
437
+ },
438
+ "createdAt": {
439
+ "name": "createdAt",
440
+ "type": "integer",
441
+ "primaryKey": false,
442
+ "notNull": true,
443
+ "autoincrement": false
444
+ },
445
+ "updatedAt": {
446
+ "name": "updatedAt",
447
+ "type": "integer",
448
+ "primaryKey": false,
449
+ "notNull": true,
450
+ "autoincrement": false
451
+ },
452
+ "permissions": {
453
+ "name": "permissions",
454
+ "type": "text",
455
+ "primaryKey": false,
456
+ "notNull": false,
457
+ "autoincrement": false
458
+ },
459
+ "metadata": {
460
+ "name": "metadata",
461
+ "type": "text",
462
+ "primaryKey": false,
463
+ "notNull": false,
464
+ "autoincrement": false
465
+ }
466
+ },
467
+ "indexes": {
468
+ "apikey_owner": {
469
+ "name": "apikey_owner",
470
+ "columns": [
471
+ "referenceId"
472
+ ],
473
+ "isUnique": false
474
+ },
475
+ "apikey_config": {
476
+ "name": "apikey_config",
477
+ "columns": [
478
+ "configId"
479
+ ],
480
+ "isUnique": false
481
+ },
482
+ "apikey_hash": {
483
+ "name": "apikey_hash",
484
+ "columns": [
485
+ "key"
486
+ ],
487
+ "isUnique": true
488
+ }
489
+ },
490
+ "foreignKeys": {
491
+ "apikey_referenceId_user_id_fk": {
492
+ "name": "apikey_referenceId_user_id_fk",
493
+ "tableFrom": "apikey",
494
+ "tableTo": "user",
495
+ "columnsFrom": [
496
+ "referenceId"
497
+ ],
498
+ "columnsTo": [
499
+ "id"
500
+ ],
501
+ "onDelete": "cascade",
502
+ "onUpdate": "no action"
503
+ }
504
+ },
505
+ "compositePrimaryKeys": {},
506
+ "uniqueConstraints": {},
507
+ "checkConstraints": {}
508
+ },
509
+ "audit": {
510
+ "name": "audit",
511
+ "columns": {
512
+ "id": {
513
+ "name": "id",
514
+ "type": "text",
515
+ "primaryKey": true,
516
+ "notNull": true,
517
+ "autoincrement": false
518
+ },
519
+ "action": {
520
+ "name": "action",
521
+ "type": "text",
522
+ "primaryKey": false,
523
+ "notNull": true,
524
+ "autoincrement": false
525
+ },
526
+ "actor": {
527
+ "name": "actor",
528
+ "type": "text",
529
+ "primaryKey": false,
530
+ "notNull": true,
531
+ "autoincrement": false
532
+ },
533
+ "detail": {
534
+ "name": "detail",
535
+ "type": "text",
536
+ "primaryKey": false,
537
+ "notNull": true,
538
+ "autoincrement": false
539
+ },
540
+ "createdAt": {
541
+ "name": "createdAt",
542
+ "type": "integer",
543
+ "primaryKey": false,
544
+ "notNull": true,
545
+ "autoincrement": false
546
+ }
547
+ },
548
+ "indexes": {},
549
+ "foreignKeys": {},
550
+ "compositePrimaryKeys": {},
551
+ "uniqueConstraints": {},
552
+ "checkConstraints": {}
553
+ },
554
+ "documents": {
555
+ "name": "documents",
556
+ "columns": {
557
+ "id": {
558
+ "name": "id",
559
+ "type": "text",
560
+ "primaryKey": true,
561
+ "notNull": true,
562
+ "autoincrement": false
563
+ },
564
+ "blueprint": {
565
+ "name": "blueprint",
566
+ "type": "text",
567
+ "primaryKey": false,
568
+ "notNull": true,
569
+ "autoincrement": false
570
+ },
571
+ "singleton": {
572
+ "name": "singleton",
573
+ "type": "text",
574
+ "primaryKey": false,
575
+ "notNull": false,
576
+ "autoincrement": false
577
+ },
578
+ "draft": {
579
+ "name": "draft",
580
+ "type": "text",
581
+ "primaryKey": false,
582
+ "notNull": true,
583
+ "autoincrement": false
584
+ },
585
+ "published": {
586
+ "name": "published",
587
+ "type": "text",
588
+ "primaryKey": false,
589
+ "notNull": false,
590
+ "autoincrement": false
591
+ },
592
+ "draftSlug": {
593
+ "name": "draftSlug",
594
+ "type": "text",
595
+ "primaryKey": false,
596
+ "notNull": false,
597
+ "autoincrement": false
598
+ },
599
+ "publishedSlug": {
600
+ "name": "publishedSlug",
601
+ "type": "text",
602
+ "primaryKey": false,
603
+ "notNull": false,
604
+ "autoincrement": false
605
+ },
606
+ "version": {
607
+ "name": "version",
608
+ "type": "integer",
609
+ "primaryKey": false,
610
+ "notNull": true,
611
+ "autoincrement": false,
612
+ "default": 1
613
+ },
614
+ "publishedAt": {
615
+ "name": "publishedAt",
616
+ "type": "integer",
617
+ "primaryKey": false,
618
+ "notNull": false,
619
+ "autoincrement": false
620
+ },
621
+ "updatedAt": {
622
+ "name": "updatedAt",
623
+ "type": "integer",
624
+ "primaryKey": false,
625
+ "notNull": true,
626
+ "autoincrement": false
627
+ },
628
+ "createdAt": {
629
+ "name": "createdAt",
630
+ "type": "integer",
631
+ "primaryKey": false,
632
+ "notNull": true,
633
+ "autoincrement": false
634
+ },
635
+ "searchText": {
636
+ "name": "searchText",
637
+ "type": "text",
638
+ "primaryKey": false,
639
+ "notNull": false,
640
+ "autoincrement": false
641
+ }
642
+ },
643
+ "indexes": {
644
+ "documents_singleton_unique": {
645
+ "name": "documents_singleton_unique",
646
+ "columns": [
647
+ "singleton"
648
+ ],
649
+ "isUnique": true
650
+ },
651
+ "draft_slug": {
652
+ "name": "draft_slug",
653
+ "columns": [
654
+ "blueprint",
655
+ "draftSlug"
656
+ ],
657
+ "isUnique": true
658
+ },
659
+ "published_slug": {
660
+ "name": "published_slug",
661
+ "columns": [
662
+ "blueprint",
663
+ "publishedSlug"
664
+ ],
665
+ "isUnique": true
666
+ },
667
+ "documents_blueprint": {
668
+ "name": "documents_blueprint",
669
+ "columns": [
670
+ "blueprint"
671
+ ],
672
+ "isUnique": false
673
+ },
674
+ "documents_api_page": {
675
+ "name": "documents_api_page",
676
+ "columns": [
677
+ "blueprint",
678
+ "updatedAt",
679
+ "id"
680
+ ],
681
+ "isUnique": false
682
+ }
683
+ },
684
+ "foreignKeys": {},
685
+ "compositePrimaryKeys": {},
686
+ "uniqueConstraints": {},
687
+ "checkConstraints": {}
688
+ },
689
+ "form_notifications": {
690
+ "name": "form_notifications",
691
+ "columns": {
692
+ "formId": {
693
+ "name": "formId",
694
+ "type": "text",
695
+ "primaryKey": true,
696
+ "notNull": true,
697
+ "autoincrement": false
698
+ },
699
+ "settings": {
700
+ "name": "settings",
701
+ "type": "text",
702
+ "primaryKey": false,
703
+ "notNull": true,
704
+ "autoincrement": false
705
+ }
706
+ },
707
+ "indexes": {},
708
+ "foreignKeys": {},
709
+ "compositePrimaryKeys": {},
710
+ "uniqueConstraints": {},
711
+ "checkConstraints": {}
712
+ },
713
+ "jobs": {
714
+ "name": "jobs",
715
+ "columns": {
716
+ "id": {
717
+ "name": "id",
718
+ "type": "text",
719
+ "primaryKey": true,
720
+ "notNull": true,
721
+ "autoincrement": false
722
+ },
723
+ "mediaId": {
724
+ "name": "mediaId",
725
+ "type": "text",
726
+ "primaryKey": false,
727
+ "notNull": true,
728
+ "autoincrement": false
729
+ },
730
+ "version": {
731
+ "name": "version",
732
+ "type": "text",
733
+ "primaryKey": false,
734
+ "notNull": true,
735
+ "autoincrement": false
736
+ },
737
+ "spec": {
738
+ "name": "spec",
739
+ "type": "text",
740
+ "primaryKey": false,
741
+ "notNull": true,
742
+ "autoincrement": false
743
+ },
744
+ "status": {
745
+ "name": "status",
746
+ "type": "text",
747
+ "primaryKey": false,
748
+ "notNull": true,
749
+ "autoincrement": false,
750
+ "default": "'pending'"
751
+ },
752
+ "attempts": {
753
+ "name": "attempts",
754
+ "type": "integer",
755
+ "primaryKey": false,
756
+ "notNull": true,
757
+ "autoincrement": false,
758
+ "default": 0
759
+ },
760
+ "leaseUntil": {
761
+ "name": "leaseUntil",
762
+ "type": "integer",
763
+ "primaryKey": false,
764
+ "notNull": true,
765
+ "autoincrement": false,
766
+ "default": 0
767
+ },
768
+ "nextAttempt": {
769
+ "name": "nextAttempt",
770
+ "type": "integer",
771
+ "primaryKey": false,
772
+ "notNull": true,
773
+ "autoincrement": false,
774
+ "default": 0
775
+ },
776
+ "error": {
777
+ "name": "error",
778
+ "type": "text",
779
+ "primaryKey": false,
780
+ "notNull": false,
781
+ "autoincrement": false
782
+ },
783
+ "result": {
784
+ "name": "result",
785
+ "type": "text",
786
+ "primaryKey": false,
787
+ "notNull": false,
788
+ "autoincrement": false
789
+ }
790
+ },
791
+ "indexes": {
792
+ "job_due": {
793
+ "name": "job_due",
794
+ "columns": [
795
+ "status",
796
+ "nextAttempt"
797
+ ],
798
+ "isUnique": false
799
+ },
800
+ "job_media": {
801
+ "name": "job_media",
802
+ "columns": [
803
+ "mediaId",
804
+ "version"
805
+ ],
806
+ "isUnique": false
807
+ }
808
+ },
809
+ "foreignKeys": {
810
+ "jobs_mediaId_media_id_fk": {
811
+ "name": "jobs_mediaId_media_id_fk",
812
+ "tableFrom": "jobs",
813
+ "tableTo": "media",
814
+ "columnsFrom": [
815
+ "mediaId"
816
+ ],
817
+ "columnsTo": [
818
+ "id"
819
+ ],
820
+ "onDelete": "cascade",
821
+ "onUpdate": "no action"
822
+ }
823
+ },
824
+ "compositePrimaryKeys": {},
825
+ "uniqueConstraints": {},
826
+ "checkConstraints": {}
827
+ },
828
+ "media": {
829
+ "name": "media",
830
+ "columns": {
831
+ "blueprint": {
832
+ "name": "blueprint",
833
+ "type": "text",
834
+ "primaryKey": false,
835
+ "notNull": true,
836
+ "autoincrement": false
837
+ },
838
+ "metadata": {
839
+ "name": "metadata",
840
+ "type": "text",
841
+ "primaryKey": false,
842
+ "notNull": true,
843
+ "autoincrement": false,
844
+ "default": "'{}'"
845
+ },
846
+ "id": {
847
+ "name": "id",
848
+ "type": "text",
849
+ "primaryKey": true,
850
+ "notNull": true,
851
+ "autoincrement": false
852
+ },
853
+ "filename": {
854
+ "name": "filename",
855
+ "type": "text",
856
+ "primaryKey": false,
857
+ "notNull": true,
858
+ "autoincrement": false
859
+ },
860
+ "mime": {
861
+ "name": "mime",
862
+ "type": "text",
863
+ "primaryKey": false,
864
+ "notNull": true,
865
+ "autoincrement": false
866
+ },
867
+ "bytes": {
868
+ "name": "bytes",
869
+ "type": "integer",
870
+ "primaryKey": false,
871
+ "notNull": true,
872
+ "autoincrement": false
873
+ },
874
+ "status": {
875
+ "name": "status",
876
+ "type": "text",
877
+ "primaryKey": false,
878
+ "notNull": true,
879
+ "autoincrement": false
880
+ },
881
+ "activeVersion": {
882
+ "name": "activeVersion",
883
+ "type": "text",
884
+ "primaryKey": false,
885
+ "notNull": false,
886
+ "autoincrement": false
887
+ },
888
+ "targetVersion": {
889
+ "name": "targetVersion",
890
+ "type": "text",
891
+ "primaryKey": false,
892
+ "notNull": true,
893
+ "autoincrement": false
894
+ },
895
+ "variants": {
896
+ "name": "variants",
897
+ "type": "text",
898
+ "primaryKey": false,
899
+ "notNull": true,
900
+ "autoincrement": false,
901
+ "default": "'[]'"
902
+ },
903
+ "error": {
904
+ "name": "error",
905
+ "type": "text",
906
+ "primaryKey": false,
907
+ "notNull": false,
908
+ "autoincrement": false
909
+ },
910
+ "createdAt": {
911
+ "name": "createdAt",
912
+ "type": "integer",
913
+ "primaryKey": false,
914
+ "notNull": true,
915
+ "autoincrement": false
916
+ },
917
+ "searchText": {
918
+ "name": "searchText",
919
+ "type": "text",
920
+ "primaryKey": false,
921
+ "notNull": false,
922
+ "autoincrement": false
923
+ }
924
+ },
925
+ "indexes": {
926
+ "media_api_page": {
927
+ "name": "media_api_page",
928
+ "columns": [
929
+ "createdAt",
930
+ "id"
931
+ ],
932
+ "isUnique": false
933
+ }
934
+ },
935
+ "foreignKeys": {},
936
+ "compositePrimaryKeys": {},
937
+ "uniqueConstraints": {},
938
+ "checkConstraints": {}
939
+ },
940
+ "media_deletions": {
941
+ "name": "media_deletions",
942
+ "columns": {
943
+ "mediaId": {
944
+ "name": "mediaId",
945
+ "type": "text",
946
+ "primaryKey": true,
947
+ "notNull": true,
948
+ "autoincrement": false
949
+ },
950
+ "attempts": {
951
+ "name": "attempts",
952
+ "type": "integer",
953
+ "primaryKey": false,
954
+ "notNull": true,
955
+ "autoincrement": false,
956
+ "default": 0
957
+ },
958
+ "nextAttempt": {
959
+ "name": "nextAttempt",
960
+ "type": "integer",
961
+ "primaryKey": false,
962
+ "notNull": true,
963
+ "autoincrement": false,
964
+ "default": 0
965
+ },
966
+ "leaseUntil": {
967
+ "name": "leaseUntil",
968
+ "type": "integer",
969
+ "primaryKey": false,
970
+ "notNull": true,
971
+ "autoincrement": false,
972
+ "default": 0
973
+ }
974
+ },
975
+ "indexes": {},
976
+ "foreignKeys": {
977
+ "media_deletions_mediaId_media_id_fk": {
978
+ "name": "media_deletions_mediaId_media_id_fk",
979
+ "tableFrom": "media_deletions",
980
+ "tableTo": "media",
981
+ "columnsFrom": [
982
+ "mediaId"
983
+ ],
984
+ "columnsTo": [
985
+ "id"
986
+ ],
987
+ "onDelete": "cascade",
988
+ "onUpdate": "no action"
989
+ }
990
+ },
991
+ "compositePrimaryKeys": {},
992
+ "uniqueConstraints": {},
993
+ "checkConstraints": {}
994
+ },
995
+ "media_document_links": {
996
+ "name": "media_document_links",
997
+ "columns": {
998
+ "mediaId": {
999
+ "name": "mediaId",
1000
+ "type": "text",
1001
+ "primaryKey": false,
1002
+ "notNull": true,
1003
+ "autoincrement": false
1004
+ },
1005
+ "documentId": {
1006
+ "name": "documentId",
1007
+ "type": "text",
1008
+ "primaryKey": false,
1009
+ "notNull": true,
1010
+ "autoincrement": false
1011
+ }
1012
+ },
1013
+ "indexes": {
1014
+ "media_document_link_document": {
1015
+ "name": "media_document_link_document",
1016
+ "columns": [
1017
+ "documentId"
1018
+ ],
1019
+ "isUnique": false
1020
+ }
1021
+ },
1022
+ "foreignKeys": {
1023
+ "media_document_links_mediaId_media_id_fk": {
1024
+ "name": "media_document_links_mediaId_media_id_fk",
1025
+ "tableFrom": "media_document_links",
1026
+ "tableTo": "media",
1027
+ "columnsFrom": [
1028
+ "mediaId"
1029
+ ],
1030
+ "columnsTo": [
1031
+ "id"
1032
+ ],
1033
+ "onDelete": "cascade",
1034
+ "onUpdate": "no action"
1035
+ }
1036
+ },
1037
+ "compositePrimaryKeys": {
1038
+ "media_document_links_mediaId_documentId_pk": {
1039
+ "columns": [
1040
+ "mediaId",
1041
+ "documentId"
1042
+ ],
1043
+ "name": "media_document_links_mediaId_documentId_pk"
1044
+ }
1045
+ },
1046
+ "uniqueConstraints": {},
1047
+ "checkConstraints": {}
1048
+ },
1049
+ "rate_limits": {
1050
+ "name": "rate_limits",
1051
+ "columns": {
1052
+ "key": {
1053
+ "name": "key",
1054
+ "type": "text",
1055
+ "primaryKey": true,
1056
+ "notNull": true,
1057
+ "autoincrement": false
1058
+ },
1059
+ "count": {
1060
+ "name": "count",
1061
+ "type": "integer",
1062
+ "primaryKey": false,
1063
+ "notNull": true,
1064
+ "autoincrement": false
1065
+ },
1066
+ "resetAt": {
1067
+ "name": "resetAt",
1068
+ "type": "integer",
1069
+ "primaryKey": false,
1070
+ "notNull": true,
1071
+ "autoincrement": false
1072
+ }
1073
+ },
1074
+ "indexes": {},
1075
+ "foreignKeys": {},
1076
+ "compositePrimaryKeys": {},
1077
+ "uniqueConstraints": {},
1078
+ "checkConstraints": {}
1079
+ },
1080
+ "content_references": {
1081
+ "name": "content_references",
1082
+ "columns": {
1083
+ "id": {
1084
+ "name": "id",
1085
+ "type": "text",
1086
+ "primaryKey": true,
1087
+ "notNull": true,
1088
+ "autoincrement": false
1089
+ },
1090
+ "documentId": {
1091
+ "name": "documentId",
1092
+ "type": "text",
1093
+ "primaryKey": false,
1094
+ "notNull": true,
1095
+ "autoincrement": false
1096
+ },
1097
+ "targetId": {
1098
+ "name": "targetId",
1099
+ "type": "text",
1100
+ "primaryKey": false,
1101
+ "notNull": true,
1102
+ "autoincrement": false
1103
+ },
1104
+ "kind": {
1105
+ "name": "kind",
1106
+ "type": "text",
1107
+ "primaryKey": false,
1108
+ "notNull": true,
1109
+ "autoincrement": false
1110
+ },
1111
+ "snapshot": {
1112
+ "name": "snapshot",
1113
+ "type": "text",
1114
+ "primaryKey": false,
1115
+ "notNull": true,
1116
+ "autoincrement": false
1117
+ }
1118
+ },
1119
+ "indexes": {
1120
+ "reference_target": {
1121
+ "name": "reference_target",
1122
+ "columns": [
1123
+ "targetId"
1124
+ ],
1125
+ "isUnique": false
1126
+ },
1127
+ "reference_document": {
1128
+ "name": "reference_document",
1129
+ "columns": [
1130
+ "documentId",
1131
+ "snapshot"
1132
+ ],
1133
+ "isUnique": false
1134
+ }
1135
+ },
1136
+ "foreignKeys": {
1137
+ "content_references_documentId_documents_id_fk": {
1138
+ "name": "content_references_documentId_documents_id_fk",
1139
+ "tableFrom": "content_references",
1140
+ "tableTo": "documents",
1141
+ "columnsFrom": [
1142
+ "documentId"
1143
+ ],
1144
+ "columnsTo": [
1145
+ "id"
1146
+ ],
1147
+ "onDelete": "cascade",
1148
+ "onUpdate": "no action"
1149
+ }
1150
+ },
1151
+ "compositePrimaryKeys": {},
1152
+ "uniqueConstraints": {},
1153
+ "checkConstraints": {}
1154
+ },
1155
+ "session": {
1156
+ "name": "session",
1157
+ "columns": {
1158
+ "id": {
1159
+ "name": "id",
1160
+ "type": "text",
1161
+ "primaryKey": true,
1162
+ "notNull": true,
1163
+ "autoincrement": false
1164
+ },
1165
+ "expiresAt": {
1166
+ "name": "expiresAt",
1167
+ "type": "integer",
1168
+ "primaryKey": false,
1169
+ "notNull": true,
1170
+ "autoincrement": false
1171
+ },
1172
+ "token": {
1173
+ "name": "token",
1174
+ "type": "text",
1175
+ "primaryKey": false,
1176
+ "notNull": true,
1177
+ "autoincrement": false
1178
+ },
1179
+ "createdAt": {
1180
+ "name": "createdAt",
1181
+ "type": "integer",
1182
+ "primaryKey": false,
1183
+ "notNull": true,
1184
+ "autoincrement": false
1185
+ },
1186
+ "updatedAt": {
1187
+ "name": "updatedAt",
1188
+ "type": "integer",
1189
+ "primaryKey": false,
1190
+ "notNull": true,
1191
+ "autoincrement": false
1192
+ },
1193
+ "ipAddress": {
1194
+ "name": "ipAddress",
1195
+ "type": "text",
1196
+ "primaryKey": false,
1197
+ "notNull": false,
1198
+ "autoincrement": false
1199
+ },
1200
+ "userAgent": {
1201
+ "name": "userAgent",
1202
+ "type": "text",
1203
+ "primaryKey": false,
1204
+ "notNull": false,
1205
+ "autoincrement": false
1206
+ },
1207
+ "userId": {
1208
+ "name": "userId",
1209
+ "type": "text",
1210
+ "primaryKey": false,
1211
+ "notNull": true,
1212
+ "autoincrement": false
1213
+ }
1214
+ },
1215
+ "indexes": {
1216
+ "session_token_unique": {
1217
+ "name": "session_token_unique",
1218
+ "columns": [
1219
+ "token"
1220
+ ],
1221
+ "isUnique": true
1222
+ },
1223
+ "session_user": {
1224
+ "name": "session_user",
1225
+ "columns": [
1226
+ "userId"
1227
+ ],
1228
+ "isUnique": false
1229
+ }
1230
+ },
1231
+ "foreignKeys": {
1232
+ "session_userId_user_id_fk": {
1233
+ "name": "session_userId_user_id_fk",
1234
+ "tableFrom": "session",
1235
+ "tableTo": "user",
1236
+ "columnsFrom": [
1237
+ "userId"
1238
+ ],
1239
+ "columnsTo": [
1240
+ "id"
1241
+ ],
1242
+ "onDelete": "cascade",
1243
+ "onUpdate": "no action"
1244
+ }
1245
+ },
1246
+ "compositePrimaryKeys": {},
1247
+ "uniqueConstraints": {},
1248
+ "checkConstraints": {}
1249
+ },
1250
+ "submissions": {
1251
+ "name": "submissions",
1252
+ "columns": {
1253
+ "id": {
1254
+ "name": "id",
1255
+ "type": "text",
1256
+ "primaryKey": true,
1257
+ "notNull": true,
1258
+ "autoincrement": false
1259
+ },
1260
+ "formId": {
1261
+ "name": "formId",
1262
+ "type": "text",
1263
+ "primaryKey": false,
1264
+ "notNull": true,
1265
+ "autoincrement": false
1266
+ },
1267
+ "data": {
1268
+ "name": "data",
1269
+ "type": "text",
1270
+ "primaryKey": false,
1271
+ "notNull": true,
1272
+ "autoincrement": false
1273
+ },
1274
+ "schema": {
1275
+ "name": "schema",
1276
+ "type": "text",
1277
+ "primaryKey": false,
1278
+ "notNull": true,
1279
+ "autoincrement": false
1280
+ },
1281
+ "read": {
1282
+ "name": "read",
1283
+ "type": "integer",
1284
+ "primaryKey": false,
1285
+ "notNull": true,
1286
+ "autoincrement": false,
1287
+ "default": false
1288
+ },
1289
+ "notification": {
1290
+ "name": "notification",
1291
+ "type": "text",
1292
+ "primaryKey": false,
1293
+ "notNull": false,
1294
+ "autoincrement": false
1295
+ },
1296
+ "createdAt": {
1297
+ "name": "createdAt",
1298
+ "type": "integer",
1299
+ "primaryKey": false,
1300
+ "notNull": true,
1301
+ "autoincrement": false
1302
+ }
1303
+ },
1304
+ "indexes": {
1305
+ "submission_form": {
1306
+ "name": "submission_form",
1307
+ "columns": [
1308
+ "formId",
1309
+ "createdAt"
1310
+ ],
1311
+ "isUnique": false
1312
+ }
1313
+ },
1314
+ "foreignKeys": {},
1315
+ "compositePrimaryKeys": {},
1316
+ "uniqueConstraints": {},
1317
+ "checkConstraints": {}
1318
+ },
1319
+ "twoFactor": {
1320
+ "name": "twoFactor",
1321
+ "columns": {
1322
+ "id": {
1323
+ "name": "id",
1324
+ "type": "text",
1325
+ "primaryKey": true,
1326
+ "notNull": true,
1327
+ "autoincrement": false
1328
+ },
1329
+ "secret": {
1330
+ "name": "secret",
1331
+ "type": "text",
1332
+ "primaryKey": false,
1333
+ "notNull": true,
1334
+ "autoincrement": false
1335
+ },
1336
+ "backupCodes": {
1337
+ "name": "backupCodes",
1338
+ "type": "text",
1339
+ "primaryKey": false,
1340
+ "notNull": true,
1341
+ "autoincrement": false
1342
+ },
1343
+ "userId": {
1344
+ "name": "userId",
1345
+ "type": "text",
1346
+ "primaryKey": false,
1347
+ "notNull": true,
1348
+ "autoincrement": false
1349
+ },
1350
+ "verified": {
1351
+ "name": "verified",
1352
+ "type": "integer",
1353
+ "primaryKey": false,
1354
+ "notNull": false,
1355
+ "autoincrement": false,
1356
+ "default": true
1357
+ },
1358
+ "failedVerificationCount": {
1359
+ "name": "failedVerificationCount",
1360
+ "type": "integer",
1361
+ "primaryKey": false,
1362
+ "notNull": false,
1363
+ "autoincrement": false,
1364
+ "default": 0
1365
+ },
1366
+ "lockedUntil": {
1367
+ "name": "lockedUntil",
1368
+ "type": "integer",
1369
+ "primaryKey": false,
1370
+ "notNull": false,
1371
+ "autoincrement": false
1372
+ }
1373
+ },
1374
+ "indexes": {
1375
+ "twofactor_user": {
1376
+ "name": "twofactor_user",
1377
+ "columns": [
1378
+ "userId"
1379
+ ],
1380
+ "isUnique": false
1381
+ },
1382
+ "twofactor_secret": {
1383
+ "name": "twofactor_secret",
1384
+ "columns": [
1385
+ "secret"
1386
+ ],
1387
+ "isUnique": false
1388
+ }
1389
+ },
1390
+ "foreignKeys": {
1391
+ "twoFactor_userId_user_id_fk": {
1392
+ "name": "twoFactor_userId_user_id_fk",
1393
+ "tableFrom": "twoFactor",
1394
+ "tableTo": "user",
1395
+ "columnsFrom": [
1396
+ "userId"
1397
+ ],
1398
+ "columnsTo": [
1399
+ "id"
1400
+ ],
1401
+ "onDelete": "cascade",
1402
+ "onUpdate": "no action"
1403
+ }
1404
+ },
1405
+ "compositePrimaryKeys": {},
1406
+ "uniqueConstraints": {},
1407
+ "checkConstraints": {}
1408
+ },
1409
+ "upload_sessions": {
1410
+ "name": "upload_sessions",
1411
+ "columns": {
1412
+ "mediaId": {
1413
+ "name": "mediaId",
1414
+ "type": "text",
1415
+ "primaryKey": true,
1416
+ "notNull": true,
1417
+ "autoincrement": false
1418
+ },
1419
+ "attempt": {
1420
+ "name": "attempt",
1421
+ "type": "text",
1422
+ "primaryKey": false,
1423
+ "notNull": true,
1424
+ "autoincrement": false
1425
+ },
1426
+ "expiresAt": {
1427
+ "name": "expiresAt",
1428
+ "type": "integer",
1429
+ "primaryKey": false,
1430
+ "notNull": true,
1431
+ "autoincrement": false
1432
+ },
1433
+ "status": {
1434
+ "name": "status",
1435
+ "type": "text",
1436
+ "primaryKey": false,
1437
+ "notNull": true,
1438
+ "autoincrement": false,
1439
+ "default": "'uploading'"
1440
+ },
1441
+ "attempts": {
1442
+ "name": "attempts",
1443
+ "type": "integer",
1444
+ "primaryKey": false,
1445
+ "notNull": true,
1446
+ "autoincrement": false,
1447
+ "default": 0
1448
+ },
1449
+ "nextAttempt": {
1450
+ "name": "nextAttempt",
1451
+ "type": "integer",
1452
+ "primaryKey": false,
1453
+ "notNull": true,
1454
+ "autoincrement": false,
1455
+ "default": 0
1456
+ },
1457
+ "leaseUntil": {
1458
+ "name": "leaseUntil",
1459
+ "type": "integer",
1460
+ "primaryKey": false,
1461
+ "notNull": true,
1462
+ "autoincrement": false,
1463
+ "default": 0
1464
+ }
1465
+ },
1466
+ "indexes": {},
1467
+ "foreignKeys": {
1468
+ "upload_sessions_mediaId_media_id_fk": {
1469
+ "name": "upload_sessions_mediaId_media_id_fk",
1470
+ "tableFrom": "upload_sessions",
1471
+ "tableTo": "media",
1472
+ "columnsFrom": [
1473
+ "mediaId"
1474
+ ],
1475
+ "columnsTo": [
1476
+ "id"
1477
+ ],
1478
+ "onDelete": "cascade",
1479
+ "onUpdate": "no action"
1480
+ }
1481
+ },
1482
+ "compositePrimaryKeys": {},
1483
+ "uniqueConstraints": {},
1484
+ "checkConstraints": {}
1485
+ },
1486
+ "uploads": {
1487
+ "name": "uploads",
1488
+ "columns": {
1489
+ "mediaId": {
1490
+ "name": "mediaId",
1491
+ "type": "text",
1492
+ "primaryKey": true,
1493
+ "notNull": true,
1494
+ "autoincrement": false
1495
+ },
1496
+ "body": {
1497
+ "name": "body",
1498
+ "type": "blob",
1499
+ "primaryKey": false,
1500
+ "notNull": true,
1501
+ "autoincrement": false
1502
+ },
1503
+ "attempts": {
1504
+ "name": "attempts",
1505
+ "type": "integer",
1506
+ "primaryKey": false,
1507
+ "notNull": true,
1508
+ "autoincrement": false,
1509
+ "default": 0
1510
+ },
1511
+ "nextAttempt": {
1512
+ "name": "nextAttempt",
1513
+ "type": "integer",
1514
+ "primaryKey": false,
1515
+ "notNull": true,
1516
+ "autoincrement": false,
1517
+ "default": 0
1518
+ },
1519
+ "leaseUntil": {
1520
+ "name": "leaseUntil",
1521
+ "type": "integer",
1522
+ "primaryKey": false,
1523
+ "notNull": true,
1524
+ "autoincrement": false,
1525
+ "default": 0
1526
+ }
1527
+ },
1528
+ "indexes": {},
1529
+ "foreignKeys": {
1530
+ "uploads_mediaId_media_id_fk": {
1531
+ "name": "uploads_mediaId_media_id_fk",
1532
+ "tableFrom": "uploads",
1533
+ "tableTo": "media",
1534
+ "columnsFrom": [
1535
+ "mediaId"
1536
+ ],
1537
+ "columnsTo": [
1538
+ "id"
1539
+ ],
1540
+ "onDelete": "cascade",
1541
+ "onUpdate": "no action"
1542
+ }
1543
+ },
1544
+ "compositePrimaryKeys": {},
1545
+ "uniqueConstraints": {},
1546
+ "checkConstraints": {}
1547
+ },
1548
+ "user": {
1549
+ "name": "user",
1550
+ "columns": {
1551
+ "id": {
1552
+ "name": "id",
1553
+ "type": "text",
1554
+ "primaryKey": true,
1555
+ "notNull": true,
1556
+ "autoincrement": false
1557
+ },
1558
+ "name": {
1559
+ "name": "name",
1560
+ "type": "text",
1561
+ "primaryKey": false,
1562
+ "notNull": true,
1563
+ "autoincrement": false
1564
+ },
1565
+ "email": {
1566
+ "name": "email",
1567
+ "type": "text",
1568
+ "primaryKey": false,
1569
+ "notNull": true,
1570
+ "autoincrement": false
1571
+ },
1572
+ "emailVerified": {
1573
+ "name": "emailVerified",
1574
+ "type": "integer",
1575
+ "primaryKey": false,
1576
+ "notNull": true,
1577
+ "autoincrement": false,
1578
+ "default": false
1579
+ },
1580
+ "image": {
1581
+ "name": "image",
1582
+ "type": "text",
1583
+ "primaryKey": false,
1584
+ "notNull": false,
1585
+ "autoincrement": false
1586
+ },
1587
+ "createdAt": {
1588
+ "name": "createdAt",
1589
+ "type": "integer",
1590
+ "primaryKey": false,
1591
+ "notNull": true,
1592
+ "autoincrement": false
1593
+ },
1594
+ "updatedAt": {
1595
+ "name": "updatedAt",
1596
+ "type": "integer",
1597
+ "primaryKey": false,
1598
+ "notNull": true,
1599
+ "autoincrement": false
1600
+ },
1601
+ "role": {
1602
+ "name": "role",
1603
+ "type": "text",
1604
+ "primaryKey": false,
1605
+ "notNull": true,
1606
+ "autoincrement": false,
1607
+ "default": "'editor'"
1608
+ },
1609
+ "mustChangePassword": {
1610
+ "name": "mustChangePassword",
1611
+ "type": "integer",
1612
+ "primaryKey": false,
1613
+ "notNull": true,
1614
+ "autoincrement": false,
1615
+ "default": true
1616
+ },
1617
+ "twoFactorEnabled": {
1618
+ "name": "twoFactorEnabled",
1619
+ "type": "integer",
1620
+ "primaryKey": false,
1621
+ "notNull": false,
1622
+ "autoincrement": false,
1623
+ "default": false
1624
+ }
1625
+ },
1626
+ "indexes": {
1627
+ "user_email_unique": {
1628
+ "name": "user_email_unique",
1629
+ "columns": [
1630
+ "email"
1631
+ ],
1632
+ "isUnique": true
1633
+ }
1634
+ },
1635
+ "foreignKeys": {},
1636
+ "compositePrimaryKeys": {},
1637
+ "uniqueConstraints": {},
1638
+ "checkConstraints": {}
1639
+ },
1640
+ "verification": {
1641
+ "name": "verification",
1642
+ "columns": {
1643
+ "id": {
1644
+ "name": "id",
1645
+ "type": "text",
1646
+ "primaryKey": true,
1647
+ "notNull": true,
1648
+ "autoincrement": false
1649
+ },
1650
+ "identifier": {
1651
+ "name": "identifier",
1652
+ "type": "text",
1653
+ "primaryKey": false,
1654
+ "notNull": true,
1655
+ "autoincrement": false
1656
+ },
1657
+ "value": {
1658
+ "name": "value",
1659
+ "type": "text",
1660
+ "primaryKey": false,
1661
+ "notNull": true,
1662
+ "autoincrement": false
1663
+ },
1664
+ "expiresAt": {
1665
+ "name": "expiresAt",
1666
+ "type": "integer",
1667
+ "primaryKey": false,
1668
+ "notNull": true,
1669
+ "autoincrement": false
1670
+ },
1671
+ "createdAt": {
1672
+ "name": "createdAt",
1673
+ "type": "integer",
1674
+ "primaryKey": false,
1675
+ "notNull": true,
1676
+ "autoincrement": false
1677
+ },
1678
+ "updatedAt": {
1679
+ "name": "updatedAt",
1680
+ "type": "integer",
1681
+ "primaryKey": false,
1682
+ "notNull": true,
1683
+ "autoincrement": false
1684
+ }
1685
+ },
1686
+ "indexes": {
1687
+ "verification_identifier": {
1688
+ "name": "verification_identifier",
1689
+ "columns": [
1690
+ "identifier"
1691
+ ],
1692
+ "isUnique": false
1693
+ }
1694
+ },
1695
+ "foreignKeys": {},
1696
+ "compositePrimaryKeys": {},
1697
+ "uniqueConstraints": {},
1698
+ "checkConstraints": {}
1699
+ }
1700
+ },
1701
+ "views": {},
1702
+ "enums": {},
1703
+ "_meta": {
1704
+ "schemas": {},
1705
+ "tables": {},
1706
+ "columns": {}
1707
+ },
1708
+ "internal": {
1709
+ "indexes": {}
1710
+ }
1711
+ }