@engenty/wizards-runtime 0.7.8 → 0.7.9

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 (89) hide show
  1. package/apps/runtime/dist/clients.js +118 -0
  2. package/apps/runtime/dist/db/client.js +37 -3
  3. package/apps/runtime/dist/db/migrations/tenant/0017_run_client.sql +1 -0
  4. package/apps/runtime/dist/db/migrations/tenant/meta/0017_snapshot.json +3333 -0
  5. package/apps/runtime/dist/db/migrations/tenant/meta/_journal.json +7 -0
  6. package/apps/runtime/dist/db/schema.js +2 -0
  7. package/apps/runtime/dist/docs/dev/api.md +39 -0
  8. package/apps/runtime/dist/docs/dev/index.md +1 -0
  9. package/apps/runtime/dist/docs/dev/integration/openui.md +5 -3
  10. package/apps/runtime/dist/docs/dev/meta.json +1 -1
  11. package/apps/runtime/dist/docs/user/ai-apps.md +14 -3
  12. package/apps/runtime/dist/engine/runner.js +1 -0
  13. package/apps/runtime/dist/index.js +13 -4
  14. package/apps/runtime/dist/plugin.js +24 -8
  15. package/apps/runtime/dist/routes/runs.js +9 -0
  16. package/apps/web/dist/assets/AboutDialog-CShc0mRo.js +1 -0
  17. package/apps/web/dist/assets/ChangelogDialog-C4dVSwtN.js +1 -0
  18. package/apps/web/dist/assets/ChatView-KkOboyOo.js +10 -0
  19. package/apps/web/dist/assets/EditorPage-lQ3YgsFT.js +4 -0
  20. package/apps/web/dist/assets/{FlowPreview-Dx8AjXvE.js → FlowPreview-oX_Emm7u.js} +1 -1
  21. package/apps/web/dist/assets/{Harness-NvIb36TG.js → Harness-D6mgLWTb.js} +2 -2
  22. package/apps/web/dist/assets/{NewWizardChannels-B2YgtJlt.js → NewWizardChannels-CPlh_37J.js} +1 -1
  23. package/apps/web/dist/assets/NewWizardPage-D0FVJtXK.js +7 -0
  24. package/apps/web/dist/assets/OnboardingPage-BXPOMrQR.js +1 -0
  25. package/apps/web/dist/assets/ProjectPage-DroTprqs.js +1 -0
  26. package/apps/web/dist/assets/PublicRunner-j3qoKjQQ.js +1 -0
  27. package/apps/web/dist/assets/{ReadOnly-CGNHlgUT.js → ReadOnly-CKgSQ2z1.js} +1 -1
  28. package/apps/web/dist/assets/RunDrawer-CJZ_ISAd.js +4 -0
  29. package/apps/web/dist/assets/RunnerView-BW1h4x63.js +1 -0
  30. package/apps/web/dist/assets/SettingsPage-BHZ0Z-og.js +1 -0
  31. package/apps/web/dist/assets/SetupPage-CDkYkjJX.js +1 -0
  32. package/apps/web/dist/assets/{SharePage-hG7Z6SLy.js → SharePage-BlVjVjHG.js} +1 -1
  33. package/apps/web/dist/assets/changelog-Be0i5Jjw.js +1 -0
  34. package/apps/web/dist/assets/engenty-WpMi3xwq.js +1 -0
  35. package/apps/web/dist/assets/{esm-DVk3RJij.js → esm-C-ZWeuhU.js} +1 -1
  36. package/apps/web/dist/assets/{fluffy-engenty-ClRou7yu.js → fluffy-engenty-DPNHytrz.js} +135 -16
  37. package/apps/web/dist/assets/goose-helmet-Cvc7KjUg.bin +0 -0
  38. package/apps/web/dist/assets/goose-helmet-livery-CZD9u0XS.webp +0 -0
  39. package/apps/web/dist/assets/index-C4aHMcg9.css +1 -0
  40. package/apps/web/dist/assets/index-C61HAltK.js +14 -0
  41. package/apps/web/dist/assets/oss-credits-qGhcbqiM.js +1 -0
  42. package/apps/web/dist/assets/{phone-CXXHXYnA.js → phone-BjmhIKuT.js} +1 -1
  43. package/apps/web/dist/assets/{settings-menu-DXzZCIMx.js → settings-menu-Dpkp3f56.js} +1 -1
  44. package/apps/web/dist/assets/{ui-DQ4L2npj.js → ui-DMmT-cSO.js} +4 -4
  45. package/apps/web/dist/assets/{upload-BnYHIfu5.js → upload-JX9BcMTq.js} +1 -1
  46. package/apps/web/dist/assets/{wrench-BrUJ7SV6.js → wrench-BSxnPs2_.js} +1 -1
  47. package/apps/web/dist/index.html +4 -4
  48. package/apps/web/dist/mcp/flow.html +141 -22
  49. package/node_modules/@engenty/wizards/package.json +1 -4
  50. package/node_modules/@engenty-wizards/shared/dist/claude-plugin.d.ts +7 -0
  51. package/node_modules/@engenty-wizards/shared/dist/claude-plugin.js +10 -0
  52. package/node_modules/@engenty-wizards/shared/dist/run.d.ts +2 -0
  53. package/node_modules/@engenty-wizards/shared/dist/run.js +4 -0
  54. package/package.json +1 -1
  55. package/plugin/.claude-plugin/plugin.json +28 -6
  56. package/plugin/README.md +58 -0
  57. package/plugin/hooks/engenty.ts +140 -0
  58. package/plugin/hooks/hooks.json +1 -0
  59. package/plugin/hooks/pane.test.tsx +177 -0
  60. package/plugin/hooks/register.tsx +396 -0
  61. package/plugin/types/index.d.ts +44 -0
  62. package/apps/web/dist/assets/AboutDialog-ByZyHXDj.js +0 -1
  63. package/apps/web/dist/assets/ChangelogDialog-QHYP0jAv.js +0 -1
  64. package/apps/web/dist/assets/ChatView-DupTtI8K.js +0 -10
  65. package/apps/web/dist/assets/EditorPage-k6qouLeS.js +0 -4
  66. package/apps/web/dist/assets/NewWizardPage-BgLY6SL6.js +0 -7
  67. package/apps/web/dist/assets/OnboardingPage-CxhwefJU.js +0 -1
  68. package/apps/web/dist/assets/ProjectPage-6ceSSS7W.js +0 -1
  69. package/apps/web/dist/assets/PublicRunner-6lQvReDx.js +0 -1
  70. package/apps/web/dist/assets/RunDrawer-TVGNnWyx.js +0 -4
  71. package/apps/web/dist/assets/RunnerView-DInSK0VZ.js +0 -1
  72. package/apps/web/dist/assets/SettingsPage-D3k5pXN5.js +0 -1
  73. package/apps/web/dist/assets/SetupPage-Bj5frdzY.js +0 -1
  74. package/apps/web/dist/assets/changelog-CO9vKjV0.js +0 -1
  75. package/apps/web/dist/assets/engenty-eXZ-EAwd.js +0 -1
  76. package/apps/web/dist/assets/index-DfaoPjNW.css +0 -1
  77. package/apps/web/dist/assets/index-DlDsr9Lc.js +0 -14
  78. package/apps/web/dist/assets/oss-credits-X2JPiMOR.js +0 -1
  79. package/node_modules/@engenty/wizards/dist/openui/Wizard.d.ts +0 -20
  80. package/node_modules/@engenty/wizards/dist/openui/Wizard.js +0 -62
  81. package/node_modules/@engenty/wizards/dist/openui/index.d.ts +0 -9
  82. package/node_modules/@engenty/wizards/dist/openui/index.js +0 -9
  83. package/node_modules/@engenty/wizards/dist/openui/message.d.ts +0 -11
  84. package/node_modules/@engenty/wizards/dist/openui/message.js +0 -69
  85. package/node_modules/@engenty/wizards/dist/openui/run.d.ts +0 -8
  86. package/node_modules/@engenty/wizards/dist/openui/run.js +0 -137
  87. package/node_modules/@engenty/wizards/dist/openui/server.d.ts +0 -37
  88. package/node_modules/@engenty/wizards/dist/openui/server.js +0 -77
  89. package/plugin/.mcp.json +0 -8
@@ -0,0 +1,3333 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "9a8b65c7-c0be-40e8-b69f-d688a8f72dff",
5
+ "prevId": "cfecaf2a-93c7-49f9-82dc-3b7ad7e71e4f",
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
+ "marketplace_star": {
355
+ "name": "marketplace_star",
356
+ "columns": {
357
+ "tenant_id": {
358
+ "name": "tenant_id",
359
+ "type": "text",
360
+ "primaryKey": false,
361
+ "notNull": true,
362
+ "autoincrement": false
363
+ },
364
+ "entry_id": {
365
+ "name": "entry_id",
366
+ "type": "text",
367
+ "primaryKey": false,
368
+ "notNull": true,
369
+ "autoincrement": false
370
+ },
371
+ "created_at": {
372
+ "name": "created_at",
373
+ "type": "integer",
374
+ "primaryKey": false,
375
+ "notNull": true,
376
+ "autoincrement": false,
377
+ "default": "(unixepoch() * 1000)"
378
+ }
379
+ },
380
+ "indexes": {},
381
+ "foreignKeys": {},
382
+ "compositePrimaryKeys": {
383
+ "marketplace_star_tenant_id_entry_id_pk": {
384
+ "columns": [
385
+ "tenant_id",
386
+ "entry_id"
387
+ ],
388
+ "name": "marketplace_star_tenant_id_entry_id_pk"
389
+ }
390
+ },
391
+ "uniqueConstraints": {},
392
+ "checkConstraints": {}
393
+ },
394
+ "plugin_connection": {
395
+ "name": "plugin_connection",
396
+ "columns": {
397
+ "id": {
398
+ "name": "id",
399
+ "type": "text",
400
+ "primaryKey": true,
401
+ "notNull": true,
402
+ "autoincrement": false
403
+ },
404
+ "plugin": {
405
+ "name": "plugin",
406
+ "type": "text",
407
+ "primaryKey": false,
408
+ "notNull": true,
409
+ "autoincrement": false
410
+ },
411
+ "project_id": {
412
+ "name": "project_id",
413
+ "type": "text",
414
+ "primaryKey": false,
415
+ "notNull": true,
416
+ "autoincrement": false
417
+ },
418
+ "connector": {
419
+ "name": "connector",
420
+ "type": "text",
421
+ "primaryKey": false,
422
+ "notNull": true,
423
+ "autoincrement": false
424
+ },
425
+ "label": {
426
+ "name": "label",
427
+ "type": "text",
428
+ "primaryKey": false,
429
+ "notNull": true,
430
+ "autoincrement": false
431
+ },
432
+ "actions": {
433
+ "name": "actions",
434
+ "type": "text",
435
+ "primaryKey": false,
436
+ "notNull": true,
437
+ "autoincrement": false
438
+ },
439
+ "data": {
440
+ "name": "data",
441
+ "type": "text",
442
+ "primaryKey": false,
443
+ "notNull": true,
444
+ "autoincrement": false
445
+ },
446
+ "created_by": {
447
+ "name": "created_by",
448
+ "type": "text",
449
+ "primaryKey": false,
450
+ "notNull": false,
451
+ "autoincrement": false
452
+ },
453
+ "created_at": {
454
+ "name": "created_at",
455
+ "type": "integer",
456
+ "primaryKey": false,
457
+ "notNull": true,
458
+ "autoincrement": false,
459
+ "default": "(unixepoch() * 1000)"
460
+ },
461
+ "updated_at": {
462
+ "name": "updated_at",
463
+ "type": "integer",
464
+ "primaryKey": false,
465
+ "notNull": true,
466
+ "autoincrement": false,
467
+ "default": "(unixepoch() * 1000)"
468
+ }
469
+ },
470
+ "indexes": {
471
+ "plugin_connection_space": {
472
+ "name": "plugin_connection_space",
473
+ "columns": [
474
+ "plugin",
475
+ "project_id"
476
+ ],
477
+ "isUnique": false
478
+ }
479
+ },
480
+ "foreignKeys": {
481
+ "plugin_connection_project_id_project_id_fk": {
482
+ "name": "plugin_connection_project_id_project_id_fk",
483
+ "tableFrom": "plugin_connection",
484
+ "tableTo": "project",
485
+ "columnsFrom": [
486
+ "project_id"
487
+ ],
488
+ "columnsTo": [
489
+ "id"
490
+ ],
491
+ "onDelete": "cascade",
492
+ "onUpdate": "no action"
493
+ }
494
+ },
495
+ "compositePrimaryKeys": {},
496
+ "uniqueConstraints": {},
497
+ "checkConstraints": {}
498
+ },
499
+ "project": {
500
+ "name": "project",
501
+ "columns": {
502
+ "id": {
503
+ "name": "id",
504
+ "type": "text",
505
+ "primaryKey": true,
506
+ "notNull": true,
507
+ "autoincrement": false
508
+ },
509
+ "tenant_id": {
510
+ "name": "tenant_id",
511
+ "type": "text",
512
+ "primaryKey": false,
513
+ "notNull": true,
514
+ "autoincrement": false
515
+ },
516
+ "name": {
517
+ "name": "name",
518
+ "type": "text",
519
+ "primaryKey": false,
520
+ "notNull": true,
521
+ "autoincrement": false
522
+ },
523
+ "brand": {
524
+ "name": "brand",
525
+ "type": "text",
526
+ "primaryKey": false,
527
+ "notNull": true,
528
+ "autoincrement": false,
529
+ "default": "'{}'"
530
+ },
531
+ "facts": {
532
+ "name": "facts",
533
+ "type": "text",
534
+ "primaryKey": false,
535
+ "notNull": true,
536
+ "autoincrement": false,
537
+ "default": "'[]'"
538
+ },
539
+ "mcp_servers": {
540
+ "name": "mcp_servers",
541
+ "type": "text",
542
+ "primaryKey": false,
543
+ "notNull": true,
544
+ "autoincrement": false,
545
+ "default": "'[]'"
546
+ },
547
+ "origin": {
548
+ "name": "origin",
549
+ "type": "text",
550
+ "primaryKey": false,
551
+ "notNull": false,
552
+ "autoincrement": false
553
+ },
554
+ "synced_at": {
555
+ "name": "synced_at",
556
+ "type": "integer",
557
+ "primaryKey": false,
558
+ "notNull": false,
559
+ "autoincrement": false
560
+ },
561
+ "created_at": {
562
+ "name": "created_at",
563
+ "type": "integer",
564
+ "primaryKey": false,
565
+ "notNull": true,
566
+ "autoincrement": false,
567
+ "default": "(unixepoch() * 1000)"
568
+ },
569
+ "updated_at": {
570
+ "name": "updated_at",
571
+ "type": "integer",
572
+ "primaryKey": false,
573
+ "notNull": true,
574
+ "autoincrement": false,
575
+ "default": "(unixepoch() * 1000)"
576
+ }
577
+ },
578
+ "indexes": {
579
+ "project_tenant": {
580
+ "name": "project_tenant",
581
+ "columns": [
582
+ "tenant_id"
583
+ ],
584
+ "isUnique": false
585
+ }
586
+ },
587
+ "foreignKeys": {},
588
+ "compositePrimaryKeys": {},
589
+ "uniqueConstraints": {},
590
+ "checkConstraints": {}
591
+ },
592
+ "project_chunk": {
593
+ "name": "project_chunk",
594
+ "columns": {
595
+ "id": {
596
+ "name": "id",
597
+ "type": "integer",
598
+ "primaryKey": true,
599
+ "notNull": true,
600
+ "autoincrement": true
601
+ },
602
+ "project_id": {
603
+ "name": "project_id",
604
+ "type": "text",
605
+ "primaryKey": false,
606
+ "notNull": true,
607
+ "autoincrement": false
608
+ },
609
+ "file_id": {
610
+ "name": "file_id",
611
+ "type": "text",
612
+ "primaryKey": false,
613
+ "notNull": false,
614
+ "autoincrement": false
615
+ },
616
+ "page_id": {
617
+ "name": "page_id",
618
+ "type": "text",
619
+ "primaryKey": false,
620
+ "notNull": false,
621
+ "autoincrement": false
622
+ },
623
+ "row_id": {
624
+ "name": "row_id",
625
+ "type": "text",
626
+ "primaryKey": false,
627
+ "notNull": false,
628
+ "autoincrement": false
629
+ },
630
+ "table_id": {
631
+ "name": "table_id",
632
+ "type": "text",
633
+ "primaryKey": false,
634
+ "notNull": false,
635
+ "autoincrement": false
636
+ },
637
+ "value_id": {
638
+ "name": "value_id",
639
+ "type": "text",
640
+ "primaryKey": false,
641
+ "notNull": false,
642
+ "autoincrement": false
643
+ },
644
+ "heading": {
645
+ "name": "heading",
646
+ "type": "text",
647
+ "primaryKey": false,
648
+ "notNull": false,
649
+ "autoincrement": false
650
+ },
651
+ "sheet": {
652
+ "name": "sheet",
653
+ "type": "integer",
654
+ "primaryKey": false,
655
+ "notNull": false,
656
+ "autoincrement": false
657
+ },
658
+ "plugin": {
659
+ "name": "plugin",
660
+ "type": "text",
661
+ "primaryKey": false,
662
+ "notNull": false,
663
+ "autoincrement": false
664
+ },
665
+ "ref": {
666
+ "name": "ref",
667
+ "type": "text",
668
+ "primaryKey": false,
669
+ "notNull": false,
670
+ "autoincrement": false
671
+ },
672
+ "title": {
673
+ "name": "title",
674
+ "type": "text",
675
+ "primaryKey": false,
676
+ "notNull": false,
677
+ "autoincrement": false
678
+ },
679
+ "link": {
680
+ "name": "link",
681
+ "type": "text",
682
+ "primaryKey": false,
683
+ "notNull": false,
684
+ "autoincrement": false
685
+ },
686
+ "idx": {
687
+ "name": "idx",
688
+ "type": "integer",
689
+ "primaryKey": false,
690
+ "notNull": true,
691
+ "autoincrement": false
692
+ },
693
+ "text": {
694
+ "name": "text",
695
+ "type": "text",
696
+ "primaryKey": false,
697
+ "notNull": true,
698
+ "autoincrement": false
699
+ },
700
+ "embedding": {
701
+ "name": "embedding",
702
+ "type": "blob",
703
+ "primaryKey": false,
704
+ "notNull": false,
705
+ "autoincrement": false
706
+ },
707
+ "model": {
708
+ "name": "model",
709
+ "type": "text",
710
+ "primaryKey": false,
711
+ "notNull": false,
712
+ "autoincrement": false
713
+ }
714
+ },
715
+ "indexes": {
716
+ "project_chunk_project": {
717
+ "name": "project_chunk_project",
718
+ "columns": [
719
+ "project_id",
720
+ "model"
721
+ ],
722
+ "isUnique": false
723
+ },
724
+ "project_chunk_file": {
725
+ "name": "project_chunk_file",
726
+ "columns": [
727
+ "file_id"
728
+ ],
729
+ "isUnique": false
730
+ },
731
+ "project_chunk_ref": {
732
+ "name": "project_chunk_ref",
733
+ "columns": [
734
+ "project_id",
735
+ "plugin",
736
+ "ref"
737
+ ],
738
+ "isUnique": false
739
+ },
740
+ "project_chunk_page": {
741
+ "name": "project_chunk_page",
742
+ "columns": [
743
+ "page_id"
744
+ ],
745
+ "isUnique": false
746
+ },
747
+ "project_chunk_row": {
748
+ "name": "project_chunk_row",
749
+ "columns": [
750
+ "row_id"
751
+ ],
752
+ "isUnique": false
753
+ },
754
+ "project_chunk_table": {
755
+ "name": "project_chunk_table",
756
+ "columns": [
757
+ "table_id"
758
+ ],
759
+ "isUnique": false
760
+ },
761
+ "project_chunk_value": {
762
+ "name": "project_chunk_value",
763
+ "columns": [
764
+ "value_id"
765
+ ],
766
+ "isUnique": false
767
+ }
768
+ },
769
+ "foreignKeys": {
770
+ "project_chunk_project_id_project_id_fk": {
771
+ "name": "project_chunk_project_id_project_id_fk",
772
+ "tableFrom": "project_chunk",
773
+ "tableTo": "project",
774
+ "columnsFrom": [
775
+ "project_id"
776
+ ],
777
+ "columnsTo": [
778
+ "id"
779
+ ],
780
+ "onDelete": "cascade",
781
+ "onUpdate": "no action"
782
+ },
783
+ "project_chunk_file_id_project_file_id_fk": {
784
+ "name": "project_chunk_file_id_project_file_id_fk",
785
+ "tableFrom": "project_chunk",
786
+ "tableTo": "project_file",
787
+ "columnsFrom": [
788
+ "file_id"
789
+ ],
790
+ "columnsTo": [
791
+ "id"
792
+ ],
793
+ "onDelete": "cascade",
794
+ "onUpdate": "no action"
795
+ },
796
+ "project_chunk_page_id_space_page_id_fk": {
797
+ "name": "project_chunk_page_id_space_page_id_fk",
798
+ "tableFrom": "project_chunk",
799
+ "tableTo": "space_page",
800
+ "columnsFrom": [
801
+ "page_id"
802
+ ],
803
+ "columnsTo": [
804
+ "id"
805
+ ],
806
+ "onDelete": "cascade",
807
+ "onUpdate": "no action"
808
+ },
809
+ "project_chunk_row_id_space_table_row_id_fk": {
810
+ "name": "project_chunk_row_id_space_table_row_id_fk",
811
+ "tableFrom": "project_chunk",
812
+ "tableTo": "space_table_row",
813
+ "columnsFrom": [
814
+ "row_id"
815
+ ],
816
+ "columnsTo": [
817
+ "id"
818
+ ],
819
+ "onDelete": "cascade",
820
+ "onUpdate": "no action"
821
+ },
822
+ "project_chunk_table_id_space_table_id_fk": {
823
+ "name": "project_chunk_table_id_space_table_id_fk",
824
+ "tableFrom": "project_chunk",
825
+ "tableTo": "space_table",
826
+ "columnsFrom": [
827
+ "table_id"
828
+ ],
829
+ "columnsTo": [
830
+ "id"
831
+ ],
832
+ "onDelete": "cascade",
833
+ "onUpdate": "no action"
834
+ },
835
+ "project_chunk_value_id_space_category_value_id_fk": {
836
+ "name": "project_chunk_value_id_space_category_value_id_fk",
837
+ "tableFrom": "project_chunk",
838
+ "tableTo": "space_category_value",
839
+ "columnsFrom": [
840
+ "value_id"
841
+ ],
842
+ "columnsTo": [
843
+ "id"
844
+ ],
845
+ "onDelete": "cascade",
846
+ "onUpdate": "no action"
847
+ }
848
+ },
849
+ "compositePrimaryKeys": {},
850
+ "uniqueConstraints": {},
851
+ "checkConstraints": {}
852
+ },
853
+ "project_connector": {
854
+ "name": "project_connector",
855
+ "columns": {
856
+ "project_id": {
857
+ "name": "project_id",
858
+ "type": "text",
859
+ "primaryKey": false,
860
+ "notNull": true,
861
+ "autoincrement": false
862
+ },
863
+ "id": {
864
+ "name": "id",
865
+ "type": "text",
866
+ "primaryKey": false,
867
+ "notNull": true,
868
+ "autoincrement": false
869
+ },
870
+ "record": {
871
+ "name": "record",
872
+ "type": "text",
873
+ "primaryKey": false,
874
+ "notNull": true,
875
+ "autoincrement": false
876
+ },
877
+ "created_at": {
878
+ "name": "created_at",
879
+ "type": "integer",
880
+ "primaryKey": false,
881
+ "notNull": true,
882
+ "autoincrement": false,
883
+ "default": "(unixepoch() * 1000)"
884
+ },
885
+ "updated_at": {
886
+ "name": "updated_at",
887
+ "type": "integer",
888
+ "primaryKey": false,
889
+ "notNull": true,
890
+ "autoincrement": false,
891
+ "default": "(unixepoch() * 1000)"
892
+ }
893
+ },
894
+ "indexes": {},
895
+ "foreignKeys": {
896
+ "project_connector_project_id_project_id_fk": {
897
+ "name": "project_connector_project_id_project_id_fk",
898
+ "tableFrom": "project_connector",
899
+ "tableTo": "project",
900
+ "columnsFrom": [
901
+ "project_id"
902
+ ],
903
+ "columnsTo": [
904
+ "id"
905
+ ],
906
+ "onDelete": "cascade",
907
+ "onUpdate": "no action"
908
+ }
909
+ },
910
+ "compositePrimaryKeys": {
911
+ "project_connector_project_id_id_pk": {
912
+ "columns": [
913
+ "project_id",
914
+ "id"
915
+ ],
916
+ "name": "project_connector_project_id_id_pk"
917
+ }
918
+ },
919
+ "uniqueConstraints": {},
920
+ "checkConstraints": {}
921
+ },
922
+ "project_file": {
923
+ "name": "project_file",
924
+ "columns": {
925
+ "id": {
926
+ "name": "id",
927
+ "type": "text",
928
+ "primaryKey": true,
929
+ "notNull": true,
930
+ "autoincrement": false
931
+ },
932
+ "project_id": {
933
+ "name": "project_id",
934
+ "type": "text",
935
+ "primaryKey": false,
936
+ "notNull": true,
937
+ "autoincrement": false
938
+ },
939
+ "kind": {
940
+ "name": "kind",
941
+ "type": "text",
942
+ "primaryKey": false,
943
+ "notNull": true,
944
+ "autoincrement": false
945
+ },
946
+ "name": {
947
+ "name": "name",
948
+ "type": "text",
949
+ "primaryKey": false,
950
+ "notNull": true,
951
+ "autoincrement": false
952
+ },
953
+ "mime": {
954
+ "name": "mime",
955
+ "type": "text",
956
+ "primaryKey": false,
957
+ "notNull": true,
958
+ "autoincrement": false
959
+ },
960
+ "size": {
961
+ "name": "size",
962
+ "type": "integer",
963
+ "primaryKey": false,
964
+ "notNull": true,
965
+ "autoincrement": false
966
+ },
967
+ "description": {
968
+ "name": "description",
969
+ "type": "text",
970
+ "primaryKey": false,
971
+ "notNull": true,
972
+ "autoincrement": false,
973
+ "default": "''"
974
+ },
975
+ "source": {
976
+ "name": "source",
977
+ "type": "text",
978
+ "primaryKey": false,
979
+ "notNull": false,
980
+ "autoincrement": false
981
+ },
982
+ "position": {
983
+ "name": "position",
984
+ "type": "integer",
985
+ "primaryKey": false,
986
+ "notNull": true,
987
+ "autoincrement": false,
988
+ "default": 0
989
+ },
990
+ "status": {
991
+ "name": "status",
992
+ "type": "text",
993
+ "primaryKey": false,
994
+ "notNull": true,
995
+ "autoincrement": false,
996
+ "default": "'ready'"
997
+ },
998
+ "error": {
999
+ "name": "error",
1000
+ "type": "text",
1001
+ "primaryKey": false,
1002
+ "notNull": false,
1003
+ "autoincrement": false
1004
+ },
1005
+ "text_hash": {
1006
+ "name": "text_hash",
1007
+ "type": "text",
1008
+ "primaryKey": false,
1009
+ "notNull": false,
1010
+ "autoincrement": false
1011
+ },
1012
+ "pages": {
1013
+ "name": "pages",
1014
+ "type": "integer",
1015
+ "primaryKey": false,
1016
+ "notNull": false,
1017
+ "autoincrement": false
1018
+ },
1019
+ "chars": {
1020
+ "name": "chars",
1021
+ "type": "integer",
1022
+ "primaryKey": false,
1023
+ "notNull": false,
1024
+ "autoincrement": false
1025
+ },
1026
+ "indexed": {
1027
+ "name": "indexed",
1028
+ "type": "text",
1029
+ "primaryKey": false,
1030
+ "notNull": false,
1031
+ "autoincrement": false
1032
+ },
1033
+ "origin": {
1034
+ "name": "origin",
1035
+ "type": "text",
1036
+ "primaryKey": false,
1037
+ "notNull": false,
1038
+ "autoincrement": false
1039
+ },
1040
+ "origin_key": {
1041
+ "name": "origin_key",
1042
+ "type": "text",
1043
+ "primaryKey": false,
1044
+ "notNull": false,
1045
+ "autoincrement": false
1046
+ },
1047
+ "origin_label": {
1048
+ "name": "origin_label",
1049
+ "type": "text",
1050
+ "primaryKey": false,
1051
+ "notNull": false,
1052
+ "autoincrement": false
1053
+ },
1054
+ "created_at": {
1055
+ "name": "created_at",
1056
+ "type": "integer",
1057
+ "primaryKey": false,
1058
+ "notNull": true,
1059
+ "autoincrement": false,
1060
+ "default": "(unixepoch() * 1000)"
1061
+ },
1062
+ "updated_at": {
1063
+ "name": "updated_at",
1064
+ "type": "integer",
1065
+ "primaryKey": false,
1066
+ "notNull": true,
1067
+ "autoincrement": false,
1068
+ "default": "(unixepoch() * 1000)"
1069
+ }
1070
+ },
1071
+ "indexes": {
1072
+ "project_file_project": {
1073
+ "name": "project_file_project",
1074
+ "columns": [
1075
+ "project_id",
1076
+ "kind",
1077
+ "position"
1078
+ ],
1079
+ "isUnique": false
1080
+ },
1081
+ "project_file_origin": {
1082
+ "name": "project_file_origin",
1083
+ "columns": [
1084
+ "project_id",
1085
+ "origin",
1086
+ "origin_key"
1087
+ ],
1088
+ "isUnique": true
1089
+ }
1090
+ },
1091
+ "foreignKeys": {
1092
+ "project_file_project_id_project_id_fk": {
1093
+ "name": "project_file_project_id_project_id_fk",
1094
+ "tableFrom": "project_file",
1095
+ "tableTo": "project",
1096
+ "columnsFrom": [
1097
+ "project_id"
1098
+ ],
1099
+ "columnsTo": [
1100
+ "id"
1101
+ ],
1102
+ "onDelete": "cascade",
1103
+ "onUpdate": "no action"
1104
+ }
1105
+ },
1106
+ "compositePrimaryKeys": {},
1107
+ "uniqueConstraints": {},
1108
+ "checkConstraints": {}
1109
+ },
1110
+ "run": {
1111
+ "name": "run",
1112
+ "columns": {
1113
+ "id": {
1114
+ "name": "id",
1115
+ "type": "text",
1116
+ "primaryKey": true,
1117
+ "notNull": true,
1118
+ "autoincrement": false
1119
+ },
1120
+ "wizard_id": {
1121
+ "name": "wizard_id",
1122
+ "type": "text",
1123
+ "primaryKey": false,
1124
+ "notNull": true,
1125
+ "autoincrement": false
1126
+ },
1127
+ "tenant_id": {
1128
+ "name": "tenant_id",
1129
+ "type": "text",
1130
+ "primaryKey": false,
1131
+ "notNull": true,
1132
+ "autoincrement": false
1133
+ },
1134
+ "definition": {
1135
+ "name": "definition",
1136
+ "type": "text",
1137
+ "primaryKey": false,
1138
+ "notNull": true,
1139
+ "autoincrement": false
1140
+ },
1141
+ "files": {
1142
+ "name": "files",
1143
+ "type": "text",
1144
+ "primaryKey": false,
1145
+ "notNull": true,
1146
+ "autoincrement": false,
1147
+ "default": "'[]'"
1148
+ },
1149
+ "version": {
1150
+ "name": "version",
1151
+ "type": "integer",
1152
+ "primaryKey": false,
1153
+ "notNull": false,
1154
+ "autoincrement": false
1155
+ },
1156
+ "mode": {
1157
+ "name": "mode",
1158
+ "type": "text",
1159
+ "primaryKey": false,
1160
+ "notNull": true,
1161
+ "autoincrement": false
1162
+ },
1163
+ "runner": {
1164
+ "name": "runner",
1165
+ "type": "text",
1166
+ "primaryKey": false,
1167
+ "notNull": false,
1168
+ "autoincrement": false
1169
+ },
1170
+ "lang": {
1171
+ "name": "lang",
1172
+ "type": "text",
1173
+ "primaryKey": false,
1174
+ "notNull": false,
1175
+ "autoincrement": false
1176
+ },
1177
+ "visitor_id": {
1178
+ "name": "visitor_id",
1179
+ "type": "text",
1180
+ "primaryKey": false,
1181
+ "notNull": false,
1182
+ "autoincrement": false
1183
+ },
1184
+ "user_id": {
1185
+ "name": "user_id",
1186
+ "type": "text",
1187
+ "primaryKey": false,
1188
+ "notNull": false,
1189
+ "autoincrement": false
1190
+ },
1191
+ "ip_hash": {
1192
+ "name": "ip_hash",
1193
+ "type": "text",
1194
+ "primaryKey": false,
1195
+ "notNull": false,
1196
+ "autoincrement": false
1197
+ },
1198
+ "origin": {
1199
+ "name": "origin",
1200
+ "type": "text",
1201
+ "primaryKey": false,
1202
+ "notNull": false,
1203
+ "autoincrement": false
1204
+ },
1205
+ "client": {
1206
+ "name": "client",
1207
+ "type": "text",
1208
+ "primaryKey": false,
1209
+ "notNull": false,
1210
+ "autoincrement": false
1211
+ },
1212
+ "status": {
1213
+ "name": "status",
1214
+ "type": "text",
1215
+ "primaryKey": false,
1216
+ "notNull": true,
1217
+ "autoincrement": false
1218
+ },
1219
+ "cursor": {
1220
+ "name": "cursor",
1221
+ "type": "text",
1222
+ "primaryKey": false,
1223
+ "notNull": false,
1224
+ "autoincrement": false
1225
+ },
1226
+ "state": {
1227
+ "name": "state",
1228
+ "type": "text",
1229
+ "primaryKey": false,
1230
+ "notNull": true,
1231
+ "autoincrement": false
1232
+ },
1233
+ "error": {
1234
+ "name": "error",
1235
+ "type": "text",
1236
+ "primaryKey": false,
1237
+ "notNull": false,
1238
+ "autoincrement": false
1239
+ },
1240
+ "ask": {
1241
+ "name": "ask",
1242
+ "type": "text",
1243
+ "primaryKey": false,
1244
+ "notNull": false,
1245
+ "autoincrement": false
1246
+ },
1247
+ "answer": {
1248
+ "name": "answer",
1249
+ "type": "text",
1250
+ "primaryKey": false,
1251
+ "notNull": false,
1252
+ "autoincrement": false
1253
+ },
1254
+ "unattended": {
1255
+ "name": "unattended",
1256
+ "type": "integer",
1257
+ "primaryKey": false,
1258
+ "notNull": true,
1259
+ "autoincrement": false,
1260
+ "default": false
1261
+ },
1262
+ "device_offer": {
1263
+ "name": "device_offer",
1264
+ "type": "text",
1265
+ "primaryKey": false,
1266
+ "notNull": false,
1267
+ "autoincrement": false
1268
+ },
1269
+ "cost_micros": {
1270
+ "name": "cost_micros",
1271
+ "type": "integer",
1272
+ "primaryKey": false,
1273
+ "notNull": true,
1274
+ "autoincrement": false,
1275
+ "default": 0
1276
+ },
1277
+ "share_token": {
1278
+ "name": "share_token",
1279
+ "type": "text",
1280
+ "primaryKey": false,
1281
+ "notNull": false,
1282
+ "autoincrement": false
1283
+ },
1284
+ "shared_at": {
1285
+ "name": "shared_at",
1286
+ "type": "integer",
1287
+ "primaryKey": false,
1288
+ "notNull": false,
1289
+ "autoincrement": false
1290
+ },
1291
+ "expires_at": {
1292
+ "name": "expires_at",
1293
+ "type": "integer",
1294
+ "primaryKey": false,
1295
+ "notNull": false,
1296
+ "autoincrement": false
1297
+ },
1298
+ "created_at": {
1299
+ "name": "created_at",
1300
+ "type": "integer",
1301
+ "primaryKey": false,
1302
+ "notNull": true,
1303
+ "autoincrement": false,
1304
+ "default": "(unixepoch() * 1000)"
1305
+ },
1306
+ "updated_at": {
1307
+ "name": "updated_at",
1308
+ "type": "integer",
1309
+ "primaryKey": false,
1310
+ "notNull": true,
1311
+ "autoincrement": false,
1312
+ "default": "(unixepoch() * 1000)"
1313
+ }
1314
+ },
1315
+ "indexes": {
1316
+ "run_share_token": {
1317
+ "name": "run_share_token",
1318
+ "columns": [
1319
+ "share_token"
1320
+ ],
1321
+ "isUnique": true
1322
+ },
1323
+ "run_expires": {
1324
+ "name": "run_expires",
1325
+ "columns": [
1326
+ "expires_at"
1327
+ ],
1328
+ "isUnique": false
1329
+ },
1330
+ "run_wizard": {
1331
+ "name": "run_wizard",
1332
+ "columns": [
1333
+ "wizard_id",
1334
+ "created_at"
1335
+ ],
1336
+ "isUnique": false
1337
+ },
1338
+ "run_visitor": {
1339
+ "name": "run_visitor",
1340
+ "columns": [
1341
+ "visitor_id",
1342
+ "created_at"
1343
+ ],
1344
+ "isUnique": false
1345
+ },
1346
+ "run_status": {
1347
+ "name": "run_status",
1348
+ "columns": [
1349
+ "status"
1350
+ ],
1351
+ "isUnique": false
1352
+ }
1353
+ },
1354
+ "foreignKeys": {
1355
+ "run_wizard_id_wizard_id_fk": {
1356
+ "name": "run_wizard_id_wizard_id_fk",
1357
+ "tableFrom": "run",
1358
+ "tableTo": "wizard",
1359
+ "columnsFrom": [
1360
+ "wizard_id"
1361
+ ],
1362
+ "columnsTo": [
1363
+ "id"
1364
+ ],
1365
+ "onDelete": "cascade",
1366
+ "onUpdate": "no action"
1367
+ }
1368
+ },
1369
+ "compositePrimaryKeys": {},
1370
+ "uniqueConstraints": {},
1371
+ "checkConstraints": {}
1372
+ },
1373
+ "run_cost": {
1374
+ "name": "run_cost",
1375
+ "columns": {
1376
+ "run_id": {
1377
+ "name": "run_id",
1378
+ "type": "text",
1379
+ "primaryKey": false,
1380
+ "notNull": true,
1381
+ "autoincrement": false
1382
+ },
1383
+ "step_id": {
1384
+ "name": "step_id",
1385
+ "type": "text",
1386
+ "primaryKey": false,
1387
+ "notNull": true,
1388
+ "autoincrement": false
1389
+ },
1390
+ "micros": {
1391
+ "name": "micros",
1392
+ "type": "integer",
1393
+ "primaryKey": false,
1394
+ "notNull": true,
1395
+ "autoincrement": false,
1396
+ "default": 0
1397
+ }
1398
+ },
1399
+ "indexes": {},
1400
+ "foreignKeys": {
1401
+ "run_cost_run_id_run_id_fk": {
1402
+ "name": "run_cost_run_id_run_id_fk",
1403
+ "tableFrom": "run_cost",
1404
+ "tableTo": "run",
1405
+ "columnsFrom": [
1406
+ "run_id"
1407
+ ],
1408
+ "columnsTo": [
1409
+ "id"
1410
+ ],
1411
+ "onDelete": "cascade",
1412
+ "onUpdate": "no action"
1413
+ }
1414
+ },
1415
+ "compositePrimaryKeys": {
1416
+ "run_cost_run_id_step_id_pk": {
1417
+ "columns": [
1418
+ "run_id",
1419
+ "step_id"
1420
+ ],
1421
+ "name": "run_cost_run_id_step_id_pk"
1422
+ }
1423
+ },
1424
+ "uniqueConstraints": {},
1425
+ "checkConstraints": {}
1426
+ },
1427
+ "run_event": {
1428
+ "name": "run_event",
1429
+ "columns": {
1430
+ "id": {
1431
+ "name": "id",
1432
+ "type": "integer",
1433
+ "primaryKey": true,
1434
+ "notNull": true,
1435
+ "autoincrement": true
1436
+ },
1437
+ "run_id": {
1438
+ "name": "run_id",
1439
+ "type": "text",
1440
+ "primaryKey": false,
1441
+ "notNull": true,
1442
+ "autoincrement": false
1443
+ },
1444
+ "step_id": {
1445
+ "name": "step_id",
1446
+ "type": "text",
1447
+ "primaryKey": false,
1448
+ "notNull": false,
1449
+ "autoincrement": false
1450
+ },
1451
+ "type": {
1452
+ "name": "type",
1453
+ "type": "text",
1454
+ "primaryKey": false,
1455
+ "notNull": true,
1456
+ "autoincrement": false
1457
+ },
1458
+ "message": {
1459
+ "name": "message",
1460
+ "type": "text",
1461
+ "primaryKey": false,
1462
+ "notNull": true,
1463
+ "autoincrement": false
1464
+ },
1465
+ "note": {
1466
+ "name": "note",
1467
+ "type": "text",
1468
+ "primaryKey": false,
1469
+ "notNull": false,
1470
+ "autoincrement": false
1471
+ },
1472
+ "asset_id": {
1473
+ "name": "asset_id",
1474
+ "type": "text",
1475
+ "primaryKey": false,
1476
+ "notNull": false,
1477
+ "autoincrement": false
1478
+ },
1479
+ "created_at": {
1480
+ "name": "created_at",
1481
+ "type": "integer",
1482
+ "primaryKey": false,
1483
+ "notNull": true,
1484
+ "autoincrement": false,
1485
+ "default": "(unixepoch() * 1000)"
1486
+ }
1487
+ },
1488
+ "indexes": {
1489
+ "run_event_run": {
1490
+ "name": "run_event_run",
1491
+ "columns": [
1492
+ "run_id",
1493
+ "id"
1494
+ ],
1495
+ "isUnique": false
1496
+ }
1497
+ },
1498
+ "foreignKeys": {
1499
+ "run_event_run_id_run_id_fk": {
1500
+ "name": "run_event_run_id_run_id_fk",
1501
+ "tableFrom": "run_event",
1502
+ "tableTo": "run",
1503
+ "columnsFrom": [
1504
+ "run_id"
1505
+ ],
1506
+ "columnsTo": [
1507
+ "id"
1508
+ ],
1509
+ "onDelete": "cascade",
1510
+ "onUpdate": "no action"
1511
+ }
1512
+ },
1513
+ "compositePrimaryKeys": {},
1514
+ "uniqueConstraints": {},
1515
+ "checkConstraints": {}
1516
+ },
1517
+ "space_category": {
1518
+ "name": "space_category",
1519
+ "columns": {
1520
+ "id": {
1521
+ "name": "id",
1522
+ "type": "text",
1523
+ "primaryKey": true,
1524
+ "notNull": true,
1525
+ "autoincrement": false
1526
+ },
1527
+ "tenant_id": {
1528
+ "name": "tenant_id",
1529
+ "type": "text",
1530
+ "primaryKey": false,
1531
+ "notNull": true,
1532
+ "autoincrement": false
1533
+ },
1534
+ "project_id": {
1535
+ "name": "project_id",
1536
+ "type": "text",
1537
+ "primaryKey": false,
1538
+ "notNull": true,
1539
+ "autoincrement": false
1540
+ },
1541
+ "name": {
1542
+ "name": "name",
1543
+ "type": "text",
1544
+ "primaryKey": false,
1545
+ "notNull": true,
1546
+ "autoincrement": false
1547
+ },
1548
+ "type": {
1549
+ "name": "type",
1550
+ "type": "text",
1551
+ "primaryKey": false,
1552
+ "notNull": true,
1553
+ "autoincrement": false
1554
+ },
1555
+ "unit": {
1556
+ "name": "unit",
1557
+ "type": "text",
1558
+ "primaryKey": false,
1559
+ "notNull": false,
1560
+ "autoincrement": false
1561
+ },
1562
+ "multiple": {
1563
+ "name": "multiple",
1564
+ "type": "integer",
1565
+ "primaryKey": false,
1566
+ "notNull": true,
1567
+ "autoincrement": false,
1568
+ "default": false
1569
+ },
1570
+ "ordered": {
1571
+ "name": "ordered",
1572
+ "type": "integer",
1573
+ "primaryKey": false,
1574
+ "notNull": true,
1575
+ "autoincrement": false,
1576
+ "default": false
1577
+ },
1578
+ "hint": {
1579
+ "name": "hint",
1580
+ "type": "text",
1581
+ "primaryKey": false,
1582
+ "notNull": false,
1583
+ "autoincrement": false
1584
+ },
1585
+ "origin": {
1586
+ "name": "origin",
1587
+ "type": "text",
1588
+ "primaryKey": false,
1589
+ "notNull": false,
1590
+ "autoincrement": false
1591
+ },
1592
+ "proposed": {
1593
+ "name": "proposed",
1594
+ "type": "integer",
1595
+ "primaryKey": false,
1596
+ "notNull": true,
1597
+ "autoincrement": false,
1598
+ "default": false
1599
+ },
1600
+ "table_id": {
1601
+ "name": "table_id",
1602
+ "type": "text",
1603
+ "primaryKey": false,
1604
+ "notNull": false,
1605
+ "autoincrement": false
1606
+ },
1607
+ "column_id": {
1608
+ "name": "column_id",
1609
+ "type": "text",
1610
+ "primaryKey": false,
1611
+ "notNull": false,
1612
+ "autoincrement": false
1613
+ },
1614
+ "position": {
1615
+ "name": "position",
1616
+ "type": "integer",
1617
+ "primaryKey": false,
1618
+ "notNull": true,
1619
+ "autoincrement": false,
1620
+ "default": 0
1621
+ },
1622
+ "created_at": {
1623
+ "name": "created_at",
1624
+ "type": "integer",
1625
+ "primaryKey": false,
1626
+ "notNull": true,
1627
+ "autoincrement": false,
1628
+ "default": "(unixepoch() * 1000)"
1629
+ },
1630
+ "updated_at": {
1631
+ "name": "updated_at",
1632
+ "type": "integer",
1633
+ "primaryKey": false,
1634
+ "notNull": true,
1635
+ "autoincrement": false,
1636
+ "default": "(unixepoch() * 1000)"
1637
+ }
1638
+ },
1639
+ "indexes": {
1640
+ "space_category_name": {
1641
+ "name": "space_category_name",
1642
+ "columns": [
1643
+ "project_id",
1644
+ "name"
1645
+ ],
1646
+ "isUnique": true
1647
+ }
1648
+ },
1649
+ "foreignKeys": {
1650
+ "space_category_project_id_project_id_fk": {
1651
+ "name": "space_category_project_id_project_id_fk",
1652
+ "tableFrom": "space_category",
1653
+ "tableTo": "project",
1654
+ "columnsFrom": [
1655
+ "project_id"
1656
+ ],
1657
+ "columnsTo": [
1658
+ "id"
1659
+ ],
1660
+ "onDelete": "cascade",
1661
+ "onUpdate": "no action"
1662
+ },
1663
+ "space_category_table_id_space_table_id_fk": {
1664
+ "name": "space_category_table_id_space_table_id_fk",
1665
+ "tableFrom": "space_category",
1666
+ "tableTo": "space_table",
1667
+ "columnsFrom": [
1668
+ "table_id"
1669
+ ],
1670
+ "columnsTo": [
1671
+ "id"
1672
+ ],
1673
+ "onDelete": "set null",
1674
+ "onUpdate": "no action"
1675
+ }
1676
+ },
1677
+ "compositePrimaryKeys": {},
1678
+ "uniqueConstraints": {},
1679
+ "checkConstraints": {}
1680
+ },
1681
+ "space_category_value": {
1682
+ "name": "space_category_value",
1683
+ "columns": {
1684
+ "id": {
1685
+ "name": "id",
1686
+ "type": "text",
1687
+ "primaryKey": true,
1688
+ "notNull": true,
1689
+ "autoincrement": false
1690
+ },
1691
+ "category_id": {
1692
+ "name": "category_id",
1693
+ "type": "text",
1694
+ "primaryKey": false,
1695
+ "notNull": true,
1696
+ "autoincrement": false
1697
+ },
1698
+ "value": {
1699
+ "name": "value",
1700
+ "type": "text",
1701
+ "primaryKey": false,
1702
+ "notNull": true,
1703
+ "autoincrement": false
1704
+ },
1705
+ "position": {
1706
+ "name": "position",
1707
+ "type": "integer",
1708
+ "primaryKey": false,
1709
+ "notNull": true,
1710
+ "autoincrement": false,
1711
+ "default": 0
1712
+ },
1713
+ "summary": {
1714
+ "name": "summary",
1715
+ "type": "text",
1716
+ "primaryKey": false,
1717
+ "notNull": false,
1718
+ "autoincrement": false
1719
+ },
1720
+ "summary_at": {
1721
+ "name": "summary_at",
1722
+ "type": "integer",
1723
+ "primaryKey": false,
1724
+ "notNull": false,
1725
+ "autoincrement": false
1726
+ },
1727
+ "created_at": {
1728
+ "name": "created_at",
1729
+ "type": "integer",
1730
+ "primaryKey": false,
1731
+ "notNull": true,
1732
+ "autoincrement": false,
1733
+ "default": "(unixepoch() * 1000)"
1734
+ }
1735
+ },
1736
+ "indexes": {
1737
+ "space_category_value_value": {
1738
+ "name": "space_category_value_value",
1739
+ "columns": [
1740
+ "category_id",
1741
+ "value"
1742
+ ],
1743
+ "isUnique": true
1744
+ }
1745
+ },
1746
+ "foreignKeys": {
1747
+ "space_category_value_category_id_space_category_id_fk": {
1748
+ "name": "space_category_value_category_id_space_category_id_fk",
1749
+ "tableFrom": "space_category_value",
1750
+ "tableTo": "space_category",
1751
+ "columnsFrom": [
1752
+ "category_id"
1753
+ ],
1754
+ "columnsTo": [
1755
+ "id"
1756
+ ],
1757
+ "onDelete": "cascade",
1758
+ "onUpdate": "no action"
1759
+ }
1760
+ },
1761
+ "compositePrimaryKeys": {},
1762
+ "uniqueConstraints": {},
1763
+ "checkConstraints": {}
1764
+ },
1765
+ "space_item_category": {
1766
+ "name": "space_item_category",
1767
+ "columns": {
1768
+ "id": {
1769
+ "name": "id",
1770
+ "type": "integer",
1771
+ "primaryKey": true,
1772
+ "notNull": true,
1773
+ "autoincrement": true
1774
+ },
1775
+ "project_id": {
1776
+ "name": "project_id",
1777
+ "type": "text",
1778
+ "primaryKey": false,
1779
+ "notNull": true,
1780
+ "autoincrement": false
1781
+ },
1782
+ "category_id": {
1783
+ "name": "category_id",
1784
+ "type": "text",
1785
+ "primaryKey": false,
1786
+ "notNull": true,
1787
+ "autoincrement": false
1788
+ },
1789
+ "page_id": {
1790
+ "name": "page_id",
1791
+ "type": "text",
1792
+ "primaryKey": false,
1793
+ "notNull": false,
1794
+ "autoincrement": false
1795
+ },
1796
+ "row_id": {
1797
+ "name": "row_id",
1798
+ "type": "text",
1799
+ "primaryKey": false,
1800
+ "notNull": false,
1801
+ "autoincrement": false
1802
+ },
1803
+ "table_id": {
1804
+ "name": "table_id",
1805
+ "type": "text",
1806
+ "primaryKey": false,
1807
+ "notNull": false,
1808
+ "autoincrement": false
1809
+ },
1810
+ "file_id": {
1811
+ "name": "file_id",
1812
+ "type": "text",
1813
+ "primaryKey": false,
1814
+ "notNull": false,
1815
+ "autoincrement": false
1816
+ },
1817
+ "value_id": {
1818
+ "name": "value_id",
1819
+ "type": "text",
1820
+ "primaryKey": false,
1821
+ "notNull": false,
1822
+ "autoincrement": false
1823
+ },
1824
+ "text": {
1825
+ "name": "text",
1826
+ "type": "text",
1827
+ "primaryKey": false,
1828
+ "notNull": false,
1829
+ "autoincrement": false
1830
+ },
1831
+ "num": {
1832
+ "name": "num",
1833
+ "type": "real",
1834
+ "primaryKey": false,
1835
+ "notNull": false,
1836
+ "autoincrement": false
1837
+ },
1838
+ "at": {
1839
+ "name": "at",
1840
+ "type": "integer",
1841
+ "primaryKey": false,
1842
+ "notNull": false,
1843
+ "autoincrement": false
1844
+ },
1845
+ "bool": {
1846
+ "name": "bool",
1847
+ "type": "integer",
1848
+ "primaryKey": false,
1849
+ "notNull": false,
1850
+ "autoincrement": false
1851
+ },
1852
+ "by": {
1853
+ "name": "by",
1854
+ "type": "text",
1855
+ "primaryKey": false,
1856
+ "notNull": true,
1857
+ "autoincrement": false,
1858
+ "default": "'person'"
1859
+ }
1860
+ },
1861
+ "indexes": {
1862
+ "space_item_category_category": {
1863
+ "name": "space_item_category_category",
1864
+ "columns": [
1865
+ "category_id",
1866
+ "value_id"
1867
+ ],
1868
+ "isUnique": false
1869
+ },
1870
+ "space_item_category_page": {
1871
+ "name": "space_item_category_page",
1872
+ "columns": [
1873
+ "page_id"
1874
+ ],
1875
+ "isUnique": false
1876
+ },
1877
+ "space_item_category_row": {
1878
+ "name": "space_item_category_row",
1879
+ "columns": [
1880
+ "row_id"
1881
+ ],
1882
+ "isUnique": false
1883
+ },
1884
+ "space_item_category_table": {
1885
+ "name": "space_item_category_table",
1886
+ "columns": [
1887
+ "table_id"
1888
+ ],
1889
+ "isUnique": false
1890
+ },
1891
+ "space_item_category_file": {
1892
+ "name": "space_item_category_file",
1893
+ "columns": [
1894
+ "file_id"
1895
+ ],
1896
+ "isUnique": false
1897
+ }
1898
+ },
1899
+ "foreignKeys": {
1900
+ "space_item_category_project_id_project_id_fk": {
1901
+ "name": "space_item_category_project_id_project_id_fk",
1902
+ "tableFrom": "space_item_category",
1903
+ "tableTo": "project",
1904
+ "columnsFrom": [
1905
+ "project_id"
1906
+ ],
1907
+ "columnsTo": [
1908
+ "id"
1909
+ ],
1910
+ "onDelete": "cascade",
1911
+ "onUpdate": "no action"
1912
+ },
1913
+ "space_item_category_category_id_space_category_id_fk": {
1914
+ "name": "space_item_category_category_id_space_category_id_fk",
1915
+ "tableFrom": "space_item_category",
1916
+ "tableTo": "space_category",
1917
+ "columnsFrom": [
1918
+ "category_id"
1919
+ ],
1920
+ "columnsTo": [
1921
+ "id"
1922
+ ],
1923
+ "onDelete": "cascade",
1924
+ "onUpdate": "no action"
1925
+ },
1926
+ "space_item_category_page_id_space_page_id_fk": {
1927
+ "name": "space_item_category_page_id_space_page_id_fk",
1928
+ "tableFrom": "space_item_category",
1929
+ "tableTo": "space_page",
1930
+ "columnsFrom": [
1931
+ "page_id"
1932
+ ],
1933
+ "columnsTo": [
1934
+ "id"
1935
+ ],
1936
+ "onDelete": "cascade",
1937
+ "onUpdate": "no action"
1938
+ },
1939
+ "space_item_category_row_id_space_table_row_id_fk": {
1940
+ "name": "space_item_category_row_id_space_table_row_id_fk",
1941
+ "tableFrom": "space_item_category",
1942
+ "tableTo": "space_table_row",
1943
+ "columnsFrom": [
1944
+ "row_id"
1945
+ ],
1946
+ "columnsTo": [
1947
+ "id"
1948
+ ],
1949
+ "onDelete": "cascade",
1950
+ "onUpdate": "no action"
1951
+ },
1952
+ "space_item_category_table_id_space_table_id_fk": {
1953
+ "name": "space_item_category_table_id_space_table_id_fk",
1954
+ "tableFrom": "space_item_category",
1955
+ "tableTo": "space_table",
1956
+ "columnsFrom": [
1957
+ "table_id"
1958
+ ],
1959
+ "columnsTo": [
1960
+ "id"
1961
+ ],
1962
+ "onDelete": "cascade",
1963
+ "onUpdate": "no action"
1964
+ },
1965
+ "space_item_category_file_id_project_file_id_fk": {
1966
+ "name": "space_item_category_file_id_project_file_id_fk",
1967
+ "tableFrom": "space_item_category",
1968
+ "tableTo": "project_file",
1969
+ "columnsFrom": [
1970
+ "file_id"
1971
+ ],
1972
+ "columnsTo": [
1973
+ "id"
1974
+ ],
1975
+ "onDelete": "cascade",
1976
+ "onUpdate": "no action"
1977
+ },
1978
+ "space_item_category_value_id_space_category_value_id_fk": {
1979
+ "name": "space_item_category_value_id_space_category_value_id_fk",
1980
+ "tableFrom": "space_item_category",
1981
+ "tableTo": "space_category_value",
1982
+ "columnsFrom": [
1983
+ "value_id"
1984
+ ],
1985
+ "columnsTo": [
1986
+ "id"
1987
+ ],
1988
+ "onDelete": "cascade",
1989
+ "onUpdate": "no action"
1990
+ }
1991
+ },
1992
+ "compositePrimaryKeys": {},
1993
+ "uniqueConstraints": {},
1994
+ "checkConstraints": {}
1995
+ },
1996
+ "space_page": {
1997
+ "name": "space_page",
1998
+ "columns": {
1999
+ "id": {
2000
+ "name": "id",
2001
+ "type": "text",
2002
+ "primaryKey": true,
2003
+ "notNull": true,
2004
+ "autoincrement": false
2005
+ },
2006
+ "tenant_id": {
2007
+ "name": "tenant_id",
2008
+ "type": "text",
2009
+ "primaryKey": false,
2010
+ "notNull": true,
2011
+ "autoincrement": false
2012
+ },
2013
+ "project_id": {
2014
+ "name": "project_id",
2015
+ "type": "text",
2016
+ "primaryKey": false,
2017
+ "notNull": true,
2018
+ "autoincrement": false
2019
+ },
2020
+ "wizard_id": {
2021
+ "name": "wizard_id",
2022
+ "type": "text",
2023
+ "primaryKey": false,
2024
+ "notNull": false,
2025
+ "autoincrement": false
2026
+ },
2027
+ "parent_id": {
2028
+ "name": "parent_id",
2029
+ "type": "text",
2030
+ "primaryKey": false,
2031
+ "notNull": false,
2032
+ "autoincrement": false
2033
+ },
2034
+ "position": {
2035
+ "name": "position",
2036
+ "type": "integer",
2037
+ "primaryKey": false,
2038
+ "notNull": true,
2039
+ "autoincrement": false,
2040
+ "default": 0
2041
+ },
2042
+ "title": {
2043
+ "name": "title",
2044
+ "type": "text",
2045
+ "primaryKey": false,
2046
+ "notNull": true,
2047
+ "autoincrement": false
2048
+ },
2049
+ "slug": {
2050
+ "name": "slug",
2051
+ "type": "text",
2052
+ "primaryKey": false,
2053
+ "notNull": false,
2054
+ "autoincrement": false
2055
+ },
2056
+ "markdown": {
2057
+ "name": "markdown",
2058
+ "type": "text",
2059
+ "primaryKey": false,
2060
+ "notNull": true,
2061
+ "autoincrement": false,
2062
+ "default": "''"
2063
+ },
2064
+ "origin": {
2065
+ "name": "origin",
2066
+ "type": "text",
2067
+ "primaryKey": false,
2068
+ "notNull": false,
2069
+ "autoincrement": false
2070
+ },
2071
+ "origin_key": {
2072
+ "name": "origin_key",
2073
+ "type": "text",
2074
+ "primaryKey": false,
2075
+ "notNull": false,
2076
+ "autoincrement": false
2077
+ },
2078
+ "origin_label": {
2079
+ "name": "origin_label",
2080
+ "type": "text",
2081
+ "primaryKey": false,
2082
+ "notNull": false,
2083
+ "autoincrement": false
2084
+ },
2085
+ "kept": {
2086
+ "name": "kept",
2087
+ "type": "integer",
2088
+ "primaryKey": false,
2089
+ "notNull": true,
2090
+ "autoincrement": false,
2091
+ "default": false
2092
+ },
2093
+ "review": {
2094
+ "name": "review",
2095
+ "type": "text",
2096
+ "primaryKey": false,
2097
+ "notNull": false,
2098
+ "autoincrement": false
2099
+ },
2100
+ "file_id": {
2101
+ "name": "file_id",
2102
+ "type": "text",
2103
+ "primaryKey": false,
2104
+ "notNull": false,
2105
+ "autoincrement": false
2106
+ },
2107
+ "created_at": {
2108
+ "name": "created_at",
2109
+ "type": "integer",
2110
+ "primaryKey": false,
2111
+ "notNull": true,
2112
+ "autoincrement": false,
2113
+ "default": "(unixepoch() * 1000)"
2114
+ },
2115
+ "updated_at": {
2116
+ "name": "updated_at",
2117
+ "type": "integer",
2118
+ "primaryKey": false,
2119
+ "notNull": true,
2120
+ "autoincrement": false,
2121
+ "default": "(unixepoch() * 1000)"
2122
+ }
2123
+ },
2124
+ "indexes": {
2125
+ "space_page_project": {
2126
+ "name": "space_page_project",
2127
+ "columns": [
2128
+ "project_id",
2129
+ "wizard_id"
2130
+ ],
2131
+ "isUnique": false
2132
+ },
2133
+ "space_page_parent": {
2134
+ "name": "space_page_parent",
2135
+ "columns": [
2136
+ "parent_id",
2137
+ "position"
2138
+ ],
2139
+ "isUnique": false
2140
+ },
2141
+ "space_page_origin": {
2142
+ "name": "space_page_origin",
2143
+ "columns": [
2144
+ "project_id",
2145
+ "origin",
2146
+ "origin_key"
2147
+ ],
2148
+ "isUnique": true
2149
+ }
2150
+ },
2151
+ "foreignKeys": {
2152
+ "space_page_project_id_project_id_fk": {
2153
+ "name": "space_page_project_id_project_id_fk",
2154
+ "tableFrom": "space_page",
2155
+ "tableTo": "project",
2156
+ "columnsFrom": [
2157
+ "project_id"
2158
+ ],
2159
+ "columnsTo": [
2160
+ "id"
2161
+ ],
2162
+ "onDelete": "cascade",
2163
+ "onUpdate": "no action"
2164
+ },
2165
+ "space_page_wizard_id_wizard_id_fk": {
2166
+ "name": "space_page_wizard_id_wizard_id_fk",
2167
+ "tableFrom": "space_page",
2168
+ "tableTo": "wizard",
2169
+ "columnsFrom": [
2170
+ "wizard_id"
2171
+ ],
2172
+ "columnsTo": [
2173
+ "id"
2174
+ ],
2175
+ "onDelete": "cascade",
2176
+ "onUpdate": "no action"
2177
+ },
2178
+ "space_page_parent_id_space_page_id_fk": {
2179
+ "name": "space_page_parent_id_space_page_id_fk",
2180
+ "tableFrom": "space_page",
2181
+ "tableTo": "space_page",
2182
+ "columnsFrom": [
2183
+ "parent_id"
2184
+ ],
2185
+ "columnsTo": [
2186
+ "id"
2187
+ ],
2188
+ "onDelete": "cascade",
2189
+ "onUpdate": "no action"
2190
+ },
2191
+ "space_page_file_id_project_file_id_fk": {
2192
+ "name": "space_page_file_id_project_file_id_fk",
2193
+ "tableFrom": "space_page",
2194
+ "tableTo": "project_file",
2195
+ "columnsFrom": [
2196
+ "file_id"
2197
+ ],
2198
+ "columnsTo": [
2199
+ "id"
2200
+ ],
2201
+ "onDelete": "set null",
2202
+ "onUpdate": "no action"
2203
+ }
2204
+ },
2205
+ "compositePrimaryKeys": {},
2206
+ "uniqueConstraints": {},
2207
+ "checkConstraints": {}
2208
+ },
2209
+ "space_table": {
2210
+ "name": "space_table",
2211
+ "columns": {
2212
+ "id": {
2213
+ "name": "id",
2214
+ "type": "text",
2215
+ "primaryKey": true,
2216
+ "notNull": true,
2217
+ "autoincrement": false
2218
+ },
2219
+ "tenant_id": {
2220
+ "name": "tenant_id",
2221
+ "type": "text",
2222
+ "primaryKey": false,
2223
+ "notNull": true,
2224
+ "autoincrement": false
2225
+ },
2226
+ "project_id": {
2227
+ "name": "project_id",
2228
+ "type": "text",
2229
+ "primaryKey": false,
2230
+ "notNull": true,
2231
+ "autoincrement": false
2232
+ },
2233
+ "wizard_id": {
2234
+ "name": "wizard_id",
2235
+ "type": "text",
2236
+ "primaryKey": false,
2237
+ "notNull": false,
2238
+ "autoincrement": false
2239
+ },
2240
+ "list": {
2241
+ "name": "list",
2242
+ "type": "text",
2243
+ "primaryKey": false,
2244
+ "notNull": false,
2245
+ "autoincrement": false
2246
+ },
2247
+ "key_column": {
2248
+ "name": "key_column",
2249
+ "type": "text",
2250
+ "primaryKey": false,
2251
+ "notNull": false,
2252
+ "autoincrement": false
2253
+ },
2254
+ "title": {
2255
+ "name": "title",
2256
+ "type": "text",
2257
+ "primaryKey": false,
2258
+ "notNull": true,
2259
+ "autoincrement": false
2260
+ },
2261
+ "slug": {
2262
+ "name": "slug",
2263
+ "type": "text",
2264
+ "primaryKey": false,
2265
+ "notNull": false,
2266
+ "autoincrement": false
2267
+ },
2268
+ "format": {
2269
+ "name": "format",
2270
+ "type": "text",
2271
+ "primaryKey": false,
2272
+ "notNull": false,
2273
+ "autoincrement": false
2274
+ },
2275
+ "columns": {
2276
+ "name": "columns",
2277
+ "type": "text",
2278
+ "primaryKey": false,
2279
+ "notNull": true,
2280
+ "autoincrement": false
2281
+ },
2282
+ "origin": {
2283
+ "name": "origin",
2284
+ "type": "text",
2285
+ "primaryKey": false,
2286
+ "notNull": false,
2287
+ "autoincrement": false
2288
+ },
2289
+ "origin_key": {
2290
+ "name": "origin_key",
2291
+ "type": "text",
2292
+ "primaryKey": false,
2293
+ "notNull": false,
2294
+ "autoincrement": false
2295
+ },
2296
+ "origin_label": {
2297
+ "name": "origin_label",
2298
+ "type": "text",
2299
+ "primaryKey": false,
2300
+ "notNull": false,
2301
+ "autoincrement": false
2302
+ },
2303
+ "kept": {
2304
+ "name": "kept",
2305
+ "type": "integer",
2306
+ "primaryKey": false,
2307
+ "notNull": true,
2308
+ "autoincrement": false,
2309
+ "default": false
2310
+ },
2311
+ "review": {
2312
+ "name": "review",
2313
+ "type": "text",
2314
+ "primaryKey": false,
2315
+ "notNull": false,
2316
+ "autoincrement": false
2317
+ },
2318
+ "file_id": {
2319
+ "name": "file_id",
2320
+ "type": "text",
2321
+ "primaryKey": false,
2322
+ "notNull": false,
2323
+ "autoincrement": false
2324
+ },
2325
+ "created_at": {
2326
+ "name": "created_at",
2327
+ "type": "integer",
2328
+ "primaryKey": false,
2329
+ "notNull": true,
2330
+ "autoincrement": false,
2331
+ "default": "(unixepoch() * 1000)"
2332
+ },
2333
+ "updated_at": {
2334
+ "name": "updated_at",
2335
+ "type": "integer",
2336
+ "primaryKey": false,
2337
+ "notNull": true,
2338
+ "autoincrement": false,
2339
+ "default": "(unixepoch() * 1000)"
2340
+ }
2341
+ },
2342
+ "indexes": {
2343
+ "space_table_project": {
2344
+ "name": "space_table_project",
2345
+ "columns": [
2346
+ "project_id",
2347
+ "wizard_id"
2348
+ ],
2349
+ "isUnique": false
2350
+ },
2351
+ "space_table_list": {
2352
+ "name": "space_table_list",
2353
+ "columns": [
2354
+ "wizard_id",
2355
+ "list"
2356
+ ],
2357
+ "isUnique": true
2358
+ },
2359
+ "space_table_origin": {
2360
+ "name": "space_table_origin",
2361
+ "columns": [
2362
+ "project_id",
2363
+ "origin",
2364
+ "origin_key"
2365
+ ],
2366
+ "isUnique": true
2367
+ }
2368
+ },
2369
+ "foreignKeys": {
2370
+ "space_table_project_id_project_id_fk": {
2371
+ "name": "space_table_project_id_project_id_fk",
2372
+ "tableFrom": "space_table",
2373
+ "tableTo": "project",
2374
+ "columnsFrom": [
2375
+ "project_id"
2376
+ ],
2377
+ "columnsTo": [
2378
+ "id"
2379
+ ],
2380
+ "onDelete": "cascade",
2381
+ "onUpdate": "no action"
2382
+ },
2383
+ "space_table_wizard_id_wizard_id_fk": {
2384
+ "name": "space_table_wizard_id_wizard_id_fk",
2385
+ "tableFrom": "space_table",
2386
+ "tableTo": "wizard",
2387
+ "columnsFrom": [
2388
+ "wizard_id"
2389
+ ],
2390
+ "columnsTo": [
2391
+ "id"
2392
+ ],
2393
+ "onDelete": "cascade",
2394
+ "onUpdate": "no action"
2395
+ },
2396
+ "space_table_file_id_project_file_id_fk": {
2397
+ "name": "space_table_file_id_project_file_id_fk",
2398
+ "tableFrom": "space_table",
2399
+ "tableTo": "project_file",
2400
+ "columnsFrom": [
2401
+ "file_id"
2402
+ ],
2403
+ "columnsTo": [
2404
+ "id"
2405
+ ],
2406
+ "onDelete": "set null",
2407
+ "onUpdate": "no action"
2408
+ }
2409
+ },
2410
+ "compositePrimaryKeys": {},
2411
+ "uniqueConstraints": {},
2412
+ "checkConstraints": {}
2413
+ },
2414
+ "space_table_row": {
2415
+ "name": "space_table_row",
2416
+ "columns": {
2417
+ "id": {
2418
+ "name": "id",
2419
+ "type": "text",
2420
+ "primaryKey": true,
2421
+ "notNull": true,
2422
+ "autoincrement": false
2423
+ },
2424
+ "table_id": {
2425
+ "name": "table_id",
2426
+ "type": "text",
2427
+ "primaryKey": false,
2428
+ "notNull": true,
2429
+ "autoincrement": false
2430
+ },
2431
+ "key": {
2432
+ "name": "key",
2433
+ "type": "text",
2434
+ "primaryKey": false,
2435
+ "notNull": false,
2436
+ "autoincrement": false
2437
+ },
2438
+ "cells": {
2439
+ "name": "cells",
2440
+ "type": "text",
2441
+ "primaryKey": false,
2442
+ "notNull": true,
2443
+ "autoincrement": false
2444
+ },
2445
+ "created_at": {
2446
+ "name": "created_at",
2447
+ "type": "integer",
2448
+ "primaryKey": false,
2449
+ "notNull": true,
2450
+ "autoincrement": false,
2451
+ "default": "(unixepoch() * 1000)"
2452
+ },
2453
+ "updated_at": {
2454
+ "name": "updated_at",
2455
+ "type": "integer",
2456
+ "primaryKey": false,
2457
+ "notNull": true,
2458
+ "autoincrement": false,
2459
+ "default": "(unixepoch() * 1000)"
2460
+ }
2461
+ },
2462
+ "indexes": {
2463
+ "space_table_row_table": {
2464
+ "name": "space_table_row_table",
2465
+ "columns": [
2466
+ "table_id",
2467
+ "created_at"
2468
+ ],
2469
+ "isUnique": false
2470
+ },
2471
+ "space_table_row_key": {
2472
+ "name": "space_table_row_key",
2473
+ "columns": [
2474
+ "table_id",
2475
+ "key"
2476
+ ],
2477
+ "isUnique": false
2478
+ }
2479
+ },
2480
+ "foreignKeys": {
2481
+ "space_table_row_table_id_space_table_id_fk": {
2482
+ "name": "space_table_row_table_id_space_table_id_fk",
2483
+ "tableFrom": "space_table_row",
2484
+ "tableTo": "space_table",
2485
+ "columnsFrom": [
2486
+ "table_id"
2487
+ ],
2488
+ "columnsTo": [
2489
+ "id"
2490
+ ],
2491
+ "onDelete": "cascade",
2492
+ "onUpdate": "no action"
2493
+ }
2494
+ },
2495
+ "compositePrimaryKeys": {},
2496
+ "uniqueConstraints": {},
2497
+ "checkConstraints": {}
2498
+ },
2499
+ "store_file": {
2500
+ "name": "store_file",
2501
+ "columns": {
2502
+ "wizard_id": {
2503
+ "name": "wizard_id",
2504
+ "type": "text",
2505
+ "primaryKey": false,
2506
+ "notNull": true,
2507
+ "autoincrement": false
2508
+ },
2509
+ "holder": {
2510
+ "name": "holder",
2511
+ "type": "text",
2512
+ "primaryKey": false,
2513
+ "notNull": true,
2514
+ "autoincrement": false
2515
+ },
2516
+ "path": {
2517
+ "name": "path",
2518
+ "type": "text",
2519
+ "primaryKey": false,
2520
+ "notNull": true,
2521
+ "autoincrement": false
2522
+ },
2523
+ "hash": {
2524
+ "name": "hash",
2525
+ "type": "text",
2526
+ "primaryKey": false,
2527
+ "notNull": true,
2528
+ "autoincrement": false
2529
+ },
2530
+ "mime": {
2531
+ "name": "mime",
2532
+ "type": "text",
2533
+ "primaryKey": false,
2534
+ "notNull": true,
2535
+ "autoincrement": false
2536
+ },
2537
+ "size": {
2538
+ "name": "size",
2539
+ "type": "integer",
2540
+ "primaryKey": false,
2541
+ "notNull": true,
2542
+ "autoincrement": false
2543
+ },
2544
+ "source": {
2545
+ "name": "source",
2546
+ "type": "text",
2547
+ "primaryKey": false,
2548
+ "notNull": false,
2549
+ "autoincrement": false
2550
+ },
2551
+ "updated_at": {
2552
+ "name": "updated_at",
2553
+ "type": "integer",
2554
+ "primaryKey": false,
2555
+ "notNull": true,
2556
+ "autoincrement": false,
2557
+ "default": "(unixepoch() * 1000)"
2558
+ }
2559
+ },
2560
+ "indexes": {},
2561
+ "foreignKeys": {
2562
+ "store_file_wizard_id_wizard_id_fk": {
2563
+ "name": "store_file_wizard_id_wizard_id_fk",
2564
+ "tableFrom": "store_file",
2565
+ "tableTo": "wizard",
2566
+ "columnsFrom": [
2567
+ "wizard_id"
2568
+ ],
2569
+ "columnsTo": [
2570
+ "id"
2571
+ ],
2572
+ "onDelete": "cascade",
2573
+ "onUpdate": "no action"
2574
+ }
2575
+ },
2576
+ "compositePrimaryKeys": {
2577
+ "store_file_wizard_id_holder_path_pk": {
2578
+ "columns": [
2579
+ "wizard_id",
2580
+ "holder",
2581
+ "path"
2582
+ ],
2583
+ "name": "store_file_wizard_id_holder_path_pk"
2584
+ }
2585
+ },
2586
+ "uniqueConstraints": {},
2587
+ "checkConstraints": {}
2588
+ },
2589
+ "store_holder": {
2590
+ "name": "store_holder",
2591
+ "columns": {
2592
+ "wizard_id": {
2593
+ "name": "wizard_id",
2594
+ "type": "text",
2595
+ "primaryKey": false,
2596
+ "notNull": true,
2597
+ "autoincrement": false
2598
+ },
2599
+ "holder": {
2600
+ "name": "holder",
2601
+ "type": "text",
2602
+ "primaryKey": false,
2603
+ "notNull": true,
2604
+ "autoincrement": false
2605
+ },
2606
+ "used_at": {
2607
+ "name": "used_at",
2608
+ "type": "integer",
2609
+ "primaryKey": false,
2610
+ "notNull": true,
2611
+ "autoincrement": false,
2612
+ "default": "(unixepoch() * 1000)"
2613
+ }
2614
+ },
2615
+ "indexes": {
2616
+ "store_holder_used": {
2617
+ "name": "store_holder_used",
2618
+ "columns": [
2619
+ "used_at"
2620
+ ],
2621
+ "isUnique": false
2622
+ }
2623
+ },
2624
+ "foreignKeys": {
2625
+ "store_holder_wizard_id_wizard_id_fk": {
2626
+ "name": "store_holder_wizard_id_wizard_id_fk",
2627
+ "tableFrom": "store_holder",
2628
+ "tableTo": "wizard",
2629
+ "columnsFrom": [
2630
+ "wizard_id"
2631
+ ],
2632
+ "columnsTo": [
2633
+ "id"
2634
+ ],
2635
+ "onDelete": "cascade",
2636
+ "onUpdate": "no action"
2637
+ }
2638
+ },
2639
+ "compositePrimaryKeys": {
2640
+ "store_holder_wizard_id_holder_pk": {
2641
+ "columns": [
2642
+ "wizard_id",
2643
+ "holder"
2644
+ ],
2645
+ "name": "store_holder_wizard_id_holder_pk"
2646
+ }
2647
+ },
2648
+ "uniqueConstraints": {},
2649
+ "checkConstraints": {}
2650
+ },
2651
+ "store_row": {
2652
+ "name": "store_row",
2653
+ "columns": {
2654
+ "id": {
2655
+ "name": "id",
2656
+ "type": "text",
2657
+ "primaryKey": true,
2658
+ "notNull": true,
2659
+ "autoincrement": false
2660
+ },
2661
+ "wizard_id": {
2662
+ "name": "wizard_id",
2663
+ "type": "text",
2664
+ "primaryKey": false,
2665
+ "notNull": true,
2666
+ "autoincrement": false
2667
+ },
2668
+ "holder": {
2669
+ "name": "holder",
2670
+ "type": "text",
2671
+ "primaryKey": false,
2672
+ "notNull": true,
2673
+ "autoincrement": false
2674
+ },
2675
+ "list": {
2676
+ "name": "list",
2677
+ "type": "text",
2678
+ "primaryKey": false,
2679
+ "notNull": true,
2680
+ "autoincrement": false
2681
+ },
2682
+ "key": {
2683
+ "name": "key",
2684
+ "type": "text",
2685
+ "primaryKey": false,
2686
+ "notNull": false,
2687
+ "autoincrement": false
2688
+ },
2689
+ "cells": {
2690
+ "name": "cells",
2691
+ "type": "text",
2692
+ "primaryKey": false,
2693
+ "notNull": true,
2694
+ "autoincrement": false
2695
+ },
2696
+ "created_at": {
2697
+ "name": "created_at",
2698
+ "type": "integer",
2699
+ "primaryKey": false,
2700
+ "notNull": true,
2701
+ "autoincrement": false,
2702
+ "default": "(unixepoch() * 1000)"
2703
+ },
2704
+ "updated_at": {
2705
+ "name": "updated_at",
2706
+ "type": "integer",
2707
+ "primaryKey": false,
2708
+ "notNull": true,
2709
+ "autoincrement": false,
2710
+ "default": "(unixepoch() * 1000)"
2711
+ }
2712
+ },
2713
+ "indexes": {
2714
+ "store_row_key": {
2715
+ "name": "store_row_key",
2716
+ "columns": [
2717
+ "wizard_id",
2718
+ "holder",
2719
+ "list",
2720
+ "key"
2721
+ ],
2722
+ "isUnique": true
2723
+ },
2724
+ "store_row_list": {
2725
+ "name": "store_row_list",
2726
+ "columns": [
2727
+ "wizard_id",
2728
+ "holder",
2729
+ "list",
2730
+ "created_at"
2731
+ ],
2732
+ "isUnique": false
2733
+ }
2734
+ },
2735
+ "foreignKeys": {
2736
+ "store_row_wizard_id_wizard_id_fk": {
2737
+ "name": "store_row_wizard_id_wizard_id_fk",
2738
+ "tableFrom": "store_row",
2739
+ "tableTo": "wizard",
2740
+ "columnsFrom": [
2741
+ "wizard_id"
2742
+ ],
2743
+ "columnsTo": [
2744
+ "id"
2745
+ ],
2746
+ "onDelete": "cascade",
2747
+ "onUpdate": "no action"
2748
+ }
2749
+ },
2750
+ "compositePrimaryKeys": {},
2751
+ "uniqueConstraints": {},
2752
+ "checkConstraints": {}
2753
+ },
2754
+ "store_secret": {
2755
+ "name": "store_secret",
2756
+ "columns": {
2757
+ "id": {
2758
+ "name": "id",
2759
+ "type": "text",
2760
+ "primaryKey": true,
2761
+ "notNull": true,
2762
+ "autoincrement": false
2763
+ },
2764
+ "wizard_id": {
2765
+ "name": "wizard_id",
2766
+ "type": "text",
2767
+ "primaryKey": false,
2768
+ "notNull": true,
2769
+ "autoincrement": false
2770
+ },
2771
+ "holder": {
2772
+ "name": "holder",
2773
+ "type": "text",
2774
+ "primaryKey": false,
2775
+ "notNull": true,
2776
+ "autoincrement": false
2777
+ },
2778
+ "slot": {
2779
+ "name": "slot",
2780
+ "type": "text",
2781
+ "primaryKey": false,
2782
+ "notNull": true,
2783
+ "autoincrement": false
2784
+ },
2785
+ "provider": {
2786
+ "name": "provider",
2787
+ "type": "text",
2788
+ "primaryKey": false,
2789
+ "notNull": true,
2790
+ "autoincrement": false
2791
+ },
2792
+ "label": {
2793
+ "name": "label",
2794
+ "type": "text",
2795
+ "primaryKey": false,
2796
+ "notNull": true,
2797
+ "autoincrement": false
2798
+ },
2799
+ "data": {
2800
+ "name": "data",
2801
+ "type": "text",
2802
+ "primaryKey": false,
2803
+ "notNull": true,
2804
+ "autoincrement": false
2805
+ },
2806
+ "created_at": {
2807
+ "name": "created_at",
2808
+ "type": "integer",
2809
+ "primaryKey": false,
2810
+ "notNull": true,
2811
+ "autoincrement": false,
2812
+ "default": "(unixepoch() * 1000)"
2813
+ },
2814
+ "updated_at": {
2815
+ "name": "updated_at",
2816
+ "type": "integer",
2817
+ "primaryKey": false,
2818
+ "notNull": true,
2819
+ "autoincrement": false,
2820
+ "default": "(unixepoch() * 1000)"
2821
+ }
2822
+ },
2823
+ "indexes": {
2824
+ "store_secret_slot": {
2825
+ "name": "store_secret_slot",
2826
+ "columns": [
2827
+ "wizard_id",
2828
+ "holder",
2829
+ "slot"
2830
+ ],
2831
+ "isUnique": true
2832
+ }
2833
+ },
2834
+ "foreignKeys": {
2835
+ "store_secret_wizard_id_wizard_id_fk": {
2836
+ "name": "store_secret_wizard_id_wizard_id_fk",
2837
+ "tableFrom": "store_secret",
2838
+ "tableTo": "wizard",
2839
+ "columnsFrom": [
2840
+ "wizard_id"
2841
+ ],
2842
+ "columnsTo": [
2843
+ "id"
2844
+ ],
2845
+ "onDelete": "cascade",
2846
+ "onUpdate": "no action"
2847
+ }
2848
+ },
2849
+ "compositePrimaryKeys": {},
2850
+ "uniqueConstraints": {},
2851
+ "checkConstraints": {}
2852
+ },
2853
+ "wizard": {
2854
+ "name": "wizard",
2855
+ "columns": {
2856
+ "id": {
2857
+ "name": "id",
2858
+ "type": "text",
2859
+ "primaryKey": true,
2860
+ "notNull": true,
2861
+ "autoincrement": false
2862
+ },
2863
+ "project_id": {
2864
+ "name": "project_id",
2865
+ "type": "text",
2866
+ "primaryKey": false,
2867
+ "notNull": true,
2868
+ "autoincrement": false
2869
+ },
2870
+ "tenant_id": {
2871
+ "name": "tenant_id",
2872
+ "type": "text",
2873
+ "primaryKey": false,
2874
+ "notNull": true,
2875
+ "autoincrement": false
2876
+ },
2877
+ "title": {
2878
+ "name": "title",
2879
+ "type": "text",
2880
+ "primaryKey": false,
2881
+ "notNull": true,
2882
+ "autoincrement": false
2883
+ },
2884
+ "draft": {
2885
+ "name": "draft",
2886
+ "type": "text",
2887
+ "primaryKey": false,
2888
+ "notNull": true,
2889
+ "autoincrement": false
2890
+ },
2891
+ "published_version": {
2892
+ "name": "published_version",
2893
+ "type": "integer",
2894
+ "primaryKey": false,
2895
+ "notNull": false,
2896
+ "autoincrement": false
2897
+ },
2898
+ "share_token": {
2899
+ "name": "share_token",
2900
+ "type": "text",
2901
+ "primaryKey": false,
2902
+ "notNull": true,
2903
+ "autoincrement": false
2904
+ },
2905
+ "share_enabled": {
2906
+ "name": "share_enabled",
2907
+ "type": "integer",
2908
+ "primaryKey": false,
2909
+ "notNull": true,
2910
+ "autoincrement": false,
2911
+ "default": true
2912
+ },
2913
+ "daily_run_limit": {
2914
+ "name": "daily_run_limit",
2915
+ "type": "integer",
2916
+ "primaryKey": false,
2917
+ "notNull": true,
2918
+ "autoincrement": false,
2919
+ "default": 50
2920
+ },
2921
+ "starter": {
2922
+ "name": "starter",
2923
+ "type": "text",
2924
+ "primaryKey": false,
2925
+ "notNull": false,
2926
+ "autoincrement": false
2927
+ },
2928
+ "starter_revision": {
2929
+ "name": "starter_revision",
2930
+ "type": "integer",
2931
+ "primaryKey": false,
2932
+ "notNull": false,
2933
+ "autoincrement": false
2934
+ },
2935
+ "revision": {
2936
+ "name": "revision",
2937
+ "type": "integer",
2938
+ "primaryKey": false,
2939
+ "notNull": true,
2940
+ "autoincrement": false,
2941
+ "default": 0
2942
+ },
2943
+ "runners": {
2944
+ "name": "runners",
2945
+ "type": "text",
2946
+ "primaryKey": false,
2947
+ "notNull": false,
2948
+ "autoincrement": false
2949
+ },
2950
+ "translate": {
2951
+ "name": "translate",
2952
+ "type": "integer",
2953
+ "primaryKey": false,
2954
+ "notNull": true,
2955
+ "autoincrement": false,
2956
+ "default": true
2957
+ },
2958
+ "created_at": {
2959
+ "name": "created_at",
2960
+ "type": "integer",
2961
+ "primaryKey": false,
2962
+ "notNull": true,
2963
+ "autoincrement": false,
2964
+ "default": "(unixepoch() * 1000)"
2965
+ },
2966
+ "updated_at": {
2967
+ "name": "updated_at",
2968
+ "type": "integer",
2969
+ "primaryKey": false,
2970
+ "notNull": true,
2971
+ "autoincrement": false,
2972
+ "default": "(unixepoch() * 1000)"
2973
+ }
2974
+ },
2975
+ "indexes": {
2976
+ "wizard_share_token": {
2977
+ "name": "wizard_share_token",
2978
+ "columns": [
2979
+ "share_token"
2980
+ ],
2981
+ "isUnique": true
2982
+ },
2983
+ "wizard_project": {
2984
+ "name": "wizard_project",
2985
+ "columns": [
2986
+ "project_id"
2987
+ ],
2988
+ "isUnique": false
2989
+ }
2990
+ },
2991
+ "foreignKeys": {
2992
+ "wizard_project_id_project_id_fk": {
2993
+ "name": "wizard_project_id_project_id_fk",
2994
+ "tableFrom": "wizard",
2995
+ "tableTo": "project",
2996
+ "columnsFrom": [
2997
+ "project_id"
2998
+ ],
2999
+ "columnsTo": [
3000
+ "id"
3001
+ ],
3002
+ "onDelete": "cascade",
3003
+ "onUpdate": "no action"
3004
+ }
3005
+ },
3006
+ "compositePrimaryKeys": {},
3007
+ "uniqueConstraints": {},
3008
+ "checkConstraints": {}
3009
+ },
3010
+ "wizard_file": {
3011
+ "name": "wizard_file",
3012
+ "columns": {
3013
+ "wizard_id": {
3014
+ "name": "wizard_id",
3015
+ "type": "text",
3016
+ "primaryKey": false,
3017
+ "notNull": true,
3018
+ "autoincrement": false
3019
+ },
3020
+ "path": {
3021
+ "name": "path",
3022
+ "type": "text",
3023
+ "primaryKey": false,
3024
+ "notNull": true,
3025
+ "autoincrement": false
3026
+ },
3027
+ "hash": {
3028
+ "name": "hash",
3029
+ "type": "text",
3030
+ "primaryKey": false,
3031
+ "notNull": true,
3032
+ "autoincrement": false
3033
+ },
3034
+ "mime": {
3035
+ "name": "mime",
3036
+ "type": "text",
3037
+ "primaryKey": false,
3038
+ "notNull": true,
3039
+ "autoincrement": false
3040
+ },
3041
+ "size": {
3042
+ "name": "size",
3043
+ "type": "integer",
3044
+ "primaryKey": false,
3045
+ "notNull": true,
3046
+ "autoincrement": false
3047
+ },
3048
+ "updated_at": {
3049
+ "name": "updated_at",
3050
+ "type": "integer",
3051
+ "primaryKey": false,
3052
+ "notNull": true,
3053
+ "autoincrement": false,
3054
+ "default": "(unixepoch() * 1000)"
3055
+ }
3056
+ },
3057
+ "indexes": {},
3058
+ "foreignKeys": {
3059
+ "wizard_file_wizard_id_wizard_id_fk": {
3060
+ "name": "wizard_file_wizard_id_wizard_id_fk",
3061
+ "tableFrom": "wizard_file",
3062
+ "tableTo": "wizard",
3063
+ "columnsFrom": [
3064
+ "wizard_id"
3065
+ ],
3066
+ "columnsTo": [
3067
+ "id"
3068
+ ],
3069
+ "onDelete": "cascade",
3070
+ "onUpdate": "no action"
3071
+ }
3072
+ },
3073
+ "compositePrimaryKeys": {
3074
+ "wizard_file_wizard_id_path_pk": {
3075
+ "columns": [
3076
+ "wizard_id",
3077
+ "path"
3078
+ ],
3079
+ "name": "wizard_file_wizard_id_path_pk"
3080
+ }
3081
+ },
3082
+ "uniqueConstraints": {},
3083
+ "checkConstraints": {}
3084
+ },
3085
+ "wizard_message": {
3086
+ "name": "wizard_message",
3087
+ "columns": {
3088
+ "id": {
3089
+ "name": "id",
3090
+ "type": "text",
3091
+ "primaryKey": true,
3092
+ "notNull": true,
3093
+ "autoincrement": false
3094
+ },
3095
+ "wizard_id": {
3096
+ "name": "wizard_id",
3097
+ "type": "text",
3098
+ "primaryKey": false,
3099
+ "notNull": true,
3100
+ "autoincrement": false
3101
+ },
3102
+ "role": {
3103
+ "name": "role",
3104
+ "type": "text",
3105
+ "primaryKey": false,
3106
+ "notNull": true,
3107
+ "autoincrement": false
3108
+ },
3109
+ "content": {
3110
+ "name": "content",
3111
+ "type": "text",
3112
+ "primaryKey": false,
3113
+ "notNull": true,
3114
+ "autoincrement": false
3115
+ },
3116
+ "changed": {
3117
+ "name": "changed",
3118
+ "type": "integer",
3119
+ "primaryKey": false,
3120
+ "notNull": true,
3121
+ "autoincrement": false,
3122
+ "default": false
3123
+ },
3124
+ "source": {
3125
+ "name": "source",
3126
+ "type": "text",
3127
+ "primaryKey": false,
3128
+ "notNull": true,
3129
+ "autoincrement": false,
3130
+ "default": "'studio'"
3131
+ },
3132
+ "client": {
3133
+ "name": "client",
3134
+ "type": "text",
3135
+ "primaryKey": false,
3136
+ "notNull": false,
3137
+ "autoincrement": false
3138
+ },
3139
+ "created_at": {
3140
+ "name": "created_at",
3141
+ "type": "integer",
3142
+ "primaryKey": false,
3143
+ "notNull": true,
3144
+ "autoincrement": false,
3145
+ "default": "(unixepoch() * 1000)"
3146
+ }
3147
+ },
3148
+ "indexes": {
3149
+ "wizard_message_wizard": {
3150
+ "name": "wizard_message_wizard",
3151
+ "columns": [
3152
+ "wizard_id",
3153
+ "created_at"
3154
+ ],
3155
+ "isUnique": false
3156
+ }
3157
+ },
3158
+ "foreignKeys": {
3159
+ "wizard_message_wizard_id_wizard_id_fk": {
3160
+ "name": "wizard_message_wizard_id_wizard_id_fk",
3161
+ "tableFrom": "wizard_message",
3162
+ "tableTo": "wizard",
3163
+ "columnsFrom": [
3164
+ "wizard_id"
3165
+ ],
3166
+ "columnsTo": [
3167
+ "id"
3168
+ ],
3169
+ "onDelete": "cascade",
3170
+ "onUpdate": "no action"
3171
+ }
3172
+ },
3173
+ "compositePrimaryKeys": {},
3174
+ "uniqueConstraints": {},
3175
+ "checkConstraints": {}
3176
+ },
3177
+ "wizard_translation": {
3178
+ "name": "wizard_translation",
3179
+ "columns": {
3180
+ "wizard_id": {
3181
+ "name": "wizard_id",
3182
+ "type": "text",
3183
+ "primaryKey": false,
3184
+ "notNull": true,
3185
+ "autoincrement": false
3186
+ },
3187
+ "lang": {
3188
+ "name": "lang",
3189
+ "type": "text",
3190
+ "primaryKey": false,
3191
+ "notNull": true,
3192
+ "autoincrement": false
3193
+ },
3194
+ "texts": {
3195
+ "name": "texts",
3196
+ "type": "text",
3197
+ "primaryKey": false,
3198
+ "notNull": true,
3199
+ "autoincrement": false
3200
+ },
3201
+ "version": {
3202
+ "name": "version",
3203
+ "type": "integer",
3204
+ "primaryKey": false,
3205
+ "notNull": false,
3206
+ "autoincrement": false
3207
+ },
3208
+ "updated_at": {
3209
+ "name": "updated_at",
3210
+ "type": "integer",
3211
+ "primaryKey": false,
3212
+ "notNull": true,
3213
+ "autoincrement": false,
3214
+ "default": "(unixepoch() * 1000)"
3215
+ }
3216
+ },
3217
+ "indexes": {},
3218
+ "foreignKeys": {
3219
+ "wizard_translation_wizard_id_wizard_id_fk": {
3220
+ "name": "wizard_translation_wizard_id_wizard_id_fk",
3221
+ "tableFrom": "wizard_translation",
3222
+ "tableTo": "wizard",
3223
+ "columnsFrom": [
3224
+ "wizard_id"
3225
+ ],
3226
+ "columnsTo": [
3227
+ "id"
3228
+ ],
3229
+ "onDelete": "cascade",
3230
+ "onUpdate": "no action"
3231
+ }
3232
+ },
3233
+ "compositePrimaryKeys": {
3234
+ "wizard_translation_wizard_id_lang_pk": {
3235
+ "columns": [
3236
+ "wizard_id",
3237
+ "lang"
3238
+ ],
3239
+ "name": "wizard_translation_wizard_id_lang_pk"
3240
+ }
3241
+ },
3242
+ "uniqueConstraints": {},
3243
+ "checkConstraints": {}
3244
+ },
3245
+ "wizard_version": {
3246
+ "name": "wizard_version",
3247
+ "columns": {
3248
+ "id": {
3249
+ "name": "id",
3250
+ "type": "text",
3251
+ "primaryKey": true,
3252
+ "notNull": true,
3253
+ "autoincrement": false
3254
+ },
3255
+ "wizard_id": {
3256
+ "name": "wizard_id",
3257
+ "type": "text",
3258
+ "primaryKey": false,
3259
+ "notNull": true,
3260
+ "autoincrement": false
3261
+ },
3262
+ "version": {
3263
+ "name": "version",
3264
+ "type": "integer",
3265
+ "primaryKey": false,
3266
+ "notNull": true,
3267
+ "autoincrement": false
3268
+ },
3269
+ "definition": {
3270
+ "name": "definition",
3271
+ "type": "text",
3272
+ "primaryKey": false,
3273
+ "notNull": true,
3274
+ "autoincrement": false
3275
+ },
3276
+ "files": {
3277
+ "name": "files",
3278
+ "type": "text",
3279
+ "primaryKey": false,
3280
+ "notNull": true,
3281
+ "autoincrement": false,
3282
+ "default": "'[]'"
3283
+ },
3284
+ "created_at": {
3285
+ "name": "created_at",
3286
+ "type": "integer",
3287
+ "primaryKey": false,
3288
+ "notNull": true,
3289
+ "autoincrement": false,
3290
+ "default": "(unixepoch() * 1000)"
3291
+ }
3292
+ },
3293
+ "indexes": {
3294
+ "wizard_version_n": {
3295
+ "name": "wizard_version_n",
3296
+ "columns": [
3297
+ "wizard_id",
3298
+ "version"
3299
+ ],
3300
+ "isUnique": true
3301
+ }
3302
+ },
3303
+ "foreignKeys": {
3304
+ "wizard_version_wizard_id_wizard_id_fk": {
3305
+ "name": "wizard_version_wizard_id_wizard_id_fk",
3306
+ "tableFrom": "wizard_version",
3307
+ "tableTo": "wizard",
3308
+ "columnsFrom": [
3309
+ "wizard_id"
3310
+ ],
3311
+ "columnsTo": [
3312
+ "id"
3313
+ ],
3314
+ "onDelete": "cascade",
3315
+ "onUpdate": "no action"
3316
+ }
3317
+ },
3318
+ "compositePrimaryKeys": {},
3319
+ "uniqueConstraints": {},
3320
+ "checkConstraints": {}
3321
+ }
3322
+ },
3323
+ "views": {},
3324
+ "enums": {},
3325
+ "_meta": {
3326
+ "schemas": {},
3327
+ "tables": {},
3328
+ "columns": {}
3329
+ },
3330
+ "internal": {
3331
+ "indexes": {}
3332
+ }
3333
+ }