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