sandcms 0.5.3 → 0.6.1

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 (147) hide show
  1. package/README.md +5 -3
  2. package/dist/admin/Account.svelte +4 -1
  3. package/dist/admin/ApiKeys.svelte +159 -0
  4. package/dist/admin/ApiKeys.svelte.d.ts +3 -0
  5. package/dist/admin/AssetAttachment.svelte +6 -4
  6. package/dist/admin/BlueprintFields.svelte +86 -0
  7. package/dist/admin/BlueprintFields.svelte.d.ts +15 -0
  8. package/dist/admin/Collection.svelte +40 -7
  9. package/dist/admin/Editor.svelte +57 -17
  10. package/dist/admin/Fields.svelte +217 -144
  11. package/dist/admin/Fields.svelte.d.ts +1 -0
  12. package/dist/admin/FocusPicker.svelte +136 -0
  13. package/dist/admin/FocusPicker.svelte.d.ts +11 -0
  14. package/dist/admin/Gallery.svelte +40 -34
  15. package/dist/admin/GlobalSearch.svelte +56 -0
  16. package/dist/admin/GlobalSearch.svelte.d.ts +3 -0
  17. package/dist/admin/Inbox.svelte +8 -5
  18. package/dist/admin/LinkField.svelte +116 -0
  19. package/dist/admin/LinkField.svelte.d.ts +17 -0
  20. package/dist/admin/MediaLibrary.svelte +41 -14
  21. package/dist/admin/MediaPicker.svelte +12 -2
  22. package/dist/admin/NotificationSettings.svelte +2 -2
  23. package/dist/admin/SearchList.svelte +55 -0
  24. package/dist/admin/SearchList.svelte.d.ts +42 -0
  25. package/dist/admin/SelectField.svelte +3 -1
  26. package/dist/admin/SelectField.svelte.d.ts +1 -0
  27. package/dist/admin/Shell.svelte +4 -2
  28. package/dist/admin/UnsavedChanges.svelte +1 -1
  29. package/dist/admin/Users.svelte +11 -5
  30. package/dist/admin/client.js +2 -1
  31. package/dist/admin/generated/admin.css +109 -0
  32. package/dist/admin/types.d.ts +5 -1
  33. package/dist/admin/uploads.js +27 -6
  34. package/dist/blueprints/conditions.d.ts +2 -0
  35. package/dist/blueprints/conditions.js +4 -0
  36. package/dist/blueprints/extends.d.ts +5 -0
  37. package/dist/blueprints/extends.js +76 -0
  38. package/dist/blueprints/files.d.ts +3 -1
  39. package/dist/blueprints/files.js +35 -2
  40. package/dist/blueprints/layout.d.ts +4 -0
  41. package/dist/blueprints/layout.js +12 -0
  42. package/dist/blueprints/load.d.ts +1 -1
  43. package/dist/blueprints/load.js +123 -12
  44. package/dist/blueprints/types.d.ts +35 -1
  45. package/dist/blueprints/validate.js +30 -6
  46. package/dist/cli/cloudflare.js +17 -5
  47. package/dist/cli/doctor.js +6 -3
  48. package/dist/cli/files.js +1 -1
  49. package/dist/cli/scaffold.js +8 -6
  50. package/dist/cli/setup.js +9 -2
  51. package/dist/cli/upgrade.js +2 -1
  52. package/dist/email-failure.d.ts +17 -0
  53. package/dist/email-failure.js +22 -0
  54. package/dist/index.d.ts +2 -1
  55. package/dist/index.js +1 -0
  56. package/dist/link.d.ts +17 -0
  57. package/dist/link.js +44 -0
  58. package/dist/notification-fields.js +1 -1
  59. package/dist/search.d.ts +8 -0
  60. package/dist/search.js +1 -0
  61. package/dist/server/access.d.ts +2 -0
  62. package/dist/server/access.js +59 -23
  63. package/dist/server/admin-load.d.ts +11 -2
  64. package/dist/server/admin-load.js +4 -2
  65. package/dist/server/api-access.d.ts +31 -0
  66. package/dist/server/api-access.js +52 -0
  67. package/dist/server/api-pagination.d.ts +34 -0
  68. package/dist/server/api-pagination.js +87 -0
  69. package/dist/server/api.js +224 -32
  70. package/dist/server/auth.d.ts +1150 -0
  71. package/dist/server/auth.js +11 -1
  72. package/dist/server/cms.d.ts +1210 -4
  73. package/dist/server/cms.js +12 -0
  74. package/dist/server/content.d.ts +17 -2
  75. package/dist/server/content.js +89 -14
  76. package/dist/server/db/auto-migrate.d.ts +12 -0
  77. package/dist/server/db/auto-migrate.js +23 -0
  78. package/dist/server/db/migration-data.js +24 -0
  79. package/dist/server/db/migrations/0001_independent_password_resets.sql +3 -0
  80. package/dist/server/db/migrations/0002_email_failure_reason.sql +1 -0
  81. package/dist/server/db/migrations/0003_direct_r2_uploads.sql +10 -0
  82. package/dist/server/db/migrations/0004_agent_api_keys.sql +38 -0
  83. package/dist/server/db/migrations/0005_api_retention_and_pagination.sql +3 -0
  84. package/dist/server/db/migrations/0006_durable_media_deletion.sql +7 -0
  85. package/dist/server/db/migrations/meta/0001_snapshot.json +1197 -0
  86. package/dist/server/db/migrations/meta/0002_snapshot.json +1204 -0
  87. package/dist/server/db/migrations/meta/0003_snapshot.json +1281 -0
  88. package/dist/server/db/migrations/meta/0004_snapshot.json +1546 -0
  89. package/dist/server/db/migrations/meta/0005_snapshot.json +1572 -0
  90. package/dist/server/db/migrations/meta/0006_snapshot.json +1627 -0
  91. package/dist/server/db/migrations/meta/_journal.json +42 -0
  92. package/dist/server/db/schema.d.ts +742 -2
  93. package/dist/server/db/schema.js +77 -5
  94. package/dist/server/db/store.js +24 -9
  95. package/dist/server/email/index.d.ts +11 -1
  96. package/dist/server/email/index.js +69 -6
  97. package/dist/server/forms.js +12 -2
  98. package/dist/server/hooks.d.ts +1 -1
  99. package/dist/server/hooks.js +37 -14
  100. package/dist/server/index.d.ts +2 -1
  101. package/dist/server/index.js +2 -1
  102. package/dist/server/links.d.ts +5 -0
  103. package/dist/server/links.js +44 -0
  104. package/dist/server/media/deletions.d.ts +2 -0
  105. package/dist/server/media/deletions.js +58 -0
  106. package/dist/server/media/presets.d.ts +10 -2
  107. package/dist/server/media/presets.js +14 -2
  108. package/dist/server/media/runner.d.ts +1 -1
  109. package/dist/server/media/runner.js +105 -8
  110. package/dist/server/media/service.d.ts +41 -3
  111. package/dist/server/media/service.js +146 -33
  112. package/dist/server/notifications.d.ts +1 -0
  113. package/dist/server/notifications.js +4 -2
  114. package/dist/server/request.d.ts +2 -0
  115. package/dist/server/request.js +5 -0
  116. package/dist/server/search.d.ts +13 -0
  117. package/dist/server/search.js +97 -0
  118. package/dist/worker/index.d.ts +4 -4
  119. package/dist/worker/index.js +208 -67
  120. package/dist/worker/local.d.ts +5 -0
  121. package/dist/worker/local.js +57 -0
  122. package/dist/worker/source.d.ts +1 -1
  123. package/dist/worker/source.js +2 -2
  124. package/dist/worker/uploads.d.ts +22 -0
  125. package/dist/worker/uploads.js +48 -0
  126. package/docs/api.md +73 -0
  127. package/docs/cloudflare.md +37 -10
  128. package/docs/content.md +162 -4
  129. package/docs/deployment.md +33 -4
  130. package/docs/email.md +11 -7
  131. package/docs/forms.md +3 -1
  132. package/docs/media.md +33 -4
  133. package/docs/package.md +6 -4
  134. package/docs/releases.md +54 -1
  135. package/docs/upgrades.md +91 -3
  136. package/package.json +19 -10
  137. package/templates/hooks.server.ts +2 -2
  138. package/templates/integration.ts +3 -2
  139. package/templates/routes/admin/+page.server.ts +1 -1
  140. package/templates/routes/api/+server.ts +1 -1
  141. package/templates/sandcms/blueprints/collections/projects.yaml +16 -8
  142. package/templates/sandcms/blueprints/fields/seo.yaml +5 -0
  143. package/templates/sandcms/blueprints/files/image.yaml +1 -0
  144. package/templates/sandcms/blueprints/pages/home.yaml +1 -0
  145. package/templates/sandcms/config.yaml +1 -0
  146. package/templates/sandcms/worker/local.ts +1 -0
  147. package/templates/sandcms/worker/wrangler.jsonc +1 -2
@@ -0,0 +1,1572 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "25f28235-0f2a-46d7-9b5b-46899997f8e2",
5
+ "prevId": "260e10c5-c530-4ae2-a1ce-0119aa90d85d",
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
+ },
794
+ "foreignKeys": {
795
+ "jobs_mediaId_media_id_fk": {
796
+ "name": "jobs_mediaId_media_id_fk",
797
+ "tableFrom": "jobs",
798
+ "tableTo": "media",
799
+ "columnsFrom": [
800
+ "mediaId"
801
+ ],
802
+ "columnsTo": [
803
+ "id"
804
+ ],
805
+ "onDelete": "cascade",
806
+ "onUpdate": "no action"
807
+ }
808
+ },
809
+ "compositePrimaryKeys": {},
810
+ "uniqueConstraints": {},
811
+ "checkConstraints": {}
812
+ },
813
+ "media": {
814
+ "name": "media",
815
+ "columns": {
816
+ "blueprint": {
817
+ "name": "blueprint",
818
+ "type": "text",
819
+ "primaryKey": false,
820
+ "notNull": true,
821
+ "autoincrement": false
822
+ },
823
+ "metadata": {
824
+ "name": "metadata",
825
+ "type": "text",
826
+ "primaryKey": false,
827
+ "notNull": true,
828
+ "autoincrement": false,
829
+ "default": "'{}'"
830
+ },
831
+ "id": {
832
+ "name": "id",
833
+ "type": "text",
834
+ "primaryKey": true,
835
+ "notNull": true,
836
+ "autoincrement": false
837
+ },
838
+ "filename": {
839
+ "name": "filename",
840
+ "type": "text",
841
+ "primaryKey": false,
842
+ "notNull": true,
843
+ "autoincrement": false
844
+ },
845
+ "mime": {
846
+ "name": "mime",
847
+ "type": "text",
848
+ "primaryKey": false,
849
+ "notNull": true,
850
+ "autoincrement": false
851
+ },
852
+ "bytes": {
853
+ "name": "bytes",
854
+ "type": "integer",
855
+ "primaryKey": false,
856
+ "notNull": true,
857
+ "autoincrement": false
858
+ },
859
+ "status": {
860
+ "name": "status",
861
+ "type": "text",
862
+ "primaryKey": false,
863
+ "notNull": true,
864
+ "autoincrement": false
865
+ },
866
+ "activeVersion": {
867
+ "name": "activeVersion",
868
+ "type": "text",
869
+ "primaryKey": false,
870
+ "notNull": false,
871
+ "autoincrement": false
872
+ },
873
+ "targetVersion": {
874
+ "name": "targetVersion",
875
+ "type": "text",
876
+ "primaryKey": false,
877
+ "notNull": true,
878
+ "autoincrement": false
879
+ },
880
+ "variants": {
881
+ "name": "variants",
882
+ "type": "text",
883
+ "primaryKey": false,
884
+ "notNull": true,
885
+ "autoincrement": false,
886
+ "default": "'[]'"
887
+ },
888
+ "error": {
889
+ "name": "error",
890
+ "type": "text",
891
+ "primaryKey": false,
892
+ "notNull": false,
893
+ "autoincrement": false
894
+ },
895
+ "createdAt": {
896
+ "name": "createdAt",
897
+ "type": "integer",
898
+ "primaryKey": false,
899
+ "notNull": true,
900
+ "autoincrement": false
901
+ }
902
+ },
903
+ "indexes": {
904
+ "media_api_page": {
905
+ "name": "media_api_page",
906
+ "columns": [
907
+ "createdAt",
908
+ "id"
909
+ ],
910
+ "isUnique": false
911
+ }
912
+ },
913
+ "foreignKeys": {},
914
+ "compositePrimaryKeys": {},
915
+ "uniqueConstraints": {},
916
+ "checkConstraints": {}
917
+ },
918
+ "rate_limits": {
919
+ "name": "rate_limits",
920
+ "columns": {
921
+ "key": {
922
+ "name": "key",
923
+ "type": "text",
924
+ "primaryKey": true,
925
+ "notNull": true,
926
+ "autoincrement": false
927
+ },
928
+ "count": {
929
+ "name": "count",
930
+ "type": "integer",
931
+ "primaryKey": false,
932
+ "notNull": true,
933
+ "autoincrement": false
934
+ },
935
+ "resetAt": {
936
+ "name": "resetAt",
937
+ "type": "integer",
938
+ "primaryKey": false,
939
+ "notNull": true,
940
+ "autoincrement": false
941
+ }
942
+ },
943
+ "indexes": {},
944
+ "foreignKeys": {},
945
+ "compositePrimaryKeys": {},
946
+ "uniqueConstraints": {},
947
+ "checkConstraints": {}
948
+ },
949
+ "content_references": {
950
+ "name": "content_references",
951
+ "columns": {
952
+ "id": {
953
+ "name": "id",
954
+ "type": "text",
955
+ "primaryKey": true,
956
+ "notNull": true,
957
+ "autoincrement": false
958
+ },
959
+ "documentId": {
960
+ "name": "documentId",
961
+ "type": "text",
962
+ "primaryKey": false,
963
+ "notNull": true,
964
+ "autoincrement": false
965
+ },
966
+ "targetId": {
967
+ "name": "targetId",
968
+ "type": "text",
969
+ "primaryKey": false,
970
+ "notNull": true,
971
+ "autoincrement": false
972
+ },
973
+ "kind": {
974
+ "name": "kind",
975
+ "type": "text",
976
+ "primaryKey": false,
977
+ "notNull": true,
978
+ "autoincrement": false
979
+ },
980
+ "snapshot": {
981
+ "name": "snapshot",
982
+ "type": "text",
983
+ "primaryKey": false,
984
+ "notNull": true,
985
+ "autoincrement": false
986
+ }
987
+ },
988
+ "indexes": {
989
+ "reference_target": {
990
+ "name": "reference_target",
991
+ "columns": [
992
+ "targetId"
993
+ ],
994
+ "isUnique": false
995
+ }
996
+ },
997
+ "foreignKeys": {
998
+ "content_references_documentId_documents_id_fk": {
999
+ "name": "content_references_documentId_documents_id_fk",
1000
+ "tableFrom": "content_references",
1001
+ "tableTo": "documents",
1002
+ "columnsFrom": [
1003
+ "documentId"
1004
+ ],
1005
+ "columnsTo": [
1006
+ "id"
1007
+ ],
1008
+ "onDelete": "cascade",
1009
+ "onUpdate": "no action"
1010
+ }
1011
+ },
1012
+ "compositePrimaryKeys": {},
1013
+ "uniqueConstraints": {},
1014
+ "checkConstraints": {}
1015
+ },
1016
+ "session": {
1017
+ "name": "session",
1018
+ "columns": {
1019
+ "id": {
1020
+ "name": "id",
1021
+ "type": "text",
1022
+ "primaryKey": true,
1023
+ "notNull": true,
1024
+ "autoincrement": false
1025
+ },
1026
+ "expiresAt": {
1027
+ "name": "expiresAt",
1028
+ "type": "integer",
1029
+ "primaryKey": false,
1030
+ "notNull": true,
1031
+ "autoincrement": false
1032
+ },
1033
+ "token": {
1034
+ "name": "token",
1035
+ "type": "text",
1036
+ "primaryKey": false,
1037
+ "notNull": true,
1038
+ "autoincrement": false
1039
+ },
1040
+ "createdAt": {
1041
+ "name": "createdAt",
1042
+ "type": "integer",
1043
+ "primaryKey": false,
1044
+ "notNull": true,
1045
+ "autoincrement": false
1046
+ },
1047
+ "updatedAt": {
1048
+ "name": "updatedAt",
1049
+ "type": "integer",
1050
+ "primaryKey": false,
1051
+ "notNull": true,
1052
+ "autoincrement": false
1053
+ },
1054
+ "ipAddress": {
1055
+ "name": "ipAddress",
1056
+ "type": "text",
1057
+ "primaryKey": false,
1058
+ "notNull": false,
1059
+ "autoincrement": false
1060
+ },
1061
+ "userAgent": {
1062
+ "name": "userAgent",
1063
+ "type": "text",
1064
+ "primaryKey": false,
1065
+ "notNull": false,
1066
+ "autoincrement": false
1067
+ },
1068
+ "userId": {
1069
+ "name": "userId",
1070
+ "type": "text",
1071
+ "primaryKey": false,
1072
+ "notNull": true,
1073
+ "autoincrement": false
1074
+ }
1075
+ },
1076
+ "indexes": {
1077
+ "session_token_unique": {
1078
+ "name": "session_token_unique",
1079
+ "columns": [
1080
+ "token"
1081
+ ],
1082
+ "isUnique": true
1083
+ },
1084
+ "session_user": {
1085
+ "name": "session_user",
1086
+ "columns": [
1087
+ "userId"
1088
+ ],
1089
+ "isUnique": false
1090
+ }
1091
+ },
1092
+ "foreignKeys": {
1093
+ "session_userId_user_id_fk": {
1094
+ "name": "session_userId_user_id_fk",
1095
+ "tableFrom": "session",
1096
+ "tableTo": "user",
1097
+ "columnsFrom": [
1098
+ "userId"
1099
+ ],
1100
+ "columnsTo": [
1101
+ "id"
1102
+ ],
1103
+ "onDelete": "cascade",
1104
+ "onUpdate": "no action"
1105
+ }
1106
+ },
1107
+ "compositePrimaryKeys": {},
1108
+ "uniqueConstraints": {},
1109
+ "checkConstraints": {}
1110
+ },
1111
+ "submissions": {
1112
+ "name": "submissions",
1113
+ "columns": {
1114
+ "id": {
1115
+ "name": "id",
1116
+ "type": "text",
1117
+ "primaryKey": true,
1118
+ "notNull": true,
1119
+ "autoincrement": false
1120
+ },
1121
+ "formId": {
1122
+ "name": "formId",
1123
+ "type": "text",
1124
+ "primaryKey": false,
1125
+ "notNull": true,
1126
+ "autoincrement": false
1127
+ },
1128
+ "data": {
1129
+ "name": "data",
1130
+ "type": "text",
1131
+ "primaryKey": false,
1132
+ "notNull": true,
1133
+ "autoincrement": false
1134
+ },
1135
+ "schema": {
1136
+ "name": "schema",
1137
+ "type": "text",
1138
+ "primaryKey": false,
1139
+ "notNull": true,
1140
+ "autoincrement": false
1141
+ },
1142
+ "read": {
1143
+ "name": "read",
1144
+ "type": "integer",
1145
+ "primaryKey": false,
1146
+ "notNull": true,
1147
+ "autoincrement": false,
1148
+ "default": false
1149
+ },
1150
+ "notification": {
1151
+ "name": "notification",
1152
+ "type": "text",
1153
+ "primaryKey": false,
1154
+ "notNull": false,
1155
+ "autoincrement": false
1156
+ },
1157
+ "createdAt": {
1158
+ "name": "createdAt",
1159
+ "type": "integer",
1160
+ "primaryKey": false,
1161
+ "notNull": true,
1162
+ "autoincrement": false
1163
+ }
1164
+ },
1165
+ "indexes": {
1166
+ "submission_form": {
1167
+ "name": "submission_form",
1168
+ "columns": [
1169
+ "formId",
1170
+ "createdAt"
1171
+ ],
1172
+ "isUnique": false
1173
+ }
1174
+ },
1175
+ "foreignKeys": {},
1176
+ "compositePrimaryKeys": {},
1177
+ "uniqueConstraints": {},
1178
+ "checkConstraints": {}
1179
+ },
1180
+ "twoFactor": {
1181
+ "name": "twoFactor",
1182
+ "columns": {
1183
+ "id": {
1184
+ "name": "id",
1185
+ "type": "text",
1186
+ "primaryKey": true,
1187
+ "notNull": true,
1188
+ "autoincrement": false
1189
+ },
1190
+ "secret": {
1191
+ "name": "secret",
1192
+ "type": "text",
1193
+ "primaryKey": false,
1194
+ "notNull": true,
1195
+ "autoincrement": false
1196
+ },
1197
+ "backupCodes": {
1198
+ "name": "backupCodes",
1199
+ "type": "text",
1200
+ "primaryKey": false,
1201
+ "notNull": true,
1202
+ "autoincrement": false
1203
+ },
1204
+ "userId": {
1205
+ "name": "userId",
1206
+ "type": "text",
1207
+ "primaryKey": false,
1208
+ "notNull": true,
1209
+ "autoincrement": false
1210
+ },
1211
+ "verified": {
1212
+ "name": "verified",
1213
+ "type": "integer",
1214
+ "primaryKey": false,
1215
+ "notNull": false,
1216
+ "autoincrement": false,
1217
+ "default": true
1218
+ },
1219
+ "failedVerificationCount": {
1220
+ "name": "failedVerificationCount",
1221
+ "type": "integer",
1222
+ "primaryKey": false,
1223
+ "notNull": false,
1224
+ "autoincrement": false,
1225
+ "default": 0
1226
+ },
1227
+ "lockedUntil": {
1228
+ "name": "lockedUntil",
1229
+ "type": "integer",
1230
+ "primaryKey": false,
1231
+ "notNull": false,
1232
+ "autoincrement": false
1233
+ }
1234
+ },
1235
+ "indexes": {
1236
+ "twofactor_user": {
1237
+ "name": "twofactor_user",
1238
+ "columns": [
1239
+ "userId"
1240
+ ],
1241
+ "isUnique": false
1242
+ },
1243
+ "twofactor_secret": {
1244
+ "name": "twofactor_secret",
1245
+ "columns": [
1246
+ "secret"
1247
+ ],
1248
+ "isUnique": false
1249
+ }
1250
+ },
1251
+ "foreignKeys": {
1252
+ "twoFactor_userId_user_id_fk": {
1253
+ "name": "twoFactor_userId_user_id_fk",
1254
+ "tableFrom": "twoFactor",
1255
+ "tableTo": "user",
1256
+ "columnsFrom": [
1257
+ "userId"
1258
+ ],
1259
+ "columnsTo": [
1260
+ "id"
1261
+ ],
1262
+ "onDelete": "cascade",
1263
+ "onUpdate": "no action"
1264
+ }
1265
+ },
1266
+ "compositePrimaryKeys": {},
1267
+ "uniqueConstraints": {},
1268
+ "checkConstraints": {}
1269
+ },
1270
+ "upload_sessions": {
1271
+ "name": "upload_sessions",
1272
+ "columns": {
1273
+ "mediaId": {
1274
+ "name": "mediaId",
1275
+ "type": "text",
1276
+ "primaryKey": true,
1277
+ "notNull": true,
1278
+ "autoincrement": false
1279
+ },
1280
+ "attempt": {
1281
+ "name": "attempt",
1282
+ "type": "text",
1283
+ "primaryKey": false,
1284
+ "notNull": true,
1285
+ "autoincrement": false
1286
+ },
1287
+ "expiresAt": {
1288
+ "name": "expiresAt",
1289
+ "type": "integer",
1290
+ "primaryKey": false,
1291
+ "notNull": true,
1292
+ "autoincrement": false
1293
+ },
1294
+ "status": {
1295
+ "name": "status",
1296
+ "type": "text",
1297
+ "primaryKey": false,
1298
+ "notNull": true,
1299
+ "autoincrement": false,
1300
+ "default": "'uploading'"
1301
+ },
1302
+ "attempts": {
1303
+ "name": "attempts",
1304
+ "type": "integer",
1305
+ "primaryKey": false,
1306
+ "notNull": true,
1307
+ "autoincrement": false,
1308
+ "default": 0
1309
+ },
1310
+ "nextAttempt": {
1311
+ "name": "nextAttempt",
1312
+ "type": "integer",
1313
+ "primaryKey": false,
1314
+ "notNull": true,
1315
+ "autoincrement": false,
1316
+ "default": 0
1317
+ },
1318
+ "leaseUntil": {
1319
+ "name": "leaseUntil",
1320
+ "type": "integer",
1321
+ "primaryKey": false,
1322
+ "notNull": true,
1323
+ "autoincrement": false,
1324
+ "default": 0
1325
+ }
1326
+ },
1327
+ "indexes": {},
1328
+ "foreignKeys": {
1329
+ "upload_sessions_mediaId_media_id_fk": {
1330
+ "name": "upload_sessions_mediaId_media_id_fk",
1331
+ "tableFrom": "upload_sessions",
1332
+ "tableTo": "media",
1333
+ "columnsFrom": [
1334
+ "mediaId"
1335
+ ],
1336
+ "columnsTo": [
1337
+ "id"
1338
+ ],
1339
+ "onDelete": "cascade",
1340
+ "onUpdate": "no action"
1341
+ }
1342
+ },
1343
+ "compositePrimaryKeys": {},
1344
+ "uniqueConstraints": {},
1345
+ "checkConstraints": {}
1346
+ },
1347
+ "uploads": {
1348
+ "name": "uploads",
1349
+ "columns": {
1350
+ "mediaId": {
1351
+ "name": "mediaId",
1352
+ "type": "text",
1353
+ "primaryKey": true,
1354
+ "notNull": true,
1355
+ "autoincrement": false
1356
+ },
1357
+ "body": {
1358
+ "name": "body",
1359
+ "type": "blob",
1360
+ "primaryKey": false,
1361
+ "notNull": true,
1362
+ "autoincrement": false
1363
+ },
1364
+ "attempts": {
1365
+ "name": "attempts",
1366
+ "type": "integer",
1367
+ "primaryKey": false,
1368
+ "notNull": true,
1369
+ "autoincrement": false,
1370
+ "default": 0
1371
+ },
1372
+ "nextAttempt": {
1373
+ "name": "nextAttempt",
1374
+ "type": "integer",
1375
+ "primaryKey": false,
1376
+ "notNull": true,
1377
+ "autoincrement": false,
1378
+ "default": 0
1379
+ },
1380
+ "leaseUntil": {
1381
+ "name": "leaseUntil",
1382
+ "type": "integer",
1383
+ "primaryKey": false,
1384
+ "notNull": true,
1385
+ "autoincrement": false,
1386
+ "default": 0
1387
+ }
1388
+ },
1389
+ "indexes": {},
1390
+ "foreignKeys": {
1391
+ "uploads_mediaId_media_id_fk": {
1392
+ "name": "uploads_mediaId_media_id_fk",
1393
+ "tableFrom": "uploads",
1394
+ "tableTo": "media",
1395
+ "columnsFrom": [
1396
+ "mediaId"
1397
+ ],
1398
+ "columnsTo": [
1399
+ "id"
1400
+ ],
1401
+ "onDelete": "cascade",
1402
+ "onUpdate": "no action"
1403
+ }
1404
+ },
1405
+ "compositePrimaryKeys": {},
1406
+ "uniqueConstraints": {},
1407
+ "checkConstraints": {}
1408
+ },
1409
+ "user": {
1410
+ "name": "user",
1411
+ "columns": {
1412
+ "id": {
1413
+ "name": "id",
1414
+ "type": "text",
1415
+ "primaryKey": true,
1416
+ "notNull": true,
1417
+ "autoincrement": false
1418
+ },
1419
+ "name": {
1420
+ "name": "name",
1421
+ "type": "text",
1422
+ "primaryKey": false,
1423
+ "notNull": true,
1424
+ "autoincrement": false
1425
+ },
1426
+ "email": {
1427
+ "name": "email",
1428
+ "type": "text",
1429
+ "primaryKey": false,
1430
+ "notNull": true,
1431
+ "autoincrement": false
1432
+ },
1433
+ "emailVerified": {
1434
+ "name": "emailVerified",
1435
+ "type": "integer",
1436
+ "primaryKey": false,
1437
+ "notNull": true,
1438
+ "autoincrement": false,
1439
+ "default": false
1440
+ },
1441
+ "image": {
1442
+ "name": "image",
1443
+ "type": "text",
1444
+ "primaryKey": false,
1445
+ "notNull": false,
1446
+ "autoincrement": false
1447
+ },
1448
+ "createdAt": {
1449
+ "name": "createdAt",
1450
+ "type": "integer",
1451
+ "primaryKey": false,
1452
+ "notNull": true,
1453
+ "autoincrement": false
1454
+ },
1455
+ "updatedAt": {
1456
+ "name": "updatedAt",
1457
+ "type": "integer",
1458
+ "primaryKey": false,
1459
+ "notNull": true,
1460
+ "autoincrement": false
1461
+ },
1462
+ "role": {
1463
+ "name": "role",
1464
+ "type": "text",
1465
+ "primaryKey": false,
1466
+ "notNull": true,
1467
+ "autoincrement": false,
1468
+ "default": "'editor'"
1469
+ },
1470
+ "mustChangePassword": {
1471
+ "name": "mustChangePassword",
1472
+ "type": "integer",
1473
+ "primaryKey": false,
1474
+ "notNull": true,
1475
+ "autoincrement": false,
1476
+ "default": true
1477
+ },
1478
+ "twoFactorEnabled": {
1479
+ "name": "twoFactorEnabled",
1480
+ "type": "integer",
1481
+ "primaryKey": false,
1482
+ "notNull": false,
1483
+ "autoincrement": false,
1484
+ "default": false
1485
+ }
1486
+ },
1487
+ "indexes": {
1488
+ "user_email_unique": {
1489
+ "name": "user_email_unique",
1490
+ "columns": [
1491
+ "email"
1492
+ ],
1493
+ "isUnique": true
1494
+ }
1495
+ },
1496
+ "foreignKeys": {},
1497
+ "compositePrimaryKeys": {},
1498
+ "uniqueConstraints": {},
1499
+ "checkConstraints": {}
1500
+ },
1501
+ "verification": {
1502
+ "name": "verification",
1503
+ "columns": {
1504
+ "id": {
1505
+ "name": "id",
1506
+ "type": "text",
1507
+ "primaryKey": true,
1508
+ "notNull": true,
1509
+ "autoincrement": false
1510
+ },
1511
+ "identifier": {
1512
+ "name": "identifier",
1513
+ "type": "text",
1514
+ "primaryKey": false,
1515
+ "notNull": true,
1516
+ "autoincrement": false
1517
+ },
1518
+ "value": {
1519
+ "name": "value",
1520
+ "type": "text",
1521
+ "primaryKey": false,
1522
+ "notNull": true,
1523
+ "autoincrement": false
1524
+ },
1525
+ "expiresAt": {
1526
+ "name": "expiresAt",
1527
+ "type": "integer",
1528
+ "primaryKey": false,
1529
+ "notNull": true,
1530
+ "autoincrement": false
1531
+ },
1532
+ "createdAt": {
1533
+ "name": "createdAt",
1534
+ "type": "integer",
1535
+ "primaryKey": false,
1536
+ "notNull": true,
1537
+ "autoincrement": false
1538
+ },
1539
+ "updatedAt": {
1540
+ "name": "updatedAt",
1541
+ "type": "integer",
1542
+ "primaryKey": false,
1543
+ "notNull": true,
1544
+ "autoincrement": false
1545
+ }
1546
+ },
1547
+ "indexes": {
1548
+ "verification_identifier": {
1549
+ "name": "verification_identifier",
1550
+ "columns": [
1551
+ "identifier"
1552
+ ],
1553
+ "isUnique": false
1554
+ }
1555
+ },
1556
+ "foreignKeys": {},
1557
+ "compositePrimaryKeys": {},
1558
+ "uniqueConstraints": {},
1559
+ "checkConstraints": {}
1560
+ }
1561
+ },
1562
+ "views": {},
1563
+ "enums": {},
1564
+ "_meta": {
1565
+ "schemas": {},
1566
+ "tables": {},
1567
+ "columns": {}
1568
+ },
1569
+ "internal": {
1570
+ "indexes": {}
1571
+ }
1572
+ }