sandcms 0.7.0 → 0.8.0

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 (111) hide show
  1. package/README.md +4 -4
  2. package/dist/admin/Admin.svelte +7 -5
  3. package/dist/admin/AssetAttachment.svelte +8 -3
  4. package/dist/admin/AssetAttachment.svelte.d.ts +3 -0
  5. package/dist/admin/Editor.svelte +5 -9
  6. package/dist/admin/Fields.svelte +2 -1
  7. package/dist/admin/Gallery.svelte +221 -76
  8. package/dist/admin/Inbox.svelte +3 -2
  9. package/dist/admin/MediaPicker.svelte +36 -20
  10. package/dist/admin/Navigation.svelte +13 -2
  11. package/dist/admin/Pages.svelte +195 -0
  12. package/dist/admin/Pages.svelte.d.ts +7 -0
  13. package/dist/admin/Shell.svelte +27 -5
  14. package/dist/admin/SortableList.svelte +82 -61
  15. package/dist/admin/SortableList.svelte.d.ts +3 -1
  16. package/dist/admin/Users.svelte +8 -3
  17. package/dist/admin/generated/admin.css +300 -20
  18. package/dist/admin/navigation.d.ts +9 -0
  19. package/dist/admin/navigation.js +20 -1
  20. package/dist/admin/types.d.ts +1 -0
  21. package/dist/blueprints/labels.d.ts +6 -0
  22. package/dist/blueprints/labels.js +14 -0
  23. package/dist/blueprints/load.js +11 -2
  24. package/dist/blueprints/types.d.ts +2 -2
  25. package/dist/cli/admin.d.ts +39 -0
  26. package/dist/cli/admin.js +95 -0
  27. package/dist/cli/backup.js +4 -4
  28. package/dist/cli/doctor.d.ts +8 -1
  29. package/dist/cli/doctor.js +19 -9
  30. package/dist/cli/email-test.d.ts +3 -0
  31. package/dist/cli/email-test.js +20 -0
  32. package/dist/cli/files.js +2 -1
  33. package/dist/cli/index.js +373 -135
  34. package/dist/cli/rebaseline.d.ts +10 -0
  35. package/dist/cli/rebaseline.js +117 -0
  36. package/dist/cli/upgrade.js +17 -9
  37. package/dist/env.d.ts +0 -8
  38. package/dist/env.js +0 -8
  39. package/dist/notification-fields.js +2 -1
  40. package/dist/server/admin-load.d.ts +72 -0
  41. package/dist/server/admin-load.js +20 -0
  42. package/dist/server/api-keys.d.ts +96 -0
  43. package/dist/server/api-keys.js +115 -0
  44. package/dist/server/api.js +16 -61
  45. package/dist/server/cms.d.ts +0 -5
  46. package/dist/server/cms.js +4 -3
  47. package/dist/server/db/auto-migrate.d.ts +0 -4
  48. package/dist/server/db/auto-migrate.js +12 -3
  49. package/dist/server/db/legacy.d.ts +13 -0
  50. package/dist/server/db/legacy.js +60 -0
  51. package/dist/server/db/migration-data.js +2 -38
  52. package/dist/server/db/migrations/{0000_foundation.sql → 0000_baseline.sql} +120 -4
  53. package/dist/server/db/migrations/meta/0000_snapshot.json +578 -3
  54. package/dist/server/db/migrations/meta/_journal.json +2 -65
  55. package/dist/server/db/schema.js +8 -6
  56. package/dist/server/db/store.d.ts +25 -2
  57. package/dist/server/db/store.js +90 -26
  58. package/dist/server/forms.js +2 -1
  59. package/dist/server/media/runner.d.ts +1 -1
  60. package/dist/server/media/runner.js +1 -1
  61. package/dist/server/media/service.d.ts +0 -4
  62. package/dist/server/media/service.js +0 -2
  63. package/dist/server/media/verify.d.ts +28 -0
  64. package/dist/server/media/verify.js +94 -2
  65. package/dist/server/platform/snapshots.js +3 -3
  66. package/docs/acceptance.md +2 -2
  67. package/docs/api.md +15 -1
  68. package/docs/cloudflare.md +9 -41
  69. package/docs/content.md +18 -3
  70. package/docs/deployment.md +97 -34
  71. package/docs/email.md +6 -0
  72. package/docs/forms.md +1 -1
  73. package/docs/media.md +10 -1
  74. package/docs/package.md +4 -4
  75. package/docs/releases.md +21 -1
  76. package/docs/upgrades.md +41 -7
  77. package/package.json +4 -10
  78. package/templates/Dockerfile +6 -2
  79. package/templates/integration.ts +10 -5
  80. package/templates/openship.json +9 -0
  81. package/templates/sandcms/config.yaml +1 -0
  82. package/dist/server/db/migrations/0001_independent_password_resets.sql +0 -3
  83. package/dist/server/db/migrations/0002_email_failure_reason.sql +0 -1
  84. package/dist/server/db/migrations/0003_direct_r2_uploads.sql +0 -10
  85. package/dist/server/db/migrations/0004_agent_api_keys.sql +0 -38
  86. package/dist/server/db/migrations/0005_api_retention_and_pagination.sql +0 -3
  87. package/dist/server/db/migrations/0006_durable_media_deletion.sql +0 -7
  88. package/dist/server/db/migrations/0007_content_and_job_indexes.sql +0 -2
  89. package/dist/server/db/migrations/0008_search_text_cache.sql +0 -45
  90. package/dist/server/db/migrations/0009_local_media.sql +0 -9
  91. package/dist/server/db/migrations/meta/0001_snapshot.json +0 -1197
  92. package/dist/server/db/migrations/meta/0002_snapshot.json +0 -1204
  93. package/dist/server/db/migrations/meta/0003_snapshot.json +0 -1281
  94. package/dist/server/db/migrations/meta/0004_snapshot.json +0 -1546
  95. package/dist/server/db/migrations/meta/0005_snapshot.json +0 -1572
  96. package/dist/server/db/migrations/meta/0006_snapshot.json +0 -1627
  97. package/dist/server/db/migrations/meta/0007_snapshot.json +0 -1643
  98. package/dist/server/db/migrations/meta/0008_snapshot.json +0 -1711
  99. package/dist/server/db/migrations/meta/0009_snapshot.json +0 -1763
  100. package/dist/server/media/import-r2.d.ts +0 -56
  101. package/dist/server/media/import-r2.js +0 -342
  102. package/dist/worker/index.d.ts +0 -10
  103. package/dist/worker/index.js +0 -460
  104. package/dist/worker/local.d.ts +0 -5
  105. package/dist/worker/local.js +0 -57
  106. package/dist/worker/source.d.ts +0 -2
  107. package/dist/worker/source.js +0 -31
  108. package/dist/worker/svg.d.ts +0 -1
  109. package/dist/worker/svg.js +0 -2
  110. package/dist/worker/uploads.d.ts +0 -22
  111. package/dist/worker/uploads.js +0 -48
@@ -1,1763 +0,0 @@
1
- {
2
- "version": "6",
3
- "dialect": "sqlite",
4
- "id": "e29fd74b-c0d4-47e0-9935-fc3a29331d92",
5
- "prevId": "ff7b1ea1-e6a8-40fb-b4eb-99e0edfd2cbf",
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
- "leases": {
829
- "name": "leases",
830
- "columns": {
831
- "name": {
832
- "name": "name",
833
- "type": "text",
834
- "primaryKey": true,
835
- "notNull": true,
836
- "autoincrement": false
837
- },
838
- "owner": {
839
- "name": "owner",
840
- "type": "text",
841
- "primaryKey": false,
842
- "notNull": true,
843
- "autoincrement": false
844
- },
845
- "leaseUntil": {
846
- "name": "leaseUntil",
847
- "type": "integer",
848
- "primaryKey": false,
849
- "notNull": true,
850
- "autoincrement": false
851
- }
852
- },
853
- "indexes": {},
854
- "foreignKeys": {},
855
- "compositePrimaryKeys": {},
856
- "uniqueConstraints": {},
857
- "checkConstraints": {}
858
- },
859
- "media": {
860
- "name": "media",
861
- "columns": {
862
- "blueprint": {
863
- "name": "blueprint",
864
- "type": "text",
865
- "primaryKey": false,
866
- "notNull": true,
867
- "autoincrement": false
868
- },
869
- "metadata": {
870
- "name": "metadata",
871
- "type": "text",
872
- "primaryKey": false,
873
- "notNull": true,
874
- "autoincrement": false,
875
- "default": "'{}'"
876
- },
877
- "id": {
878
- "name": "id",
879
- "type": "text",
880
- "primaryKey": true,
881
- "notNull": true,
882
- "autoincrement": false
883
- },
884
- "filename": {
885
- "name": "filename",
886
- "type": "text",
887
- "primaryKey": false,
888
- "notNull": true,
889
- "autoincrement": false
890
- },
891
- "mime": {
892
- "name": "mime",
893
- "type": "text",
894
- "primaryKey": false,
895
- "notNull": true,
896
- "autoincrement": false
897
- },
898
- "bytes": {
899
- "name": "bytes",
900
- "type": "integer",
901
- "primaryKey": false,
902
- "notNull": true,
903
- "autoincrement": false
904
- },
905
- "status": {
906
- "name": "status",
907
- "type": "text",
908
- "primaryKey": false,
909
- "notNull": true,
910
- "autoincrement": false
911
- },
912
- "activeVersion": {
913
- "name": "activeVersion",
914
- "type": "text",
915
- "primaryKey": false,
916
- "notNull": false,
917
- "autoincrement": false
918
- },
919
- "targetVersion": {
920
- "name": "targetVersion",
921
- "type": "text",
922
- "primaryKey": false,
923
- "notNull": true,
924
- "autoincrement": false
925
- },
926
- "variants": {
927
- "name": "variants",
928
- "type": "text",
929
- "primaryKey": false,
930
- "notNull": true,
931
- "autoincrement": false,
932
- "default": "'[]'"
933
- },
934
- "error": {
935
- "name": "error",
936
- "type": "text",
937
- "primaryKey": false,
938
- "notNull": false,
939
- "autoincrement": false
940
- },
941
- "createdAt": {
942
- "name": "createdAt",
943
- "type": "integer",
944
- "primaryKey": false,
945
- "notNull": true,
946
- "autoincrement": false
947
- },
948
- "searchText": {
949
- "name": "searchText",
950
- "type": "text",
951
- "primaryKey": false,
952
- "notNull": false,
953
- "autoincrement": false
954
- },
955
- "width": {
956
- "name": "width",
957
- "type": "integer",
958
- "primaryKey": false,
959
- "notNull": false,
960
- "autoincrement": false
961
- },
962
- "height": {
963
- "name": "height",
964
- "type": "integer",
965
- "primaryKey": false,
966
- "notNull": false,
967
- "autoincrement": false
968
- },
969
- "uploadAttempt": {
970
- "name": "uploadAttempt",
971
- "type": "text",
972
- "primaryKey": false,
973
- "notNull": false,
974
- "autoincrement": false
975
- }
976
- },
977
- "indexes": {
978
- "media_api_page": {
979
- "name": "media_api_page",
980
- "columns": [
981
- "createdAt",
982
- "id"
983
- ],
984
- "isUnique": false
985
- }
986
- },
987
- "foreignKeys": {},
988
- "compositePrimaryKeys": {},
989
- "uniqueConstraints": {},
990
- "checkConstraints": {}
991
- },
992
- "media_deletions": {
993
- "name": "media_deletions",
994
- "columns": {
995
- "mediaId": {
996
- "name": "mediaId",
997
- "type": "text",
998
- "primaryKey": true,
999
- "notNull": true,
1000
- "autoincrement": false
1001
- },
1002
- "attempts": {
1003
- "name": "attempts",
1004
- "type": "integer",
1005
- "primaryKey": false,
1006
- "notNull": true,
1007
- "autoincrement": false,
1008
- "default": 0
1009
- },
1010
- "nextAttempt": {
1011
- "name": "nextAttempt",
1012
- "type": "integer",
1013
- "primaryKey": false,
1014
- "notNull": true,
1015
- "autoincrement": false,
1016
- "default": 0
1017
- },
1018
- "leaseUntil": {
1019
- "name": "leaseUntil",
1020
- "type": "integer",
1021
- "primaryKey": false,
1022
- "notNull": true,
1023
- "autoincrement": false,
1024
- "default": 0
1025
- }
1026
- },
1027
- "indexes": {},
1028
- "foreignKeys": {
1029
- "media_deletions_mediaId_media_id_fk": {
1030
- "name": "media_deletions_mediaId_media_id_fk",
1031
- "tableFrom": "media_deletions",
1032
- "tableTo": "media",
1033
- "columnsFrom": [
1034
- "mediaId"
1035
- ],
1036
- "columnsTo": [
1037
- "id"
1038
- ],
1039
- "onDelete": "cascade",
1040
- "onUpdate": "no action"
1041
- }
1042
- },
1043
- "compositePrimaryKeys": {},
1044
- "uniqueConstraints": {},
1045
- "checkConstraints": {}
1046
- },
1047
- "media_document_links": {
1048
- "name": "media_document_links",
1049
- "columns": {
1050
- "mediaId": {
1051
- "name": "mediaId",
1052
- "type": "text",
1053
- "primaryKey": false,
1054
- "notNull": true,
1055
- "autoincrement": false
1056
- },
1057
- "documentId": {
1058
- "name": "documentId",
1059
- "type": "text",
1060
- "primaryKey": false,
1061
- "notNull": true,
1062
- "autoincrement": false
1063
- }
1064
- },
1065
- "indexes": {
1066
- "media_document_link_document": {
1067
- "name": "media_document_link_document",
1068
- "columns": [
1069
- "documentId"
1070
- ],
1071
- "isUnique": false
1072
- }
1073
- },
1074
- "foreignKeys": {
1075
- "media_document_links_mediaId_media_id_fk": {
1076
- "name": "media_document_links_mediaId_media_id_fk",
1077
- "tableFrom": "media_document_links",
1078
- "tableTo": "media",
1079
- "columnsFrom": [
1080
- "mediaId"
1081
- ],
1082
- "columnsTo": [
1083
- "id"
1084
- ],
1085
- "onDelete": "cascade",
1086
- "onUpdate": "no action"
1087
- }
1088
- },
1089
- "compositePrimaryKeys": {
1090
- "media_document_links_mediaId_documentId_pk": {
1091
- "columns": [
1092
- "mediaId",
1093
- "documentId"
1094
- ],
1095
- "name": "media_document_links_mediaId_documentId_pk"
1096
- }
1097
- },
1098
- "uniqueConstraints": {},
1099
- "checkConstraints": {}
1100
- },
1101
- "rate_limits": {
1102
- "name": "rate_limits",
1103
- "columns": {
1104
- "key": {
1105
- "name": "key",
1106
- "type": "text",
1107
- "primaryKey": true,
1108
- "notNull": true,
1109
- "autoincrement": false
1110
- },
1111
- "count": {
1112
- "name": "count",
1113
- "type": "integer",
1114
- "primaryKey": false,
1115
- "notNull": true,
1116
- "autoincrement": false
1117
- },
1118
- "resetAt": {
1119
- "name": "resetAt",
1120
- "type": "integer",
1121
- "primaryKey": false,
1122
- "notNull": true,
1123
- "autoincrement": false
1124
- }
1125
- },
1126
- "indexes": {},
1127
- "foreignKeys": {},
1128
- "compositePrimaryKeys": {},
1129
- "uniqueConstraints": {},
1130
- "checkConstraints": {}
1131
- },
1132
- "content_references": {
1133
- "name": "content_references",
1134
- "columns": {
1135
- "id": {
1136
- "name": "id",
1137
- "type": "text",
1138
- "primaryKey": true,
1139
- "notNull": true,
1140
- "autoincrement": false
1141
- },
1142
- "documentId": {
1143
- "name": "documentId",
1144
- "type": "text",
1145
- "primaryKey": false,
1146
- "notNull": true,
1147
- "autoincrement": false
1148
- },
1149
- "targetId": {
1150
- "name": "targetId",
1151
- "type": "text",
1152
- "primaryKey": false,
1153
- "notNull": true,
1154
- "autoincrement": false
1155
- },
1156
- "kind": {
1157
- "name": "kind",
1158
- "type": "text",
1159
- "primaryKey": false,
1160
- "notNull": true,
1161
- "autoincrement": false
1162
- },
1163
- "snapshot": {
1164
- "name": "snapshot",
1165
- "type": "text",
1166
- "primaryKey": false,
1167
- "notNull": true,
1168
- "autoincrement": false
1169
- }
1170
- },
1171
- "indexes": {
1172
- "reference_target": {
1173
- "name": "reference_target",
1174
- "columns": [
1175
- "targetId"
1176
- ],
1177
- "isUnique": false
1178
- },
1179
- "reference_document": {
1180
- "name": "reference_document",
1181
- "columns": [
1182
- "documentId",
1183
- "snapshot"
1184
- ],
1185
- "isUnique": false
1186
- }
1187
- },
1188
- "foreignKeys": {
1189
- "content_references_documentId_documents_id_fk": {
1190
- "name": "content_references_documentId_documents_id_fk",
1191
- "tableFrom": "content_references",
1192
- "tableTo": "documents",
1193
- "columnsFrom": [
1194
- "documentId"
1195
- ],
1196
- "columnsTo": [
1197
- "id"
1198
- ],
1199
- "onDelete": "cascade",
1200
- "onUpdate": "no action"
1201
- }
1202
- },
1203
- "compositePrimaryKeys": {},
1204
- "uniqueConstraints": {},
1205
- "checkConstraints": {}
1206
- },
1207
- "session": {
1208
- "name": "session",
1209
- "columns": {
1210
- "id": {
1211
- "name": "id",
1212
- "type": "text",
1213
- "primaryKey": true,
1214
- "notNull": true,
1215
- "autoincrement": false
1216
- },
1217
- "expiresAt": {
1218
- "name": "expiresAt",
1219
- "type": "integer",
1220
- "primaryKey": false,
1221
- "notNull": true,
1222
- "autoincrement": false
1223
- },
1224
- "token": {
1225
- "name": "token",
1226
- "type": "text",
1227
- "primaryKey": false,
1228
- "notNull": true,
1229
- "autoincrement": false
1230
- },
1231
- "createdAt": {
1232
- "name": "createdAt",
1233
- "type": "integer",
1234
- "primaryKey": false,
1235
- "notNull": true,
1236
- "autoincrement": false
1237
- },
1238
- "updatedAt": {
1239
- "name": "updatedAt",
1240
- "type": "integer",
1241
- "primaryKey": false,
1242
- "notNull": true,
1243
- "autoincrement": false
1244
- },
1245
- "ipAddress": {
1246
- "name": "ipAddress",
1247
- "type": "text",
1248
- "primaryKey": false,
1249
- "notNull": false,
1250
- "autoincrement": false
1251
- },
1252
- "userAgent": {
1253
- "name": "userAgent",
1254
- "type": "text",
1255
- "primaryKey": false,
1256
- "notNull": false,
1257
- "autoincrement": false
1258
- },
1259
- "userId": {
1260
- "name": "userId",
1261
- "type": "text",
1262
- "primaryKey": false,
1263
- "notNull": true,
1264
- "autoincrement": false
1265
- }
1266
- },
1267
- "indexes": {
1268
- "session_token_unique": {
1269
- "name": "session_token_unique",
1270
- "columns": [
1271
- "token"
1272
- ],
1273
- "isUnique": true
1274
- },
1275
- "session_user": {
1276
- "name": "session_user",
1277
- "columns": [
1278
- "userId"
1279
- ],
1280
- "isUnique": false
1281
- }
1282
- },
1283
- "foreignKeys": {
1284
- "session_userId_user_id_fk": {
1285
- "name": "session_userId_user_id_fk",
1286
- "tableFrom": "session",
1287
- "tableTo": "user",
1288
- "columnsFrom": [
1289
- "userId"
1290
- ],
1291
- "columnsTo": [
1292
- "id"
1293
- ],
1294
- "onDelete": "cascade",
1295
- "onUpdate": "no action"
1296
- }
1297
- },
1298
- "compositePrimaryKeys": {},
1299
- "uniqueConstraints": {},
1300
- "checkConstraints": {}
1301
- },
1302
- "submissions": {
1303
- "name": "submissions",
1304
- "columns": {
1305
- "id": {
1306
- "name": "id",
1307
- "type": "text",
1308
- "primaryKey": true,
1309
- "notNull": true,
1310
- "autoincrement": false
1311
- },
1312
- "formId": {
1313
- "name": "formId",
1314
- "type": "text",
1315
- "primaryKey": false,
1316
- "notNull": true,
1317
- "autoincrement": false
1318
- },
1319
- "data": {
1320
- "name": "data",
1321
- "type": "text",
1322
- "primaryKey": false,
1323
- "notNull": true,
1324
- "autoincrement": false
1325
- },
1326
- "schema": {
1327
- "name": "schema",
1328
- "type": "text",
1329
- "primaryKey": false,
1330
- "notNull": true,
1331
- "autoincrement": false
1332
- },
1333
- "read": {
1334
- "name": "read",
1335
- "type": "integer",
1336
- "primaryKey": false,
1337
- "notNull": true,
1338
- "autoincrement": false,
1339
- "default": false
1340
- },
1341
- "notification": {
1342
- "name": "notification",
1343
- "type": "text",
1344
- "primaryKey": false,
1345
- "notNull": false,
1346
- "autoincrement": false
1347
- },
1348
- "createdAt": {
1349
- "name": "createdAt",
1350
- "type": "integer",
1351
- "primaryKey": false,
1352
- "notNull": true,
1353
- "autoincrement": false
1354
- }
1355
- },
1356
- "indexes": {
1357
- "submission_form": {
1358
- "name": "submission_form",
1359
- "columns": [
1360
- "formId",
1361
- "createdAt"
1362
- ],
1363
- "isUnique": false
1364
- }
1365
- },
1366
- "foreignKeys": {},
1367
- "compositePrimaryKeys": {},
1368
- "uniqueConstraints": {},
1369
- "checkConstraints": {}
1370
- },
1371
- "twoFactor": {
1372
- "name": "twoFactor",
1373
- "columns": {
1374
- "id": {
1375
- "name": "id",
1376
- "type": "text",
1377
- "primaryKey": true,
1378
- "notNull": true,
1379
- "autoincrement": false
1380
- },
1381
- "secret": {
1382
- "name": "secret",
1383
- "type": "text",
1384
- "primaryKey": false,
1385
- "notNull": true,
1386
- "autoincrement": false
1387
- },
1388
- "backupCodes": {
1389
- "name": "backupCodes",
1390
- "type": "text",
1391
- "primaryKey": false,
1392
- "notNull": true,
1393
- "autoincrement": false
1394
- },
1395
- "userId": {
1396
- "name": "userId",
1397
- "type": "text",
1398
- "primaryKey": false,
1399
- "notNull": true,
1400
- "autoincrement": false
1401
- },
1402
- "verified": {
1403
- "name": "verified",
1404
- "type": "integer",
1405
- "primaryKey": false,
1406
- "notNull": false,
1407
- "autoincrement": false,
1408
- "default": true
1409
- },
1410
- "failedVerificationCount": {
1411
- "name": "failedVerificationCount",
1412
- "type": "integer",
1413
- "primaryKey": false,
1414
- "notNull": false,
1415
- "autoincrement": false,
1416
- "default": 0
1417
- },
1418
- "lockedUntil": {
1419
- "name": "lockedUntil",
1420
- "type": "integer",
1421
- "primaryKey": false,
1422
- "notNull": false,
1423
- "autoincrement": false
1424
- }
1425
- },
1426
- "indexes": {
1427
- "twofactor_user": {
1428
- "name": "twofactor_user",
1429
- "columns": [
1430
- "userId"
1431
- ],
1432
- "isUnique": false
1433
- },
1434
- "twofactor_secret": {
1435
- "name": "twofactor_secret",
1436
- "columns": [
1437
- "secret"
1438
- ],
1439
- "isUnique": false
1440
- }
1441
- },
1442
- "foreignKeys": {
1443
- "twoFactor_userId_user_id_fk": {
1444
- "name": "twoFactor_userId_user_id_fk",
1445
- "tableFrom": "twoFactor",
1446
- "tableTo": "user",
1447
- "columnsFrom": [
1448
- "userId"
1449
- ],
1450
- "columnsTo": [
1451
- "id"
1452
- ],
1453
- "onDelete": "cascade",
1454
- "onUpdate": "no action"
1455
- }
1456
- },
1457
- "compositePrimaryKeys": {},
1458
- "uniqueConstraints": {},
1459
- "checkConstraints": {}
1460
- },
1461
- "upload_sessions": {
1462
- "name": "upload_sessions",
1463
- "columns": {
1464
- "mediaId": {
1465
- "name": "mediaId",
1466
- "type": "text",
1467
- "primaryKey": true,
1468
- "notNull": true,
1469
- "autoincrement": false
1470
- },
1471
- "attempt": {
1472
- "name": "attempt",
1473
- "type": "text",
1474
- "primaryKey": false,
1475
- "notNull": true,
1476
- "autoincrement": false
1477
- },
1478
- "expiresAt": {
1479
- "name": "expiresAt",
1480
- "type": "integer",
1481
- "primaryKey": false,
1482
- "notNull": true,
1483
- "autoincrement": false
1484
- },
1485
- "status": {
1486
- "name": "status",
1487
- "type": "text",
1488
- "primaryKey": false,
1489
- "notNull": true,
1490
- "autoincrement": false,
1491
- "default": "'uploading'"
1492
- },
1493
- "attempts": {
1494
- "name": "attempts",
1495
- "type": "integer",
1496
- "primaryKey": false,
1497
- "notNull": true,
1498
- "autoincrement": false,
1499
- "default": 0
1500
- },
1501
- "nextAttempt": {
1502
- "name": "nextAttempt",
1503
- "type": "integer",
1504
- "primaryKey": false,
1505
- "notNull": true,
1506
- "autoincrement": false,
1507
- "default": 0
1508
- },
1509
- "leaseUntil": {
1510
- "name": "leaseUntil",
1511
- "type": "integer",
1512
- "primaryKey": false,
1513
- "notNull": true,
1514
- "autoincrement": false,
1515
- "default": 0
1516
- }
1517
- },
1518
- "indexes": {},
1519
- "foreignKeys": {
1520
- "upload_sessions_mediaId_media_id_fk": {
1521
- "name": "upload_sessions_mediaId_media_id_fk",
1522
- "tableFrom": "upload_sessions",
1523
- "tableTo": "media",
1524
- "columnsFrom": [
1525
- "mediaId"
1526
- ],
1527
- "columnsTo": [
1528
- "id"
1529
- ],
1530
- "onDelete": "cascade",
1531
- "onUpdate": "no action"
1532
- }
1533
- },
1534
- "compositePrimaryKeys": {},
1535
- "uniqueConstraints": {},
1536
- "checkConstraints": {}
1537
- },
1538
- "uploads": {
1539
- "name": "uploads",
1540
- "columns": {
1541
- "mediaId": {
1542
- "name": "mediaId",
1543
- "type": "text",
1544
- "primaryKey": true,
1545
- "notNull": true,
1546
- "autoincrement": false
1547
- },
1548
- "body": {
1549
- "name": "body",
1550
- "type": "blob",
1551
- "primaryKey": false,
1552
- "notNull": true,
1553
- "autoincrement": false
1554
- },
1555
- "attempts": {
1556
- "name": "attempts",
1557
- "type": "integer",
1558
- "primaryKey": false,
1559
- "notNull": true,
1560
- "autoincrement": false,
1561
- "default": 0
1562
- },
1563
- "nextAttempt": {
1564
- "name": "nextAttempt",
1565
- "type": "integer",
1566
- "primaryKey": false,
1567
- "notNull": true,
1568
- "autoincrement": false,
1569
- "default": 0
1570
- },
1571
- "leaseUntil": {
1572
- "name": "leaseUntil",
1573
- "type": "integer",
1574
- "primaryKey": false,
1575
- "notNull": true,
1576
- "autoincrement": false,
1577
- "default": 0
1578
- }
1579
- },
1580
- "indexes": {},
1581
- "foreignKeys": {
1582
- "uploads_mediaId_media_id_fk": {
1583
- "name": "uploads_mediaId_media_id_fk",
1584
- "tableFrom": "uploads",
1585
- "tableTo": "media",
1586
- "columnsFrom": [
1587
- "mediaId"
1588
- ],
1589
- "columnsTo": [
1590
- "id"
1591
- ],
1592
- "onDelete": "cascade",
1593
- "onUpdate": "no action"
1594
- }
1595
- },
1596
- "compositePrimaryKeys": {},
1597
- "uniqueConstraints": {},
1598
- "checkConstraints": {}
1599
- },
1600
- "user": {
1601
- "name": "user",
1602
- "columns": {
1603
- "id": {
1604
- "name": "id",
1605
- "type": "text",
1606
- "primaryKey": true,
1607
- "notNull": true,
1608
- "autoincrement": false
1609
- },
1610
- "name": {
1611
- "name": "name",
1612
- "type": "text",
1613
- "primaryKey": false,
1614
- "notNull": true,
1615
- "autoincrement": false
1616
- },
1617
- "email": {
1618
- "name": "email",
1619
- "type": "text",
1620
- "primaryKey": false,
1621
- "notNull": true,
1622
- "autoincrement": false
1623
- },
1624
- "emailVerified": {
1625
- "name": "emailVerified",
1626
- "type": "integer",
1627
- "primaryKey": false,
1628
- "notNull": true,
1629
- "autoincrement": false,
1630
- "default": false
1631
- },
1632
- "image": {
1633
- "name": "image",
1634
- "type": "text",
1635
- "primaryKey": false,
1636
- "notNull": false,
1637
- "autoincrement": false
1638
- },
1639
- "createdAt": {
1640
- "name": "createdAt",
1641
- "type": "integer",
1642
- "primaryKey": false,
1643
- "notNull": true,
1644
- "autoincrement": false
1645
- },
1646
- "updatedAt": {
1647
- "name": "updatedAt",
1648
- "type": "integer",
1649
- "primaryKey": false,
1650
- "notNull": true,
1651
- "autoincrement": false
1652
- },
1653
- "role": {
1654
- "name": "role",
1655
- "type": "text",
1656
- "primaryKey": false,
1657
- "notNull": true,
1658
- "autoincrement": false,
1659
- "default": "'editor'"
1660
- },
1661
- "mustChangePassword": {
1662
- "name": "mustChangePassword",
1663
- "type": "integer",
1664
- "primaryKey": false,
1665
- "notNull": true,
1666
- "autoincrement": false,
1667
- "default": true
1668
- },
1669
- "twoFactorEnabled": {
1670
- "name": "twoFactorEnabled",
1671
- "type": "integer",
1672
- "primaryKey": false,
1673
- "notNull": false,
1674
- "autoincrement": false,
1675
- "default": false
1676
- }
1677
- },
1678
- "indexes": {
1679
- "user_email_unique": {
1680
- "name": "user_email_unique",
1681
- "columns": [
1682
- "email"
1683
- ],
1684
- "isUnique": true
1685
- }
1686
- },
1687
- "foreignKeys": {},
1688
- "compositePrimaryKeys": {},
1689
- "uniqueConstraints": {},
1690
- "checkConstraints": {}
1691
- },
1692
- "verification": {
1693
- "name": "verification",
1694
- "columns": {
1695
- "id": {
1696
- "name": "id",
1697
- "type": "text",
1698
- "primaryKey": true,
1699
- "notNull": true,
1700
- "autoincrement": false
1701
- },
1702
- "identifier": {
1703
- "name": "identifier",
1704
- "type": "text",
1705
- "primaryKey": false,
1706
- "notNull": true,
1707
- "autoincrement": false
1708
- },
1709
- "value": {
1710
- "name": "value",
1711
- "type": "text",
1712
- "primaryKey": false,
1713
- "notNull": true,
1714
- "autoincrement": false
1715
- },
1716
- "expiresAt": {
1717
- "name": "expiresAt",
1718
- "type": "integer",
1719
- "primaryKey": false,
1720
- "notNull": true,
1721
- "autoincrement": false
1722
- },
1723
- "createdAt": {
1724
- "name": "createdAt",
1725
- "type": "integer",
1726
- "primaryKey": false,
1727
- "notNull": true,
1728
- "autoincrement": false
1729
- },
1730
- "updatedAt": {
1731
- "name": "updatedAt",
1732
- "type": "integer",
1733
- "primaryKey": false,
1734
- "notNull": true,
1735
- "autoincrement": false
1736
- }
1737
- },
1738
- "indexes": {
1739
- "verification_identifier": {
1740
- "name": "verification_identifier",
1741
- "columns": [
1742
- "identifier"
1743
- ],
1744
- "isUnique": false
1745
- }
1746
- },
1747
- "foreignKeys": {},
1748
- "compositePrimaryKeys": {},
1749
- "uniqueConstraints": {},
1750
- "checkConstraints": {}
1751
- }
1752
- },
1753
- "views": {},
1754
- "enums": {},
1755
- "_meta": {
1756
- "schemas": {},
1757
- "tables": {},
1758
- "columns": {}
1759
- },
1760
- "internal": {
1761
- "indexes": {}
1762
- }
1763
- }