sandcms 0.6.0 → 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 (51) hide show
  1. package/README.md +1 -1
  2. package/dist/cli/cloudflare.js +6 -6
  3. package/dist/cli/doctor.js +2 -2
  4. package/dist/cli/files.js +11 -6
  5. package/dist/cli/index.js +1 -1
  6. package/dist/cli/upgrade.js +2 -1
  7. package/dist/env.d.ts +80 -0
  8. package/dist/env.js +103 -0
  9. package/dist/server/admin-load.d.ts +46 -76
  10. package/dist/server/admin-load.js +98 -24
  11. package/dist/server/api-pagination.d.ts +2 -0
  12. package/dist/server/api-pagination.js +51 -7
  13. package/dist/server/cms.d.ts +19 -2
  14. package/dist/server/cms.js +13 -1
  15. package/dist/server/content.d.ts +15 -2
  16. package/dist/server/content.js +72 -30
  17. package/dist/server/db/auto-migrate.d.ts +12 -0
  18. package/dist/server/db/auto-migrate.js +23 -0
  19. package/dist/server/db/migration-data.js +8 -0
  20. package/dist/server/db/migrations/0007_content_and_job_indexes.sql +2 -0
  21. package/dist/server/db/migrations/0008_search_text_cache.sql +45 -0
  22. package/dist/server/db/migrations/meta/0007_snapshot.json +1643 -0
  23. package/dist/server/db/migrations/meta/0008_snapshot.json +1711 -0
  24. package/dist/server/db/migrations/meta/_journal.json +14 -0
  25. package/dist/server/db/schema.d.ts +83 -0
  26. package/dist/server/db/schema.js +23 -5
  27. package/dist/server/db/store.js +24 -9
  28. package/dist/server/email/index.d.ts +5 -1
  29. package/dist/server/email/index.js +12 -11
  30. package/dist/server/index.d.ts +1 -0
  31. package/dist/server/index.js +1 -0
  32. package/dist/server/media/runner.js +217 -191
  33. package/dist/server/media/service.d.ts +6 -0
  34. package/dist/server/media/service.js +36 -3
  35. package/dist/server/search.d.ts +2 -0
  36. package/dist/server/search.js +7 -0
  37. package/dist/worker/index.d.ts +1 -1
  38. package/dist/worker/index.js +134 -81
  39. package/dist/worker/local.js +5 -5
  40. package/dist/worker/uploads.d.ts +5 -5
  41. package/dist/worker/uploads.js +11 -9
  42. package/docs/cloudflare.md +7 -7
  43. package/docs/deployment.md +18 -0
  44. package/docs/email.md +5 -5
  45. package/docs/media.md +2 -2
  46. package/docs/package.md +4 -4
  47. package/docs/releases.md +18 -0
  48. package/docs/upgrades.md +66 -0
  49. package/package.json +5 -1
  50. package/templates/env.ts +8 -0
  51. package/templates/integration.ts +6 -5
@@ -0,0 +1,1643 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "0f368a05-5ce4-4d23-8947-ddb5a25b68c6",
5
+ "prevId": "1ac16fb4-baa9-467d-b6f2-ca591eb23eff",
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
+ },
636
+ "indexes": {
637
+ "documents_singleton_unique": {
638
+ "name": "documents_singleton_unique",
639
+ "columns": [
640
+ "singleton"
641
+ ],
642
+ "isUnique": true
643
+ },
644
+ "draft_slug": {
645
+ "name": "draft_slug",
646
+ "columns": [
647
+ "blueprint",
648
+ "draftSlug"
649
+ ],
650
+ "isUnique": true
651
+ },
652
+ "published_slug": {
653
+ "name": "published_slug",
654
+ "columns": [
655
+ "blueprint",
656
+ "publishedSlug"
657
+ ],
658
+ "isUnique": true
659
+ },
660
+ "documents_blueprint": {
661
+ "name": "documents_blueprint",
662
+ "columns": [
663
+ "blueprint"
664
+ ],
665
+ "isUnique": false
666
+ },
667
+ "documents_api_page": {
668
+ "name": "documents_api_page",
669
+ "columns": [
670
+ "blueprint",
671
+ "updatedAt",
672
+ "id"
673
+ ],
674
+ "isUnique": false
675
+ }
676
+ },
677
+ "foreignKeys": {},
678
+ "compositePrimaryKeys": {},
679
+ "uniqueConstraints": {},
680
+ "checkConstraints": {}
681
+ },
682
+ "form_notifications": {
683
+ "name": "form_notifications",
684
+ "columns": {
685
+ "formId": {
686
+ "name": "formId",
687
+ "type": "text",
688
+ "primaryKey": true,
689
+ "notNull": true,
690
+ "autoincrement": false
691
+ },
692
+ "settings": {
693
+ "name": "settings",
694
+ "type": "text",
695
+ "primaryKey": false,
696
+ "notNull": true,
697
+ "autoincrement": false
698
+ }
699
+ },
700
+ "indexes": {},
701
+ "foreignKeys": {},
702
+ "compositePrimaryKeys": {},
703
+ "uniqueConstraints": {},
704
+ "checkConstraints": {}
705
+ },
706
+ "jobs": {
707
+ "name": "jobs",
708
+ "columns": {
709
+ "id": {
710
+ "name": "id",
711
+ "type": "text",
712
+ "primaryKey": true,
713
+ "notNull": true,
714
+ "autoincrement": false
715
+ },
716
+ "mediaId": {
717
+ "name": "mediaId",
718
+ "type": "text",
719
+ "primaryKey": false,
720
+ "notNull": true,
721
+ "autoincrement": false
722
+ },
723
+ "version": {
724
+ "name": "version",
725
+ "type": "text",
726
+ "primaryKey": false,
727
+ "notNull": true,
728
+ "autoincrement": false
729
+ },
730
+ "spec": {
731
+ "name": "spec",
732
+ "type": "text",
733
+ "primaryKey": false,
734
+ "notNull": true,
735
+ "autoincrement": false
736
+ },
737
+ "status": {
738
+ "name": "status",
739
+ "type": "text",
740
+ "primaryKey": false,
741
+ "notNull": true,
742
+ "autoincrement": false,
743
+ "default": "'pending'"
744
+ },
745
+ "attempts": {
746
+ "name": "attempts",
747
+ "type": "integer",
748
+ "primaryKey": false,
749
+ "notNull": true,
750
+ "autoincrement": false,
751
+ "default": 0
752
+ },
753
+ "leaseUntil": {
754
+ "name": "leaseUntil",
755
+ "type": "integer",
756
+ "primaryKey": false,
757
+ "notNull": true,
758
+ "autoincrement": false,
759
+ "default": 0
760
+ },
761
+ "nextAttempt": {
762
+ "name": "nextAttempt",
763
+ "type": "integer",
764
+ "primaryKey": false,
765
+ "notNull": true,
766
+ "autoincrement": false,
767
+ "default": 0
768
+ },
769
+ "error": {
770
+ "name": "error",
771
+ "type": "text",
772
+ "primaryKey": false,
773
+ "notNull": false,
774
+ "autoincrement": false
775
+ },
776
+ "result": {
777
+ "name": "result",
778
+ "type": "text",
779
+ "primaryKey": false,
780
+ "notNull": false,
781
+ "autoincrement": false
782
+ }
783
+ },
784
+ "indexes": {
785
+ "job_due": {
786
+ "name": "job_due",
787
+ "columns": [
788
+ "status",
789
+ "nextAttempt"
790
+ ],
791
+ "isUnique": false
792
+ },
793
+ "job_media": {
794
+ "name": "job_media",
795
+ "columns": [
796
+ "mediaId",
797
+ "version"
798
+ ],
799
+ "isUnique": false
800
+ }
801
+ },
802
+ "foreignKeys": {
803
+ "jobs_mediaId_media_id_fk": {
804
+ "name": "jobs_mediaId_media_id_fk",
805
+ "tableFrom": "jobs",
806
+ "tableTo": "media",
807
+ "columnsFrom": [
808
+ "mediaId"
809
+ ],
810
+ "columnsTo": [
811
+ "id"
812
+ ],
813
+ "onDelete": "cascade",
814
+ "onUpdate": "no action"
815
+ }
816
+ },
817
+ "compositePrimaryKeys": {},
818
+ "uniqueConstraints": {},
819
+ "checkConstraints": {}
820
+ },
821
+ "media": {
822
+ "name": "media",
823
+ "columns": {
824
+ "blueprint": {
825
+ "name": "blueprint",
826
+ "type": "text",
827
+ "primaryKey": false,
828
+ "notNull": true,
829
+ "autoincrement": false
830
+ },
831
+ "metadata": {
832
+ "name": "metadata",
833
+ "type": "text",
834
+ "primaryKey": false,
835
+ "notNull": true,
836
+ "autoincrement": false,
837
+ "default": "'{}'"
838
+ },
839
+ "id": {
840
+ "name": "id",
841
+ "type": "text",
842
+ "primaryKey": true,
843
+ "notNull": true,
844
+ "autoincrement": false
845
+ },
846
+ "filename": {
847
+ "name": "filename",
848
+ "type": "text",
849
+ "primaryKey": false,
850
+ "notNull": true,
851
+ "autoincrement": false
852
+ },
853
+ "mime": {
854
+ "name": "mime",
855
+ "type": "text",
856
+ "primaryKey": false,
857
+ "notNull": true,
858
+ "autoincrement": false
859
+ },
860
+ "bytes": {
861
+ "name": "bytes",
862
+ "type": "integer",
863
+ "primaryKey": false,
864
+ "notNull": true,
865
+ "autoincrement": false
866
+ },
867
+ "status": {
868
+ "name": "status",
869
+ "type": "text",
870
+ "primaryKey": false,
871
+ "notNull": true,
872
+ "autoincrement": false
873
+ },
874
+ "activeVersion": {
875
+ "name": "activeVersion",
876
+ "type": "text",
877
+ "primaryKey": false,
878
+ "notNull": false,
879
+ "autoincrement": false
880
+ },
881
+ "targetVersion": {
882
+ "name": "targetVersion",
883
+ "type": "text",
884
+ "primaryKey": false,
885
+ "notNull": true,
886
+ "autoincrement": false
887
+ },
888
+ "variants": {
889
+ "name": "variants",
890
+ "type": "text",
891
+ "primaryKey": false,
892
+ "notNull": true,
893
+ "autoincrement": false,
894
+ "default": "'[]'"
895
+ },
896
+ "error": {
897
+ "name": "error",
898
+ "type": "text",
899
+ "primaryKey": false,
900
+ "notNull": false,
901
+ "autoincrement": false
902
+ },
903
+ "createdAt": {
904
+ "name": "createdAt",
905
+ "type": "integer",
906
+ "primaryKey": false,
907
+ "notNull": true,
908
+ "autoincrement": false
909
+ }
910
+ },
911
+ "indexes": {
912
+ "media_api_page": {
913
+ "name": "media_api_page",
914
+ "columns": [
915
+ "createdAt",
916
+ "id"
917
+ ],
918
+ "isUnique": false
919
+ }
920
+ },
921
+ "foreignKeys": {},
922
+ "compositePrimaryKeys": {},
923
+ "uniqueConstraints": {},
924
+ "checkConstraints": {}
925
+ },
926
+ "media_deletions": {
927
+ "name": "media_deletions",
928
+ "columns": {
929
+ "mediaId": {
930
+ "name": "mediaId",
931
+ "type": "text",
932
+ "primaryKey": true,
933
+ "notNull": true,
934
+ "autoincrement": false
935
+ },
936
+ "attempts": {
937
+ "name": "attempts",
938
+ "type": "integer",
939
+ "primaryKey": false,
940
+ "notNull": true,
941
+ "autoincrement": false,
942
+ "default": 0
943
+ },
944
+ "nextAttempt": {
945
+ "name": "nextAttempt",
946
+ "type": "integer",
947
+ "primaryKey": false,
948
+ "notNull": true,
949
+ "autoincrement": false,
950
+ "default": 0
951
+ },
952
+ "leaseUntil": {
953
+ "name": "leaseUntil",
954
+ "type": "integer",
955
+ "primaryKey": false,
956
+ "notNull": true,
957
+ "autoincrement": false,
958
+ "default": 0
959
+ }
960
+ },
961
+ "indexes": {},
962
+ "foreignKeys": {
963
+ "media_deletions_mediaId_media_id_fk": {
964
+ "name": "media_deletions_mediaId_media_id_fk",
965
+ "tableFrom": "media_deletions",
966
+ "tableTo": "media",
967
+ "columnsFrom": [
968
+ "mediaId"
969
+ ],
970
+ "columnsTo": [
971
+ "id"
972
+ ],
973
+ "onDelete": "cascade",
974
+ "onUpdate": "no action"
975
+ }
976
+ },
977
+ "compositePrimaryKeys": {},
978
+ "uniqueConstraints": {},
979
+ "checkConstraints": {}
980
+ },
981
+ "rate_limits": {
982
+ "name": "rate_limits",
983
+ "columns": {
984
+ "key": {
985
+ "name": "key",
986
+ "type": "text",
987
+ "primaryKey": true,
988
+ "notNull": true,
989
+ "autoincrement": false
990
+ },
991
+ "count": {
992
+ "name": "count",
993
+ "type": "integer",
994
+ "primaryKey": false,
995
+ "notNull": true,
996
+ "autoincrement": false
997
+ },
998
+ "resetAt": {
999
+ "name": "resetAt",
1000
+ "type": "integer",
1001
+ "primaryKey": false,
1002
+ "notNull": true,
1003
+ "autoincrement": false
1004
+ }
1005
+ },
1006
+ "indexes": {},
1007
+ "foreignKeys": {},
1008
+ "compositePrimaryKeys": {},
1009
+ "uniqueConstraints": {},
1010
+ "checkConstraints": {}
1011
+ },
1012
+ "content_references": {
1013
+ "name": "content_references",
1014
+ "columns": {
1015
+ "id": {
1016
+ "name": "id",
1017
+ "type": "text",
1018
+ "primaryKey": true,
1019
+ "notNull": true,
1020
+ "autoincrement": false
1021
+ },
1022
+ "documentId": {
1023
+ "name": "documentId",
1024
+ "type": "text",
1025
+ "primaryKey": false,
1026
+ "notNull": true,
1027
+ "autoincrement": false
1028
+ },
1029
+ "targetId": {
1030
+ "name": "targetId",
1031
+ "type": "text",
1032
+ "primaryKey": false,
1033
+ "notNull": true,
1034
+ "autoincrement": false
1035
+ },
1036
+ "kind": {
1037
+ "name": "kind",
1038
+ "type": "text",
1039
+ "primaryKey": false,
1040
+ "notNull": true,
1041
+ "autoincrement": false
1042
+ },
1043
+ "snapshot": {
1044
+ "name": "snapshot",
1045
+ "type": "text",
1046
+ "primaryKey": false,
1047
+ "notNull": true,
1048
+ "autoincrement": false
1049
+ }
1050
+ },
1051
+ "indexes": {
1052
+ "reference_target": {
1053
+ "name": "reference_target",
1054
+ "columns": [
1055
+ "targetId"
1056
+ ],
1057
+ "isUnique": false
1058
+ },
1059
+ "reference_document": {
1060
+ "name": "reference_document",
1061
+ "columns": [
1062
+ "documentId",
1063
+ "snapshot"
1064
+ ],
1065
+ "isUnique": false
1066
+ }
1067
+ },
1068
+ "foreignKeys": {
1069
+ "content_references_documentId_documents_id_fk": {
1070
+ "name": "content_references_documentId_documents_id_fk",
1071
+ "tableFrom": "content_references",
1072
+ "tableTo": "documents",
1073
+ "columnsFrom": [
1074
+ "documentId"
1075
+ ],
1076
+ "columnsTo": [
1077
+ "id"
1078
+ ],
1079
+ "onDelete": "cascade",
1080
+ "onUpdate": "no action"
1081
+ }
1082
+ },
1083
+ "compositePrimaryKeys": {},
1084
+ "uniqueConstraints": {},
1085
+ "checkConstraints": {}
1086
+ },
1087
+ "session": {
1088
+ "name": "session",
1089
+ "columns": {
1090
+ "id": {
1091
+ "name": "id",
1092
+ "type": "text",
1093
+ "primaryKey": true,
1094
+ "notNull": true,
1095
+ "autoincrement": false
1096
+ },
1097
+ "expiresAt": {
1098
+ "name": "expiresAt",
1099
+ "type": "integer",
1100
+ "primaryKey": false,
1101
+ "notNull": true,
1102
+ "autoincrement": false
1103
+ },
1104
+ "token": {
1105
+ "name": "token",
1106
+ "type": "text",
1107
+ "primaryKey": false,
1108
+ "notNull": true,
1109
+ "autoincrement": false
1110
+ },
1111
+ "createdAt": {
1112
+ "name": "createdAt",
1113
+ "type": "integer",
1114
+ "primaryKey": false,
1115
+ "notNull": true,
1116
+ "autoincrement": false
1117
+ },
1118
+ "updatedAt": {
1119
+ "name": "updatedAt",
1120
+ "type": "integer",
1121
+ "primaryKey": false,
1122
+ "notNull": true,
1123
+ "autoincrement": false
1124
+ },
1125
+ "ipAddress": {
1126
+ "name": "ipAddress",
1127
+ "type": "text",
1128
+ "primaryKey": false,
1129
+ "notNull": false,
1130
+ "autoincrement": false
1131
+ },
1132
+ "userAgent": {
1133
+ "name": "userAgent",
1134
+ "type": "text",
1135
+ "primaryKey": false,
1136
+ "notNull": false,
1137
+ "autoincrement": false
1138
+ },
1139
+ "userId": {
1140
+ "name": "userId",
1141
+ "type": "text",
1142
+ "primaryKey": false,
1143
+ "notNull": true,
1144
+ "autoincrement": false
1145
+ }
1146
+ },
1147
+ "indexes": {
1148
+ "session_token_unique": {
1149
+ "name": "session_token_unique",
1150
+ "columns": [
1151
+ "token"
1152
+ ],
1153
+ "isUnique": true
1154
+ },
1155
+ "session_user": {
1156
+ "name": "session_user",
1157
+ "columns": [
1158
+ "userId"
1159
+ ],
1160
+ "isUnique": false
1161
+ }
1162
+ },
1163
+ "foreignKeys": {
1164
+ "session_userId_user_id_fk": {
1165
+ "name": "session_userId_user_id_fk",
1166
+ "tableFrom": "session",
1167
+ "tableTo": "user",
1168
+ "columnsFrom": [
1169
+ "userId"
1170
+ ],
1171
+ "columnsTo": [
1172
+ "id"
1173
+ ],
1174
+ "onDelete": "cascade",
1175
+ "onUpdate": "no action"
1176
+ }
1177
+ },
1178
+ "compositePrimaryKeys": {},
1179
+ "uniqueConstraints": {},
1180
+ "checkConstraints": {}
1181
+ },
1182
+ "submissions": {
1183
+ "name": "submissions",
1184
+ "columns": {
1185
+ "id": {
1186
+ "name": "id",
1187
+ "type": "text",
1188
+ "primaryKey": true,
1189
+ "notNull": true,
1190
+ "autoincrement": false
1191
+ },
1192
+ "formId": {
1193
+ "name": "formId",
1194
+ "type": "text",
1195
+ "primaryKey": false,
1196
+ "notNull": true,
1197
+ "autoincrement": false
1198
+ },
1199
+ "data": {
1200
+ "name": "data",
1201
+ "type": "text",
1202
+ "primaryKey": false,
1203
+ "notNull": true,
1204
+ "autoincrement": false
1205
+ },
1206
+ "schema": {
1207
+ "name": "schema",
1208
+ "type": "text",
1209
+ "primaryKey": false,
1210
+ "notNull": true,
1211
+ "autoincrement": false
1212
+ },
1213
+ "read": {
1214
+ "name": "read",
1215
+ "type": "integer",
1216
+ "primaryKey": false,
1217
+ "notNull": true,
1218
+ "autoincrement": false,
1219
+ "default": false
1220
+ },
1221
+ "notification": {
1222
+ "name": "notification",
1223
+ "type": "text",
1224
+ "primaryKey": false,
1225
+ "notNull": false,
1226
+ "autoincrement": false
1227
+ },
1228
+ "createdAt": {
1229
+ "name": "createdAt",
1230
+ "type": "integer",
1231
+ "primaryKey": false,
1232
+ "notNull": true,
1233
+ "autoincrement": false
1234
+ }
1235
+ },
1236
+ "indexes": {
1237
+ "submission_form": {
1238
+ "name": "submission_form",
1239
+ "columns": [
1240
+ "formId",
1241
+ "createdAt"
1242
+ ],
1243
+ "isUnique": false
1244
+ }
1245
+ },
1246
+ "foreignKeys": {},
1247
+ "compositePrimaryKeys": {},
1248
+ "uniqueConstraints": {},
1249
+ "checkConstraints": {}
1250
+ },
1251
+ "twoFactor": {
1252
+ "name": "twoFactor",
1253
+ "columns": {
1254
+ "id": {
1255
+ "name": "id",
1256
+ "type": "text",
1257
+ "primaryKey": true,
1258
+ "notNull": true,
1259
+ "autoincrement": false
1260
+ },
1261
+ "secret": {
1262
+ "name": "secret",
1263
+ "type": "text",
1264
+ "primaryKey": false,
1265
+ "notNull": true,
1266
+ "autoincrement": false
1267
+ },
1268
+ "backupCodes": {
1269
+ "name": "backupCodes",
1270
+ "type": "text",
1271
+ "primaryKey": false,
1272
+ "notNull": true,
1273
+ "autoincrement": false
1274
+ },
1275
+ "userId": {
1276
+ "name": "userId",
1277
+ "type": "text",
1278
+ "primaryKey": false,
1279
+ "notNull": true,
1280
+ "autoincrement": false
1281
+ },
1282
+ "verified": {
1283
+ "name": "verified",
1284
+ "type": "integer",
1285
+ "primaryKey": false,
1286
+ "notNull": false,
1287
+ "autoincrement": false,
1288
+ "default": true
1289
+ },
1290
+ "failedVerificationCount": {
1291
+ "name": "failedVerificationCount",
1292
+ "type": "integer",
1293
+ "primaryKey": false,
1294
+ "notNull": false,
1295
+ "autoincrement": false,
1296
+ "default": 0
1297
+ },
1298
+ "lockedUntil": {
1299
+ "name": "lockedUntil",
1300
+ "type": "integer",
1301
+ "primaryKey": false,
1302
+ "notNull": false,
1303
+ "autoincrement": false
1304
+ }
1305
+ },
1306
+ "indexes": {
1307
+ "twofactor_user": {
1308
+ "name": "twofactor_user",
1309
+ "columns": [
1310
+ "userId"
1311
+ ],
1312
+ "isUnique": false
1313
+ },
1314
+ "twofactor_secret": {
1315
+ "name": "twofactor_secret",
1316
+ "columns": [
1317
+ "secret"
1318
+ ],
1319
+ "isUnique": false
1320
+ }
1321
+ },
1322
+ "foreignKeys": {
1323
+ "twoFactor_userId_user_id_fk": {
1324
+ "name": "twoFactor_userId_user_id_fk",
1325
+ "tableFrom": "twoFactor",
1326
+ "tableTo": "user",
1327
+ "columnsFrom": [
1328
+ "userId"
1329
+ ],
1330
+ "columnsTo": [
1331
+ "id"
1332
+ ],
1333
+ "onDelete": "cascade",
1334
+ "onUpdate": "no action"
1335
+ }
1336
+ },
1337
+ "compositePrimaryKeys": {},
1338
+ "uniqueConstraints": {},
1339
+ "checkConstraints": {}
1340
+ },
1341
+ "upload_sessions": {
1342
+ "name": "upload_sessions",
1343
+ "columns": {
1344
+ "mediaId": {
1345
+ "name": "mediaId",
1346
+ "type": "text",
1347
+ "primaryKey": true,
1348
+ "notNull": true,
1349
+ "autoincrement": false
1350
+ },
1351
+ "attempt": {
1352
+ "name": "attempt",
1353
+ "type": "text",
1354
+ "primaryKey": false,
1355
+ "notNull": true,
1356
+ "autoincrement": false
1357
+ },
1358
+ "expiresAt": {
1359
+ "name": "expiresAt",
1360
+ "type": "integer",
1361
+ "primaryKey": false,
1362
+ "notNull": true,
1363
+ "autoincrement": false
1364
+ },
1365
+ "status": {
1366
+ "name": "status",
1367
+ "type": "text",
1368
+ "primaryKey": false,
1369
+ "notNull": true,
1370
+ "autoincrement": false,
1371
+ "default": "'uploading'"
1372
+ },
1373
+ "attempts": {
1374
+ "name": "attempts",
1375
+ "type": "integer",
1376
+ "primaryKey": false,
1377
+ "notNull": true,
1378
+ "autoincrement": false,
1379
+ "default": 0
1380
+ },
1381
+ "nextAttempt": {
1382
+ "name": "nextAttempt",
1383
+ "type": "integer",
1384
+ "primaryKey": false,
1385
+ "notNull": true,
1386
+ "autoincrement": false,
1387
+ "default": 0
1388
+ },
1389
+ "leaseUntil": {
1390
+ "name": "leaseUntil",
1391
+ "type": "integer",
1392
+ "primaryKey": false,
1393
+ "notNull": true,
1394
+ "autoincrement": false,
1395
+ "default": 0
1396
+ }
1397
+ },
1398
+ "indexes": {},
1399
+ "foreignKeys": {
1400
+ "upload_sessions_mediaId_media_id_fk": {
1401
+ "name": "upload_sessions_mediaId_media_id_fk",
1402
+ "tableFrom": "upload_sessions",
1403
+ "tableTo": "media",
1404
+ "columnsFrom": [
1405
+ "mediaId"
1406
+ ],
1407
+ "columnsTo": [
1408
+ "id"
1409
+ ],
1410
+ "onDelete": "cascade",
1411
+ "onUpdate": "no action"
1412
+ }
1413
+ },
1414
+ "compositePrimaryKeys": {},
1415
+ "uniqueConstraints": {},
1416
+ "checkConstraints": {}
1417
+ },
1418
+ "uploads": {
1419
+ "name": "uploads",
1420
+ "columns": {
1421
+ "mediaId": {
1422
+ "name": "mediaId",
1423
+ "type": "text",
1424
+ "primaryKey": true,
1425
+ "notNull": true,
1426
+ "autoincrement": false
1427
+ },
1428
+ "body": {
1429
+ "name": "body",
1430
+ "type": "blob",
1431
+ "primaryKey": false,
1432
+ "notNull": true,
1433
+ "autoincrement": false
1434
+ },
1435
+ "attempts": {
1436
+ "name": "attempts",
1437
+ "type": "integer",
1438
+ "primaryKey": false,
1439
+ "notNull": true,
1440
+ "autoincrement": false,
1441
+ "default": 0
1442
+ },
1443
+ "nextAttempt": {
1444
+ "name": "nextAttempt",
1445
+ "type": "integer",
1446
+ "primaryKey": false,
1447
+ "notNull": true,
1448
+ "autoincrement": false,
1449
+ "default": 0
1450
+ },
1451
+ "leaseUntil": {
1452
+ "name": "leaseUntil",
1453
+ "type": "integer",
1454
+ "primaryKey": false,
1455
+ "notNull": true,
1456
+ "autoincrement": false,
1457
+ "default": 0
1458
+ }
1459
+ },
1460
+ "indexes": {},
1461
+ "foreignKeys": {
1462
+ "uploads_mediaId_media_id_fk": {
1463
+ "name": "uploads_mediaId_media_id_fk",
1464
+ "tableFrom": "uploads",
1465
+ "tableTo": "media",
1466
+ "columnsFrom": [
1467
+ "mediaId"
1468
+ ],
1469
+ "columnsTo": [
1470
+ "id"
1471
+ ],
1472
+ "onDelete": "cascade",
1473
+ "onUpdate": "no action"
1474
+ }
1475
+ },
1476
+ "compositePrimaryKeys": {},
1477
+ "uniqueConstraints": {},
1478
+ "checkConstraints": {}
1479
+ },
1480
+ "user": {
1481
+ "name": "user",
1482
+ "columns": {
1483
+ "id": {
1484
+ "name": "id",
1485
+ "type": "text",
1486
+ "primaryKey": true,
1487
+ "notNull": true,
1488
+ "autoincrement": false
1489
+ },
1490
+ "name": {
1491
+ "name": "name",
1492
+ "type": "text",
1493
+ "primaryKey": false,
1494
+ "notNull": true,
1495
+ "autoincrement": false
1496
+ },
1497
+ "email": {
1498
+ "name": "email",
1499
+ "type": "text",
1500
+ "primaryKey": false,
1501
+ "notNull": true,
1502
+ "autoincrement": false
1503
+ },
1504
+ "emailVerified": {
1505
+ "name": "emailVerified",
1506
+ "type": "integer",
1507
+ "primaryKey": false,
1508
+ "notNull": true,
1509
+ "autoincrement": false,
1510
+ "default": false
1511
+ },
1512
+ "image": {
1513
+ "name": "image",
1514
+ "type": "text",
1515
+ "primaryKey": false,
1516
+ "notNull": false,
1517
+ "autoincrement": false
1518
+ },
1519
+ "createdAt": {
1520
+ "name": "createdAt",
1521
+ "type": "integer",
1522
+ "primaryKey": false,
1523
+ "notNull": true,
1524
+ "autoincrement": false
1525
+ },
1526
+ "updatedAt": {
1527
+ "name": "updatedAt",
1528
+ "type": "integer",
1529
+ "primaryKey": false,
1530
+ "notNull": true,
1531
+ "autoincrement": false
1532
+ },
1533
+ "role": {
1534
+ "name": "role",
1535
+ "type": "text",
1536
+ "primaryKey": false,
1537
+ "notNull": true,
1538
+ "autoincrement": false,
1539
+ "default": "'editor'"
1540
+ },
1541
+ "mustChangePassword": {
1542
+ "name": "mustChangePassword",
1543
+ "type": "integer",
1544
+ "primaryKey": false,
1545
+ "notNull": true,
1546
+ "autoincrement": false,
1547
+ "default": true
1548
+ },
1549
+ "twoFactorEnabled": {
1550
+ "name": "twoFactorEnabled",
1551
+ "type": "integer",
1552
+ "primaryKey": false,
1553
+ "notNull": false,
1554
+ "autoincrement": false,
1555
+ "default": false
1556
+ }
1557
+ },
1558
+ "indexes": {
1559
+ "user_email_unique": {
1560
+ "name": "user_email_unique",
1561
+ "columns": [
1562
+ "email"
1563
+ ],
1564
+ "isUnique": true
1565
+ }
1566
+ },
1567
+ "foreignKeys": {},
1568
+ "compositePrimaryKeys": {},
1569
+ "uniqueConstraints": {},
1570
+ "checkConstraints": {}
1571
+ },
1572
+ "verification": {
1573
+ "name": "verification",
1574
+ "columns": {
1575
+ "id": {
1576
+ "name": "id",
1577
+ "type": "text",
1578
+ "primaryKey": true,
1579
+ "notNull": true,
1580
+ "autoincrement": false
1581
+ },
1582
+ "identifier": {
1583
+ "name": "identifier",
1584
+ "type": "text",
1585
+ "primaryKey": false,
1586
+ "notNull": true,
1587
+ "autoincrement": false
1588
+ },
1589
+ "value": {
1590
+ "name": "value",
1591
+ "type": "text",
1592
+ "primaryKey": false,
1593
+ "notNull": true,
1594
+ "autoincrement": false
1595
+ },
1596
+ "expiresAt": {
1597
+ "name": "expiresAt",
1598
+ "type": "integer",
1599
+ "primaryKey": false,
1600
+ "notNull": true,
1601
+ "autoincrement": false
1602
+ },
1603
+ "createdAt": {
1604
+ "name": "createdAt",
1605
+ "type": "integer",
1606
+ "primaryKey": false,
1607
+ "notNull": true,
1608
+ "autoincrement": false
1609
+ },
1610
+ "updatedAt": {
1611
+ "name": "updatedAt",
1612
+ "type": "integer",
1613
+ "primaryKey": false,
1614
+ "notNull": true,
1615
+ "autoincrement": false
1616
+ }
1617
+ },
1618
+ "indexes": {
1619
+ "verification_identifier": {
1620
+ "name": "verification_identifier",
1621
+ "columns": [
1622
+ "identifier"
1623
+ ],
1624
+ "isUnique": false
1625
+ }
1626
+ },
1627
+ "foreignKeys": {},
1628
+ "compositePrimaryKeys": {},
1629
+ "uniqueConstraints": {},
1630
+ "checkConstraints": {}
1631
+ }
1632
+ },
1633
+ "views": {},
1634
+ "enums": {},
1635
+ "_meta": {
1636
+ "schemas": {},
1637
+ "tables": {},
1638
+ "columns": {}
1639
+ },
1640
+ "internal": {
1641
+ "indexes": {}
1642
+ }
1643
+ }