@engenty/wizards-runtime 0.7.10 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/LICENSE-FIGURES +37 -0
  2. package/README.md +8 -2
  3. package/TRADEMARKS.md +47 -0
  4. package/apps/runtime/dist/authoring/guide.js +14 -2
  5. package/apps/runtime/dist/cli/exec.js +4 -1
  6. package/apps/runtime/dist/connectors/builtin.js +4 -2
  7. package/apps/runtime/dist/connectors/index.js +35 -4
  8. package/apps/runtime/dist/connectors/smtp.js +221 -0
  9. package/apps/runtime/dist/db/migrations/tenant/0018_share_job.sql +18 -0
  10. package/apps/runtime/dist/db/migrations/tenant/meta/0018_snapshot.json +3460 -0
  11. package/apps/runtime/dist/db/migrations/tenant/meta/_journal.json +7 -0
  12. package/apps/runtime/dist/db/schema.js +19 -0
  13. package/apps/runtime/dist/docs/dev/index.md +25 -13
  14. package/apps/runtime/dist/docs/dev/meta.json +8 -2
  15. package/apps/runtime/dist/docs/dev/wizard-format/agent-steps.md +112 -0
  16. package/apps/runtime/dist/docs/dev/wizard-format/branches.md +63 -0
  17. package/apps/runtime/dist/docs/dev/wizard-format/film-steps.md +47 -0
  18. package/apps/runtime/dist/docs/dev/wizard-format/generate-steps.md +57 -0
  19. package/apps/runtime/dist/docs/dev/wizard-format/index.md +188 -0
  20. package/apps/runtime/dist/docs/dev/wizard-format/lists-and-connections.md +65 -0
  21. package/apps/runtime/dist/docs/dev/wizard-format/meta.json +19 -0
  22. package/apps/runtime/dist/docs/dev/wizard-format/pages-and-fields.md +102 -0
  23. package/apps/runtime/dist/docs/dev/wizard-format/review-and-result.md +64 -0
  24. package/apps/runtime/dist/docs/dev/wizard-format/templates.md +57 -0
  25. package/apps/runtime/dist/docs/dev/wizard-format/validate.md +63 -0
  26. package/apps/runtime/dist/docs/dev/wizard-format/views-and-widgets.md +103 -0
  27. package/apps/runtime/dist/docs/dev/wizard-format/wizard-file.md +147 -0
  28. package/apps/runtime/dist/docs/user/run.md +21 -4
  29. package/apps/runtime/dist/docs/user/steps.md +26 -1
  30. package/apps/runtime/dist/docs/user/test-and-share.md +3 -2
  31. package/apps/runtime/dist/engine/requirements.js +22 -7
  32. package/apps/runtime/dist/engine/runner.js +17 -8
  33. package/apps/runtime/dist/env.js +5 -0
  34. package/apps/runtime/dist/harness/antigravity.js +2 -10
  35. package/apps/runtime/dist/harness/claude.js +2 -10
  36. package/apps/runtime/dist/harness/codex.js +5 -11
  37. package/apps/runtime/dist/harness/cursor.js +2 -10
  38. package/apps/runtime/dist/harness/env.js +23 -0
  39. package/apps/runtime/dist/harness/index.js +6 -3
  40. package/apps/runtime/dist/routes/runs.js +106 -6
  41. package/apps/runtime/dist/routes/studio.js +12 -0
  42. package/apps/runtime/dist/services/engenty-shapes.js +3 -2
  43. package/apps/runtime/dist/sharing/agent.js +65 -0
  44. package/apps/runtime/dist/sharing/files.js +121 -0
  45. package/apps/runtime/dist/sharing/index.js +298 -0
  46. package/apps/runtime/dist/sharing/jobs.js +186 -0
  47. package/apps/runtime/dist/sharing/state.js +116 -0
  48. package/apps/runtime/dist/sharing/targets/browser.js +131 -0
  49. package/apps/runtime/dist/sharing/targets/connector.js +63 -0
  50. package/apps/runtime/dist/sharing/targets/email.js +98 -0
  51. package/apps/runtime/dist/sharing/targets/slack.js +54 -0
  52. package/apps/runtime/dist/sharing/targets/storage.js +164 -0
  53. package/apps/runtime/dist/sharing/types.js +13 -0
  54. package/apps/runtime/dist/texts.js +108 -0
  55. package/apps/runtime/dist/tools/browser.js +48 -0
  56. package/apps/runtime/dist/tools/connector.js +3 -2
  57. package/apps/runtime/dist/tools/store.js +18 -1
  58. package/apps/web/dist/assets/AboutDialog-CiiSwL4t.js +1 -0
  59. package/apps/web/dist/assets/{ChangelogDialog-B0lS0BdL.js → ChangelogDialog-BEyz7LNE.js} +1 -1
  60. package/apps/web/dist/assets/ChatView-9RkWts5F.js +10 -0
  61. package/apps/web/dist/assets/EditorPage-CCsKKcYo.js +4 -0
  62. package/apps/web/dist/assets/{FlowPreview-oX_Emm7u.js → FlowPreview-CLf8WHiG.js} +1 -1
  63. package/apps/web/dist/assets/{Harness-Dv9ln5xB.js → Harness-jc3jpWvI.js} +2 -2
  64. package/apps/web/dist/assets/NewWizardChannels-BPGZ4pfP.js +1 -0
  65. package/apps/web/dist/assets/NewWizardPage-tidycL7Y.js +7 -0
  66. package/apps/web/dist/assets/OnboardingPage-DtVuaIuv.js +1 -0
  67. package/apps/web/dist/assets/ProjectPage-BsWgCP5z.js +1 -0
  68. package/apps/web/dist/assets/PublicRunner-CkA_etKX.js +1 -0
  69. package/apps/web/dist/assets/{ReadOnly-S9vGVQHr.js → ReadOnly-BVwbqvpi.js} +1 -1
  70. package/apps/web/dist/assets/RunDrawer-CkFpnWCC.js +4 -0
  71. package/apps/web/dist/assets/{RunnerView-BW1h4x63.js → RunnerView-CxTFM-lx.js} +1 -1
  72. package/apps/web/dist/assets/SettingsPage-DM1wNAE7.js +1 -0
  73. package/apps/web/dist/assets/SetupPage-BKnQqiab.js +1 -0
  74. package/apps/web/dist/assets/{SharePage-ktqm-jWI.js → SharePage-CTTSudtp.js} +1 -1
  75. package/apps/web/dist/assets/changelog-DBEwyB1f.js +1 -0
  76. package/apps/web/dist/assets/engenty-Cko4qGFV.js +1 -0
  77. package/apps/web/dist/assets/{esm-C-ZWeuhU.js → esm-DtNAg8uF.js} +1 -1
  78. package/apps/web/dist/assets/fluffy-engenty-Db7agOjV.js +520 -0
  79. package/apps/web/dist/assets/index-V1M59Yez.css +1 -0
  80. package/apps/web/dist/assets/index-xIz8znhq.js +14 -0
  81. package/apps/web/dist/assets/{oss-credits-Bc05Qv5H.js → oss-credits-BWE03Xax.js} +1 -1
  82. package/apps/web/dist/assets/{phone-BjmhIKuT.js → phone-5SYD9OrJ.js} +1 -1
  83. package/apps/web/dist/assets/{settings-menu-Dpkp3f56.js → settings-menu-Bn5-7Lqk.js} +1 -1
  84. package/apps/web/dist/assets/ui-s39eGOtW.js +137 -0
  85. package/apps/web/dist/assets/{upload-JX9BcMTq.js → upload-Bevcvx5V.js} +1 -1
  86. package/apps/web/dist/assets/{wrench-BSxnPs2_.js → wrench-ZD5SCsz9.js} +1 -1
  87. package/apps/web/dist/favicon.svg +2 -1
  88. package/apps/web/dist/icons/apple-touch-icon.png +0 -0
  89. package/apps/web/dist/icons/icon-192.png +0 -0
  90. package/apps/web/dist/icons/icon-512.png +0 -0
  91. package/apps/web/dist/icons/icon-maskable-512.png +0 -0
  92. package/apps/web/dist/index.html +4 -4
  93. package/apps/web/dist/mcp/flow.html +65 -120
  94. package/node_modules/@engenty-wizards/shared/dist/definition.d.ts +22 -0
  95. package/node_modules/@engenty-wizards/shared/dist/definition.js +26 -0
  96. package/node_modules/@engenty-wizards/shared/dist/run.d.ts +6 -0
  97. package/node_modules/@engenty-wizards/shared/dist/run.js +2 -0
  98. package/node_modules/@engenty-wizards/shared/dist/sharing.d.ts +135 -0
  99. package/node_modules/@engenty-wizards/shared/dist/sharing.js +11 -0
  100. package/node_modules/@engenty-wizards/shared/dist/store.d.ts +8 -0
  101. package/package.json +6 -3
  102. package/plugin/.claude-plugin/plugin.json +1 -1
  103. package/plugin/hooks/engenty.ts +3 -2
  104. package/apps/runtime/dist/docs/dev/wizard-format.md +0 -125
  105. package/apps/web/dist/assets/AboutDialog-B2LuZ_mC.js +0 -1
  106. package/apps/web/dist/assets/ChatView-BcPDcU2d.js +0 -10
  107. package/apps/web/dist/assets/EditorPage-erduYKNM.js +0 -4
  108. package/apps/web/dist/assets/NewWizardChannels-JveYyh-U.js +0 -1
  109. package/apps/web/dist/assets/NewWizardPage-Dfk-WOhX.js +0 -7
  110. package/apps/web/dist/assets/OnboardingPage-CT9dL4ke.js +0 -1
  111. package/apps/web/dist/assets/ProjectPage-5_Wsk9Hv.js +0 -1
  112. package/apps/web/dist/assets/PublicRunner-Cw1WzTze.js +0 -1
  113. package/apps/web/dist/assets/RunDrawer-O4rEFCL8.js +0 -4
  114. package/apps/web/dist/assets/SettingsPage-DmhN7OTy.js +0 -1
  115. package/apps/web/dist/assets/SetupPage-BlWd7Uln.js +0 -1
  116. package/apps/web/dist/assets/changelog-FJJS0Tpt.js +0 -1
  117. package/apps/web/dist/assets/engenty-WpMi3xwq.js +0 -1
  118. package/apps/web/dist/assets/fluffy-engenty-DPNHytrz.js +0 -575
  119. package/apps/web/dist/assets/index-C4aHMcg9.css +0 -1
  120. package/apps/web/dist/assets/index-xH9uN8Nh.js +0 -14
  121. package/apps/web/dist/assets/ui-DMmT-cSO.js +0 -137
@@ -0,0 +1,3460 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "6b198b5e-0fcd-4e2f-b152-c9ca40799ebe",
5
+ "prevId": "9a8b65c7-c0be-40e8-b69f-d688a8f72dff",
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
+ "share_job": {
1518
+ "name": "share_job",
1519
+ "columns": {
1520
+ "id": {
1521
+ "name": "id",
1522
+ "type": "text",
1523
+ "primaryKey": true,
1524
+ "notNull": true,
1525
+ "autoincrement": false
1526
+ },
1527
+ "run_id": {
1528
+ "name": "run_id",
1529
+ "type": "text",
1530
+ "primaryKey": false,
1531
+ "notNull": true,
1532
+ "autoincrement": false
1533
+ },
1534
+ "tenant_id": {
1535
+ "name": "tenant_id",
1536
+ "type": "text",
1537
+ "primaryKey": false,
1538
+ "notNull": true,
1539
+ "autoincrement": false
1540
+ },
1541
+ "target": {
1542
+ "name": "target",
1543
+ "type": "text",
1544
+ "primaryKey": false,
1545
+ "notNull": true,
1546
+ "autoincrement": false
1547
+ },
1548
+ "name": {
1549
+ "name": "name",
1550
+ "type": "text",
1551
+ "primaryKey": false,
1552
+ "notNull": true,
1553
+ "autoincrement": false
1554
+ },
1555
+ "icon": {
1556
+ "name": "icon",
1557
+ "type": "text",
1558
+ "primaryKey": false,
1559
+ "notNull": true,
1560
+ "autoincrement": false
1561
+ },
1562
+ "status": {
1563
+ "name": "status",
1564
+ "type": "text",
1565
+ "primaryKey": false,
1566
+ "notNull": true,
1567
+ "autoincrement": false
1568
+ },
1569
+ "request": {
1570
+ "name": "request",
1571
+ "type": "text",
1572
+ "primaryKey": false,
1573
+ "notNull": true,
1574
+ "autoincrement": false
1575
+ },
1576
+ "events": {
1577
+ "name": "events",
1578
+ "type": "text",
1579
+ "primaryKey": false,
1580
+ "notNull": true,
1581
+ "autoincrement": false,
1582
+ "default": "'[]'"
1583
+ },
1584
+ "result": {
1585
+ "name": "result",
1586
+ "type": "text",
1587
+ "primaryKey": false,
1588
+ "notNull": false,
1589
+ "autoincrement": false
1590
+ },
1591
+ "error": {
1592
+ "name": "error",
1593
+ "type": "text",
1594
+ "primaryKey": false,
1595
+ "notNull": false,
1596
+ "autoincrement": false
1597
+ },
1598
+ "created_at": {
1599
+ "name": "created_at",
1600
+ "type": "integer",
1601
+ "primaryKey": false,
1602
+ "notNull": true,
1603
+ "autoincrement": false,
1604
+ "default": "(unixepoch() * 1000)"
1605
+ },
1606
+ "updated_at": {
1607
+ "name": "updated_at",
1608
+ "type": "integer",
1609
+ "primaryKey": false,
1610
+ "notNull": true,
1611
+ "autoincrement": false,
1612
+ "default": "(unixepoch() * 1000)"
1613
+ }
1614
+ },
1615
+ "indexes": {
1616
+ "share_job_run": {
1617
+ "name": "share_job_run",
1618
+ "columns": [
1619
+ "run_id",
1620
+ "created_at"
1621
+ ],
1622
+ "isUnique": false
1623
+ }
1624
+ },
1625
+ "foreignKeys": {
1626
+ "share_job_run_id_run_id_fk": {
1627
+ "name": "share_job_run_id_run_id_fk",
1628
+ "tableFrom": "share_job",
1629
+ "tableTo": "run",
1630
+ "columnsFrom": [
1631
+ "run_id"
1632
+ ],
1633
+ "columnsTo": [
1634
+ "id"
1635
+ ],
1636
+ "onDelete": "cascade",
1637
+ "onUpdate": "no action"
1638
+ }
1639
+ },
1640
+ "compositePrimaryKeys": {},
1641
+ "uniqueConstraints": {},
1642
+ "checkConstraints": {}
1643
+ },
1644
+ "space_category": {
1645
+ "name": "space_category",
1646
+ "columns": {
1647
+ "id": {
1648
+ "name": "id",
1649
+ "type": "text",
1650
+ "primaryKey": true,
1651
+ "notNull": true,
1652
+ "autoincrement": false
1653
+ },
1654
+ "tenant_id": {
1655
+ "name": "tenant_id",
1656
+ "type": "text",
1657
+ "primaryKey": false,
1658
+ "notNull": true,
1659
+ "autoincrement": false
1660
+ },
1661
+ "project_id": {
1662
+ "name": "project_id",
1663
+ "type": "text",
1664
+ "primaryKey": false,
1665
+ "notNull": true,
1666
+ "autoincrement": false
1667
+ },
1668
+ "name": {
1669
+ "name": "name",
1670
+ "type": "text",
1671
+ "primaryKey": false,
1672
+ "notNull": true,
1673
+ "autoincrement": false
1674
+ },
1675
+ "type": {
1676
+ "name": "type",
1677
+ "type": "text",
1678
+ "primaryKey": false,
1679
+ "notNull": true,
1680
+ "autoincrement": false
1681
+ },
1682
+ "unit": {
1683
+ "name": "unit",
1684
+ "type": "text",
1685
+ "primaryKey": false,
1686
+ "notNull": false,
1687
+ "autoincrement": false
1688
+ },
1689
+ "multiple": {
1690
+ "name": "multiple",
1691
+ "type": "integer",
1692
+ "primaryKey": false,
1693
+ "notNull": true,
1694
+ "autoincrement": false,
1695
+ "default": false
1696
+ },
1697
+ "ordered": {
1698
+ "name": "ordered",
1699
+ "type": "integer",
1700
+ "primaryKey": false,
1701
+ "notNull": true,
1702
+ "autoincrement": false,
1703
+ "default": false
1704
+ },
1705
+ "hint": {
1706
+ "name": "hint",
1707
+ "type": "text",
1708
+ "primaryKey": false,
1709
+ "notNull": false,
1710
+ "autoincrement": false
1711
+ },
1712
+ "origin": {
1713
+ "name": "origin",
1714
+ "type": "text",
1715
+ "primaryKey": false,
1716
+ "notNull": false,
1717
+ "autoincrement": false
1718
+ },
1719
+ "proposed": {
1720
+ "name": "proposed",
1721
+ "type": "integer",
1722
+ "primaryKey": false,
1723
+ "notNull": true,
1724
+ "autoincrement": false,
1725
+ "default": false
1726
+ },
1727
+ "table_id": {
1728
+ "name": "table_id",
1729
+ "type": "text",
1730
+ "primaryKey": false,
1731
+ "notNull": false,
1732
+ "autoincrement": false
1733
+ },
1734
+ "column_id": {
1735
+ "name": "column_id",
1736
+ "type": "text",
1737
+ "primaryKey": false,
1738
+ "notNull": false,
1739
+ "autoincrement": false
1740
+ },
1741
+ "position": {
1742
+ "name": "position",
1743
+ "type": "integer",
1744
+ "primaryKey": false,
1745
+ "notNull": true,
1746
+ "autoincrement": false,
1747
+ "default": 0
1748
+ },
1749
+ "created_at": {
1750
+ "name": "created_at",
1751
+ "type": "integer",
1752
+ "primaryKey": false,
1753
+ "notNull": true,
1754
+ "autoincrement": false,
1755
+ "default": "(unixepoch() * 1000)"
1756
+ },
1757
+ "updated_at": {
1758
+ "name": "updated_at",
1759
+ "type": "integer",
1760
+ "primaryKey": false,
1761
+ "notNull": true,
1762
+ "autoincrement": false,
1763
+ "default": "(unixepoch() * 1000)"
1764
+ }
1765
+ },
1766
+ "indexes": {
1767
+ "space_category_name": {
1768
+ "name": "space_category_name",
1769
+ "columns": [
1770
+ "project_id",
1771
+ "name"
1772
+ ],
1773
+ "isUnique": true
1774
+ }
1775
+ },
1776
+ "foreignKeys": {
1777
+ "space_category_project_id_project_id_fk": {
1778
+ "name": "space_category_project_id_project_id_fk",
1779
+ "tableFrom": "space_category",
1780
+ "tableTo": "project",
1781
+ "columnsFrom": [
1782
+ "project_id"
1783
+ ],
1784
+ "columnsTo": [
1785
+ "id"
1786
+ ],
1787
+ "onDelete": "cascade",
1788
+ "onUpdate": "no action"
1789
+ },
1790
+ "space_category_table_id_space_table_id_fk": {
1791
+ "name": "space_category_table_id_space_table_id_fk",
1792
+ "tableFrom": "space_category",
1793
+ "tableTo": "space_table",
1794
+ "columnsFrom": [
1795
+ "table_id"
1796
+ ],
1797
+ "columnsTo": [
1798
+ "id"
1799
+ ],
1800
+ "onDelete": "set null",
1801
+ "onUpdate": "no action"
1802
+ }
1803
+ },
1804
+ "compositePrimaryKeys": {},
1805
+ "uniqueConstraints": {},
1806
+ "checkConstraints": {}
1807
+ },
1808
+ "space_category_value": {
1809
+ "name": "space_category_value",
1810
+ "columns": {
1811
+ "id": {
1812
+ "name": "id",
1813
+ "type": "text",
1814
+ "primaryKey": true,
1815
+ "notNull": true,
1816
+ "autoincrement": false
1817
+ },
1818
+ "category_id": {
1819
+ "name": "category_id",
1820
+ "type": "text",
1821
+ "primaryKey": false,
1822
+ "notNull": true,
1823
+ "autoincrement": false
1824
+ },
1825
+ "value": {
1826
+ "name": "value",
1827
+ "type": "text",
1828
+ "primaryKey": false,
1829
+ "notNull": true,
1830
+ "autoincrement": false
1831
+ },
1832
+ "position": {
1833
+ "name": "position",
1834
+ "type": "integer",
1835
+ "primaryKey": false,
1836
+ "notNull": true,
1837
+ "autoincrement": false,
1838
+ "default": 0
1839
+ },
1840
+ "summary": {
1841
+ "name": "summary",
1842
+ "type": "text",
1843
+ "primaryKey": false,
1844
+ "notNull": false,
1845
+ "autoincrement": false
1846
+ },
1847
+ "summary_at": {
1848
+ "name": "summary_at",
1849
+ "type": "integer",
1850
+ "primaryKey": false,
1851
+ "notNull": false,
1852
+ "autoincrement": false
1853
+ },
1854
+ "created_at": {
1855
+ "name": "created_at",
1856
+ "type": "integer",
1857
+ "primaryKey": false,
1858
+ "notNull": true,
1859
+ "autoincrement": false,
1860
+ "default": "(unixepoch() * 1000)"
1861
+ }
1862
+ },
1863
+ "indexes": {
1864
+ "space_category_value_value": {
1865
+ "name": "space_category_value_value",
1866
+ "columns": [
1867
+ "category_id",
1868
+ "value"
1869
+ ],
1870
+ "isUnique": true
1871
+ }
1872
+ },
1873
+ "foreignKeys": {
1874
+ "space_category_value_category_id_space_category_id_fk": {
1875
+ "name": "space_category_value_category_id_space_category_id_fk",
1876
+ "tableFrom": "space_category_value",
1877
+ "tableTo": "space_category",
1878
+ "columnsFrom": [
1879
+ "category_id"
1880
+ ],
1881
+ "columnsTo": [
1882
+ "id"
1883
+ ],
1884
+ "onDelete": "cascade",
1885
+ "onUpdate": "no action"
1886
+ }
1887
+ },
1888
+ "compositePrimaryKeys": {},
1889
+ "uniqueConstraints": {},
1890
+ "checkConstraints": {}
1891
+ },
1892
+ "space_item_category": {
1893
+ "name": "space_item_category",
1894
+ "columns": {
1895
+ "id": {
1896
+ "name": "id",
1897
+ "type": "integer",
1898
+ "primaryKey": true,
1899
+ "notNull": true,
1900
+ "autoincrement": true
1901
+ },
1902
+ "project_id": {
1903
+ "name": "project_id",
1904
+ "type": "text",
1905
+ "primaryKey": false,
1906
+ "notNull": true,
1907
+ "autoincrement": false
1908
+ },
1909
+ "category_id": {
1910
+ "name": "category_id",
1911
+ "type": "text",
1912
+ "primaryKey": false,
1913
+ "notNull": true,
1914
+ "autoincrement": false
1915
+ },
1916
+ "page_id": {
1917
+ "name": "page_id",
1918
+ "type": "text",
1919
+ "primaryKey": false,
1920
+ "notNull": false,
1921
+ "autoincrement": false
1922
+ },
1923
+ "row_id": {
1924
+ "name": "row_id",
1925
+ "type": "text",
1926
+ "primaryKey": false,
1927
+ "notNull": false,
1928
+ "autoincrement": false
1929
+ },
1930
+ "table_id": {
1931
+ "name": "table_id",
1932
+ "type": "text",
1933
+ "primaryKey": false,
1934
+ "notNull": false,
1935
+ "autoincrement": false
1936
+ },
1937
+ "file_id": {
1938
+ "name": "file_id",
1939
+ "type": "text",
1940
+ "primaryKey": false,
1941
+ "notNull": false,
1942
+ "autoincrement": false
1943
+ },
1944
+ "value_id": {
1945
+ "name": "value_id",
1946
+ "type": "text",
1947
+ "primaryKey": false,
1948
+ "notNull": false,
1949
+ "autoincrement": false
1950
+ },
1951
+ "text": {
1952
+ "name": "text",
1953
+ "type": "text",
1954
+ "primaryKey": false,
1955
+ "notNull": false,
1956
+ "autoincrement": false
1957
+ },
1958
+ "num": {
1959
+ "name": "num",
1960
+ "type": "real",
1961
+ "primaryKey": false,
1962
+ "notNull": false,
1963
+ "autoincrement": false
1964
+ },
1965
+ "at": {
1966
+ "name": "at",
1967
+ "type": "integer",
1968
+ "primaryKey": false,
1969
+ "notNull": false,
1970
+ "autoincrement": false
1971
+ },
1972
+ "bool": {
1973
+ "name": "bool",
1974
+ "type": "integer",
1975
+ "primaryKey": false,
1976
+ "notNull": false,
1977
+ "autoincrement": false
1978
+ },
1979
+ "by": {
1980
+ "name": "by",
1981
+ "type": "text",
1982
+ "primaryKey": false,
1983
+ "notNull": true,
1984
+ "autoincrement": false,
1985
+ "default": "'person'"
1986
+ }
1987
+ },
1988
+ "indexes": {
1989
+ "space_item_category_category": {
1990
+ "name": "space_item_category_category",
1991
+ "columns": [
1992
+ "category_id",
1993
+ "value_id"
1994
+ ],
1995
+ "isUnique": false
1996
+ },
1997
+ "space_item_category_page": {
1998
+ "name": "space_item_category_page",
1999
+ "columns": [
2000
+ "page_id"
2001
+ ],
2002
+ "isUnique": false
2003
+ },
2004
+ "space_item_category_row": {
2005
+ "name": "space_item_category_row",
2006
+ "columns": [
2007
+ "row_id"
2008
+ ],
2009
+ "isUnique": false
2010
+ },
2011
+ "space_item_category_table": {
2012
+ "name": "space_item_category_table",
2013
+ "columns": [
2014
+ "table_id"
2015
+ ],
2016
+ "isUnique": false
2017
+ },
2018
+ "space_item_category_file": {
2019
+ "name": "space_item_category_file",
2020
+ "columns": [
2021
+ "file_id"
2022
+ ],
2023
+ "isUnique": false
2024
+ }
2025
+ },
2026
+ "foreignKeys": {
2027
+ "space_item_category_project_id_project_id_fk": {
2028
+ "name": "space_item_category_project_id_project_id_fk",
2029
+ "tableFrom": "space_item_category",
2030
+ "tableTo": "project",
2031
+ "columnsFrom": [
2032
+ "project_id"
2033
+ ],
2034
+ "columnsTo": [
2035
+ "id"
2036
+ ],
2037
+ "onDelete": "cascade",
2038
+ "onUpdate": "no action"
2039
+ },
2040
+ "space_item_category_category_id_space_category_id_fk": {
2041
+ "name": "space_item_category_category_id_space_category_id_fk",
2042
+ "tableFrom": "space_item_category",
2043
+ "tableTo": "space_category",
2044
+ "columnsFrom": [
2045
+ "category_id"
2046
+ ],
2047
+ "columnsTo": [
2048
+ "id"
2049
+ ],
2050
+ "onDelete": "cascade",
2051
+ "onUpdate": "no action"
2052
+ },
2053
+ "space_item_category_page_id_space_page_id_fk": {
2054
+ "name": "space_item_category_page_id_space_page_id_fk",
2055
+ "tableFrom": "space_item_category",
2056
+ "tableTo": "space_page",
2057
+ "columnsFrom": [
2058
+ "page_id"
2059
+ ],
2060
+ "columnsTo": [
2061
+ "id"
2062
+ ],
2063
+ "onDelete": "cascade",
2064
+ "onUpdate": "no action"
2065
+ },
2066
+ "space_item_category_row_id_space_table_row_id_fk": {
2067
+ "name": "space_item_category_row_id_space_table_row_id_fk",
2068
+ "tableFrom": "space_item_category",
2069
+ "tableTo": "space_table_row",
2070
+ "columnsFrom": [
2071
+ "row_id"
2072
+ ],
2073
+ "columnsTo": [
2074
+ "id"
2075
+ ],
2076
+ "onDelete": "cascade",
2077
+ "onUpdate": "no action"
2078
+ },
2079
+ "space_item_category_table_id_space_table_id_fk": {
2080
+ "name": "space_item_category_table_id_space_table_id_fk",
2081
+ "tableFrom": "space_item_category",
2082
+ "tableTo": "space_table",
2083
+ "columnsFrom": [
2084
+ "table_id"
2085
+ ],
2086
+ "columnsTo": [
2087
+ "id"
2088
+ ],
2089
+ "onDelete": "cascade",
2090
+ "onUpdate": "no action"
2091
+ },
2092
+ "space_item_category_file_id_project_file_id_fk": {
2093
+ "name": "space_item_category_file_id_project_file_id_fk",
2094
+ "tableFrom": "space_item_category",
2095
+ "tableTo": "project_file",
2096
+ "columnsFrom": [
2097
+ "file_id"
2098
+ ],
2099
+ "columnsTo": [
2100
+ "id"
2101
+ ],
2102
+ "onDelete": "cascade",
2103
+ "onUpdate": "no action"
2104
+ },
2105
+ "space_item_category_value_id_space_category_value_id_fk": {
2106
+ "name": "space_item_category_value_id_space_category_value_id_fk",
2107
+ "tableFrom": "space_item_category",
2108
+ "tableTo": "space_category_value",
2109
+ "columnsFrom": [
2110
+ "value_id"
2111
+ ],
2112
+ "columnsTo": [
2113
+ "id"
2114
+ ],
2115
+ "onDelete": "cascade",
2116
+ "onUpdate": "no action"
2117
+ }
2118
+ },
2119
+ "compositePrimaryKeys": {},
2120
+ "uniqueConstraints": {},
2121
+ "checkConstraints": {}
2122
+ },
2123
+ "space_page": {
2124
+ "name": "space_page",
2125
+ "columns": {
2126
+ "id": {
2127
+ "name": "id",
2128
+ "type": "text",
2129
+ "primaryKey": true,
2130
+ "notNull": true,
2131
+ "autoincrement": false
2132
+ },
2133
+ "tenant_id": {
2134
+ "name": "tenant_id",
2135
+ "type": "text",
2136
+ "primaryKey": false,
2137
+ "notNull": true,
2138
+ "autoincrement": false
2139
+ },
2140
+ "project_id": {
2141
+ "name": "project_id",
2142
+ "type": "text",
2143
+ "primaryKey": false,
2144
+ "notNull": true,
2145
+ "autoincrement": false
2146
+ },
2147
+ "wizard_id": {
2148
+ "name": "wizard_id",
2149
+ "type": "text",
2150
+ "primaryKey": false,
2151
+ "notNull": false,
2152
+ "autoincrement": false
2153
+ },
2154
+ "parent_id": {
2155
+ "name": "parent_id",
2156
+ "type": "text",
2157
+ "primaryKey": false,
2158
+ "notNull": false,
2159
+ "autoincrement": false
2160
+ },
2161
+ "position": {
2162
+ "name": "position",
2163
+ "type": "integer",
2164
+ "primaryKey": false,
2165
+ "notNull": true,
2166
+ "autoincrement": false,
2167
+ "default": 0
2168
+ },
2169
+ "title": {
2170
+ "name": "title",
2171
+ "type": "text",
2172
+ "primaryKey": false,
2173
+ "notNull": true,
2174
+ "autoincrement": false
2175
+ },
2176
+ "slug": {
2177
+ "name": "slug",
2178
+ "type": "text",
2179
+ "primaryKey": false,
2180
+ "notNull": false,
2181
+ "autoincrement": false
2182
+ },
2183
+ "markdown": {
2184
+ "name": "markdown",
2185
+ "type": "text",
2186
+ "primaryKey": false,
2187
+ "notNull": true,
2188
+ "autoincrement": false,
2189
+ "default": "''"
2190
+ },
2191
+ "origin": {
2192
+ "name": "origin",
2193
+ "type": "text",
2194
+ "primaryKey": false,
2195
+ "notNull": false,
2196
+ "autoincrement": false
2197
+ },
2198
+ "origin_key": {
2199
+ "name": "origin_key",
2200
+ "type": "text",
2201
+ "primaryKey": false,
2202
+ "notNull": false,
2203
+ "autoincrement": false
2204
+ },
2205
+ "origin_label": {
2206
+ "name": "origin_label",
2207
+ "type": "text",
2208
+ "primaryKey": false,
2209
+ "notNull": false,
2210
+ "autoincrement": false
2211
+ },
2212
+ "kept": {
2213
+ "name": "kept",
2214
+ "type": "integer",
2215
+ "primaryKey": false,
2216
+ "notNull": true,
2217
+ "autoincrement": false,
2218
+ "default": false
2219
+ },
2220
+ "review": {
2221
+ "name": "review",
2222
+ "type": "text",
2223
+ "primaryKey": false,
2224
+ "notNull": false,
2225
+ "autoincrement": false
2226
+ },
2227
+ "file_id": {
2228
+ "name": "file_id",
2229
+ "type": "text",
2230
+ "primaryKey": false,
2231
+ "notNull": false,
2232
+ "autoincrement": false
2233
+ },
2234
+ "created_at": {
2235
+ "name": "created_at",
2236
+ "type": "integer",
2237
+ "primaryKey": false,
2238
+ "notNull": true,
2239
+ "autoincrement": false,
2240
+ "default": "(unixepoch() * 1000)"
2241
+ },
2242
+ "updated_at": {
2243
+ "name": "updated_at",
2244
+ "type": "integer",
2245
+ "primaryKey": false,
2246
+ "notNull": true,
2247
+ "autoincrement": false,
2248
+ "default": "(unixepoch() * 1000)"
2249
+ }
2250
+ },
2251
+ "indexes": {
2252
+ "space_page_project": {
2253
+ "name": "space_page_project",
2254
+ "columns": [
2255
+ "project_id",
2256
+ "wizard_id"
2257
+ ],
2258
+ "isUnique": false
2259
+ },
2260
+ "space_page_parent": {
2261
+ "name": "space_page_parent",
2262
+ "columns": [
2263
+ "parent_id",
2264
+ "position"
2265
+ ],
2266
+ "isUnique": false
2267
+ },
2268
+ "space_page_origin": {
2269
+ "name": "space_page_origin",
2270
+ "columns": [
2271
+ "project_id",
2272
+ "origin",
2273
+ "origin_key"
2274
+ ],
2275
+ "isUnique": true
2276
+ }
2277
+ },
2278
+ "foreignKeys": {
2279
+ "space_page_project_id_project_id_fk": {
2280
+ "name": "space_page_project_id_project_id_fk",
2281
+ "tableFrom": "space_page",
2282
+ "tableTo": "project",
2283
+ "columnsFrom": [
2284
+ "project_id"
2285
+ ],
2286
+ "columnsTo": [
2287
+ "id"
2288
+ ],
2289
+ "onDelete": "cascade",
2290
+ "onUpdate": "no action"
2291
+ },
2292
+ "space_page_wizard_id_wizard_id_fk": {
2293
+ "name": "space_page_wizard_id_wizard_id_fk",
2294
+ "tableFrom": "space_page",
2295
+ "tableTo": "wizard",
2296
+ "columnsFrom": [
2297
+ "wizard_id"
2298
+ ],
2299
+ "columnsTo": [
2300
+ "id"
2301
+ ],
2302
+ "onDelete": "cascade",
2303
+ "onUpdate": "no action"
2304
+ },
2305
+ "space_page_parent_id_space_page_id_fk": {
2306
+ "name": "space_page_parent_id_space_page_id_fk",
2307
+ "tableFrom": "space_page",
2308
+ "tableTo": "space_page",
2309
+ "columnsFrom": [
2310
+ "parent_id"
2311
+ ],
2312
+ "columnsTo": [
2313
+ "id"
2314
+ ],
2315
+ "onDelete": "cascade",
2316
+ "onUpdate": "no action"
2317
+ },
2318
+ "space_page_file_id_project_file_id_fk": {
2319
+ "name": "space_page_file_id_project_file_id_fk",
2320
+ "tableFrom": "space_page",
2321
+ "tableTo": "project_file",
2322
+ "columnsFrom": [
2323
+ "file_id"
2324
+ ],
2325
+ "columnsTo": [
2326
+ "id"
2327
+ ],
2328
+ "onDelete": "set null",
2329
+ "onUpdate": "no action"
2330
+ }
2331
+ },
2332
+ "compositePrimaryKeys": {},
2333
+ "uniqueConstraints": {},
2334
+ "checkConstraints": {}
2335
+ },
2336
+ "space_table": {
2337
+ "name": "space_table",
2338
+ "columns": {
2339
+ "id": {
2340
+ "name": "id",
2341
+ "type": "text",
2342
+ "primaryKey": true,
2343
+ "notNull": true,
2344
+ "autoincrement": false
2345
+ },
2346
+ "tenant_id": {
2347
+ "name": "tenant_id",
2348
+ "type": "text",
2349
+ "primaryKey": false,
2350
+ "notNull": true,
2351
+ "autoincrement": false
2352
+ },
2353
+ "project_id": {
2354
+ "name": "project_id",
2355
+ "type": "text",
2356
+ "primaryKey": false,
2357
+ "notNull": true,
2358
+ "autoincrement": false
2359
+ },
2360
+ "wizard_id": {
2361
+ "name": "wizard_id",
2362
+ "type": "text",
2363
+ "primaryKey": false,
2364
+ "notNull": false,
2365
+ "autoincrement": false
2366
+ },
2367
+ "list": {
2368
+ "name": "list",
2369
+ "type": "text",
2370
+ "primaryKey": false,
2371
+ "notNull": false,
2372
+ "autoincrement": false
2373
+ },
2374
+ "key_column": {
2375
+ "name": "key_column",
2376
+ "type": "text",
2377
+ "primaryKey": false,
2378
+ "notNull": false,
2379
+ "autoincrement": false
2380
+ },
2381
+ "title": {
2382
+ "name": "title",
2383
+ "type": "text",
2384
+ "primaryKey": false,
2385
+ "notNull": true,
2386
+ "autoincrement": false
2387
+ },
2388
+ "slug": {
2389
+ "name": "slug",
2390
+ "type": "text",
2391
+ "primaryKey": false,
2392
+ "notNull": false,
2393
+ "autoincrement": false
2394
+ },
2395
+ "format": {
2396
+ "name": "format",
2397
+ "type": "text",
2398
+ "primaryKey": false,
2399
+ "notNull": false,
2400
+ "autoincrement": false
2401
+ },
2402
+ "columns": {
2403
+ "name": "columns",
2404
+ "type": "text",
2405
+ "primaryKey": false,
2406
+ "notNull": true,
2407
+ "autoincrement": false
2408
+ },
2409
+ "origin": {
2410
+ "name": "origin",
2411
+ "type": "text",
2412
+ "primaryKey": false,
2413
+ "notNull": false,
2414
+ "autoincrement": false
2415
+ },
2416
+ "origin_key": {
2417
+ "name": "origin_key",
2418
+ "type": "text",
2419
+ "primaryKey": false,
2420
+ "notNull": false,
2421
+ "autoincrement": false
2422
+ },
2423
+ "origin_label": {
2424
+ "name": "origin_label",
2425
+ "type": "text",
2426
+ "primaryKey": false,
2427
+ "notNull": false,
2428
+ "autoincrement": false
2429
+ },
2430
+ "kept": {
2431
+ "name": "kept",
2432
+ "type": "integer",
2433
+ "primaryKey": false,
2434
+ "notNull": true,
2435
+ "autoincrement": false,
2436
+ "default": false
2437
+ },
2438
+ "review": {
2439
+ "name": "review",
2440
+ "type": "text",
2441
+ "primaryKey": false,
2442
+ "notNull": false,
2443
+ "autoincrement": false
2444
+ },
2445
+ "file_id": {
2446
+ "name": "file_id",
2447
+ "type": "text",
2448
+ "primaryKey": false,
2449
+ "notNull": false,
2450
+ "autoincrement": false
2451
+ },
2452
+ "created_at": {
2453
+ "name": "created_at",
2454
+ "type": "integer",
2455
+ "primaryKey": false,
2456
+ "notNull": true,
2457
+ "autoincrement": false,
2458
+ "default": "(unixepoch() * 1000)"
2459
+ },
2460
+ "updated_at": {
2461
+ "name": "updated_at",
2462
+ "type": "integer",
2463
+ "primaryKey": false,
2464
+ "notNull": true,
2465
+ "autoincrement": false,
2466
+ "default": "(unixepoch() * 1000)"
2467
+ }
2468
+ },
2469
+ "indexes": {
2470
+ "space_table_project": {
2471
+ "name": "space_table_project",
2472
+ "columns": [
2473
+ "project_id",
2474
+ "wizard_id"
2475
+ ],
2476
+ "isUnique": false
2477
+ },
2478
+ "space_table_list": {
2479
+ "name": "space_table_list",
2480
+ "columns": [
2481
+ "wizard_id",
2482
+ "list"
2483
+ ],
2484
+ "isUnique": true
2485
+ },
2486
+ "space_table_origin": {
2487
+ "name": "space_table_origin",
2488
+ "columns": [
2489
+ "project_id",
2490
+ "origin",
2491
+ "origin_key"
2492
+ ],
2493
+ "isUnique": true
2494
+ }
2495
+ },
2496
+ "foreignKeys": {
2497
+ "space_table_project_id_project_id_fk": {
2498
+ "name": "space_table_project_id_project_id_fk",
2499
+ "tableFrom": "space_table",
2500
+ "tableTo": "project",
2501
+ "columnsFrom": [
2502
+ "project_id"
2503
+ ],
2504
+ "columnsTo": [
2505
+ "id"
2506
+ ],
2507
+ "onDelete": "cascade",
2508
+ "onUpdate": "no action"
2509
+ },
2510
+ "space_table_wizard_id_wizard_id_fk": {
2511
+ "name": "space_table_wizard_id_wizard_id_fk",
2512
+ "tableFrom": "space_table",
2513
+ "tableTo": "wizard",
2514
+ "columnsFrom": [
2515
+ "wizard_id"
2516
+ ],
2517
+ "columnsTo": [
2518
+ "id"
2519
+ ],
2520
+ "onDelete": "cascade",
2521
+ "onUpdate": "no action"
2522
+ },
2523
+ "space_table_file_id_project_file_id_fk": {
2524
+ "name": "space_table_file_id_project_file_id_fk",
2525
+ "tableFrom": "space_table",
2526
+ "tableTo": "project_file",
2527
+ "columnsFrom": [
2528
+ "file_id"
2529
+ ],
2530
+ "columnsTo": [
2531
+ "id"
2532
+ ],
2533
+ "onDelete": "set null",
2534
+ "onUpdate": "no action"
2535
+ }
2536
+ },
2537
+ "compositePrimaryKeys": {},
2538
+ "uniqueConstraints": {},
2539
+ "checkConstraints": {}
2540
+ },
2541
+ "space_table_row": {
2542
+ "name": "space_table_row",
2543
+ "columns": {
2544
+ "id": {
2545
+ "name": "id",
2546
+ "type": "text",
2547
+ "primaryKey": true,
2548
+ "notNull": true,
2549
+ "autoincrement": false
2550
+ },
2551
+ "table_id": {
2552
+ "name": "table_id",
2553
+ "type": "text",
2554
+ "primaryKey": false,
2555
+ "notNull": true,
2556
+ "autoincrement": false
2557
+ },
2558
+ "key": {
2559
+ "name": "key",
2560
+ "type": "text",
2561
+ "primaryKey": false,
2562
+ "notNull": false,
2563
+ "autoincrement": false
2564
+ },
2565
+ "cells": {
2566
+ "name": "cells",
2567
+ "type": "text",
2568
+ "primaryKey": false,
2569
+ "notNull": true,
2570
+ "autoincrement": false
2571
+ },
2572
+ "created_at": {
2573
+ "name": "created_at",
2574
+ "type": "integer",
2575
+ "primaryKey": false,
2576
+ "notNull": true,
2577
+ "autoincrement": false,
2578
+ "default": "(unixepoch() * 1000)"
2579
+ },
2580
+ "updated_at": {
2581
+ "name": "updated_at",
2582
+ "type": "integer",
2583
+ "primaryKey": false,
2584
+ "notNull": true,
2585
+ "autoincrement": false,
2586
+ "default": "(unixepoch() * 1000)"
2587
+ }
2588
+ },
2589
+ "indexes": {
2590
+ "space_table_row_table": {
2591
+ "name": "space_table_row_table",
2592
+ "columns": [
2593
+ "table_id",
2594
+ "created_at"
2595
+ ],
2596
+ "isUnique": false
2597
+ },
2598
+ "space_table_row_key": {
2599
+ "name": "space_table_row_key",
2600
+ "columns": [
2601
+ "table_id",
2602
+ "key"
2603
+ ],
2604
+ "isUnique": false
2605
+ }
2606
+ },
2607
+ "foreignKeys": {
2608
+ "space_table_row_table_id_space_table_id_fk": {
2609
+ "name": "space_table_row_table_id_space_table_id_fk",
2610
+ "tableFrom": "space_table_row",
2611
+ "tableTo": "space_table",
2612
+ "columnsFrom": [
2613
+ "table_id"
2614
+ ],
2615
+ "columnsTo": [
2616
+ "id"
2617
+ ],
2618
+ "onDelete": "cascade",
2619
+ "onUpdate": "no action"
2620
+ }
2621
+ },
2622
+ "compositePrimaryKeys": {},
2623
+ "uniqueConstraints": {},
2624
+ "checkConstraints": {}
2625
+ },
2626
+ "store_file": {
2627
+ "name": "store_file",
2628
+ "columns": {
2629
+ "wizard_id": {
2630
+ "name": "wizard_id",
2631
+ "type": "text",
2632
+ "primaryKey": false,
2633
+ "notNull": true,
2634
+ "autoincrement": false
2635
+ },
2636
+ "holder": {
2637
+ "name": "holder",
2638
+ "type": "text",
2639
+ "primaryKey": false,
2640
+ "notNull": true,
2641
+ "autoincrement": false
2642
+ },
2643
+ "path": {
2644
+ "name": "path",
2645
+ "type": "text",
2646
+ "primaryKey": false,
2647
+ "notNull": true,
2648
+ "autoincrement": false
2649
+ },
2650
+ "hash": {
2651
+ "name": "hash",
2652
+ "type": "text",
2653
+ "primaryKey": false,
2654
+ "notNull": true,
2655
+ "autoincrement": false
2656
+ },
2657
+ "mime": {
2658
+ "name": "mime",
2659
+ "type": "text",
2660
+ "primaryKey": false,
2661
+ "notNull": true,
2662
+ "autoincrement": false
2663
+ },
2664
+ "size": {
2665
+ "name": "size",
2666
+ "type": "integer",
2667
+ "primaryKey": false,
2668
+ "notNull": true,
2669
+ "autoincrement": false
2670
+ },
2671
+ "source": {
2672
+ "name": "source",
2673
+ "type": "text",
2674
+ "primaryKey": false,
2675
+ "notNull": false,
2676
+ "autoincrement": false
2677
+ },
2678
+ "updated_at": {
2679
+ "name": "updated_at",
2680
+ "type": "integer",
2681
+ "primaryKey": false,
2682
+ "notNull": true,
2683
+ "autoincrement": false,
2684
+ "default": "(unixepoch() * 1000)"
2685
+ }
2686
+ },
2687
+ "indexes": {},
2688
+ "foreignKeys": {
2689
+ "store_file_wizard_id_wizard_id_fk": {
2690
+ "name": "store_file_wizard_id_wizard_id_fk",
2691
+ "tableFrom": "store_file",
2692
+ "tableTo": "wizard",
2693
+ "columnsFrom": [
2694
+ "wizard_id"
2695
+ ],
2696
+ "columnsTo": [
2697
+ "id"
2698
+ ],
2699
+ "onDelete": "cascade",
2700
+ "onUpdate": "no action"
2701
+ }
2702
+ },
2703
+ "compositePrimaryKeys": {
2704
+ "store_file_wizard_id_holder_path_pk": {
2705
+ "columns": [
2706
+ "wizard_id",
2707
+ "holder",
2708
+ "path"
2709
+ ],
2710
+ "name": "store_file_wizard_id_holder_path_pk"
2711
+ }
2712
+ },
2713
+ "uniqueConstraints": {},
2714
+ "checkConstraints": {}
2715
+ },
2716
+ "store_holder": {
2717
+ "name": "store_holder",
2718
+ "columns": {
2719
+ "wizard_id": {
2720
+ "name": "wizard_id",
2721
+ "type": "text",
2722
+ "primaryKey": false,
2723
+ "notNull": true,
2724
+ "autoincrement": false
2725
+ },
2726
+ "holder": {
2727
+ "name": "holder",
2728
+ "type": "text",
2729
+ "primaryKey": false,
2730
+ "notNull": true,
2731
+ "autoincrement": false
2732
+ },
2733
+ "used_at": {
2734
+ "name": "used_at",
2735
+ "type": "integer",
2736
+ "primaryKey": false,
2737
+ "notNull": true,
2738
+ "autoincrement": false,
2739
+ "default": "(unixepoch() * 1000)"
2740
+ }
2741
+ },
2742
+ "indexes": {
2743
+ "store_holder_used": {
2744
+ "name": "store_holder_used",
2745
+ "columns": [
2746
+ "used_at"
2747
+ ],
2748
+ "isUnique": false
2749
+ }
2750
+ },
2751
+ "foreignKeys": {
2752
+ "store_holder_wizard_id_wizard_id_fk": {
2753
+ "name": "store_holder_wizard_id_wizard_id_fk",
2754
+ "tableFrom": "store_holder",
2755
+ "tableTo": "wizard",
2756
+ "columnsFrom": [
2757
+ "wizard_id"
2758
+ ],
2759
+ "columnsTo": [
2760
+ "id"
2761
+ ],
2762
+ "onDelete": "cascade",
2763
+ "onUpdate": "no action"
2764
+ }
2765
+ },
2766
+ "compositePrimaryKeys": {
2767
+ "store_holder_wizard_id_holder_pk": {
2768
+ "columns": [
2769
+ "wizard_id",
2770
+ "holder"
2771
+ ],
2772
+ "name": "store_holder_wizard_id_holder_pk"
2773
+ }
2774
+ },
2775
+ "uniqueConstraints": {},
2776
+ "checkConstraints": {}
2777
+ },
2778
+ "store_row": {
2779
+ "name": "store_row",
2780
+ "columns": {
2781
+ "id": {
2782
+ "name": "id",
2783
+ "type": "text",
2784
+ "primaryKey": true,
2785
+ "notNull": true,
2786
+ "autoincrement": false
2787
+ },
2788
+ "wizard_id": {
2789
+ "name": "wizard_id",
2790
+ "type": "text",
2791
+ "primaryKey": false,
2792
+ "notNull": true,
2793
+ "autoincrement": false
2794
+ },
2795
+ "holder": {
2796
+ "name": "holder",
2797
+ "type": "text",
2798
+ "primaryKey": false,
2799
+ "notNull": true,
2800
+ "autoincrement": false
2801
+ },
2802
+ "list": {
2803
+ "name": "list",
2804
+ "type": "text",
2805
+ "primaryKey": false,
2806
+ "notNull": true,
2807
+ "autoincrement": false
2808
+ },
2809
+ "key": {
2810
+ "name": "key",
2811
+ "type": "text",
2812
+ "primaryKey": false,
2813
+ "notNull": false,
2814
+ "autoincrement": false
2815
+ },
2816
+ "cells": {
2817
+ "name": "cells",
2818
+ "type": "text",
2819
+ "primaryKey": false,
2820
+ "notNull": true,
2821
+ "autoincrement": false
2822
+ },
2823
+ "created_at": {
2824
+ "name": "created_at",
2825
+ "type": "integer",
2826
+ "primaryKey": false,
2827
+ "notNull": true,
2828
+ "autoincrement": false,
2829
+ "default": "(unixepoch() * 1000)"
2830
+ },
2831
+ "updated_at": {
2832
+ "name": "updated_at",
2833
+ "type": "integer",
2834
+ "primaryKey": false,
2835
+ "notNull": true,
2836
+ "autoincrement": false,
2837
+ "default": "(unixepoch() * 1000)"
2838
+ }
2839
+ },
2840
+ "indexes": {
2841
+ "store_row_key": {
2842
+ "name": "store_row_key",
2843
+ "columns": [
2844
+ "wizard_id",
2845
+ "holder",
2846
+ "list",
2847
+ "key"
2848
+ ],
2849
+ "isUnique": true
2850
+ },
2851
+ "store_row_list": {
2852
+ "name": "store_row_list",
2853
+ "columns": [
2854
+ "wizard_id",
2855
+ "holder",
2856
+ "list",
2857
+ "created_at"
2858
+ ],
2859
+ "isUnique": false
2860
+ }
2861
+ },
2862
+ "foreignKeys": {
2863
+ "store_row_wizard_id_wizard_id_fk": {
2864
+ "name": "store_row_wizard_id_wizard_id_fk",
2865
+ "tableFrom": "store_row",
2866
+ "tableTo": "wizard",
2867
+ "columnsFrom": [
2868
+ "wizard_id"
2869
+ ],
2870
+ "columnsTo": [
2871
+ "id"
2872
+ ],
2873
+ "onDelete": "cascade",
2874
+ "onUpdate": "no action"
2875
+ }
2876
+ },
2877
+ "compositePrimaryKeys": {},
2878
+ "uniqueConstraints": {},
2879
+ "checkConstraints": {}
2880
+ },
2881
+ "store_secret": {
2882
+ "name": "store_secret",
2883
+ "columns": {
2884
+ "id": {
2885
+ "name": "id",
2886
+ "type": "text",
2887
+ "primaryKey": true,
2888
+ "notNull": true,
2889
+ "autoincrement": false
2890
+ },
2891
+ "wizard_id": {
2892
+ "name": "wizard_id",
2893
+ "type": "text",
2894
+ "primaryKey": false,
2895
+ "notNull": true,
2896
+ "autoincrement": false
2897
+ },
2898
+ "holder": {
2899
+ "name": "holder",
2900
+ "type": "text",
2901
+ "primaryKey": false,
2902
+ "notNull": true,
2903
+ "autoincrement": false
2904
+ },
2905
+ "slot": {
2906
+ "name": "slot",
2907
+ "type": "text",
2908
+ "primaryKey": false,
2909
+ "notNull": true,
2910
+ "autoincrement": false
2911
+ },
2912
+ "provider": {
2913
+ "name": "provider",
2914
+ "type": "text",
2915
+ "primaryKey": false,
2916
+ "notNull": true,
2917
+ "autoincrement": false
2918
+ },
2919
+ "label": {
2920
+ "name": "label",
2921
+ "type": "text",
2922
+ "primaryKey": false,
2923
+ "notNull": true,
2924
+ "autoincrement": false
2925
+ },
2926
+ "data": {
2927
+ "name": "data",
2928
+ "type": "text",
2929
+ "primaryKey": false,
2930
+ "notNull": true,
2931
+ "autoincrement": false
2932
+ },
2933
+ "created_at": {
2934
+ "name": "created_at",
2935
+ "type": "integer",
2936
+ "primaryKey": false,
2937
+ "notNull": true,
2938
+ "autoincrement": false,
2939
+ "default": "(unixepoch() * 1000)"
2940
+ },
2941
+ "updated_at": {
2942
+ "name": "updated_at",
2943
+ "type": "integer",
2944
+ "primaryKey": false,
2945
+ "notNull": true,
2946
+ "autoincrement": false,
2947
+ "default": "(unixepoch() * 1000)"
2948
+ }
2949
+ },
2950
+ "indexes": {
2951
+ "store_secret_slot": {
2952
+ "name": "store_secret_slot",
2953
+ "columns": [
2954
+ "wizard_id",
2955
+ "holder",
2956
+ "slot"
2957
+ ],
2958
+ "isUnique": true
2959
+ }
2960
+ },
2961
+ "foreignKeys": {
2962
+ "store_secret_wizard_id_wizard_id_fk": {
2963
+ "name": "store_secret_wizard_id_wizard_id_fk",
2964
+ "tableFrom": "store_secret",
2965
+ "tableTo": "wizard",
2966
+ "columnsFrom": [
2967
+ "wizard_id"
2968
+ ],
2969
+ "columnsTo": [
2970
+ "id"
2971
+ ],
2972
+ "onDelete": "cascade",
2973
+ "onUpdate": "no action"
2974
+ }
2975
+ },
2976
+ "compositePrimaryKeys": {},
2977
+ "uniqueConstraints": {},
2978
+ "checkConstraints": {}
2979
+ },
2980
+ "wizard": {
2981
+ "name": "wizard",
2982
+ "columns": {
2983
+ "id": {
2984
+ "name": "id",
2985
+ "type": "text",
2986
+ "primaryKey": true,
2987
+ "notNull": true,
2988
+ "autoincrement": false
2989
+ },
2990
+ "project_id": {
2991
+ "name": "project_id",
2992
+ "type": "text",
2993
+ "primaryKey": false,
2994
+ "notNull": true,
2995
+ "autoincrement": false
2996
+ },
2997
+ "tenant_id": {
2998
+ "name": "tenant_id",
2999
+ "type": "text",
3000
+ "primaryKey": false,
3001
+ "notNull": true,
3002
+ "autoincrement": false
3003
+ },
3004
+ "title": {
3005
+ "name": "title",
3006
+ "type": "text",
3007
+ "primaryKey": false,
3008
+ "notNull": true,
3009
+ "autoincrement": false
3010
+ },
3011
+ "draft": {
3012
+ "name": "draft",
3013
+ "type": "text",
3014
+ "primaryKey": false,
3015
+ "notNull": true,
3016
+ "autoincrement": false
3017
+ },
3018
+ "published_version": {
3019
+ "name": "published_version",
3020
+ "type": "integer",
3021
+ "primaryKey": false,
3022
+ "notNull": false,
3023
+ "autoincrement": false
3024
+ },
3025
+ "share_token": {
3026
+ "name": "share_token",
3027
+ "type": "text",
3028
+ "primaryKey": false,
3029
+ "notNull": true,
3030
+ "autoincrement": false
3031
+ },
3032
+ "share_enabled": {
3033
+ "name": "share_enabled",
3034
+ "type": "integer",
3035
+ "primaryKey": false,
3036
+ "notNull": true,
3037
+ "autoincrement": false,
3038
+ "default": true
3039
+ },
3040
+ "daily_run_limit": {
3041
+ "name": "daily_run_limit",
3042
+ "type": "integer",
3043
+ "primaryKey": false,
3044
+ "notNull": true,
3045
+ "autoincrement": false,
3046
+ "default": 50
3047
+ },
3048
+ "starter": {
3049
+ "name": "starter",
3050
+ "type": "text",
3051
+ "primaryKey": false,
3052
+ "notNull": false,
3053
+ "autoincrement": false
3054
+ },
3055
+ "starter_revision": {
3056
+ "name": "starter_revision",
3057
+ "type": "integer",
3058
+ "primaryKey": false,
3059
+ "notNull": false,
3060
+ "autoincrement": false
3061
+ },
3062
+ "revision": {
3063
+ "name": "revision",
3064
+ "type": "integer",
3065
+ "primaryKey": false,
3066
+ "notNull": true,
3067
+ "autoincrement": false,
3068
+ "default": 0
3069
+ },
3070
+ "runners": {
3071
+ "name": "runners",
3072
+ "type": "text",
3073
+ "primaryKey": false,
3074
+ "notNull": false,
3075
+ "autoincrement": false
3076
+ },
3077
+ "translate": {
3078
+ "name": "translate",
3079
+ "type": "integer",
3080
+ "primaryKey": false,
3081
+ "notNull": true,
3082
+ "autoincrement": false,
3083
+ "default": true
3084
+ },
3085
+ "created_at": {
3086
+ "name": "created_at",
3087
+ "type": "integer",
3088
+ "primaryKey": false,
3089
+ "notNull": true,
3090
+ "autoincrement": false,
3091
+ "default": "(unixepoch() * 1000)"
3092
+ },
3093
+ "updated_at": {
3094
+ "name": "updated_at",
3095
+ "type": "integer",
3096
+ "primaryKey": false,
3097
+ "notNull": true,
3098
+ "autoincrement": false,
3099
+ "default": "(unixepoch() * 1000)"
3100
+ }
3101
+ },
3102
+ "indexes": {
3103
+ "wizard_share_token": {
3104
+ "name": "wizard_share_token",
3105
+ "columns": [
3106
+ "share_token"
3107
+ ],
3108
+ "isUnique": true
3109
+ },
3110
+ "wizard_project": {
3111
+ "name": "wizard_project",
3112
+ "columns": [
3113
+ "project_id"
3114
+ ],
3115
+ "isUnique": false
3116
+ }
3117
+ },
3118
+ "foreignKeys": {
3119
+ "wizard_project_id_project_id_fk": {
3120
+ "name": "wizard_project_id_project_id_fk",
3121
+ "tableFrom": "wizard",
3122
+ "tableTo": "project",
3123
+ "columnsFrom": [
3124
+ "project_id"
3125
+ ],
3126
+ "columnsTo": [
3127
+ "id"
3128
+ ],
3129
+ "onDelete": "cascade",
3130
+ "onUpdate": "no action"
3131
+ }
3132
+ },
3133
+ "compositePrimaryKeys": {},
3134
+ "uniqueConstraints": {},
3135
+ "checkConstraints": {}
3136
+ },
3137
+ "wizard_file": {
3138
+ "name": "wizard_file",
3139
+ "columns": {
3140
+ "wizard_id": {
3141
+ "name": "wizard_id",
3142
+ "type": "text",
3143
+ "primaryKey": false,
3144
+ "notNull": true,
3145
+ "autoincrement": false
3146
+ },
3147
+ "path": {
3148
+ "name": "path",
3149
+ "type": "text",
3150
+ "primaryKey": false,
3151
+ "notNull": true,
3152
+ "autoincrement": false
3153
+ },
3154
+ "hash": {
3155
+ "name": "hash",
3156
+ "type": "text",
3157
+ "primaryKey": false,
3158
+ "notNull": true,
3159
+ "autoincrement": false
3160
+ },
3161
+ "mime": {
3162
+ "name": "mime",
3163
+ "type": "text",
3164
+ "primaryKey": false,
3165
+ "notNull": true,
3166
+ "autoincrement": false
3167
+ },
3168
+ "size": {
3169
+ "name": "size",
3170
+ "type": "integer",
3171
+ "primaryKey": false,
3172
+ "notNull": true,
3173
+ "autoincrement": false
3174
+ },
3175
+ "updated_at": {
3176
+ "name": "updated_at",
3177
+ "type": "integer",
3178
+ "primaryKey": false,
3179
+ "notNull": true,
3180
+ "autoincrement": false,
3181
+ "default": "(unixepoch() * 1000)"
3182
+ }
3183
+ },
3184
+ "indexes": {},
3185
+ "foreignKeys": {
3186
+ "wizard_file_wizard_id_wizard_id_fk": {
3187
+ "name": "wizard_file_wizard_id_wizard_id_fk",
3188
+ "tableFrom": "wizard_file",
3189
+ "tableTo": "wizard",
3190
+ "columnsFrom": [
3191
+ "wizard_id"
3192
+ ],
3193
+ "columnsTo": [
3194
+ "id"
3195
+ ],
3196
+ "onDelete": "cascade",
3197
+ "onUpdate": "no action"
3198
+ }
3199
+ },
3200
+ "compositePrimaryKeys": {
3201
+ "wizard_file_wizard_id_path_pk": {
3202
+ "columns": [
3203
+ "wizard_id",
3204
+ "path"
3205
+ ],
3206
+ "name": "wizard_file_wizard_id_path_pk"
3207
+ }
3208
+ },
3209
+ "uniqueConstraints": {},
3210
+ "checkConstraints": {}
3211
+ },
3212
+ "wizard_message": {
3213
+ "name": "wizard_message",
3214
+ "columns": {
3215
+ "id": {
3216
+ "name": "id",
3217
+ "type": "text",
3218
+ "primaryKey": true,
3219
+ "notNull": true,
3220
+ "autoincrement": false
3221
+ },
3222
+ "wizard_id": {
3223
+ "name": "wizard_id",
3224
+ "type": "text",
3225
+ "primaryKey": false,
3226
+ "notNull": true,
3227
+ "autoincrement": false
3228
+ },
3229
+ "role": {
3230
+ "name": "role",
3231
+ "type": "text",
3232
+ "primaryKey": false,
3233
+ "notNull": true,
3234
+ "autoincrement": false
3235
+ },
3236
+ "content": {
3237
+ "name": "content",
3238
+ "type": "text",
3239
+ "primaryKey": false,
3240
+ "notNull": true,
3241
+ "autoincrement": false
3242
+ },
3243
+ "changed": {
3244
+ "name": "changed",
3245
+ "type": "integer",
3246
+ "primaryKey": false,
3247
+ "notNull": true,
3248
+ "autoincrement": false,
3249
+ "default": false
3250
+ },
3251
+ "source": {
3252
+ "name": "source",
3253
+ "type": "text",
3254
+ "primaryKey": false,
3255
+ "notNull": true,
3256
+ "autoincrement": false,
3257
+ "default": "'studio'"
3258
+ },
3259
+ "client": {
3260
+ "name": "client",
3261
+ "type": "text",
3262
+ "primaryKey": false,
3263
+ "notNull": false,
3264
+ "autoincrement": false
3265
+ },
3266
+ "created_at": {
3267
+ "name": "created_at",
3268
+ "type": "integer",
3269
+ "primaryKey": false,
3270
+ "notNull": true,
3271
+ "autoincrement": false,
3272
+ "default": "(unixepoch() * 1000)"
3273
+ }
3274
+ },
3275
+ "indexes": {
3276
+ "wizard_message_wizard": {
3277
+ "name": "wizard_message_wizard",
3278
+ "columns": [
3279
+ "wizard_id",
3280
+ "created_at"
3281
+ ],
3282
+ "isUnique": false
3283
+ }
3284
+ },
3285
+ "foreignKeys": {
3286
+ "wizard_message_wizard_id_wizard_id_fk": {
3287
+ "name": "wizard_message_wizard_id_wizard_id_fk",
3288
+ "tableFrom": "wizard_message",
3289
+ "tableTo": "wizard",
3290
+ "columnsFrom": [
3291
+ "wizard_id"
3292
+ ],
3293
+ "columnsTo": [
3294
+ "id"
3295
+ ],
3296
+ "onDelete": "cascade",
3297
+ "onUpdate": "no action"
3298
+ }
3299
+ },
3300
+ "compositePrimaryKeys": {},
3301
+ "uniqueConstraints": {},
3302
+ "checkConstraints": {}
3303
+ },
3304
+ "wizard_translation": {
3305
+ "name": "wizard_translation",
3306
+ "columns": {
3307
+ "wizard_id": {
3308
+ "name": "wizard_id",
3309
+ "type": "text",
3310
+ "primaryKey": false,
3311
+ "notNull": true,
3312
+ "autoincrement": false
3313
+ },
3314
+ "lang": {
3315
+ "name": "lang",
3316
+ "type": "text",
3317
+ "primaryKey": false,
3318
+ "notNull": true,
3319
+ "autoincrement": false
3320
+ },
3321
+ "texts": {
3322
+ "name": "texts",
3323
+ "type": "text",
3324
+ "primaryKey": false,
3325
+ "notNull": true,
3326
+ "autoincrement": false
3327
+ },
3328
+ "version": {
3329
+ "name": "version",
3330
+ "type": "integer",
3331
+ "primaryKey": false,
3332
+ "notNull": false,
3333
+ "autoincrement": false
3334
+ },
3335
+ "updated_at": {
3336
+ "name": "updated_at",
3337
+ "type": "integer",
3338
+ "primaryKey": false,
3339
+ "notNull": true,
3340
+ "autoincrement": false,
3341
+ "default": "(unixepoch() * 1000)"
3342
+ }
3343
+ },
3344
+ "indexes": {},
3345
+ "foreignKeys": {
3346
+ "wizard_translation_wizard_id_wizard_id_fk": {
3347
+ "name": "wizard_translation_wizard_id_wizard_id_fk",
3348
+ "tableFrom": "wizard_translation",
3349
+ "tableTo": "wizard",
3350
+ "columnsFrom": [
3351
+ "wizard_id"
3352
+ ],
3353
+ "columnsTo": [
3354
+ "id"
3355
+ ],
3356
+ "onDelete": "cascade",
3357
+ "onUpdate": "no action"
3358
+ }
3359
+ },
3360
+ "compositePrimaryKeys": {
3361
+ "wizard_translation_wizard_id_lang_pk": {
3362
+ "columns": [
3363
+ "wizard_id",
3364
+ "lang"
3365
+ ],
3366
+ "name": "wizard_translation_wizard_id_lang_pk"
3367
+ }
3368
+ },
3369
+ "uniqueConstraints": {},
3370
+ "checkConstraints": {}
3371
+ },
3372
+ "wizard_version": {
3373
+ "name": "wizard_version",
3374
+ "columns": {
3375
+ "id": {
3376
+ "name": "id",
3377
+ "type": "text",
3378
+ "primaryKey": true,
3379
+ "notNull": true,
3380
+ "autoincrement": false
3381
+ },
3382
+ "wizard_id": {
3383
+ "name": "wizard_id",
3384
+ "type": "text",
3385
+ "primaryKey": false,
3386
+ "notNull": true,
3387
+ "autoincrement": false
3388
+ },
3389
+ "version": {
3390
+ "name": "version",
3391
+ "type": "integer",
3392
+ "primaryKey": false,
3393
+ "notNull": true,
3394
+ "autoincrement": false
3395
+ },
3396
+ "definition": {
3397
+ "name": "definition",
3398
+ "type": "text",
3399
+ "primaryKey": false,
3400
+ "notNull": true,
3401
+ "autoincrement": false
3402
+ },
3403
+ "files": {
3404
+ "name": "files",
3405
+ "type": "text",
3406
+ "primaryKey": false,
3407
+ "notNull": true,
3408
+ "autoincrement": false,
3409
+ "default": "'[]'"
3410
+ },
3411
+ "created_at": {
3412
+ "name": "created_at",
3413
+ "type": "integer",
3414
+ "primaryKey": false,
3415
+ "notNull": true,
3416
+ "autoincrement": false,
3417
+ "default": "(unixepoch() * 1000)"
3418
+ }
3419
+ },
3420
+ "indexes": {
3421
+ "wizard_version_n": {
3422
+ "name": "wizard_version_n",
3423
+ "columns": [
3424
+ "wizard_id",
3425
+ "version"
3426
+ ],
3427
+ "isUnique": true
3428
+ }
3429
+ },
3430
+ "foreignKeys": {
3431
+ "wizard_version_wizard_id_wizard_id_fk": {
3432
+ "name": "wizard_version_wizard_id_wizard_id_fk",
3433
+ "tableFrom": "wizard_version",
3434
+ "tableTo": "wizard",
3435
+ "columnsFrom": [
3436
+ "wizard_id"
3437
+ ],
3438
+ "columnsTo": [
3439
+ "id"
3440
+ ],
3441
+ "onDelete": "cascade",
3442
+ "onUpdate": "no action"
3443
+ }
3444
+ },
3445
+ "compositePrimaryKeys": {},
3446
+ "uniqueConstraints": {},
3447
+ "checkConstraints": {}
3448
+ }
3449
+ },
3450
+ "views": {},
3451
+ "enums": {},
3452
+ "_meta": {
3453
+ "schemas": {},
3454
+ "tables": {},
3455
+ "columns": {}
3456
+ },
3457
+ "internal": {
3458
+ "indexes": {}
3459
+ }
3460
+ }