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