@engenty/wizards-runtime 0.10.0 → 0.11.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 (96) hide show
  1. package/apps/runtime/dist/app.js +18 -2
  2. package/apps/runtime/dist/db/live-triggers.js +144 -0
  3. package/apps/runtime/dist/db/migrations/tenant/0023_live_change.sql +167 -0
  4. package/apps/runtime/dist/db/migrations/tenant/0024_live_presence.sql +28 -0
  5. package/apps/runtime/dist/db/migrations/tenant/meta/0023_snapshot.json +3860 -0
  6. package/apps/runtime/dist/db/migrations/tenant/meta/0024_snapshot.json +3967 -0
  7. package/apps/runtime/dist/db/migrations/tenant/meta/_journal.json +14 -0
  8. package/apps/runtime/dist/db/schema.js +41 -0
  9. package/apps/runtime/dist/docs/user-guide/meta.json +1 -0
  10. package/apps/runtime/dist/docs/user-guide/space.md +5 -1
  11. package/apps/runtime/dist/docs/user-guide/together.md +60 -0
  12. package/apps/runtime/dist/index.js +5 -1
  13. package/apps/runtime/dist/live/feed.js +34 -0
  14. package/apps/runtime/dist/live/hub.js +200 -0
  15. package/apps/runtime/dist/live/origin.js +53 -0
  16. package/apps/runtime/dist/live/views.js +146 -0
  17. package/apps/runtime/dist/mcp/handler.js +7 -1
  18. package/apps/runtime/dist/mcp/tools.js +51 -2
  19. package/apps/runtime/dist/routes/api.js +71 -2
  20. package/apps/runtime/dist/routes/live.js +85 -0
  21. package/apps/runtime/dist/routes/studio.js +47 -85
  22. package/apps/runtime/dist/services/presence.js +132 -0
  23. package/apps/runtime/dist/services/space-data.js +33 -6
  24. package/apps/runtime/dist/sync/apply.js +4 -0
  25. package/apps/runtime/dist/sync/client.js +146 -1
  26. package/apps/runtime/dist/texts.js +2 -0
  27. package/apps/web/dist/assets/AboutDialog-D2r8kBfV.js +1 -0
  28. package/apps/web/dist/assets/ChangelogDialog-j7Z1YhNv.js +1 -0
  29. package/apps/web/dist/assets/CodeEditor-BTCMfVFJ.js +2 -0
  30. package/apps/web/dist/assets/EditorPage-mx6XuEIw.js +3 -0
  31. package/apps/web/dist/assets/{FlowPreview-dc5C92kK.js → FlowPreview-BtVgtW7P.js} +1 -1
  32. package/apps/web/dist/assets/{Harness-D0nFOIVx.js → Harness-H4Ue1HOd.js} +2 -2
  33. package/apps/web/dist/assets/Marketplace-YEZDpGm9.js +2 -0
  34. package/apps/web/dist/assets/NewWizardChannels-K1HOzkXf.js +1 -0
  35. package/apps/web/dist/assets/NewWizardPage-DSHVwwnU.js +7 -0
  36. package/apps/web/dist/assets/OnboardingPage-CoBNtV_1.js +1 -0
  37. package/apps/web/dist/assets/PreviewPane-z0-Glj7p.js +10 -0
  38. package/apps/web/dist/assets/ProjectPage-DFaPSeda.js +1 -0
  39. package/apps/web/dist/assets/PublicRunner-DgT4CApp.js +1 -0
  40. package/apps/web/dist/assets/ReadOnly-Duk1YpNM.js +1 -0
  41. package/apps/web/dist/assets/SettingsPage-FimvOhQq.js +2 -0
  42. package/apps/web/dist/assets/SetupPage-BxEMrMtA.js +1 -0
  43. package/apps/web/dist/assets/SharePage-DvAUwrOl.js +1 -0
  44. package/apps/web/dist/assets/changelog-CS9GmnXd.js +1 -0
  45. package/apps/web/dist/assets/{coins-BGZKYmu6.js → coins-DSvwvqtQ.js} +1 -1
  46. package/apps/web/dist/assets/dist-BwhPmMDu.js +1 -0
  47. package/apps/web/dist/assets/dist-DVpDdhG9.js +1 -0
  48. package/apps/web/dist/assets/dist-DzdNG7Sf.js +10 -0
  49. package/apps/web/dist/assets/i18n-UTsgNY5M.js +55 -0
  50. package/apps/web/dist/assets/index-DHIXX69l.js +20 -0
  51. package/apps/web/dist/assets/index-Mt1sNdPx.css +1 -0
  52. package/apps/web/dist/assets/json-D2GVvTXK.js +1 -0
  53. package/apps/web/dist/assets/markdown-DwdMW7q0.js +29 -0
  54. package/apps/web/dist/assets/{oss-credits-C2JUsf2d.js → oss-credits-BLVLXRzs.js} +1 -1
  55. package/apps/web/dist/assets/{phone-BzHhwehj.js → phone-xIUU1ZFn.js} +1 -1
  56. package/apps/web/dist/assets/runners-CrSLA6HI.js +1 -0
  57. package/apps/web/dist/assets/session-CbWzkHl0.js +2 -0
  58. package/apps/web/dist/assets/{settings-menu-BZRGhsIO.js → settings-menu-DoRItnPf.js} +1 -1
  59. package/apps/web/dist/assets/theme-znovbShL.js +11 -0
  60. package/apps/web/dist/assets/ui-6AgUKJhQ.js +83 -0
  61. package/apps/web/dist/assets/{upload-CwT8oMz0.js → upload-C8WgcG1g.js} +1 -1
  62. package/apps/web/dist/assets/{useMutation-byk81dDj.js → useMutation-BdCg6qrc.js} +1 -1
  63. package/apps/web/dist/assets/{volume-2-B1Pz6Iwt.js → volume-2-jlgQapiz.js} +1 -1
  64. package/apps/web/dist/assets/{wrench-CvzXRbWN.js → wrench-Ca_TrBQk.js} +1 -1
  65. package/apps/web/dist/index.html +9 -8
  66. package/apps/web/dist/mcp/flow.html +2 -2
  67. package/node_modules/@engenty/wizards-shared/dist/feature-flags.d.ts +6 -0
  68. package/node_modules/@engenty/wizards-shared/dist/feature-flags.js +6 -0
  69. package/node_modules/@engenty/wizards-shared/dist/live.d.ts +46 -0
  70. package/node_modules/@engenty/wizards-shared/dist/live.js +9 -0
  71. package/node_modules/@engenty/wizards-shared/dist/run.d.ts +1 -0
  72. package/node_modules/@engenty/wizards-shared/dist/run.js +2 -0
  73. package/package.json +1 -1
  74. package/plugin/.claude-plugin/plugin.json +1 -1
  75. package/plugin/plugin.json +1 -1
  76. package/apps/web/dist/assets/AboutDialog-D1YHT0jc.js +0 -1
  77. package/apps/web/dist/assets/ChangelogDialog-Bv02g8av.js +0 -1
  78. package/apps/web/dist/assets/EditorPage-BThoZwqO.js +0 -4
  79. package/apps/web/dist/assets/Marketplace-Cnd8BF3q.js +0 -2
  80. package/apps/web/dist/assets/NewWizardChannels-i62Y_2DZ.js +0 -1
  81. package/apps/web/dist/assets/NewWizardPage-BcpRA1fx.js +0 -7
  82. package/apps/web/dist/assets/OnboardingPage-BcMDEXNq.js +0 -1
  83. package/apps/web/dist/assets/PreviewPane-GHcVV2Hu.js +0 -4
  84. package/apps/web/dist/assets/ProjectPage-TDywzUOd.js +0 -1
  85. package/apps/web/dist/assets/PublicRunner-B6JINLpR.js +0 -1
  86. package/apps/web/dist/assets/ReadOnly-Mv5M2OV9.js +0 -1
  87. package/apps/web/dist/assets/SettingsPage-B-F1dLgt.js +0 -2
  88. package/apps/web/dist/assets/SetupPage-CVdsdVBW.js +0 -1
  89. package/apps/web/dist/assets/SharePage-CBSRK0wF.js +0 -1
  90. package/apps/web/dist/assets/changelog-BR1lxaWv.js +0 -1
  91. package/apps/web/dist/assets/index-D3-kv1WF.js +0 -14
  92. package/apps/web/dist/assets/index-DcUL6teA.css +0 -1
  93. package/apps/web/dist/assets/runners-C1-zIlry.js +0 -1
  94. package/apps/web/dist/assets/session-B_JeZnJ0.js +0 -2
  95. package/apps/web/dist/assets/theme-HcCfZDzS.js +0 -11
  96. package/apps/web/dist/assets/ui-BI1RPFWT.js +0 -137
@@ -0,0 +1,3860 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "3ea21127-761e-4c75-9906-e19f4a2b0e01",
5
+ "prevId": "34db1ce2-f3df-4ce1-83b9-77e76db01497",
6
+ "tables": {
7
+ "asset": {
8
+ "name": "asset",
9
+ "columns": {
10
+ "id": {
11
+ "name": "id",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "tenant_id": {
18
+ "name": "tenant_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "run_id": {
25
+ "name": "run_id",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": false,
29
+ "autoincrement": false
30
+ },
31
+ "step_id": {
32
+ "name": "step_id",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": false,
36
+ "autoincrement": false
37
+ },
38
+ "kind": {
39
+ "name": "kind",
40
+ "type": "text",
41
+ "primaryKey": false,
42
+ "notNull": true,
43
+ "autoincrement": false
44
+ },
45
+ "mime": {
46
+ "name": "mime",
47
+ "type": "text",
48
+ "primaryKey": false,
49
+ "notNull": true,
50
+ "autoincrement": false
51
+ },
52
+ "name": {
53
+ "name": "name",
54
+ "type": "text",
55
+ "primaryKey": false,
56
+ "notNull": true,
57
+ "autoincrement": false
58
+ },
59
+ "path": {
60
+ "name": "path",
61
+ "type": "text",
62
+ "primaryKey": false,
63
+ "notNull": true,
64
+ "autoincrement": false
65
+ },
66
+ "size": {
67
+ "name": "size",
68
+ "type": "integer",
69
+ "primaryKey": false,
70
+ "notNull": true,
71
+ "autoincrement": false
72
+ },
73
+ "created_at": {
74
+ "name": "created_at",
75
+ "type": "integer",
76
+ "primaryKey": false,
77
+ "notNull": true,
78
+ "autoincrement": false,
79
+ "default": "(unixepoch() * 1000)"
80
+ }
81
+ },
82
+ "indexes": {
83
+ "asset_run": {
84
+ "name": "asset_run",
85
+ "columns": [
86
+ "run_id"
87
+ ],
88
+ "isUnique": false
89
+ }
90
+ },
91
+ "foreignKeys": {},
92
+ "compositePrimaryKeys": {},
93
+ "uniqueConstraints": {},
94
+ "checkConstraints": {}
95
+ },
96
+ "assistant_chat": {
97
+ "name": "assistant_chat",
98
+ "columns": {
99
+ "id": {
100
+ "name": "id",
101
+ "type": "text",
102
+ "primaryKey": true,
103
+ "notNull": true,
104
+ "autoincrement": false
105
+ },
106
+ "tenant_id": {
107
+ "name": "tenant_id",
108
+ "type": "text",
109
+ "primaryKey": false,
110
+ "notNull": true,
111
+ "autoincrement": false
112
+ },
113
+ "user_id": {
114
+ "name": "user_id",
115
+ "type": "text",
116
+ "primaryKey": false,
117
+ "notNull": true,
118
+ "autoincrement": false
119
+ },
120
+ "title": {
121
+ "name": "title",
122
+ "type": "text",
123
+ "primaryKey": false,
124
+ "notNull": false,
125
+ "autoincrement": false
126
+ },
127
+ "summary": {
128
+ "name": "summary",
129
+ "type": "text",
130
+ "primaryKey": false,
131
+ "notNull": false,
132
+ "autoincrement": false
133
+ },
134
+ "folded": {
135
+ "name": "folded",
136
+ "type": "integer",
137
+ "primaryKey": false,
138
+ "notNull": true,
139
+ "autoincrement": false,
140
+ "default": 0
141
+ },
142
+ "created_at": {
143
+ "name": "created_at",
144
+ "type": "integer",
145
+ "primaryKey": false,
146
+ "notNull": true,
147
+ "autoincrement": false,
148
+ "default": "(unixepoch() * 1000)"
149
+ },
150
+ "closed_at": {
151
+ "name": "closed_at",
152
+ "type": "integer",
153
+ "primaryKey": false,
154
+ "notNull": false,
155
+ "autoincrement": false
156
+ }
157
+ },
158
+ "indexes": {
159
+ "assistant_chat_user": {
160
+ "name": "assistant_chat_user",
161
+ "columns": [
162
+ "tenant_id",
163
+ "user_id",
164
+ "closed_at"
165
+ ],
166
+ "isUnique": false
167
+ }
168
+ },
169
+ "foreignKeys": {},
170
+ "compositePrimaryKeys": {},
171
+ "uniqueConstraints": {},
172
+ "checkConstraints": {}
173
+ },
174
+ "assistant_message": {
175
+ "name": "assistant_message",
176
+ "columns": {
177
+ "id": {
178
+ "name": "id",
179
+ "type": "text",
180
+ "primaryKey": true,
181
+ "notNull": true,
182
+ "autoincrement": false
183
+ },
184
+ "chat_id": {
185
+ "name": "chat_id",
186
+ "type": "text",
187
+ "primaryKey": false,
188
+ "notNull": true,
189
+ "autoincrement": false
190
+ },
191
+ "role": {
192
+ "name": "role",
193
+ "type": "text",
194
+ "primaryKey": false,
195
+ "notNull": true,
196
+ "autoincrement": false
197
+ },
198
+ "content": {
199
+ "name": "content",
200
+ "type": "text",
201
+ "primaryKey": false,
202
+ "notNull": true,
203
+ "autoincrement": false
204
+ },
205
+ "cards": {
206
+ "name": "cards",
207
+ "type": "text",
208
+ "primaryKey": false,
209
+ "notNull": false,
210
+ "autoincrement": false
211
+ },
212
+ "tool_calls": {
213
+ "name": "tool_calls",
214
+ "type": "text",
215
+ "primaryKey": false,
216
+ "notNull": false,
217
+ "autoincrement": false
218
+ },
219
+ "page": {
220
+ "name": "page",
221
+ "type": "text",
222
+ "primaryKey": false,
223
+ "notNull": false,
224
+ "autoincrement": false
225
+ },
226
+ "changed": {
227
+ "name": "changed",
228
+ "type": "integer",
229
+ "primaryKey": false,
230
+ "notNull": true,
231
+ "autoincrement": false,
232
+ "default": false
233
+ },
234
+ "created_at": {
235
+ "name": "created_at",
236
+ "type": "integer",
237
+ "primaryKey": false,
238
+ "notNull": true,
239
+ "autoincrement": false,
240
+ "default": "(unixepoch() * 1000)"
241
+ }
242
+ },
243
+ "indexes": {
244
+ "assistant_message_chat": {
245
+ "name": "assistant_message_chat",
246
+ "columns": [
247
+ "chat_id",
248
+ "created_at"
249
+ ],
250
+ "isUnique": false
251
+ }
252
+ },
253
+ "foreignKeys": {
254
+ "assistant_message_chat_id_assistant_chat_id_fk": {
255
+ "name": "assistant_message_chat_id_assistant_chat_id_fk",
256
+ "tableFrom": "assistant_message",
257
+ "tableTo": "assistant_chat",
258
+ "columnsFrom": [
259
+ "chat_id"
260
+ ],
261
+ "columnsTo": [
262
+ "id"
263
+ ],
264
+ "onDelete": "cascade",
265
+ "onUpdate": "no action"
266
+ }
267
+ },
268
+ "compositePrimaryKeys": {},
269
+ "uniqueConstraints": {},
270
+ "checkConstraints": {}
271
+ },
272
+ "device_call": {
273
+ "name": "device_call",
274
+ "columns": {
275
+ "id": {
276
+ "name": "id",
277
+ "type": "integer",
278
+ "primaryKey": true,
279
+ "notNull": true,
280
+ "autoincrement": true
281
+ },
282
+ "run_id": {
283
+ "name": "run_id",
284
+ "type": "text",
285
+ "primaryKey": false,
286
+ "notNull": true,
287
+ "autoincrement": false
288
+ },
289
+ "req_id": {
290
+ "name": "req_id",
291
+ "type": "text",
292
+ "primaryKey": false,
293
+ "notNull": true,
294
+ "autoincrement": false
295
+ },
296
+ "request": {
297
+ "name": "request",
298
+ "type": "text",
299
+ "primaryKey": false,
300
+ "notNull": true,
301
+ "autoincrement": false
302
+ },
303
+ "answer": {
304
+ "name": "answer",
305
+ "type": "text",
306
+ "primaryKey": false,
307
+ "notNull": false,
308
+ "autoincrement": false
309
+ },
310
+ "created_at": {
311
+ "name": "created_at",
312
+ "type": "integer",
313
+ "primaryKey": false,
314
+ "notNull": true,
315
+ "autoincrement": false,
316
+ "default": "(unixepoch() * 1000)"
317
+ }
318
+ },
319
+ "indexes": {
320
+ "device_call_req": {
321
+ "name": "device_call_req",
322
+ "columns": [
323
+ "req_id"
324
+ ],
325
+ "isUnique": true
326
+ },
327
+ "device_call_run": {
328
+ "name": "device_call_run",
329
+ "columns": [
330
+ "run_id"
331
+ ],
332
+ "isUnique": false
333
+ }
334
+ },
335
+ "foreignKeys": {
336
+ "device_call_run_id_run_id_fk": {
337
+ "name": "device_call_run_id_run_id_fk",
338
+ "tableFrom": "device_call",
339
+ "tableTo": "run",
340
+ "columnsFrom": [
341
+ "run_id"
342
+ ],
343
+ "columnsTo": [
344
+ "id"
345
+ ],
346
+ "onDelete": "cascade",
347
+ "onUpdate": "no action"
348
+ }
349
+ },
350
+ "compositePrimaryKeys": {},
351
+ "uniqueConstraints": {},
352
+ "checkConstraints": {}
353
+ },
354
+ "live_change": {
355
+ "name": "live_change",
356
+ "columns": {
357
+ "seq": {
358
+ "name": "seq",
359
+ "type": "integer",
360
+ "primaryKey": true,
361
+ "notNull": true,
362
+ "autoincrement": true
363
+ },
364
+ "project_id": {
365
+ "name": "project_id",
366
+ "type": "text",
367
+ "primaryKey": false,
368
+ "notNull": false,
369
+ "autoincrement": false
370
+ },
371
+ "kind": {
372
+ "name": "kind",
373
+ "type": "text",
374
+ "primaryKey": false,
375
+ "notNull": true,
376
+ "autoincrement": false
377
+ },
378
+ "op": {
379
+ "name": "op",
380
+ "type": "text",
381
+ "primaryKey": false,
382
+ "notNull": true,
383
+ "autoincrement": false
384
+ },
385
+ "item": {
386
+ "name": "item",
387
+ "type": "text",
388
+ "primaryKey": false,
389
+ "notNull": true,
390
+ "autoincrement": false
391
+ },
392
+ "parent": {
393
+ "name": "parent",
394
+ "type": "text",
395
+ "primaryKey": false,
396
+ "notNull": false,
397
+ "autoincrement": false
398
+ },
399
+ "at": {
400
+ "name": "at",
401
+ "type": "integer",
402
+ "primaryKey": false,
403
+ "notNull": true,
404
+ "autoincrement": false,
405
+ "default": "(unixepoch() * 1000)"
406
+ }
407
+ },
408
+ "indexes": {
409
+ "live_change_at": {
410
+ "name": "live_change_at",
411
+ "columns": [
412
+ "at"
413
+ ],
414
+ "isUnique": false
415
+ }
416
+ },
417
+ "foreignKeys": {},
418
+ "compositePrimaryKeys": {},
419
+ "uniqueConstraints": {},
420
+ "checkConstraints": {}
421
+ },
422
+ "marketplace_star": {
423
+ "name": "marketplace_star",
424
+ "columns": {
425
+ "tenant_id": {
426
+ "name": "tenant_id",
427
+ "type": "text",
428
+ "primaryKey": false,
429
+ "notNull": true,
430
+ "autoincrement": false
431
+ },
432
+ "entry_id": {
433
+ "name": "entry_id",
434
+ "type": "text",
435
+ "primaryKey": false,
436
+ "notNull": true,
437
+ "autoincrement": false
438
+ },
439
+ "created_at": {
440
+ "name": "created_at",
441
+ "type": "integer",
442
+ "primaryKey": false,
443
+ "notNull": true,
444
+ "autoincrement": false,
445
+ "default": "(unixepoch() * 1000)"
446
+ }
447
+ },
448
+ "indexes": {},
449
+ "foreignKeys": {},
450
+ "compositePrimaryKeys": {
451
+ "marketplace_star_tenant_id_entry_id_pk": {
452
+ "columns": [
453
+ "tenant_id",
454
+ "entry_id"
455
+ ],
456
+ "name": "marketplace_star_tenant_id_entry_id_pk"
457
+ }
458
+ },
459
+ "uniqueConstraints": {},
460
+ "checkConstraints": {}
461
+ },
462
+ "plugin_connection": {
463
+ "name": "plugin_connection",
464
+ "columns": {
465
+ "id": {
466
+ "name": "id",
467
+ "type": "text",
468
+ "primaryKey": true,
469
+ "notNull": true,
470
+ "autoincrement": false
471
+ },
472
+ "plugin": {
473
+ "name": "plugin",
474
+ "type": "text",
475
+ "primaryKey": false,
476
+ "notNull": true,
477
+ "autoincrement": false
478
+ },
479
+ "project_id": {
480
+ "name": "project_id",
481
+ "type": "text",
482
+ "primaryKey": false,
483
+ "notNull": true,
484
+ "autoincrement": false
485
+ },
486
+ "connector": {
487
+ "name": "connector",
488
+ "type": "text",
489
+ "primaryKey": false,
490
+ "notNull": true,
491
+ "autoincrement": false
492
+ },
493
+ "label": {
494
+ "name": "label",
495
+ "type": "text",
496
+ "primaryKey": false,
497
+ "notNull": true,
498
+ "autoincrement": false
499
+ },
500
+ "actions": {
501
+ "name": "actions",
502
+ "type": "text",
503
+ "primaryKey": false,
504
+ "notNull": true,
505
+ "autoincrement": false
506
+ },
507
+ "data": {
508
+ "name": "data",
509
+ "type": "text",
510
+ "primaryKey": false,
511
+ "notNull": true,
512
+ "autoincrement": false
513
+ },
514
+ "created_by": {
515
+ "name": "created_by",
516
+ "type": "text",
517
+ "primaryKey": false,
518
+ "notNull": false,
519
+ "autoincrement": false
520
+ },
521
+ "created_at": {
522
+ "name": "created_at",
523
+ "type": "integer",
524
+ "primaryKey": false,
525
+ "notNull": true,
526
+ "autoincrement": false,
527
+ "default": "(unixepoch() * 1000)"
528
+ },
529
+ "updated_at": {
530
+ "name": "updated_at",
531
+ "type": "integer",
532
+ "primaryKey": false,
533
+ "notNull": true,
534
+ "autoincrement": false,
535
+ "default": "(unixepoch() * 1000)"
536
+ }
537
+ },
538
+ "indexes": {
539
+ "plugin_connection_space": {
540
+ "name": "plugin_connection_space",
541
+ "columns": [
542
+ "plugin",
543
+ "project_id"
544
+ ],
545
+ "isUnique": false
546
+ }
547
+ },
548
+ "foreignKeys": {
549
+ "plugin_connection_project_id_project_id_fk": {
550
+ "name": "plugin_connection_project_id_project_id_fk",
551
+ "tableFrom": "plugin_connection",
552
+ "tableTo": "project",
553
+ "columnsFrom": [
554
+ "project_id"
555
+ ],
556
+ "columnsTo": [
557
+ "id"
558
+ ],
559
+ "onDelete": "cascade",
560
+ "onUpdate": "no action"
561
+ }
562
+ },
563
+ "compositePrimaryKeys": {},
564
+ "uniqueConstraints": {},
565
+ "checkConstraints": {}
566
+ },
567
+ "project": {
568
+ "name": "project",
569
+ "columns": {
570
+ "id": {
571
+ "name": "id",
572
+ "type": "text",
573
+ "primaryKey": true,
574
+ "notNull": true,
575
+ "autoincrement": false
576
+ },
577
+ "tenant_id": {
578
+ "name": "tenant_id",
579
+ "type": "text",
580
+ "primaryKey": false,
581
+ "notNull": true,
582
+ "autoincrement": false
583
+ },
584
+ "name": {
585
+ "name": "name",
586
+ "type": "text",
587
+ "primaryKey": false,
588
+ "notNull": true,
589
+ "autoincrement": false
590
+ },
591
+ "brand": {
592
+ "name": "brand",
593
+ "type": "text",
594
+ "primaryKey": false,
595
+ "notNull": true,
596
+ "autoincrement": false,
597
+ "default": "'{}'"
598
+ },
599
+ "facts": {
600
+ "name": "facts",
601
+ "type": "text",
602
+ "primaryKey": false,
603
+ "notNull": true,
604
+ "autoincrement": false,
605
+ "default": "'[]'"
606
+ },
607
+ "themes": {
608
+ "name": "themes",
609
+ "type": "text",
610
+ "primaryKey": false,
611
+ "notNull": true,
612
+ "autoincrement": false,
613
+ "default": "'[]'"
614
+ },
615
+ "page": {
616
+ "name": "page",
617
+ "type": "text",
618
+ "primaryKey": false,
619
+ "notNull": false,
620
+ "autoincrement": false
621
+ },
622
+ "mcp_servers": {
623
+ "name": "mcp_servers",
624
+ "type": "text",
625
+ "primaryKey": false,
626
+ "notNull": true,
627
+ "autoincrement": false,
628
+ "default": "'[]'"
629
+ },
630
+ "origin": {
631
+ "name": "origin",
632
+ "type": "text",
633
+ "primaryKey": false,
634
+ "notNull": false,
635
+ "autoincrement": false
636
+ },
637
+ "synced_at": {
638
+ "name": "synced_at",
639
+ "type": "integer",
640
+ "primaryKey": false,
641
+ "notNull": false,
642
+ "autoincrement": false
643
+ },
644
+ "created_at": {
645
+ "name": "created_at",
646
+ "type": "integer",
647
+ "primaryKey": false,
648
+ "notNull": true,
649
+ "autoincrement": false,
650
+ "default": "(unixepoch() * 1000)"
651
+ },
652
+ "updated_at": {
653
+ "name": "updated_at",
654
+ "type": "integer",
655
+ "primaryKey": false,
656
+ "notNull": true,
657
+ "autoincrement": false,
658
+ "default": "(unixepoch() * 1000)"
659
+ }
660
+ },
661
+ "indexes": {
662
+ "project_tenant": {
663
+ "name": "project_tenant",
664
+ "columns": [
665
+ "tenant_id"
666
+ ],
667
+ "isUnique": false
668
+ }
669
+ },
670
+ "foreignKeys": {},
671
+ "compositePrimaryKeys": {},
672
+ "uniqueConstraints": {},
673
+ "checkConstraints": {}
674
+ },
675
+ "project_chunk": {
676
+ "name": "project_chunk",
677
+ "columns": {
678
+ "id": {
679
+ "name": "id",
680
+ "type": "integer",
681
+ "primaryKey": true,
682
+ "notNull": true,
683
+ "autoincrement": true
684
+ },
685
+ "project_id": {
686
+ "name": "project_id",
687
+ "type": "text",
688
+ "primaryKey": false,
689
+ "notNull": true,
690
+ "autoincrement": false
691
+ },
692
+ "file_id": {
693
+ "name": "file_id",
694
+ "type": "text",
695
+ "primaryKey": false,
696
+ "notNull": false,
697
+ "autoincrement": false
698
+ },
699
+ "page_id": {
700
+ "name": "page_id",
701
+ "type": "text",
702
+ "primaryKey": false,
703
+ "notNull": false,
704
+ "autoincrement": false
705
+ },
706
+ "row_id": {
707
+ "name": "row_id",
708
+ "type": "text",
709
+ "primaryKey": false,
710
+ "notNull": false,
711
+ "autoincrement": false
712
+ },
713
+ "table_id": {
714
+ "name": "table_id",
715
+ "type": "text",
716
+ "primaryKey": false,
717
+ "notNull": false,
718
+ "autoincrement": false
719
+ },
720
+ "value_id": {
721
+ "name": "value_id",
722
+ "type": "text",
723
+ "primaryKey": false,
724
+ "notNull": false,
725
+ "autoincrement": false
726
+ },
727
+ "heading": {
728
+ "name": "heading",
729
+ "type": "text",
730
+ "primaryKey": false,
731
+ "notNull": false,
732
+ "autoincrement": false
733
+ },
734
+ "sheet": {
735
+ "name": "sheet",
736
+ "type": "integer",
737
+ "primaryKey": false,
738
+ "notNull": false,
739
+ "autoincrement": false
740
+ },
741
+ "plugin": {
742
+ "name": "plugin",
743
+ "type": "text",
744
+ "primaryKey": false,
745
+ "notNull": false,
746
+ "autoincrement": false
747
+ },
748
+ "ref": {
749
+ "name": "ref",
750
+ "type": "text",
751
+ "primaryKey": false,
752
+ "notNull": false,
753
+ "autoincrement": false
754
+ },
755
+ "title": {
756
+ "name": "title",
757
+ "type": "text",
758
+ "primaryKey": false,
759
+ "notNull": false,
760
+ "autoincrement": false
761
+ },
762
+ "link": {
763
+ "name": "link",
764
+ "type": "text",
765
+ "primaryKey": false,
766
+ "notNull": false,
767
+ "autoincrement": false
768
+ },
769
+ "idx": {
770
+ "name": "idx",
771
+ "type": "integer",
772
+ "primaryKey": false,
773
+ "notNull": true,
774
+ "autoincrement": false
775
+ },
776
+ "text": {
777
+ "name": "text",
778
+ "type": "text",
779
+ "primaryKey": false,
780
+ "notNull": true,
781
+ "autoincrement": false
782
+ },
783
+ "embedding": {
784
+ "name": "embedding",
785
+ "type": "blob",
786
+ "primaryKey": false,
787
+ "notNull": false,
788
+ "autoincrement": false
789
+ },
790
+ "model": {
791
+ "name": "model",
792
+ "type": "text",
793
+ "primaryKey": false,
794
+ "notNull": false,
795
+ "autoincrement": false
796
+ }
797
+ },
798
+ "indexes": {
799
+ "project_chunk_project": {
800
+ "name": "project_chunk_project",
801
+ "columns": [
802
+ "project_id",
803
+ "model"
804
+ ],
805
+ "isUnique": false
806
+ },
807
+ "project_chunk_file": {
808
+ "name": "project_chunk_file",
809
+ "columns": [
810
+ "file_id"
811
+ ],
812
+ "isUnique": false
813
+ },
814
+ "project_chunk_ref": {
815
+ "name": "project_chunk_ref",
816
+ "columns": [
817
+ "project_id",
818
+ "plugin",
819
+ "ref"
820
+ ],
821
+ "isUnique": false
822
+ },
823
+ "project_chunk_page": {
824
+ "name": "project_chunk_page",
825
+ "columns": [
826
+ "page_id"
827
+ ],
828
+ "isUnique": false
829
+ },
830
+ "project_chunk_row": {
831
+ "name": "project_chunk_row",
832
+ "columns": [
833
+ "row_id"
834
+ ],
835
+ "isUnique": false
836
+ },
837
+ "project_chunk_table": {
838
+ "name": "project_chunk_table",
839
+ "columns": [
840
+ "table_id"
841
+ ],
842
+ "isUnique": false
843
+ },
844
+ "project_chunk_value": {
845
+ "name": "project_chunk_value",
846
+ "columns": [
847
+ "value_id"
848
+ ],
849
+ "isUnique": false
850
+ }
851
+ },
852
+ "foreignKeys": {
853
+ "project_chunk_project_id_project_id_fk": {
854
+ "name": "project_chunk_project_id_project_id_fk",
855
+ "tableFrom": "project_chunk",
856
+ "tableTo": "project",
857
+ "columnsFrom": [
858
+ "project_id"
859
+ ],
860
+ "columnsTo": [
861
+ "id"
862
+ ],
863
+ "onDelete": "cascade",
864
+ "onUpdate": "no action"
865
+ },
866
+ "project_chunk_file_id_project_file_id_fk": {
867
+ "name": "project_chunk_file_id_project_file_id_fk",
868
+ "tableFrom": "project_chunk",
869
+ "tableTo": "project_file",
870
+ "columnsFrom": [
871
+ "file_id"
872
+ ],
873
+ "columnsTo": [
874
+ "id"
875
+ ],
876
+ "onDelete": "cascade",
877
+ "onUpdate": "no action"
878
+ },
879
+ "project_chunk_page_id_space_page_id_fk": {
880
+ "name": "project_chunk_page_id_space_page_id_fk",
881
+ "tableFrom": "project_chunk",
882
+ "tableTo": "space_page",
883
+ "columnsFrom": [
884
+ "page_id"
885
+ ],
886
+ "columnsTo": [
887
+ "id"
888
+ ],
889
+ "onDelete": "cascade",
890
+ "onUpdate": "no action"
891
+ },
892
+ "project_chunk_row_id_space_table_row_id_fk": {
893
+ "name": "project_chunk_row_id_space_table_row_id_fk",
894
+ "tableFrom": "project_chunk",
895
+ "tableTo": "space_table_row",
896
+ "columnsFrom": [
897
+ "row_id"
898
+ ],
899
+ "columnsTo": [
900
+ "id"
901
+ ],
902
+ "onDelete": "cascade",
903
+ "onUpdate": "no action"
904
+ },
905
+ "project_chunk_table_id_space_table_id_fk": {
906
+ "name": "project_chunk_table_id_space_table_id_fk",
907
+ "tableFrom": "project_chunk",
908
+ "tableTo": "space_table",
909
+ "columnsFrom": [
910
+ "table_id"
911
+ ],
912
+ "columnsTo": [
913
+ "id"
914
+ ],
915
+ "onDelete": "cascade",
916
+ "onUpdate": "no action"
917
+ },
918
+ "project_chunk_value_id_space_category_value_id_fk": {
919
+ "name": "project_chunk_value_id_space_category_value_id_fk",
920
+ "tableFrom": "project_chunk",
921
+ "tableTo": "space_category_value",
922
+ "columnsFrom": [
923
+ "value_id"
924
+ ],
925
+ "columnsTo": [
926
+ "id"
927
+ ],
928
+ "onDelete": "cascade",
929
+ "onUpdate": "no action"
930
+ }
931
+ },
932
+ "compositePrimaryKeys": {},
933
+ "uniqueConstraints": {},
934
+ "checkConstraints": {}
935
+ },
936
+ "project_connector": {
937
+ "name": "project_connector",
938
+ "columns": {
939
+ "project_id": {
940
+ "name": "project_id",
941
+ "type": "text",
942
+ "primaryKey": false,
943
+ "notNull": true,
944
+ "autoincrement": false
945
+ },
946
+ "id": {
947
+ "name": "id",
948
+ "type": "text",
949
+ "primaryKey": false,
950
+ "notNull": true,
951
+ "autoincrement": false
952
+ },
953
+ "record": {
954
+ "name": "record",
955
+ "type": "text",
956
+ "primaryKey": false,
957
+ "notNull": true,
958
+ "autoincrement": false
959
+ },
960
+ "created_at": {
961
+ "name": "created_at",
962
+ "type": "integer",
963
+ "primaryKey": false,
964
+ "notNull": true,
965
+ "autoincrement": false,
966
+ "default": "(unixepoch() * 1000)"
967
+ },
968
+ "updated_at": {
969
+ "name": "updated_at",
970
+ "type": "integer",
971
+ "primaryKey": false,
972
+ "notNull": true,
973
+ "autoincrement": false,
974
+ "default": "(unixepoch() * 1000)"
975
+ }
976
+ },
977
+ "indexes": {},
978
+ "foreignKeys": {
979
+ "project_connector_project_id_project_id_fk": {
980
+ "name": "project_connector_project_id_project_id_fk",
981
+ "tableFrom": "project_connector",
982
+ "tableTo": "project",
983
+ "columnsFrom": [
984
+ "project_id"
985
+ ],
986
+ "columnsTo": [
987
+ "id"
988
+ ],
989
+ "onDelete": "cascade",
990
+ "onUpdate": "no action"
991
+ }
992
+ },
993
+ "compositePrimaryKeys": {
994
+ "project_connector_project_id_id_pk": {
995
+ "columns": [
996
+ "project_id",
997
+ "id"
998
+ ],
999
+ "name": "project_connector_project_id_id_pk"
1000
+ }
1001
+ },
1002
+ "uniqueConstraints": {},
1003
+ "checkConstraints": {}
1004
+ },
1005
+ "project_file": {
1006
+ "name": "project_file",
1007
+ "columns": {
1008
+ "id": {
1009
+ "name": "id",
1010
+ "type": "text",
1011
+ "primaryKey": true,
1012
+ "notNull": true,
1013
+ "autoincrement": false
1014
+ },
1015
+ "project_id": {
1016
+ "name": "project_id",
1017
+ "type": "text",
1018
+ "primaryKey": false,
1019
+ "notNull": true,
1020
+ "autoincrement": false
1021
+ },
1022
+ "kind": {
1023
+ "name": "kind",
1024
+ "type": "text",
1025
+ "primaryKey": false,
1026
+ "notNull": true,
1027
+ "autoincrement": false
1028
+ },
1029
+ "name": {
1030
+ "name": "name",
1031
+ "type": "text",
1032
+ "primaryKey": false,
1033
+ "notNull": true,
1034
+ "autoincrement": false
1035
+ },
1036
+ "mime": {
1037
+ "name": "mime",
1038
+ "type": "text",
1039
+ "primaryKey": false,
1040
+ "notNull": true,
1041
+ "autoincrement": false
1042
+ },
1043
+ "size": {
1044
+ "name": "size",
1045
+ "type": "integer",
1046
+ "primaryKey": false,
1047
+ "notNull": true,
1048
+ "autoincrement": false
1049
+ },
1050
+ "description": {
1051
+ "name": "description",
1052
+ "type": "text",
1053
+ "primaryKey": false,
1054
+ "notNull": true,
1055
+ "autoincrement": false,
1056
+ "default": "''"
1057
+ },
1058
+ "source": {
1059
+ "name": "source",
1060
+ "type": "text",
1061
+ "primaryKey": false,
1062
+ "notNull": false,
1063
+ "autoincrement": false
1064
+ },
1065
+ "position": {
1066
+ "name": "position",
1067
+ "type": "integer",
1068
+ "primaryKey": false,
1069
+ "notNull": true,
1070
+ "autoincrement": false,
1071
+ "default": 0
1072
+ },
1073
+ "status": {
1074
+ "name": "status",
1075
+ "type": "text",
1076
+ "primaryKey": false,
1077
+ "notNull": true,
1078
+ "autoincrement": false,
1079
+ "default": "'ready'"
1080
+ },
1081
+ "error": {
1082
+ "name": "error",
1083
+ "type": "text",
1084
+ "primaryKey": false,
1085
+ "notNull": false,
1086
+ "autoincrement": false
1087
+ },
1088
+ "text_hash": {
1089
+ "name": "text_hash",
1090
+ "type": "text",
1091
+ "primaryKey": false,
1092
+ "notNull": false,
1093
+ "autoincrement": false
1094
+ },
1095
+ "pages": {
1096
+ "name": "pages",
1097
+ "type": "integer",
1098
+ "primaryKey": false,
1099
+ "notNull": false,
1100
+ "autoincrement": false
1101
+ },
1102
+ "chars": {
1103
+ "name": "chars",
1104
+ "type": "integer",
1105
+ "primaryKey": false,
1106
+ "notNull": false,
1107
+ "autoincrement": false
1108
+ },
1109
+ "indexed": {
1110
+ "name": "indexed",
1111
+ "type": "text",
1112
+ "primaryKey": false,
1113
+ "notNull": false,
1114
+ "autoincrement": false
1115
+ },
1116
+ "origin": {
1117
+ "name": "origin",
1118
+ "type": "text",
1119
+ "primaryKey": false,
1120
+ "notNull": false,
1121
+ "autoincrement": false
1122
+ },
1123
+ "origin_key": {
1124
+ "name": "origin_key",
1125
+ "type": "text",
1126
+ "primaryKey": false,
1127
+ "notNull": false,
1128
+ "autoincrement": false
1129
+ },
1130
+ "origin_label": {
1131
+ "name": "origin_label",
1132
+ "type": "text",
1133
+ "primaryKey": false,
1134
+ "notNull": false,
1135
+ "autoincrement": false
1136
+ },
1137
+ "created_at": {
1138
+ "name": "created_at",
1139
+ "type": "integer",
1140
+ "primaryKey": false,
1141
+ "notNull": true,
1142
+ "autoincrement": false,
1143
+ "default": "(unixepoch() * 1000)"
1144
+ },
1145
+ "updated_at": {
1146
+ "name": "updated_at",
1147
+ "type": "integer",
1148
+ "primaryKey": false,
1149
+ "notNull": true,
1150
+ "autoincrement": false,
1151
+ "default": "(unixepoch() * 1000)"
1152
+ }
1153
+ },
1154
+ "indexes": {
1155
+ "project_file_project": {
1156
+ "name": "project_file_project",
1157
+ "columns": [
1158
+ "project_id",
1159
+ "kind",
1160
+ "position"
1161
+ ],
1162
+ "isUnique": false
1163
+ },
1164
+ "project_file_origin": {
1165
+ "name": "project_file_origin",
1166
+ "columns": [
1167
+ "project_id",
1168
+ "origin",
1169
+ "origin_key"
1170
+ ],
1171
+ "isUnique": true
1172
+ }
1173
+ },
1174
+ "foreignKeys": {
1175
+ "project_file_project_id_project_id_fk": {
1176
+ "name": "project_file_project_id_project_id_fk",
1177
+ "tableFrom": "project_file",
1178
+ "tableTo": "project",
1179
+ "columnsFrom": [
1180
+ "project_id"
1181
+ ],
1182
+ "columnsTo": [
1183
+ "id"
1184
+ ],
1185
+ "onDelete": "cascade",
1186
+ "onUpdate": "no action"
1187
+ }
1188
+ },
1189
+ "compositePrimaryKeys": {},
1190
+ "uniqueConstraints": {},
1191
+ "checkConstraints": {}
1192
+ },
1193
+ "run": {
1194
+ "name": "run",
1195
+ "columns": {
1196
+ "id": {
1197
+ "name": "id",
1198
+ "type": "text",
1199
+ "primaryKey": true,
1200
+ "notNull": true,
1201
+ "autoincrement": false
1202
+ },
1203
+ "wizard_id": {
1204
+ "name": "wizard_id",
1205
+ "type": "text",
1206
+ "primaryKey": false,
1207
+ "notNull": true,
1208
+ "autoincrement": false
1209
+ },
1210
+ "tenant_id": {
1211
+ "name": "tenant_id",
1212
+ "type": "text",
1213
+ "primaryKey": false,
1214
+ "notNull": true,
1215
+ "autoincrement": false
1216
+ },
1217
+ "definition": {
1218
+ "name": "definition",
1219
+ "type": "text",
1220
+ "primaryKey": false,
1221
+ "notNull": true,
1222
+ "autoincrement": false
1223
+ },
1224
+ "files": {
1225
+ "name": "files",
1226
+ "type": "text",
1227
+ "primaryKey": false,
1228
+ "notNull": true,
1229
+ "autoincrement": false,
1230
+ "default": "'[]'"
1231
+ },
1232
+ "version": {
1233
+ "name": "version",
1234
+ "type": "integer",
1235
+ "primaryKey": false,
1236
+ "notNull": false,
1237
+ "autoincrement": false
1238
+ },
1239
+ "mode": {
1240
+ "name": "mode",
1241
+ "type": "text",
1242
+ "primaryKey": false,
1243
+ "notNull": true,
1244
+ "autoincrement": false
1245
+ },
1246
+ "runner": {
1247
+ "name": "runner",
1248
+ "type": "text",
1249
+ "primaryKey": false,
1250
+ "notNull": false,
1251
+ "autoincrement": false
1252
+ },
1253
+ "lang": {
1254
+ "name": "lang",
1255
+ "type": "text",
1256
+ "primaryKey": false,
1257
+ "notNull": false,
1258
+ "autoincrement": false
1259
+ },
1260
+ "visitor_id": {
1261
+ "name": "visitor_id",
1262
+ "type": "text",
1263
+ "primaryKey": false,
1264
+ "notNull": false,
1265
+ "autoincrement": false
1266
+ },
1267
+ "user_id": {
1268
+ "name": "user_id",
1269
+ "type": "text",
1270
+ "primaryKey": false,
1271
+ "notNull": false,
1272
+ "autoincrement": false
1273
+ },
1274
+ "ip_hash": {
1275
+ "name": "ip_hash",
1276
+ "type": "text",
1277
+ "primaryKey": false,
1278
+ "notNull": false,
1279
+ "autoincrement": false
1280
+ },
1281
+ "origin": {
1282
+ "name": "origin",
1283
+ "type": "text",
1284
+ "primaryKey": false,
1285
+ "notNull": false,
1286
+ "autoincrement": false
1287
+ },
1288
+ "client": {
1289
+ "name": "client",
1290
+ "type": "text",
1291
+ "primaryKey": false,
1292
+ "notNull": false,
1293
+ "autoincrement": false
1294
+ },
1295
+ "status": {
1296
+ "name": "status",
1297
+ "type": "text",
1298
+ "primaryKey": false,
1299
+ "notNull": true,
1300
+ "autoincrement": false
1301
+ },
1302
+ "cursor": {
1303
+ "name": "cursor",
1304
+ "type": "text",
1305
+ "primaryKey": false,
1306
+ "notNull": false,
1307
+ "autoincrement": false
1308
+ },
1309
+ "state": {
1310
+ "name": "state",
1311
+ "type": "text",
1312
+ "primaryKey": false,
1313
+ "notNull": true,
1314
+ "autoincrement": false
1315
+ },
1316
+ "error": {
1317
+ "name": "error",
1318
+ "type": "text",
1319
+ "primaryKey": false,
1320
+ "notNull": false,
1321
+ "autoincrement": false
1322
+ },
1323
+ "ask": {
1324
+ "name": "ask",
1325
+ "type": "text",
1326
+ "primaryKey": false,
1327
+ "notNull": false,
1328
+ "autoincrement": false
1329
+ },
1330
+ "answer": {
1331
+ "name": "answer",
1332
+ "type": "text",
1333
+ "primaryKey": false,
1334
+ "notNull": false,
1335
+ "autoincrement": false
1336
+ },
1337
+ "unattended": {
1338
+ "name": "unattended",
1339
+ "type": "integer",
1340
+ "primaryKey": false,
1341
+ "notNull": true,
1342
+ "autoincrement": false,
1343
+ "default": false
1344
+ },
1345
+ "device_offer": {
1346
+ "name": "device_offer",
1347
+ "type": "text",
1348
+ "primaryKey": false,
1349
+ "notNull": false,
1350
+ "autoincrement": false
1351
+ },
1352
+ "cost_micros": {
1353
+ "name": "cost_micros",
1354
+ "type": "integer",
1355
+ "primaryKey": false,
1356
+ "notNull": true,
1357
+ "autoincrement": false,
1358
+ "default": 0
1359
+ },
1360
+ "share_token": {
1361
+ "name": "share_token",
1362
+ "type": "text",
1363
+ "primaryKey": false,
1364
+ "notNull": false,
1365
+ "autoincrement": false
1366
+ },
1367
+ "shared_at": {
1368
+ "name": "shared_at",
1369
+ "type": "integer",
1370
+ "primaryKey": false,
1371
+ "notNull": false,
1372
+ "autoincrement": false
1373
+ },
1374
+ "expires_at": {
1375
+ "name": "expires_at",
1376
+ "type": "integer",
1377
+ "primaryKey": false,
1378
+ "notNull": false,
1379
+ "autoincrement": false
1380
+ },
1381
+ "created_at": {
1382
+ "name": "created_at",
1383
+ "type": "integer",
1384
+ "primaryKey": false,
1385
+ "notNull": true,
1386
+ "autoincrement": false,
1387
+ "default": "(unixepoch() * 1000)"
1388
+ },
1389
+ "updated_at": {
1390
+ "name": "updated_at",
1391
+ "type": "integer",
1392
+ "primaryKey": false,
1393
+ "notNull": true,
1394
+ "autoincrement": false,
1395
+ "default": "(unixepoch() * 1000)"
1396
+ }
1397
+ },
1398
+ "indexes": {
1399
+ "run_share_token": {
1400
+ "name": "run_share_token",
1401
+ "columns": [
1402
+ "share_token"
1403
+ ],
1404
+ "isUnique": true
1405
+ },
1406
+ "run_expires": {
1407
+ "name": "run_expires",
1408
+ "columns": [
1409
+ "expires_at"
1410
+ ],
1411
+ "isUnique": false
1412
+ },
1413
+ "run_wizard": {
1414
+ "name": "run_wizard",
1415
+ "columns": [
1416
+ "wizard_id",
1417
+ "created_at"
1418
+ ],
1419
+ "isUnique": false
1420
+ },
1421
+ "run_visitor": {
1422
+ "name": "run_visitor",
1423
+ "columns": [
1424
+ "visitor_id",
1425
+ "created_at"
1426
+ ],
1427
+ "isUnique": false
1428
+ },
1429
+ "run_status": {
1430
+ "name": "run_status",
1431
+ "columns": [
1432
+ "status"
1433
+ ],
1434
+ "isUnique": false
1435
+ }
1436
+ },
1437
+ "foreignKeys": {
1438
+ "run_wizard_id_wizard_id_fk": {
1439
+ "name": "run_wizard_id_wizard_id_fk",
1440
+ "tableFrom": "run",
1441
+ "tableTo": "wizard",
1442
+ "columnsFrom": [
1443
+ "wizard_id"
1444
+ ],
1445
+ "columnsTo": [
1446
+ "id"
1447
+ ],
1448
+ "onDelete": "cascade",
1449
+ "onUpdate": "no action"
1450
+ }
1451
+ },
1452
+ "compositePrimaryKeys": {},
1453
+ "uniqueConstraints": {},
1454
+ "checkConstraints": {}
1455
+ },
1456
+ "run_cost": {
1457
+ "name": "run_cost",
1458
+ "columns": {
1459
+ "run_id": {
1460
+ "name": "run_id",
1461
+ "type": "text",
1462
+ "primaryKey": false,
1463
+ "notNull": true,
1464
+ "autoincrement": false
1465
+ },
1466
+ "step_id": {
1467
+ "name": "step_id",
1468
+ "type": "text",
1469
+ "primaryKey": false,
1470
+ "notNull": true,
1471
+ "autoincrement": false
1472
+ },
1473
+ "micros": {
1474
+ "name": "micros",
1475
+ "type": "integer",
1476
+ "primaryKey": false,
1477
+ "notNull": true,
1478
+ "autoincrement": false,
1479
+ "default": 0
1480
+ }
1481
+ },
1482
+ "indexes": {},
1483
+ "foreignKeys": {
1484
+ "run_cost_run_id_run_id_fk": {
1485
+ "name": "run_cost_run_id_run_id_fk",
1486
+ "tableFrom": "run_cost",
1487
+ "tableTo": "run",
1488
+ "columnsFrom": [
1489
+ "run_id"
1490
+ ],
1491
+ "columnsTo": [
1492
+ "id"
1493
+ ],
1494
+ "onDelete": "cascade",
1495
+ "onUpdate": "no action"
1496
+ }
1497
+ },
1498
+ "compositePrimaryKeys": {
1499
+ "run_cost_run_id_step_id_pk": {
1500
+ "columns": [
1501
+ "run_id",
1502
+ "step_id"
1503
+ ],
1504
+ "name": "run_cost_run_id_step_id_pk"
1505
+ }
1506
+ },
1507
+ "uniqueConstraints": {},
1508
+ "checkConstraints": {}
1509
+ },
1510
+ "run_event": {
1511
+ "name": "run_event",
1512
+ "columns": {
1513
+ "id": {
1514
+ "name": "id",
1515
+ "type": "integer",
1516
+ "primaryKey": true,
1517
+ "notNull": true,
1518
+ "autoincrement": true
1519
+ },
1520
+ "run_id": {
1521
+ "name": "run_id",
1522
+ "type": "text",
1523
+ "primaryKey": false,
1524
+ "notNull": true,
1525
+ "autoincrement": false
1526
+ },
1527
+ "step_id": {
1528
+ "name": "step_id",
1529
+ "type": "text",
1530
+ "primaryKey": false,
1531
+ "notNull": false,
1532
+ "autoincrement": false
1533
+ },
1534
+ "type": {
1535
+ "name": "type",
1536
+ "type": "text",
1537
+ "primaryKey": false,
1538
+ "notNull": true,
1539
+ "autoincrement": false
1540
+ },
1541
+ "message": {
1542
+ "name": "message",
1543
+ "type": "text",
1544
+ "primaryKey": false,
1545
+ "notNull": true,
1546
+ "autoincrement": false
1547
+ },
1548
+ "note": {
1549
+ "name": "note",
1550
+ "type": "text",
1551
+ "primaryKey": false,
1552
+ "notNull": false,
1553
+ "autoincrement": false
1554
+ },
1555
+ "asset_id": {
1556
+ "name": "asset_id",
1557
+ "type": "text",
1558
+ "primaryKey": false,
1559
+ "notNull": false,
1560
+ "autoincrement": false
1561
+ },
1562
+ "created_at": {
1563
+ "name": "created_at",
1564
+ "type": "integer",
1565
+ "primaryKey": false,
1566
+ "notNull": true,
1567
+ "autoincrement": false,
1568
+ "default": "(unixepoch() * 1000)"
1569
+ }
1570
+ },
1571
+ "indexes": {
1572
+ "run_event_run": {
1573
+ "name": "run_event_run",
1574
+ "columns": [
1575
+ "run_id",
1576
+ "id"
1577
+ ],
1578
+ "isUnique": false
1579
+ }
1580
+ },
1581
+ "foreignKeys": {
1582
+ "run_event_run_id_run_id_fk": {
1583
+ "name": "run_event_run_id_run_id_fk",
1584
+ "tableFrom": "run_event",
1585
+ "tableTo": "run",
1586
+ "columnsFrom": [
1587
+ "run_id"
1588
+ ],
1589
+ "columnsTo": [
1590
+ "id"
1591
+ ],
1592
+ "onDelete": "cascade",
1593
+ "onUpdate": "no action"
1594
+ }
1595
+ },
1596
+ "compositePrimaryKeys": {},
1597
+ "uniqueConstraints": {},
1598
+ "checkConstraints": {}
1599
+ },
1600
+ "share_job": {
1601
+ "name": "share_job",
1602
+ "columns": {
1603
+ "id": {
1604
+ "name": "id",
1605
+ "type": "text",
1606
+ "primaryKey": true,
1607
+ "notNull": true,
1608
+ "autoincrement": false
1609
+ },
1610
+ "run_id": {
1611
+ "name": "run_id",
1612
+ "type": "text",
1613
+ "primaryKey": false,
1614
+ "notNull": true,
1615
+ "autoincrement": false
1616
+ },
1617
+ "tenant_id": {
1618
+ "name": "tenant_id",
1619
+ "type": "text",
1620
+ "primaryKey": false,
1621
+ "notNull": true,
1622
+ "autoincrement": false
1623
+ },
1624
+ "target": {
1625
+ "name": "target",
1626
+ "type": "text",
1627
+ "primaryKey": false,
1628
+ "notNull": true,
1629
+ "autoincrement": false
1630
+ },
1631
+ "name": {
1632
+ "name": "name",
1633
+ "type": "text",
1634
+ "primaryKey": false,
1635
+ "notNull": true,
1636
+ "autoincrement": false
1637
+ },
1638
+ "icon": {
1639
+ "name": "icon",
1640
+ "type": "text",
1641
+ "primaryKey": false,
1642
+ "notNull": true,
1643
+ "autoincrement": false
1644
+ },
1645
+ "status": {
1646
+ "name": "status",
1647
+ "type": "text",
1648
+ "primaryKey": false,
1649
+ "notNull": true,
1650
+ "autoincrement": false
1651
+ },
1652
+ "request": {
1653
+ "name": "request",
1654
+ "type": "text",
1655
+ "primaryKey": false,
1656
+ "notNull": true,
1657
+ "autoincrement": false
1658
+ },
1659
+ "events": {
1660
+ "name": "events",
1661
+ "type": "text",
1662
+ "primaryKey": false,
1663
+ "notNull": true,
1664
+ "autoincrement": false,
1665
+ "default": "'[]'"
1666
+ },
1667
+ "result": {
1668
+ "name": "result",
1669
+ "type": "text",
1670
+ "primaryKey": false,
1671
+ "notNull": false,
1672
+ "autoincrement": false
1673
+ },
1674
+ "error": {
1675
+ "name": "error",
1676
+ "type": "text",
1677
+ "primaryKey": false,
1678
+ "notNull": false,
1679
+ "autoincrement": false
1680
+ },
1681
+ "created_at": {
1682
+ "name": "created_at",
1683
+ "type": "integer",
1684
+ "primaryKey": false,
1685
+ "notNull": true,
1686
+ "autoincrement": false,
1687
+ "default": "(unixepoch() * 1000)"
1688
+ },
1689
+ "updated_at": {
1690
+ "name": "updated_at",
1691
+ "type": "integer",
1692
+ "primaryKey": false,
1693
+ "notNull": true,
1694
+ "autoincrement": false,
1695
+ "default": "(unixepoch() * 1000)"
1696
+ }
1697
+ },
1698
+ "indexes": {
1699
+ "share_job_run": {
1700
+ "name": "share_job_run",
1701
+ "columns": [
1702
+ "run_id",
1703
+ "created_at"
1704
+ ],
1705
+ "isUnique": false
1706
+ }
1707
+ },
1708
+ "foreignKeys": {
1709
+ "share_job_run_id_run_id_fk": {
1710
+ "name": "share_job_run_id_run_id_fk",
1711
+ "tableFrom": "share_job",
1712
+ "tableTo": "run",
1713
+ "columnsFrom": [
1714
+ "run_id"
1715
+ ],
1716
+ "columnsTo": [
1717
+ "id"
1718
+ ],
1719
+ "onDelete": "cascade",
1720
+ "onUpdate": "no action"
1721
+ }
1722
+ },
1723
+ "compositePrimaryKeys": {},
1724
+ "uniqueConstraints": {},
1725
+ "checkConstraints": {}
1726
+ },
1727
+ "space_category": {
1728
+ "name": "space_category",
1729
+ "columns": {
1730
+ "id": {
1731
+ "name": "id",
1732
+ "type": "text",
1733
+ "primaryKey": true,
1734
+ "notNull": true,
1735
+ "autoincrement": false
1736
+ },
1737
+ "tenant_id": {
1738
+ "name": "tenant_id",
1739
+ "type": "text",
1740
+ "primaryKey": false,
1741
+ "notNull": true,
1742
+ "autoincrement": false
1743
+ },
1744
+ "project_id": {
1745
+ "name": "project_id",
1746
+ "type": "text",
1747
+ "primaryKey": false,
1748
+ "notNull": true,
1749
+ "autoincrement": false
1750
+ },
1751
+ "name": {
1752
+ "name": "name",
1753
+ "type": "text",
1754
+ "primaryKey": false,
1755
+ "notNull": true,
1756
+ "autoincrement": false
1757
+ },
1758
+ "type": {
1759
+ "name": "type",
1760
+ "type": "text",
1761
+ "primaryKey": false,
1762
+ "notNull": true,
1763
+ "autoincrement": false
1764
+ },
1765
+ "unit": {
1766
+ "name": "unit",
1767
+ "type": "text",
1768
+ "primaryKey": false,
1769
+ "notNull": false,
1770
+ "autoincrement": false
1771
+ },
1772
+ "multiple": {
1773
+ "name": "multiple",
1774
+ "type": "integer",
1775
+ "primaryKey": false,
1776
+ "notNull": true,
1777
+ "autoincrement": false,
1778
+ "default": false
1779
+ },
1780
+ "ordered": {
1781
+ "name": "ordered",
1782
+ "type": "integer",
1783
+ "primaryKey": false,
1784
+ "notNull": true,
1785
+ "autoincrement": false,
1786
+ "default": false
1787
+ },
1788
+ "hint": {
1789
+ "name": "hint",
1790
+ "type": "text",
1791
+ "primaryKey": false,
1792
+ "notNull": false,
1793
+ "autoincrement": false
1794
+ },
1795
+ "origin": {
1796
+ "name": "origin",
1797
+ "type": "text",
1798
+ "primaryKey": false,
1799
+ "notNull": false,
1800
+ "autoincrement": false
1801
+ },
1802
+ "proposed": {
1803
+ "name": "proposed",
1804
+ "type": "integer",
1805
+ "primaryKey": false,
1806
+ "notNull": true,
1807
+ "autoincrement": false,
1808
+ "default": false
1809
+ },
1810
+ "table_id": {
1811
+ "name": "table_id",
1812
+ "type": "text",
1813
+ "primaryKey": false,
1814
+ "notNull": false,
1815
+ "autoincrement": false
1816
+ },
1817
+ "column_id": {
1818
+ "name": "column_id",
1819
+ "type": "text",
1820
+ "primaryKey": false,
1821
+ "notNull": false,
1822
+ "autoincrement": false
1823
+ },
1824
+ "position": {
1825
+ "name": "position",
1826
+ "type": "integer",
1827
+ "primaryKey": false,
1828
+ "notNull": true,
1829
+ "autoincrement": false,
1830
+ "default": 0
1831
+ },
1832
+ "created_at": {
1833
+ "name": "created_at",
1834
+ "type": "integer",
1835
+ "primaryKey": false,
1836
+ "notNull": true,
1837
+ "autoincrement": false,
1838
+ "default": "(unixepoch() * 1000)"
1839
+ },
1840
+ "updated_at": {
1841
+ "name": "updated_at",
1842
+ "type": "integer",
1843
+ "primaryKey": false,
1844
+ "notNull": true,
1845
+ "autoincrement": false,
1846
+ "default": "(unixepoch() * 1000)"
1847
+ }
1848
+ },
1849
+ "indexes": {
1850
+ "space_category_name": {
1851
+ "name": "space_category_name",
1852
+ "columns": [
1853
+ "project_id",
1854
+ "name"
1855
+ ],
1856
+ "isUnique": true
1857
+ }
1858
+ },
1859
+ "foreignKeys": {
1860
+ "space_category_project_id_project_id_fk": {
1861
+ "name": "space_category_project_id_project_id_fk",
1862
+ "tableFrom": "space_category",
1863
+ "tableTo": "project",
1864
+ "columnsFrom": [
1865
+ "project_id"
1866
+ ],
1867
+ "columnsTo": [
1868
+ "id"
1869
+ ],
1870
+ "onDelete": "cascade",
1871
+ "onUpdate": "no action"
1872
+ },
1873
+ "space_category_table_id_space_table_id_fk": {
1874
+ "name": "space_category_table_id_space_table_id_fk",
1875
+ "tableFrom": "space_category",
1876
+ "tableTo": "space_table",
1877
+ "columnsFrom": [
1878
+ "table_id"
1879
+ ],
1880
+ "columnsTo": [
1881
+ "id"
1882
+ ],
1883
+ "onDelete": "set null",
1884
+ "onUpdate": "no action"
1885
+ }
1886
+ },
1887
+ "compositePrimaryKeys": {},
1888
+ "uniqueConstraints": {},
1889
+ "checkConstraints": {}
1890
+ },
1891
+ "space_category_value": {
1892
+ "name": "space_category_value",
1893
+ "columns": {
1894
+ "id": {
1895
+ "name": "id",
1896
+ "type": "text",
1897
+ "primaryKey": true,
1898
+ "notNull": true,
1899
+ "autoincrement": false
1900
+ },
1901
+ "category_id": {
1902
+ "name": "category_id",
1903
+ "type": "text",
1904
+ "primaryKey": false,
1905
+ "notNull": true,
1906
+ "autoincrement": false
1907
+ },
1908
+ "value": {
1909
+ "name": "value",
1910
+ "type": "text",
1911
+ "primaryKey": false,
1912
+ "notNull": true,
1913
+ "autoincrement": false
1914
+ },
1915
+ "position": {
1916
+ "name": "position",
1917
+ "type": "integer",
1918
+ "primaryKey": false,
1919
+ "notNull": true,
1920
+ "autoincrement": false,
1921
+ "default": 0
1922
+ },
1923
+ "summary": {
1924
+ "name": "summary",
1925
+ "type": "text",
1926
+ "primaryKey": false,
1927
+ "notNull": false,
1928
+ "autoincrement": false
1929
+ },
1930
+ "summary_at": {
1931
+ "name": "summary_at",
1932
+ "type": "integer",
1933
+ "primaryKey": false,
1934
+ "notNull": false,
1935
+ "autoincrement": false
1936
+ },
1937
+ "created_at": {
1938
+ "name": "created_at",
1939
+ "type": "integer",
1940
+ "primaryKey": false,
1941
+ "notNull": true,
1942
+ "autoincrement": false,
1943
+ "default": "(unixepoch() * 1000)"
1944
+ }
1945
+ },
1946
+ "indexes": {
1947
+ "space_category_value_value": {
1948
+ "name": "space_category_value_value",
1949
+ "columns": [
1950
+ "category_id",
1951
+ "value"
1952
+ ],
1953
+ "isUnique": true
1954
+ }
1955
+ },
1956
+ "foreignKeys": {
1957
+ "space_category_value_category_id_space_category_id_fk": {
1958
+ "name": "space_category_value_category_id_space_category_id_fk",
1959
+ "tableFrom": "space_category_value",
1960
+ "tableTo": "space_category",
1961
+ "columnsFrom": [
1962
+ "category_id"
1963
+ ],
1964
+ "columnsTo": [
1965
+ "id"
1966
+ ],
1967
+ "onDelete": "cascade",
1968
+ "onUpdate": "no action"
1969
+ }
1970
+ },
1971
+ "compositePrimaryKeys": {},
1972
+ "uniqueConstraints": {},
1973
+ "checkConstraints": {}
1974
+ },
1975
+ "space_item_category": {
1976
+ "name": "space_item_category",
1977
+ "columns": {
1978
+ "id": {
1979
+ "name": "id",
1980
+ "type": "integer",
1981
+ "primaryKey": true,
1982
+ "notNull": true,
1983
+ "autoincrement": true
1984
+ },
1985
+ "project_id": {
1986
+ "name": "project_id",
1987
+ "type": "text",
1988
+ "primaryKey": false,
1989
+ "notNull": true,
1990
+ "autoincrement": false
1991
+ },
1992
+ "category_id": {
1993
+ "name": "category_id",
1994
+ "type": "text",
1995
+ "primaryKey": false,
1996
+ "notNull": true,
1997
+ "autoincrement": false
1998
+ },
1999
+ "page_id": {
2000
+ "name": "page_id",
2001
+ "type": "text",
2002
+ "primaryKey": false,
2003
+ "notNull": false,
2004
+ "autoincrement": false
2005
+ },
2006
+ "row_id": {
2007
+ "name": "row_id",
2008
+ "type": "text",
2009
+ "primaryKey": false,
2010
+ "notNull": false,
2011
+ "autoincrement": false
2012
+ },
2013
+ "table_id": {
2014
+ "name": "table_id",
2015
+ "type": "text",
2016
+ "primaryKey": false,
2017
+ "notNull": false,
2018
+ "autoincrement": false
2019
+ },
2020
+ "file_id": {
2021
+ "name": "file_id",
2022
+ "type": "text",
2023
+ "primaryKey": false,
2024
+ "notNull": false,
2025
+ "autoincrement": false
2026
+ },
2027
+ "value_id": {
2028
+ "name": "value_id",
2029
+ "type": "text",
2030
+ "primaryKey": false,
2031
+ "notNull": false,
2032
+ "autoincrement": false
2033
+ },
2034
+ "text": {
2035
+ "name": "text",
2036
+ "type": "text",
2037
+ "primaryKey": false,
2038
+ "notNull": false,
2039
+ "autoincrement": false
2040
+ },
2041
+ "num": {
2042
+ "name": "num",
2043
+ "type": "real",
2044
+ "primaryKey": false,
2045
+ "notNull": false,
2046
+ "autoincrement": false
2047
+ },
2048
+ "at": {
2049
+ "name": "at",
2050
+ "type": "integer",
2051
+ "primaryKey": false,
2052
+ "notNull": false,
2053
+ "autoincrement": false
2054
+ },
2055
+ "bool": {
2056
+ "name": "bool",
2057
+ "type": "integer",
2058
+ "primaryKey": false,
2059
+ "notNull": false,
2060
+ "autoincrement": false
2061
+ },
2062
+ "by": {
2063
+ "name": "by",
2064
+ "type": "text",
2065
+ "primaryKey": false,
2066
+ "notNull": true,
2067
+ "autoincrement": false,
2068
+ "default": "'person'"
2069
+ }
2070
+ },
2071
+ "indexes": {
2072
+ "space_item_category_category": {
2073
+ "name": "space_item_category_category",
2074
+ "columns": [
2075
+ "category_id",
2076
+ "value_id"
2077
+ ],
2078
+ "isUnique": false
2079
+ },
2080
+ "space_item_category_page": {
2081
+ "name": "space_item_category_page",
2082
+ "columns": [
2083
+ "page_id"
2084
+ ],
2085
+ "isUnique": false
2086
+ },
2087
+ "space_item_category_row": {
2088
+ "name": "space_item_category_row",
2089
+ "columns": [
2090
+ "row_id"
2091
+ ],
2092
+ "isUnique": false
2093
+ },
2094
+ "space_item_category_table": {
2095
+ "name": "space_item_category_table",
2096
+ "columns": [
2097
+ "table_id"
2098
+ ],
2099
+ "isUnique": false
2100
+ },
2101
+ "space_item_category_file": {
2102
+ "name": "space_item_category_file",
2103
+ "columns": [
2104
+ "file_id"
2105
+ ],
2106
+ "isUnique": false
2107
+ }
2108
+ },
2109
+ "foreignKeys": {
2110
+ "space_item_category_project_id_project_id_fk": {
2111
+ "name": "space_item_category_project_id_project_id_fk",
2112
+ "tableFrom": "space_item_category",
2113
+ "tableTo": "project",
2114
+ "columnsFrom": [
2115
+ "project_id"
2116
+ ],
2117
+ "columnsTo": [
2118
+ "id"
2119
+ ],
2120
+ "onDelete": "cascade",
2121
+ "onUpdate": "no action"
2122
+ },
2123
+ "space_item_category_category_id_space_category_id_fk": {
2124
+ "name": "space_item_category_category_id_space_category_id_fk",
2125
+ "tableFrom": "space_item_category",
2126
+ "tableTo": "space_category",
2127
+ "columnsFrom": [
2128
+ "category_id"
2129
+ ],
2130
+ "columnsTo": [
2131
+ "id"
2132
+ ],
2133
+ "onDelete": "cascade",
2134
+ "onUpdate": "no action"
2135
+ },
2136
+ "space_item_category_page_id_space_page_id_fk": {
2137
+ "name": "space_item_category_page_id_space_page_id_fk",
2138
+ "tableFrom": "space_item_category",
2139
+ "tableTo": "space_page",
2140
+ "columnsFrom": [
2141
+ "page_id"
2142
+ ],
2143
+ "columnsTo": [
2144
+ "id"
2145
+ ],
2146
+ "onDelete": "cascade",
2147
+ "onUpdate": "no action"
2148
+ },
2149
+ "space_item_category_row_id_space_table_row_id_fk": {
2150
+ "name": "space_item_category_row_id_space_table_row_id_fk",
2151
+ "tableFrom": "space_item_category",
2152
+ "tableTo": "space_table_row",
2153
+ "columnsFrom": [
2154
+ "row_id"
2155
+ ],
2156
+ "columnsTo": [
2157
+ "id"
2158
+ ],
2159
+ "onDelete": "cascade",
2160
+ "onUpdate": "no action"
2161
+ },
2162
+ "space_item_category_table_id_space_table_id_fk": {
2163
+ "name": "space_item_category_table_id_space_table_id_fk",
2164
+ "tableFrom": "space_item_category",
2165
+ "tableTo": "space_table",
2166
+ "columnsFrom": [
2167
+ "table_id"
2168
+ ],
2169
+ "columnsTo": [
2170
+ "id"
2171
+ ],
2172
+ "onDelete": "cascade",
2173
+ "onUpdate": "no action"
2174
+ },
2175
+ "space_item_category_file_id_project_file_id_fk": {
2176
+ "name": "space_item_category_file_id_project_file_id_fk",
2177
+ "tableFrom": "space_item_category",
2178
+ "tableTo": "project_file",
2179
+ "columnsFrom": [
2180
+ "file_id"
2181
+ ],
2182
+ "columnsTo": [
2183
+ "id"
2184
+ ],
2185
+ "onDelete": "cascade",
2186
+ "onUpdate": "no action"
2187
+ },
2188
+ "space_item_category_value_id_space_category_value_id_fk": {
2189
+ "name": "space_item_category_value_id_space_category_value_id_fk",
2190
+ "tableFrom": "space_item_category",
2191
+ "tableTo": "space_category_value",
2192
+ "columnsFrom": [
2193
+ "value_id"
2194
+ ],
2195
+ "columnsTo": [
2196
+ "id"
2197
+ ],
2198
+ "onDelete": "cascade",
2199
+ "onUpdate": "no action"
2200
+ }
2201
+ },
2202
+ "compositePrimaryKeys": {},
2203
+ "uniqueConstraints": {},
2204
+ "checkConstraints": {}
2205
+ },
2206
+ "space_page": {
2207
+ "name": "space_page",
2208
+ "columns": {
2209
+ "id": {
2210
+ "name": "id",
2211
+ "type": "text",
2212
+ "primaryKey": true,
2213
+ "notNull": true,
2214
+ "autoincrement": false
2215
+ },
2216
+ "tenant_id": {
2217
+ "name": "tenant_id",
2218
+ "type": "text",
2219
+ "primaryKey": false,
2220
+ "notNull": true,
2221
+ "autoincrement": false
2222
+ },
2223
+ "project_id": {
2224
+ "name": "project_id",
2225
+ "type": "text",
2226
+ "primaryKey": false,
2227
+ "notNull": true,
2228
+ "autoincrement": false
2229
+ },
2230
+ "wizard_id": {
2231
+ "name": "wizard_id",
2232
+ "type": "text",
2233
+ "primaryKey": false,
2234
+ "notNull": false,
2235
+ "autoincrement": false
2236
+ },
2237
+ "parent_id": {
2238
+ "name": "parent_id",
2239
+ "type": "text",
2240
+ "primaryKey": false,
2241
+ "notNull": false,
2242
+ "autoincrement": false
2243
+ },
2244
+ "position": {
2245
+ "name": "position",
2246
+ "type": "integer",
2247
+ "primaryKey": false,
2248
+ "notNull": true,
2249
+ "autoincrement": false,
2250
+ "default": 0
2251
+ },
2252
+ "title": {
2253
+ "name": "title",
2254
+ "type": "text",
2255
+ "primaryKey": false,
2256
+ "notNull": true,
2257
+ "autoincrement": false
2258
+ },
2259
+ "slug": {
2260
+ "name": "slug",
2261
+ "type": "text",
2262
+ "primaryKey": false,
2263
+ "notNull": false,
2264
+ "autoincrement": false
2265
+ },
2266
+ "markdown": {
2267
+ "name": "markdown",
2268
+ "type": "text",
2269
+ "primaryKey": false,
2270
+ "notNull": true,
2271
+ "autoincrement": false,
2272
+ "default": "''"
2273
+ },
2274
+ "origin": {
2275
+ "name": "origin",
2276
+ "type": "text",
2277
+ "primaryKey": false,
2278
+ "notNull": false,
2279
+ "autoincrement": false
2280
+ },
2281
+ "origin_key": {
2282
+ "name": "origin_key",
2283
+ "type": "text",
2284
+ "primaryKey": false,
2285
+ "notNull": false,
2286
+ "autoincrement": false
2287
+ },
2288
+ "origin_label": {
2289
+ "name": "origin_label",
2290
+ "type": "text",
2291
+ "primaryKey": false,
2292
+ "notNull": false,
2293
+ "autoincrement": false
2294
+ },
2295
+ "kept": {
2296
+ "name": "kept",
2297
+ "type": "integer",
2298
+ "primaryKey": false,
2299
+ "notNull": true,
2300
+ "autoincrement": false,
2301
+ "default": false
2302
+ },
2303
+ "review": {
2304
+ "name": "review",
2305
+ "type": "text",
2306
+ "primaryKey": false,
2307
+ "notNull": false,
2308
+ "autoincrement": false
2309
+ },
2310
+ "file_id": {
2311
+ "name": "file_id",
2312
+ "type": "text",
2313
+ "primaryKey": false,
2314
+ "notNull": false,
2315
+ "autoincrement": false
2316
+ },
2317
+ "created_at": {
2318
+ "name": "created_at",
2319
+ "type": "integer",
2320
+ "primaryKey": false,
2321
+ "notNull": true,
2322
+ "autoincrement": false,
2323
+ "default": "(unixepoch() * 1000)"
2324
+ },
2325
+ "updated_at": {
2326
+ "name": "updated_at",
2327
+ "type": "integer",
2328
+ "primaryKey": false,
2329
+ "notNull": true,
2330
+ "autoincrement": false,
2331
+ "default": "(unixepoch() * 1000)"
2332
+ }
2333
+ },
2334
+ "indexes": {
2335
+ "space_page_project": {
2336
+ "name": "space_page_project",
2337
+ "columns": [
2338
+ "project_id",
2339
+ "wizard_id"
2340
+ ],
2341
+ "isUnique": false
2342
+ },
2343
+ "space_page_parent": {
2344
+ "name": "space_page_parent",
2345
+ "columns": [
2346
+ "parent_id",
2347
+ "position"
2348
+ ],
2349
+ "isUnique": false
2350
+ },
2351
+ "space_page_origin": {
2352
+ "name": "space_page_origin",
2353
+ "columns": [
2354
+ "project_id",
2355
+ "origin",
2356
+ "origin_key"
2357
+ ],
2358
+ "isUnique": true
2359
+ }
2360
+ },
2361
+ "foreignKeys": {
2362
+ "space_page_project_id_project_id_fk": {
2363
+ "name": "space_page_project_id_project_id_fk",
2364
+ "tableFrom": "space_page",
2365
+ "tableTo": "project",
2366
+ "columnsFrom": [
2367
+ "project_id"
2368
+ ],
2369
+ "columnsTo": [
2370
+ "id"
2371
+ ],
2372
+ "onDelete": "cascade",
2373
+ "onUpdate": "no action"
2374
+ },
2375
+ "space_page_wizard_id_wizard_id_fk": {
2376
+ "name": "space_page_wizard_id_wizard_id_fk",
2377
+ "tableFrom": "space_page",
2378
+ "tableTo": "wizard",
2379
+ "columnsFrom": [
2380
+ "wizard_id"
2381
+ ],
2382
+ "columnsTo": [
2383
+ "id"
2384
+ ],
2385
+ "onDelete": "cascade",
2386
+ "onUpdate": "no action"
2387
+ },
2388
+ "space_page_parent_id_space_page_id_fk": {
2389
+ "name": "space_page_parent_id_space_page_id_fk",
2390
+ "tableFrom": "space_page",
2391
+ "tableTo": "space_page",
2392
+ "columnsFrom": [
2393
+ "parent_id"
2394
+ ],
2395
+ "columnsTo": [
2396
+ "id"
2397
+ ],
2398
+ "onDelete": "cascade",
2399
+ "onUpdate": "no action"
2400
+ },
2401
+ "space_page_file_id_project_file_id_fk": {
2402
+ "name": "space_page_file_id_project_file_id_fk",
2403
+ "tableFrom": "space_page",
2404
+ "tableTo": "project_file",
2405
+ "columnsFrom": [
2406
+ "file_id"
2407
+ ],
2408
+ "columnsTo": [
2409
+ "id"
2410
+ ],
2411
+ "onDelete": "set null",
2412
+ "onUpdate": "no action"
2413
+ }
2414
+ },
2415
+ "compositePrimaryKeys": {},
2416
+ "uniqueConstraints": {},
2417
+ "checkConstraints": {}
2418
+ },
2419
+ "space_table": {
2420
+ "name": "space_table",
2421
+ "columns": {
2422
+ "id": {
2423
+ "name": "id",
2424
+ "type": "text",
2425
+ "primaryKey": true,
2426
+ "notNull": true,
2427
+ "autoincrement": false
2428
+ },
2429
+ "tenant_id": {
2430
+ "name": "tenant_id",
2431
+ "type": "text",
2432
+ "primaryKey": false,
2433
+ "notNull": true,
2434
+ "autoincrement": false
2435
+ },
2436
+ "project_id": {
2437
+ "name": "project_id",
2438
+ "type": "text",
2439
+ "primaryKey": false,
2440
+ "notNull": true,
2441
+ "autoincrement": false
2442
+ },
2443
+ "wizard_id": {
2444
+ "name": "wizard_id",
2445
+ "type": "text",
2446
+ "primaryKey": false,
2447
+ "notNull": false,
2448
+ "autoincrement": false
2449
+ },
2450
+ "list": {
2451
+ "name": "list",
2452
+ "type": "text",
2453
+ "primaryKey": false,
2454
+ "notNull": false,
2455
+ "autoincrement": false
2456
+ },
2457
+ "key_column": {
2458
+ "name": "key_column",
2459
+ "type": "text",
2460
+ "primaryKey": false,
2461
+ "notNull": false,
2462
+ "autoincrement": false
2463
+ },
2464
+ "title": {
2465
+ "name": "title",
2466
+ "type": "text",
2467
+ "primaryKey": false,
2468
+ "notNull": true,
2469
+ "autoincrement": false
2470
+ },
2471
+ "slug": {
2472
+ "name": "slug",
2473
+ "type": "text",
2474
+ "primaryKey": false,
2475
+ "notNull": false,
2476
+ "autoincrement": false
2477
+ },
2478
+ "format": {
2479
+ "name": "format",
2480
+ "type": "text",
2481
+ "primaryKey": false,
2482
+ "notNull": false,
2483
+ "autoincrement": false
2484
+ },
2485
+ "columns": {
2486
+ "name": "columns",
2487
+ "type": "text",
2488
+ "primaryKey": false,
2489
+ "notNull": true,
2490
+ "autoincrement": false
2491
+ },
2492
+ "origin": {
2493
+ "name": "origin",
2494
+ "type": "text",
2495
+ "primaryKey": false,
2496
+ "notNull": false,
2497
+ "autoincrement": false
2498
+ },
2499
+ "origin_key": {
2500
+ "name": "origin_key",
2501
+ "type": "text",
2502
+ "primaryKey": false,
2503
+ "notNull": false,
2504
+ "autoincrement": false
2505
+ },
2506
+ "origin_label": {
2507
+ "name": "origin_label",
2508
+ "type": "text",
2509
+ "primaryKey": false,
2510
+ "notNull": false,
2511
+ "autoincrement": false
2512
+ },
2513
+ "kept": {
2514
+ "name": "kept",
2515
+ "type": "integer",
2516
+ "primaryKey": false,
2517
+ "notNull": true,
2518
+ "autoincrement": false,
2519
+ "default": false
2520
+ },
2521
+ "review": {
2522
+ "name": "review",
2523
+ "type": "text",
2524
+ "primaryKey": false,
2525
+ "notNull": false,
2526
+ "autoincrement": false
2527
+ },
2528
+ "file_id": {
2529
+ "name": "file_id",
2530
+ "type": "text",
2531
+ "primaryKey": false,
2532
+ "notNull": false,
2533
+ "autoincrement": false
2534
+ },
2535
+ "created_at": {
2536
+ "name": "created_at",
2537
+ "type": "integer",
2538
+ "primaryKey": false,
2539
+ "notNull": true,
2540
+ "autoincrement": false,
2541
+ "default": "(unixepoch() * 1000)"
2542
+ },
2543
+ "updated_at": {
2544
+ "name": "updated_at",
2545
+ "type": "integer",
2546
+ "primaryKey": false,
2547
+ "notNull": true,
2548
+ "autoincrement": false,
2549
+ "default": "(unixepoch() * 1000)"
2550
+ }
2551
+ },
2552
+ "indexes": {
2553
+ "space_table_project": {
2554
+ "name": "space_table_project",
2555
+ "columns": [
2556
+ "project_id",
2557
+ "wizard_id"
2558
+ ],
2559
+ "isUnique": false
2560
+ },
2561
+ "space_table_list": {
2562
+ "name": "space_table_list",
2563
+ "columns": [
2564
+ "wizard_id",
2565
+ "list"
2566
+ ],
2567
+ "isUnique": true
2568
+ },
2569
+ "space_table_origin": {
2570
+ "name": "space_table_origin",
2571
+ "columns": [
2572
+ "project_id",
2573
+ "origin",
2574
+ "origin_key"
2575
+ ],
2576
+ "isUnique": true
2577
+ }
2578
+ },
2579
+ "foreignKeys": {
2580
+ "space_table_project_id_project_id_fk": {
2581
+ "name": "space_table_project_id_project_id_fk",
2582
+ "tableFrom": "space_table",
2583
+ "tableTo": "project",
2584
+ "columnsFrom": [
2585
+ "project_id"
2586
+ ],
2587
+ "columnsTo": [
2588
+ "id"
2589
+ ],
2590
+ "onDelete": "cascade",
2591
+ "onUpdate": "no action"
2592
+ },
2593
+ "space_table_wizard_id_wizard_id_fk": {
2594
+ "name": "space_table_wizard_id_wizard_id_fk",
2595
+ "tableFrom": "space_table",
2596
+ "tableTo": "wizard",
2597
+ "columnsFrom": [
2598
+ "wizard_id"
2599
+ ],
2600
+ "columnsTo": [
2601
+ "id"
2602
+ ],
2603
+ "onDelete": "cascade",
2604
+ "onUpdate": "no action"
2605
+ },
2606
+ "space_table_file_id_project_file_id_fk": {
2607
+ "name": "space_table_file_id_project_file_id_fk",
2608
+ "tableFrom": "space_table",
2609
+ "tableTo": "project_file",
2610
+ "columnsFrom": [
2611
+ "file_id"
2612
+ ],
2613
+ "columnsTo": [
2614
+ "id"
2615
+ ],
2616
+ "onDelete": "set null",
2617
+ "onUpdate": "no action"
2618
+ }
2619
+ },
2620
+ "compositePrimaryKeys": {},
2621
+ "uniqueConstraints": {},
2622
+ "checkConstraints": {}
2623
+ },
2624
+ "space_table_row": {
2625
+ "name": "space_table_row",
2626
+ "columns": {
2627
+ "id": {
2628
+ "name": "id",
2629
+ "type": "text",
2630
+ "primaryKey": true,
2631
+ "notNull": true,
2632
+ "autoincrement": false
2633
+ },
2634
+ "table_id": {
2635
+ "name": "table_id",
2636
+ "type": "text",
2637
+ "primaryKey": false,
2638
+ "notNull": true,
2639
+ "autoincrement": false
2640
+ },
2641
+ "key": {
2642
+ "name": "key",
2643
+ "type": "text",
2644
+ "primaryKey": false,
2645
+ "notNull": false,
2646
+ "autoincrement": false
2647
+ },
2648
+ "cells": {
2649
+ "name": "cells",
2650
+ "type": "text",
2651
+ "primaryKey": false,
2652
+ "notNull": true,
2653
+ "autoincrement": false
2654
+ },
2655
+ "created_at": {
2656
+ "name": "created_at",
2657
+ "type": "integer",
2658
+ "primaryKey": false,
2659
+ "notNull": true,
2660
+ "autoincrement": false,
2661
+ "default": "(unixepoch() * 1000)"
2662
+ },
2663
+ "updated_at": {
2664
+ "name": "updated_at",
2665
+ "type": "integer",
2666
+ "primaryKey": false,
2667
+ "notNull": true,
2668
+ "autoincrement": false,
2669
+ "default": "(unixepoch() * 1000)"
2670
+ }
2671
+ },
2672
+ "indexes": {
2673
+ "space_table_row_table": {
2674
+ "name": "space_table_row_table",
2675
+ "columns": [
2676
+ "table_id",
2677
+ "created_at"
2678
+ ],
2679
+ "isUnique": false
2680
+ },
2681
+ "space_table_row_key": {
2682
+ "name": "space_table_row_key",
2683
+ "columns": [
2684
+ "table_id",
2685
+ "key"
2686
+ ],
2687
+ "isUnique": false
2688
+ }
2689
+ },
2690
+ "foreignKeys": {
2691
+ "space_table_row_table_id_space_table_id_fk": {
2692
+ "name": "space_table_row_table_id_space_table_id_fk",
2693
+ "tableFrom": "space_table_row",
2694
+ "tableTo": "space_table",
2695
+ "columnsFrom": [
2696
+ "table_id"
2697
+ ],
2698
+ "columnsTo": [
2699
+ "id"
2700
+ ],
2701
+ "onDelete": "cascade",
2702
+ "onUpdate": "no action"
2703
+ }
2704
+ },
2705
+ "compositePrimaryKeys": {},
2706
+ "uniqueConstraints": {},
2707
+ "checkConstraints": {}
2708
+ },
2709
+ "store_file": {
2710
+ "name": "store_file",
2711
+ "columns": {
2712
+ "wizard_id": {
2713
+ "name": "wizard_id",
2714
+ "type": "text",
2715
+ "primaryKey": false,
2716
+ "notNull": true,
2717
+ "autoincrement": false
2718
+ },
2719
+ "holder": {
2720
+ "name": "holder",
2721
+ "type": "text",
2722
+ "primaryKey": false,
2723
+ "notNull": true,
2724
+ "autoincrement": false
2725
+ },
2726
+ "path": {
2727
+ "name": "path",
2728
+ "type": "text",
2729
+ "primaryKey": false,
2730
+ "notNull": true,
2731
+ "autoincrement": false
2732
+ },
2733
+ "hash": {
2734
+ "name": "hash",
2735
+ "type": "text",
2736
+ "primaryKey": false,
2737
+ "notNull": true,
2738
+ "autoincrement": false
2739
+ },
2740
+ "mime": {
2741
+ "name": "mime",
2742
+ "type": "text",
2743
+ "primaryKey": false,
2744
+ "notNull": true,
2745
+ "autoincrement": false
2746
+ },
2747
+ "size": {
2748
+ "name": "size",
2749
+ "type": "integer",
2750
+ "primaryKey": false,
2751
+ "notNull": true,
2752
+ "autoincrement": false
2753
+ },
2754
+ "source": {
2755
+ "name": "source",
2756
+ "type": "text",
2757
+ "primaryKey": false,
2758
+ "notNull": false,
2759
+ "autoincrement": false
2760
+ },
2761
+ "updated_at": {
2762
+ "name": "updated_at",
2763
+ "type": "integer",
2764
+ "primaryKey": false,
2765
+ "notNull": true,
2766
+ "autoincrement": false,
2767
+ "default": "(unixepoch() * 1000)"
2768
+ }
2769
+ },
2770
+ "indexes": {},
2771
+ "foreignKeys": {
2772
+ "store_file_wizard_id_wizard_id_fk": {
2773
+ "name": "store_file_wizard_id_wizard_id_fk",
2774
+ "tableFrom": "store_file",
2775
+ "tableTo": "wizard",
2776
+ "columnsFrom": [
2777
+ "wizard_id"
2778
+ ],
2779
+ "columnsTo": [
2780
+ "id"
2781
+ ],
2782
+ "onDelete": "cascade",
2783
+ "onUpdate": "no action"
2784
+ }
2785
+ },
2786
+ "compositePrimaryKeys": {
2787
+ "store_file_wizard_id_holder_path_pk": {
2788
+ "columns": [
2789
+ "wizard_id",
2790
+ "holder",
2791
+ "path"
2792
+ ],
2793
+ "name": "store_file_wizard_id_holder_path_pk"
2794
+ }
2795
+ },
2796
+ "uniqueConstraints": {},
2797
+ "checkConstraints": {}
2798
+ },
2799
+ "store_holder": {
2800
+ "name": "store_holder",
2801
+ "columns": {
2802
+ "wizard_id": {
2803
+ "name": "wizard_id",
2804
+ "type": "text",
2805
+ "primaryKey": false,
2806
+ "notNull": true,
2807
+ "autoincrement": false
2808
+ },
2809
+ "holder": {
2810
+ "name": "holder",
2811
+ "type": "text",
2812
+ "primaryKey": false,
2813
+ "notNull": true,
2814
+ "autoincrement": false
2815
+ },
2816
+ "used_at": {
2817
+ "name": "used_at",
2818
+ "type": "integer",
2819
+ "primaryKey": false,
2820
+ "notNull": true,
2821
+ "autoincrement": false,
2822
+ "default": "(unixepoch() * 1000)"
2823
+ }
2824
+ },
2825
+ "indexes": {
2826
+ "store_holder_used": {
2827
+ "name": "store_holder_used",
2828
+ "columns": [
2829
+ "used_at"
2830
+ ],
2831
+ "isUnique": false
2832
+ }
2833
+ },
2834
+ "foreignKeys": {
2835
+ "store_holder_wizard_id_wizard_id_fk": {
2836
+ "name": "store_holder_wizard_id_wizard_id_fk",
2837
+ "tableFrom": "store_holder",
2838
+ "tableTo": "wizard",
2839
+ "columnsFrom": [
2840
+ "wizard_id"
2841
+ ],
2842
+ "columnsTo": [
2843
+ "id"
2844
+ ],
2845
+ "onDelete": "cascade",
2846
+ "onUpdate": "no action"
2847
+ }
2848
+ },
2849
+ "compositePrimaryKeys": {
2850
+ "store_holder_wizard_id_holder_pk": {
2851
+ "columns": [
2852
+ "wizard_id",
2853
+ "holder"
2854
+ ],
2855
+ "name": "store_holder_wizard_id_holder_pk"
2856
+ }
2857
+ },
2858
+ "uniqueConstraints": {},
2859
+ "checkConstraints": {}
2860
+ },
2861
+ "store_row": {
2862
+ "name": "store_row",
2863
+ "columns": {
2864
+ "id": {
2865
+ "name": "id",
2866
+ "type": "text",
2867
+ "primaryKey": true,
2868
+ "notNull": true,
2869
+ "autoincrement": false
2870
+ },
2871
+ "wizard_id": {
2872
+ "name": "wizard_id",
2873
+ "type": "text",
2874
+ "primaryKey": false,
2875
+ "notNull": true,
2876
+ "autoincrement": false
2877
+ },
2878
+ "holder": {
2879
+ "name": "holder",
2880
+ "type": "text",
2881
+ "primaryKey": false,
2882
+ "notNull": true,
2883
+ "autoincrement": false
2884
+ },
2885
+ "list": {
2886
+ "name": "list",
2887
+ "type": "text",
2888
+ "primaryKey": false,
2889
+ "notNull": true,
2890
+ "autoincrement": false
2891
+ },
2892
+ "key": {
2893
+ "name": "key",
2894
+ "type": "text",
2895
+ "primaryKey": false,
2896
+ "notNull": false,
2897
+ "autoincrement": false
2898
+ },
2899
+ "cells": {
2900
+ "name": "cells",
2901
+ "type": "text",
2902
+ "primaryKey": false,
2903
+ "notNull": true,
2904
+ "autoincrement": false
2905
+ },
2906
+ "created_at": {
2907
+ "name": "created_at",
2908
+ "type": "integer",
2909
+ "primaryKey": false,
2910
+ "notNull": true,
2911
+ "autoincrement": false,
2912
+ "default": "(unixepoch() * 1000)"
2913
+ },
2914
+ "updated_at": {
2915
+ "name": "updated_at",
2916
+ "type": "integer",
2917
+ "primaryKey": false,
2918
+ "notNull": true,
2919
+ "autoincrement": false,
2920
+ "default": "(unixepoch() * 1000)"
2921
+ }
2922
+ },
2923
+ "indexes": {
2924
+ "store_row_key": {
2925
+ "name": "store_row_key",
2926
+ "columns": [
2927
+ "wizard_id",
2928
+ "holder",
2929
+ "list",
2930
+ "key"
2931
+ ],
2932
+ "isUnique": true
2933
+ },
2934
+ "store_row_list": {
2935
+ "name": "store_row_list",
2936
+ "columns": [
2937
+ "wizard_id",
2938
+ "holder",
2939
+ "list",
2940
+ "created_at"
2941
+ ],
2942
+ "isUnique": false
2943
+ }
2944
+ },
2945
+ "foreignKeys": {
2946
+ "store_row_wizard_id_wizard_id_fk": {
2947
+ "name": "store_row_wizard_id_wizard_id_fk",
2948
+ "tableFrom": "store_row",
2949
+ "tableTo": "wizard",
2950
+ "columnsFrom": [
2951
+ "wizard_id"
2952
+ ],
2953
+ "columnsTo": [
2954
+ "id"
2955
+ ],
2956
+ "onDelete": "cascade",
2957
+ "onUpdate": "no action"
2958
+ }
2959
+ },
2960
+ "compositePrimaryKeys": {},
2961
+ "uniqueConstraints": {},
2962
+ "checkConstraints": {}
2963
+ },
2964
+ "store_secret": {
2965
+ "name": "store_secret",
2966
+ "columns": {
2967
+ "id": {
2968
+ "name": "id",
2969
+ "type": "text",
2970
+ "primaryKey": true,
2971
+ "notNull": true,
2972
+ "autoincrement": false
2973
+ },
2974
+ "wizard_id": {
2975
+ "name": "wizard_id",
2976
+ "type": "text",
2977
+ "primaryKey": false,
2978
+ "notNull": true,
2979
+ "autoincrement": false
2980
+ },
2981
+ "holder": {
2982
+ "name": "holder",
2983
+ "type": "text",
2984
+ "primaryKey": false,
2985
+ "notNull": true,
2986
+ "autoincrement": false
2987
+ },
2988
+ "slot": {
2989
+ "name": "slot",
2990
+ "type": "text",
2991
+ "primaryKey": false,
2992
+ "notNull": true,
2993
+ "autoincrement": false
2994
+ },
2995
+ "provider": {
2996
+ "name": "provider",
2997
+ "type": "text",
2998
+ "primaryKey": false,
2999
+ "notNull": true,
3000
+ "autoincrement": false
3001
+ },
3002
+ "label": {
3003
+ "name": "label",
3004
+ "type": "text",
3005
+ "primaryKey": false,
3006
+ "notNull": true,
3007
+ "autoincrement": false
3008
+ },
3009
+ "data": {
3010
+ "name": "data",
3011
+ "type": "text",
3012
+ "primaryKey": false,
3013
+ "notNull": true,
3014
+ "autoincrement": false
3015
+ },
3016
+ "created_at": {
3017
+ "name": "created_at",
3018
+ "type": "integer",
3019
+ "primaryKey": false,
3020
+ "notNull": true,
3021
+ "autoincrement": false,
3022
+ "default": "(unixepoch() * 1000)"
3023
+ },
3024
+ "updated_at": {
3025
+ "name": "updated_at",
3026
+ "type": "integer",
3027
+ "primaryKey": false,
3028
+ "notNull": true,
3029
+ "autoincrement": false,
3030
+ "default": "(unixepoch() * 1000)"
3031
+ }
3032
+ },
3033
+ "indexes": {
3034
+ "store_secret_slot": {
3035
+ "name": "store_secret_slot",
3036
+ "columns": [
3037
+ "wizard_id",
3038
+ "holder",
3039
+ "slot"
3040
+ ],
3041
+ "isUnique": true
3042
+ }
3043
+ },
3044
+ "foreignKeys": {
3045
+ "store_secret_wizard_id_wizard_id_fk": {
3046
+ "name": "store_secret_wizard_id_wizard_id_fk",
3047
+ "tableFrom": "store_secret",
3048
+ "tableTo": "wizard",
3049
+ "columnsFrom": [
3050
+ "wizard_id"
3051
+ ],
3052
+ "columnsTo": [
3053
+ "id"
3054
+ ],
3055
+ "onDelete": "cascade",
3056
+ "onUpdate": "no action"
3057
+ }
3058
+ },
3059
+ "compositePrimaryKeys": {},
3060
+ "uniqueConstraints": {},
3061
+ "checkConstraints": {}
3062
+ },
3063
+ "sync_base": {
3064
+ "name": "sync_base",
3065
+ "columns": {
3066
+ "kind": {
3067
+ "name": "kind",
3068
+ "type": "text",
3069
+ "primaryKey": false,
3070
+ "notNull": true,
3071
+ "autoincrement": false
3072
+ },
3073
+ "item": {
3074
+ "name": "item",
3075
+ "type": "text",
3076
+ "primaryKey": false,
3077
+ "notNull": true,
3078
+ "autoincrement": false
3079
+ },
3080
+ "project_id": {
3081
+ "name": "project_id",
3082
+ "type": "text",
3083
+ "primaryKey": false,
3084
+ "notNull": true,
3085
+ "autoincrement": false
3086
+ },
3087
+ "seq": {
3088
+ "name": "seq",
3089
+ "type": "integer",
3090
+ "primaryKey": false,
3091
+ "notNull": true,
3092
+ "autoincrement": false
3093
+ },
3094
+ "record": {
3095
+ "name": "record",
3096
+ "type": "text",
3097
+ "primaryKey": false,
3098
+ "notNull": false,
3099
+ "autoincrement": false
3100
+ }
3101
+ },
3102
+ "indexes": {
3103
+ "sync_base_project": {
3104
+ "name": "sync_base_project",
3105
+ "columns": [
3106
+ "project_id"
3107
+ ],
3108
+ "isUnique": false
3109
+ }
3110
+ },
3111
+ "foreignKeys": {},
3112
+ "compositePrimaryKeys": {
3113
+ "sync_base_kind_item_pk": {
3114
+ "columns": [
3115
+ "kind",
3116
+ "item"
3117
+ ],
3118
+ "name": "sync_base_kind_item_pk"
3119
+ }
3120
+ },
3121
+ "uniqueConstraints": {},
3122
+ "checkConstraints": {}
3123
+ },
3124
+ "sync_change": {
3125
+ "name": "sync_change",
3126
+ "columns": {
3127
+ "seq": {
3128
+ "name": "seq",
3129
+ "type": "integer",
3130
+ "primaryKey": true,
3131
+ "notNull": true,
3132
+ "autoincrement": true
3133
+ },
3134
+ "project_id": {
3135
+ "name": "project_id",
3136
+ "type": "text",
3137
+ "primaryKey": false,
3138
+ "notNull": true,
3139
+ "autoincrement": false
3140
+ },
3141
+ "kind": {
3142
+ "name": "kind",
3143
+ "type": "text",
3144
+ "primaryKey": false,
3145
+ "notNull": true,
3146
+ "autoincrement": false
3147
+ },
3148
+ "item": {
3149
+ "name": "item",
3150
+ "type": "text",
3151
+ "primaryKey": false,
3152
+ "notNull": true,
3153
+ "autoincrement": false
3154
+ },
3155
+ "at": {
3156
+ "name": "at",
3157
+ "type": "integer",
3158
+ "primaryKey": false,
3159
+ "notNull": true,
3160
+ "autoincrement": false,
3161
+ "default": "(unixepoch() * 1000)"
3162
+ }
3163
+ },
3164
+ "indexes": {
3165
+ "sync_change_item": {
3166
+ "name": "sync_change_item",
3167
+ "columns": [
3168
+ "kind",
3169
+ "item"
3170
+ ],
3171
+ "isUnique": false
3172
+ },
3173
+ "sync_change_project": {
3174
+ "name": "sync_change_project",
3175
+ "columns": [
3176
+ "project_id",
3177
+ "seq"
3178
+ ],
3179
+ "isUnique": false
3180
+ }
3181
+ },
3182
+ "foreignKeys": {},
3183
+ "compositePrimaryKeys": {},
3184
+ "uniqueConstraints": {},
3185
+ "checkConstraints": {}
3186
+ },
3187
+ "sync_conflict": {
3188
+ "name": "sync_conflict",
3189
+ "columns": {
3190
+ "id": {
3191
+ "name": "id",
3192
+ "type": "text",
3193
+ "primaryKey": true,
3194
+ "notNull": true,
3195
+ "autoincrement": false
3196
+ },
3197
+ "project_id": {
3198
+ "name": "project_id",
3199
+ "type": "text",
3200
+ "primaryKey": false,
3201
+ "notNull": true,
3202
+ "autoincrement": false
3203
+ },
3204
+ "kind": {
3205
+ "name": "kind",
3206
+ "type": "text",
3207
+ "primaryKey": false,
3208
+ "notNull": true,
3209
+ "autoincrement": false
3210
+ },
3211
+ "item": {
3212
+ "name": "item",
3213
+ "type": "text",
3214
+ "primaryKey": false,
3215
+ "notNull": true,
3216
+ "autoincrement": false
3217
+ },
3218
+ "seq": {
3219
+ "name": "seq",
3220
+ "type": "integer",
3221
+ "primaryKey": false,
3222
+ "notNull": true,
3223
+ "autoincrement": false
3224
+ },
3225
+ "base": {
3226
+ "name": "base",
3227
+ "type": "text",
3228
+ "primaryKey": false,
3229
+ "notNull": false,
3230
+ "autoincrement": false
3231
+ },
3232
+ "local": {
3233
+ "name": "local",
3234
+ "type": "text",
3235
+ "primaryKey": false,
3236
+ "notNull": false,
3237
+ "autoincrement": false
3238
+ },
3239
+ "remote": {
3240
+ "name": "remote",
3241
+ "type": "text",
3242
+ "primaryKey": false,
3243
+ "notNull": false,
3244
+ "autoincrement": false
3245
+ },
3246
+ "created_at": {
3247
+ "name": "created_at",
3248
+ "type": "integer",
3249
+ "primaryKey": false,
3250
+ "notNull": true,
3251
+ "autoincrement": false,
3252
+ "default": "(unixepoch() * 1000)"
3253
+ }
3254
+ },
3255
+ "indexes": {
3256
+ "sync_conflict_item": {
3257
+ "name": "sync_conflict_item",
3258
+ "columns": [
3259
+ "kind",
3260
+ "item"
3261
+ ],
3262
+ "isUnique": true
3263
+ }
3264
+ },
3265
+ "foreignKeys": {},
3266
+ "compositePrimaryKeys": {},
3267
+ "uniqueConstraints": {},
3268
+ "checkConstraints": {}
3269
+ },
3270
+ "sync_guard": {
3271
+ "name": "sync_guard",
3272
+ "columns": {
3273
+ "id": {
3274
+ "name": "id",
3275
+ "type": "integer",
3276
+ "primaryKey": true,
3277
+ "notNull": true,
3278
+ "autoincrement": false
3279
+ },
3280
+ "applying": {
3281
+ "name": "applying",
3282
+ "type": "integer",
3283
+ "primaryKey": false,
3284
+ "notNull": true,
3285
+ "autoincrement": false,
3286
+ "default": 0
3287
+ }
3288
+ },
3289
+ "indexes": {},
3290
+ "foreignKeys": {},
3291
+ "compositePrimaryKeys": {},
3292
+ "uniqueConstraints": {},
3293
+ "checkConstraints": {}
3294
+ },
3295
+ "sync_merge": {
3296
+ "name": "sync_merge",
3297
+ "columns": {
3298
+ "id": {
3299
+ "name": "id",
3300
+ "type": "text",
3301
+ "primaryKey": true,
3302
+ "notNull": true,
3303
+ "autoincrement": false
3304
+ },
3305
+ "project_id": {
3306
+ "name": "project_id",
3307
+ "type": "text",
3308
+ "primaryKey": false,
3309
+ "notNull": true,
3310
+ "autoincrement": false
3311
+ },
3312
+ "kind": {
3313
+ "name": "kind",
3314
+ "type": "text",
3315
+ "primaryKey": false,
3316
+ "notNull": true,
3317
+ "autoincrement": false
3318
+ },
3319
+ "item": {
3320
+ "name": "item",
3321
+ "type": "text",
3322
+ "primaryKey": false,
3323
+ "notNull": true,
3324
+ "autoincrement": false
3325
+ },
3326
+ "local": {
3327
+ "name": "local",
3328
+ "type": "text",
3329
+ "primaryKey": false,
3330
+ "notNull": true,
3331
+ "autoincrement": false
3332
+ },
3333
+ "remote": {
3334
+ "name": "remote",
3335
+ "type": "text",
3336
+ "primaryKey": false,
3337
+ "notNull": true,
3338
+ "autoincrement": false
3339
+ },
3340
+ "before": {
3341
+ "name": "before",
3342
+ "type": "text",
3343
+ "primaryKey": false,
3344
+ "notNull": true,
3345
+ "autoincrement": false
3346
+ },
3347
+ "seen": {
3348
+ "name": "seen",
3349
+ "type": "integer",
3350
+ "primaryKey": false,
3351
+ "notNull": true,
3352
+ "autoincrement": false,
3353
+ "default": false
3354
+ },
3355
+ "created_at": {
3356
+ "name": "created_at",
3357
+ "type": "integer",
3358
+ "primaryKey": false,
3359
+ "notNull": true,
3360
+ "autoincrement": false,
3361
+ "default": "(unixepoch() * 1000)"
3362
+ }
3363
+ },
3364
+ "indexes": {
3365
+ "sync_merge_item": {
3366
+ "name": "sync_merge_item",
3367
+ "columns": [
3368
+ "kind",
3369
+ "item",
3370
+ "created_at"
3371
+ ],
3372
+ "isUnique": false
3373
+ }
3374
+ },
3375
+ "foreignKeys": {},
3376
+ "compositePrimaryKeys": {},
3377
+ "uniqueConstraints": {},
3378
+ "checkConstraints": {}
3379
+ },
3380
+ "wizard": {
3381
+ "name": "wizard",
3382
+ "columns": {
3383
+ "id": {
3384
+ "name": "id",
3385
+ "type": "text",
3386
+ "primaryKey": true,
3387
+ "notNull": true,
3388
+ "autoincrement": false
3389
+ },
3390
+ "project_id": {
3391
+ "name": "project_id",
3392
+ "type": "text",
3393
+ "primaryKey": false,
3394
+ "notNull": true,
3395
+ "autoincrement": false
3396
+ },
3397
+ "tenant_id": {
3398
+ "name": "tenant_id",
3399
+ "type": "text",
3400
+ "primaryKey": false,
3401
+ "notNull": true,
3402
+ "autoincrement": false
3403
+ },
3404
+ "title": {
3405
+ "name": "title",
3406
+ "type": "text",
3407
+ "primaryKey": false,
3408
+ "notNull": true,
3409
+ "autoincrement": false
3410
+ },
3411
+ "draft": {
3412
+ "name": "draft",
3413
+ "type": "text",
3414
+ "primaryKey": false,
3415
+ "notNull": true,
3416
+ "autoincrement": false
3417
+ },
3418
+ "published_version": {
3419
+ "name": "published_version",
3420
+ "type": "integer",
3421
+ "primaryKey": false,
3422
+ "notNull": false,
3423
+ "autoincrement": false
3424
+ },
3425
+ "share_token": {
3426
+ "name": "share_token",
3427
+ "type": "text",
3428
+ "primaryKey": false,
3429
+ "notNull": true,
3430
+ "autoincrement": false
3431
+ },
3432
+ "share_enabled": {
3433
+ "name": "share_enabled",
3434
+ "type": "integer",
3435
+ "primaryKey": false,
3436
+ "notNull": true,
3437
+ "autoincrement": false,
3438
+ "default": true
3439
+ },
3440
+ "daily_run_limit": {
3441
+ "name": "daily_run_limit",
3442
+ "type": "integer",
3443
+ "primaryKey": false,
3444
+ "notNull": true,
3445
+ "autoincrement": false,
3446
+ "default": 50
3447
+ },
3448
+ "starter": {
3449
+ "name": "starter",
3450
+ "type": "text",
3451
+ "primaryKey": false,
3452
+ "notNull": false,
3453
+ "autoincrement": false
3454
+ },
3455
+ "starter_revision": {
3456
+ "name": "starter_revision",
3457
+ "type": "integer",
3458
+ "primaryKey": false,
3459
+ "notNull": false,
3460
+ "autoincrement": false
3461
+ },
3462
+ "revision": {
3463
+ "name": "revision",
3464
+ "type": "integer",
3465
+ "primaryKey": false,
3466
+ "notNull": true,
3467
+ "autoincrement": false,
3468
+ "default": 0
3469
+ },
3470
+ "runners": {
3471
+ "name": "runners",
3472
+ "type": "text",
3473
+ "primaryKey": false,
3474
+ "notNull": false,
3475
+ "autoincrement": false
3476
+ },
3477
+ "translate": {
3478
+ "name": "translate",
3479
+ "type": "integer",
3480
+ "primaryKey": false,
3481
+ "notNull": true,
3482
+ "autoincrement": false,
3483
+ "default": true
3484
+ },
3485
+ "created_at": {
3486
+ "name": "created_at",
3487
+ "type": "integer",
3488
+ "primaryKey": false,
3489
+ "notNull": true,
3490
+ "autoincrement": false,
3491
+ "default": "(unixepoch() * 1000)"
3492
+ },
3493
+ "updated_at": {
3494
+ "name": "updated_at",
3495
+ "type": "integer",
3496
+ "primaryKey": false,
3497
+ "notNull": true,
3498
+ "autoincrement": false,
3499
+ "default": "(unixepoch() * 1000)"
3500
+ }
3501
+ },
3502
+ "indexes": {
3503
+ "wizard_share_token": {
3504
+ "name": "wizard_share_token",
3505
+ "columns": [
3506
+ "share_token"
3507
+ ],
3508
+ "isUnique": true
3509
+ },
3510
+ "wizard_project": {
3511
+ "name": "wizard_project",
3512
+ "columns": [
3513
+ "project_id"
3514
+ ],
3515
+ "isUnique": false
3516
+ }
3517
+ },
3518
+ "foreignKeys": {
3519
+ "wizard_project_id_project_id_fk": {
3520
+ "name": "wizard_project_id_project_id_fk",
3521
+ "tableFrom": "wizard",
3522
+ "tableTo": "project",
3523
+ "columnsFrom": [
3524
+ "project_id"
3525
+ ],
3526
+ "columnsTo": [
3527
+ "id"
3528
+ ],
3529
+ "onDelete": "cascade",
3530
+ "onUpdate": "no action"
3531
+ }
3532
+ },
3533
+ "compositePrimaryKeys": {},
3534
+ "uniqueConstraints": {},
3535
+ "checkConstraints": {}
3536
+ },
3537
+ "wizard_file": {
3538
+ "name": "wizard_file",
3539
+ "columns": {
3540
+ "wizard_id": {
3541
+ "name": "wizard_id",
3542
+ "type": "text",
3543
+ "primaryKey": false,
3544
+ "notNull": true,
3545
+ "autoincrement": false
3546
+ },
3547
+ "path": {
3548
+ "name": "path",
3549
+ "type": "text",
3550
+ "primaryKey": false,
3551
+ "notNull": true,
3552
+ "autoincrement": false
3553
+ },
3554
+ "hash": {
3555
+ "name": "hash",
3556
+ "type": "text",
3557
+ "primaryKey": false,
3558
+ "notNull": true,
3559
+ "autoincrement": false
3560
+ },
3561
+ "mime": {
3562
+ "name": "mime",
3563
+ "type": "text",
3564
+ "primaryKey": false,
3565
+ "notNull": true,
3566
+ "autoincrement": false
3567
+ },
3568
+ "size": {
3569
+ "name": "size",
3570
+ "type": "integer",
3571
+ "primaryKey": false,
3572
+ "notNull": true,
3573
+ "autoincrement": false
3574
+ },
3575
+ "updated_at": {
3576
+ "name": "updated_at",
3577
+ "type": "integer",
3578
+ "primaryKey": false,
3579
+ "notNull": true,
3580
+ "autoincrement": false,
3581
+ "default": "(unixepoch() * 1000)"
3582
+ }
3583
+ },
3584
+ "indexes": {},
3585
+ "foreignKeys": {
3586
+ "wizard_file_wizard_id_wizard_id_fk": {
3587
+ "name": "wizard_file_wizard_id_wizard_id_fk",
3588
+ "tableFrom": "wizard_file",
3589
+ "tableTo": "wizard",
3590
+ "columnsFrom": [
3591
+ "wizard_id"
3592
+ ],
3593
+ "columnsTo": [
3594
+ "id"
3595
+ ],
3596
+ "onDelete": "cascade",
3597
+ "onUpdate": "no action"
3598
+ }
3599
+ },
3600
+ "compositePrimaryKeys": {
3601
+ "wizard_file_wizard_id_path_pk": {
3602
+ "columns": [
3603
+ "wizard_id",
3604
+ "path"
3605
+ ],
3606
+ "name": "wizard_file_wizard_id_path_pk"
3607
+ }
3608
+ },
3609
+ "uniqueConstraints": {},
3610
+ "checkConstraints": {}
3611
+ },
3612
+ "wizard_message": {
3613
+ "name": "wizard_message",
3614
+ "columns": {
3615
+ "id": {
3616
+ "name": "id",
3617
+ "type": "text",
3618
+ "primaryKey": true,
3619
+ "notNull": true,
3620
+ "autoincrement": false
3621
+ },
3622
+ "wizard_id": {
3623
+ "name": "wizard_id",
3624
+ "type": "text",
3625
+ "primaryKey": false,
3626
+ "notNull": true,
3627
+ "autoincrement": false
3628
+ },
3629
+ "role": {
3630
+ "name": "role",
3631
+ "type": "text",
3632
+ "primaryKey": false,
3633
+ "notNull": true,
3634
+ "autoincrement": false
3635
+ },
3636
+ "content": {
3637
+ "name": "content",
3638
+ "type": "text",
3639
+ "primaryKey": false,
3640
+ "notNull": true,
3641
+ "autoincrement": false
3642
+ },
3643
+ "changed": {
3644
+ "name": "changed",
3645
+ "type": "integer",
3646
+ "primaryKey": false,
3647
+ "notNull": true,
3648
+ "autoincrement": false,
3649
+ "default": false
3650
+ },
3651
+ "source": {
3652
+ "name": "source",
3653
+ "type": "text",
3654
+ "primaryKey": false,
3655
+ "notNull": true,
3656
+ "autoincrement": false,
3657
+ "default": "'studio'"
3658
+ },
3659
+ "client": {
3660
+ "name": "client",
3661
+ "type": "text",
3662
+ "primaryKey": false,
3663
+ "notNull": false,
3664
+ "autoincrement": false
3665
+ },
3666
+ "created_at": {
3667
+ "name": "created_at",
3668
+ "type": "integer",
3669
+ "primaryKey": false,
3670
+ "notNull": true,
3671
+ "autoincrement": false,
3672
+ "default": "(unixepoch() * 1000)"
3673
+ }
3674
+ },
3675
+ "indexes": {
3676
+ "wizard_message_wizard": {
3677
+ "name": "wizard_message_wizard",
3678
+ "columns": [
3679
+ "wizard_id",
3680
+ "created_at"
3681
+ ],
3682
+ "isUnique": false
3683
+ }
3684
+ },
3685
+ "foreignKeys": {
3686
+ "wizard_message_wizard_id_wizard_id_fk": {
3687
+ "name": "wizard_message_wizard_id_wizard_id_fk",
3688
+ "tableFrom": "wizard_message",
3689
+ "tableTo": "wizard",
3690
+ "columnsFrom": [
3691
+ "wizard_id"
3692
+ ],
3693
+ "columnsTo": [
3694
+ "id"
3695
+ ],
3696
+ "onDelete": "cascade",
3697
+ "onUpdate": "no action"
3698
+ }
3699
+ },
3700
+ "compositePrimaryKeys": {},
3701
+ "uniqueConstraints": {},
3702
+ "checkConstraints": {}
3703
+ },
3704
+ "wizard_translation": {
3705
+ "name": "wizard_translation",
3706
+ "columns": {
3707
+ "wizard_id": {
3708
+ "name": "wizard_id",
3709
+ "type": "text",
3710
+ "primaryKey": false,
3711
+ "notNull": true,
3712
+ "autoincrement": false
3713
+ },
3714
+ "lang": {
3715
+ "name": "lang",
3716
+ "type": "text",
3717
+ "primaryKey": false,
3718
+ "notNull": true,
3719
+ "autoincrement": false
3720
+ },
3721
+ "texts": {
3722
+ "name": "texts",
3723
+ "type": "text",
3724
+ "primaryKey": false,
3725
+ "notNull": true,
3726
+ "autoincrement": false
3727
+ },
3728
+ "version": {
3729
+ "name": "version",
3730
+ "type": "integer",
3731
+ "primaryKey": false,
3732
+ "notNull": false,
3733
+ "autoincrement": false
3734
+ },
3735
+ "updated_at": {
3736
+ "name": "updated_at",
3737
+ "type": "integer",
3738
+ "primaryKey": false,
3739
+ "notNull": true,
3740
+ "autoincrement": false,
3741
+ "default": "(unixepoch() * 1000)"
3742
+ }
3743
+ },
3744
+ "indexes": {},
3745
+ "foreignKeys": {
3746
+ "wizard_translation_wizard_id_wizard_id_fk": {
3747
+ "name": "wizard_translation_wizard_id_wizard_id_fk",
3748
+ "tableFrom": "wizard_translation",
3749
+ "tableTo": "wizard",
3750
+ "columnsFrom": [
3751
+ "wizard_id"
3752
+ ],
3753
+ "columnsTo": [
3754
+ "id"
3755
+ ],
3756
+ "onDelete": "cascade",
3757
+ "onUpdate": "no action"
3758
+ }
3759
+ },
3760
+ "compositePrimaryKeys": {
3761
+ "wizard_translation_wizard_id_lang_pk": {
3762
+ "columns": [
3763
+ "wizard_id",
3764
+ "lang"
3765
+ ],
3766
+ "name": "wizard_translation_wizard_id_lang_pk"
3767
+ }
3768
+ },
3769
+ "uniqueConstraints": {},
3770
+ "checkConstraints": {}
3771
+ },
3772
+ "wizard_version": {
3773
+ "name": "wizard_version",
3774
+ "columns": {
3775
+ "id": {
3776
+ "name": "id",
3777
+ "type": "text",
3778
+ "primaryKey": true,
3779
+ "notNull": true,
3780
+ "autoincrement": false
3781
+ },
3782
+ "wizard_id": {
3783
+ "name": "wizard_id",
3784
+ "type": "text",
3785
+ "primaryKey": false,
3786
+ "notNull": true,
3787
+ "autoincrement": false
3788
+ },
3789
+ "version": {
3790
+ "name": "version",
3791
+ "type": "integer",
3792
+ "primaryKey": false,
3793
+ "notNull": true,
3794
+ "autoincrement": false
3795
+ },
3796
+ "definition": {
3797
+ "name": "definition",
3798
+ "type": "text",
3799
+ "primaryKey": false,
3800
+ "notNull": true,
3801
+ "autoincrement": false
3802
+ },
3803
+ "files": {
3804
+ "name": "files",
3805
+ "type": "text",
3806
+ "primaryKey": false,
3807
+ "notNull": true,
3808
+ "autoincrement": false,
3809
+ "default": "'[]'"
3810
+ },
3811
+ "created_at": {
3812
+ "name": "created_at",
3813
+ "type": "integer",
3814
+ "primaryKey": false,
3815
+ "notNull": true,
3816
+ "autoincrement": false,
3817
+ "default": "(unixepoch() * 1000)"
3818
+ }
3819
+ },
3820
+ "indexes": {
3821
+ "wizard_version_n": {
3822
+ "name": "wizard_version_n",
3823
+ "columns": [
3824
+ "wizard_id",
3825
+ "version"
3826
+ ],
3827
+ "isUnique": true
3828
+ }
3829
+ },
3830
+ "foreignKeys": {
3831
+ "wizard_version_wizard_id_wizard_id_fk": {
3832
+ "name": "wizard_version_wizard_id_wizard_id_fk",
3833
+ "tableFrom": "wizard_version",
3834
+ "tableTo": "wizard",
3835
+ "columnsFrom": [
3836
+ "wizard_id"
3837
+ ],
3838
+ "columnsTo": [
3839
+ "id"
3840
+ ],
3841
+ "onDelete": "cascade",
3842
+ "onUpdate": "no action"
3843
+ }
3844
+ },
3845
+ "compositePrimaryKeys": {},
3846
+ "uniqueConstraints": {},
3847
+ "checkConstraints": {}
3848
+ }
3849
+ },
3850
+ "views": {},
3851
+ "enums": {},
3852
+ "_meta": {
3853
+ "schemas": {},
3854
+ "tables": {},
3855
+ "columns": {}
3856
+ },
3857
+ "internal": {
3858
+ "indexes": {}
3859
+ }
3860
+ }