wizards 0.2.42 → 0.2.44

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 (166) hide show
  1. package/apps/runtime/dist/app.js +37 -3
  2. package/apps/runtime/dist/authoring/guide.js +5 -2
  3. package/apps/runtime/dist/browser/fast/action-space.js +162 -0
  4. package/apps/runtime/dist/browser/fast/classifier.js +91 -0
  5. package/apps/runtime/dist/browser/fast/decide.js +171 -0
  6. package/apps/runtime/dist/browser/fast/driver.js +141 -0
  7. package/apps/runtime/dist/browser/fast/instructions.js +33 -0
  8. package/apps/runtime/dist/browser/fast/run.js +249 -0
  9. package/apps/runtime/dist/browser/fast/span-picker.js +153 -0
  10. package/apps/runtime/dist/browser/fast/text-helper.js +178 -0
  11. package/apps/runtime/dist/browser/snapshot.js +335 -0
  12. package/apps/runtime/dist/db/migrations/tenant/0011_runners.sql +2 -0
  13. package/apps/runtime/dist/db/migrations/tenant/meta/0011_snapshot.json +2956 -0
  14. package/apps/runtime/dist/db/migrations/tenant/meta/_journal.json +7 -0
  15. package/apps/runtime/dist/db/schema.js +4 -0
  16. package/apps/runtime/dist/engine/resources.js +109 -0
  17. package/apps/runtime/dist/engine/runner.js +7 -3
  18. package/apps/runtime/dist/engine/steps.js +89 -10
  19. package/apps/runtime/dist/env.js +9 -0
  20. package/apps/runtime/dist/harness/claude.js +9 -1
  21. package/apps/runtime/dist/link-preview.js +4 -3
  22. package/apps/runtime/dist/mcp/tools.js +1 -1
  23. package/apps/runtime/dist/media/conversation.js +177 -0
  24. package/apps/runtime/dist/models.js +17 -0
  25. package/apps/runtime/dist/plugins/loader.js +48 -2
  26. package/apps/runtime/dist/plugins/registry.js +1 -0
  27. package/apps/runtime/dist/plugins/runs.js +205 -0
  28. package/apps/runtime/dist/routes/runs.js +206 -22
  29. package/apps/runtime/dist/routes/studio.js +12 -1
  30. package/apps/runtime/dist/services/cloud.js +1 -0
  31. package/apps/runtime/dist/services/runners.js +138 -0
  32. package/apps/runtime/dist/services/runs.js +83 -45
  33. package/apps/runtime/dist/services/wizard-icon.js +12 -0
  34. package/apps/runtime/dist/services/wizards.js +5 -1
  35. package/apps/runtime/dist/tools/browser.js +426 -97
  36. package/apps/runtime/dist/tools/index.js +50 -3
  37. package/apps/web/dist/assets/ChangelogDialog-C1_ZvuwE.js +1 -0
  38. package/apps/web/dist/assets/ChatView-DLG771z6.js +10 -0
  39. package/apps/web/dist/assets/{CreditsDialog-DPglouDr.js → CreditsDialog-Ce7Czhxq.js} +1 -1
  40. package/apps/web/dist/assets/EditorPage-CXx32-a7.js +3 -0
  41. package/apps/web/dist/assets/{FlowPreview-CQN5acxA.js → FlowPreview-DgZiepFR.js} +1 -1
  42. package/apps/web/dist/assets/{Harness-BFxUFB7B.js → Harness-ffZUxkbb.js} +2 -2
  43. package/apps/web/dist/assets/HomePage-B3RVPuUu.js +1 -0
  44. package/apps/web/dist/assets/ImportWizard-CHlCjPEo.js +1 -0
  45. package/apps/web/dist/assets/NewWizardPage-BQW7PoZq.js +2 -0
  46. package/apps/web/dist/assets/ProjectPage-D-_A4iZz.js +2 -0
  47. package/apps/web/dist/assets/PublicRunner-sbya6PXg.js +1 -0
  48. package/apps/web/dist/assets/RunDrawer-BgLxai9C.js +4 -0
  49. package/apps/web/dist/assets/RunnerView-BVm9fL62.js +2 -0
  50. package/apps/web/dist/assets/SettingsPage-Ce6k9xDs.js +1 -0
  51. package/apps/web/dist/assets/SetupPage-CLymFxat.js +1 -0
  52. package/apps/web/dist/assets/SharePage-1Ni5ejt6.js +1 -0
  53. package/apps/web/dist/assets/ThemeSwitch-DN42WOTx.js +1 -0
  54. package/apps/web/dist/assets/arrow-right-BgKM1Npq.js +1 -0
  55. package/apps/web/dist/assets/changelog-CH4sN8Dm.js +1 -0
  56. package/apps/web/dist/assets/{circle-alert-B0rwkpC7.js → circle-alert-D_6s0Xgw.js} +1 -1
  57. package/apps/web/dist/assets/{copy-DgbMaHoj.js → copy-BAtcCufT.js} +1 -1
  58. package/apps/web/dist/assets/definition-CfFlylCM.js +56 -0
  59. package/apps/web/dist/assets/{external-link-pP6YfR9-.js → external-link-DitV3n6l.js} +1 -1
  60. package/apps/web/dist/assets/globe-CoQ1BSyl.js +1 -0
  61. package/apps/web/dist/assets/{image-D2X6TWdq.js → image-B1a1ax-P.js} +1 -1
  62. package/apps/web/dist/assets/index-B8VsYgck.js +78 -0
  63. package/apps/web/dist/assets/index-mB3Du8ho.css +1 -0
  64. package/apps/web/dist/assets/{lock-BG4mi_lJ.js → lock-DSPinlFN.js} +1 -1
  65. package/apps/web/dist/assets/{meta-BD9yulXs.js → meta-Bpe6vzmM.js} +1 -1
  66. package/apps/web/dist/assets/mouse-pointer-click-SHJL7g1i.js +1 -0
  67. package/apps/web/dist/assets/{pen-line-D54vxrGl.js → pen-line-DgSzJ60H.js} +1 -1
  68. package/apps/web/dist/assets/{refresh-cw-DvTgdpdf.js → refresh-cw-CWRkEENy.js} +1 -1
  69. package/apps/web/dist/assets/{session-CT1AZIlE.js → session-C24kIPr-.js} +1 -1
  70. package/apps/web/dist/assets/{settings-menu-DJATAPGg.js → settings-menu-e8OMChHm.js} +1 -1
  71. package/apps/web/dist/assets/star-ClV5w6K4.js +1 -0
  72. package/apps/web/dist/assets/{trash-DAcf34LR.js → trash-t3O7FdUR.js} +1 -1
  73. package/apps/web/dist/assets/{type-BU0mWqf3.js → type-BbMmv2qL.js} +1 -1
  74. package/apps/web/dist/assets/ui-C4b__6Oo.js +9 -0
  75. package/apps/web/dist/assets/{video-C6qoFAAs.js → video-D04-GeyG.js} +1 -1
  76. package/apps/web/dist/assets/volume-2-FUU7z0rq.js +1 -0
  77. package/apps/web/dist/assets/{wand-sparkles-Bw4tu2An.js → wand-sparkles-BsD2e8V6.js} +1 -1
  78. package/apps/web/dist/embed.js +119 -4
  79. package/apps/web/dist/index.html +12 -11
  80. package/apps/web/dist/mcp/flow.html +45 -45
  81. package/modules/calls/dist/client.css +3 -0
  82. package/modules/calls/dist/client.js +1 -0
  83. package/modules/calls/engenty.plugin.json +8 -0
  84. package/modules/calls/migrations/0001_init.sql +26 -0
  85. package/modules/calls/package.json +25 -0
  86. package/modules/calls/src/openai.ts +155 -0
  87. package/modules/calls/src/plugin.ts +407 -0
  88. package/modules/calls/src/rules.ts +226 -0
  89. package/modules/calls/src/schema.ts +39 -0
  90. package/modules/calls/src/session.ts +353 -0
  91. package/modules/calls/src/store.ts +124 -0
  92. package/modules/calls/src/twilio.ts +90 -0
  93. package/modules/calls/tsconfig.json +10 -0
  94. package/modules/calls/ui/Settings.tsx +137 -0
  95. package/modules/calls/ui/app.ts +50 -0
  96. package/modules/calls/ui/messages.ts +81 -0
  97. package/modules/calls/ui/parts.tsx +36 -0
  98. package/modules/calls/ui/plugin.tsx +15 -0
  99. package/modules/sms/dist/client.css +3 -0
  100. package/modules/sms/dist/client.js +1 -0
  101. package/modules/sms/engenty.plugin.json +8 -0
  102. package/modules/sms/migrations/0001_init.sql +26 -0
  103. package/modules/sms/package.json +25 -0
  104. package/modules/sms/src/plugin.ts +324 -0
  105. package/modules/sms/src/schema.ts +26 -0
  106. package/modules/sms/src/store.ts +140 -0
  107. package/modules/sms/src/surface.ts +70 -0
  108. package/modules/sms/src/twilio.ts +130 -0
  109. package/modules/sms/tsconfig.json +10 -0
  110. package/modules/sms/ui/Settings.tsx +113 -0
  111. package/modules/sms/ui/Share.tsx +78 -0
  112. package/modules/sms/ui/app.ts +51 -0
  113. package/modules/sms/ui/messages.ts +72 -0
  114. package/modules/sms/ui/parts.tsx +36 -0
  115. package/modules/sms/ui/plugin.tsx +20 -0
  116. package/modules/whatsapp/dist/client.css +3 -0
  117. package/modules/whatsapp/dist/client.js +1 -0
  118. package/modules/whatsapp/engenty.plugin.json +8 -0
  119. package/modules/whatsapp/migrations/0001_init.sql +30 -0
  120. package/modules/whatsapp/package.json +25 -0
  121. package/modules/whatsapp/src/graph.ts +271 -0
  122. package/modules/whatsapp/src/inbound.ts +143 -0
  123. package/modules/whatsapp/src/plugin.ts +369 -0
  124. package/modules/whatsapp/src/schema.ts +32 -0
  125. package/modules/whatsapp/src/store.ts +156 -0
  126. package/modules/whatsapp/src/surface.ts +127 -0
  127. package/modules/whatsapp/tsconfig.json +10 -0
  128. package/modules/whatsapp/ui/Settings.tsx +141 -0
  129. package/modules/whatsapp/ui/Share.tsx +78 -0
  130. package/modules/whatsapp/ui/app.ts +54 -0
  131. package/modules/whatsapp/ui/messages.ts +82 -0
  132. package/modules/whatsapp/ui/parts.tsx +36 -0
  133. package/modules/whatsapp/ui/plugin.tsx +20 -0
  134. package/node_modules/@engenty-wizards/plugin-sdk/dist/index.d.ts +259 -0
  135. package/node_modules/@engenty-wizards/plugin-sdk/dist/studio.d.ts +17 -0
  136. package/node_modules/@engenty-wizards/plugin-sdk/dist/thread.d.ts +174 -0
  137. package/node_modules/@engenty-wizards/plugin-sdk/dist/thread.js +816 -0
  138. package/node_modules/@engenty-wizards/plugin-sdk/package.json +2 -1
  139. package/node_modules/@engenty-wizards/shared/dist/definition.d.ts +8 -0
  140. package/node_modules/@engenty-wizards/shared/dist/definition.js +21 -0
  141. package/node_modules/@engenty-wizards/shared/dist/run.d.ts +61 -3
  142. package/node_modules/@engenty-wizards/shared/dist/run.js +16 -0
  143. package/node_modules/@engenty-wizards/shared/dist/runners.d.ts +81 -0
  144. package/node_modules/@engenty-wizards/shared/dist/runners.js +146 -0
  145. package/package.json +1 -1
  146. package/apps/web/dist/assets/ChangelogDialog-BxRBTR8P.js +0 -1
  147. package/apps/web/dist/assets/EditorPage-BKAFzzWk.js +0 -3
  148. package/apps/web/dist/assets/HomePage-BZuwrr-b.js +0 -1
  149. package/apps/web/dist/assets/ImportWizard-JGMemER4.js +0 -1
  150. package/apps/web/dist/assets/NewWizardPage-BwHAsJwj.js +0 -2
  151. package/apps/web/dist/assets/ProjectPage--ijr1jPE.js +0 -2
  152. package/apps/web/dist/assets/PublicRunner-D9Oe-_vs.js +0 -1
  153. package/apps/web/dist/assets/RunDrawer-BfociUm2.js +0 -4
  154. package/apps/web/dist/assets/RunnerView-D2b84UTY.js +0 -2
  155. package/apps/web/dist/assets/SettingsPage-9rk9IRdr.js +0 -1
  156. package/apps/web/dist/assets/SetupPage-BUJh_v9q.js +0 -1
  157. package/apps/web/dist/assets/SharePage-sNJ_s1RE.js +0 -1
  158. package/apps/web/dist/assets/ThemeSwitch-NDTEeh0R.js +0 -1
  159. package/apps/web/dist/assets/arrow-right-C1xLSnNa.js +0 -1
  160. package/apps/web/dist/assets/changelog-BSVi9hHS.js +0 -1
  161. package/apps/web/dist/assets/definition-FVgbAXOo.js +0 -56
  162. package/apps/web/dist/assets/index-CBjgitjd.js +0 -78
  163. package/apps/web/dist/assets/index-gTcC8eX6.css +0 -1
  164. package/apps/web/dist/assets/star-CaOg5c-D.js +0 -1
  165. package/apps/web/dist/assets/ui-Bxf6zX5k.js +0 -9
  166. package/apps/web/dist/assets/volume-2-Dw4p9Ln4.js +0 -1
@@ -0,0 +1,2956 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "fa1cff52-4648-402f-b607-a4f1ce5fffff",
5
+ "prevId": "591b27a2-f122-4349-bda6-172eb94eb579",
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
+ "marketplace_star": {
97
+ "name": "marketplace_star",
98
+ "columns": {
99
+ "tenant_id": {
100
+ "name": "tenant_id",
101
+ "type": "text",
102
+ "primaryKey": false,
103
+ "notNull": true,
104
+ "autoincrement": false
105
+ },
106
+ "entry_id": {
107
+ "name": "entry_id",
108
+ "type": "text",
109
+ "primaryKey": false,
110
+ "notNull": true,
111
+ "autoincrement": false
112
+ },
113
+ "created_at": {
114
+ "name": "created_at",
115
+ "type": "integer",
116
+ "primaryKey": false,
117
+ "notNull": true,
118
+ "autoincrement": false,
119
+ "default": "(unixepoch() * 1000)"
120
+ }
121
+ },
122
+ "indexes": {},
123
+ "foreignKeys": {},
124
+ "compositePrimaryKeys": {
125
+ "marketplace_star_tenant_id_entry_id_pk": {
126
+ "columns": [
127
+ "tenant_id",
128
+ "entry_id"
129
+ ],
130
+ "name": "marketplace_star_tenant_id_entry_id_pk"
131
+ }
132
+ },
133
+ "uniqueConstraints": {},
134
+ "checkConstraints": {}
135
+ },
136
+ "plugin_connection": {
137
+ "name": "plugin_connection",
138
+ "columns": {
139
+ "id": {
140
+ "name": "id",
141
+ "type": "text",
142
+ "primaryKey": true,
143
+ "notNull": true,
144
+ "autoincrement": false
145
+ },
146
+ "plugin": {
147
+ "name": "plugin",
148
+ "type": "text",
149
+ "primaryKey": false,
150
+ "notNull": true,
151
+ "autoincrement": false
152
+ },
153
+ "project_id": {
154
+ "name": "project_id",
155
+ "type": "text",
156
+ "primaryKey": false,
157
+ "notNull": true,
158
+ "autoincrement": false
159
+ },
160
+ "connector": {
161
+ "name": "connector",
162
+ "type": "text",
163
+ "primaryKey": false,
164
+ "notNull": true,
165
+ "autoincrement": false
166
+ },
167
+ "label": {
168
+ "name": "label",
169
+ "type": "text",
170
+ "primaryKey": false,
171
+ "notNull": true,
172
+ "autoincrement": false
173
+ },
174
+ "actions": {
175
+ "name": "actions",
176
+ "type": "text",
177
+ "primaryKey": false,
178
+ "notNull": true,
179
+ "autoincrement": false
180
+ },
181
+ "data": {
182
+ "name": "data",
183
+ "type": "text",
184
+ "primaryKey": false,
185
+ "notNull": true,
186
+ "autoincrement": false
187
+ },
188
+ "created_by": {
189
+ "name": "created_by",
190
+ "type": "text",
191
+ "primaryKey": false,
192
+ "notNull": false,
193
+ "autoincrement": false
194
+ },
195
+ "created_at": {
196
+ "name": "created_at",
197
+ "type": "integer",
198
+ "primaryKey": false,
199
+ "notNull": true,
200
+ "autoincrement": false,
201
+ "default": "(unixepoch() * 1000)"
202
+ },
203
+ "updated_at": {
204
+ "name": "updated_at",
205
+ "type": "integer",
206
+ "primaryKey": false,
207
+ "notNull": true,
208
+ "autoincrement": false,
209
+ "default": "(unixepoch() * 1000)"
210
+ }
211
+ },
212
+ "indexes": {
213
+ "plugin_connection_space": {
214
+ "name": "plugin_connection_space",
215
+ "columns": [
216
+ "plugin",
217
+ "project_id"
218
+ ],
219
+ "isUnique": false
220
+ }
221
+ },
222
+ "foreignKeys": {
223
+ "plugin_connection_project_id_project_id_fk": {
224
+ "name": "plugin_connection_project_id_project_id_fk",
225
+ "tableFrom": "plugin_connection",
226
+ "tableTo": "project",
227
+ "columnsFrom": [
228
+ "project_id"
229
+ ],
230
+ "columnsTo": [
231
+ "id"
232
+ ],
233
+ "onDelete": "cascade",
234
+ "onUpdate": "no action"
235
+ }
236
+ },
237
+ "compositePrimaryKeys": {},
238
+ "uniqueConstraints": {},
239
+ "checkConstraints": {}
240
+ },
241
+ "project": {
242
+ "name": "project",
243
+ "columns": {
244
+ "id": {
245
+ "name": "id",
246
+ "type": "text",
247
+ "primaryKey": true,
248
+ "notNull": true,
249
+ "autoincrement": false
250
+ },
251
+ "tenant_id": {
252
+ "name": "tenant_id",
253
+ "type": "text",
254
+ "primaryKey": false,
255
+ "notNull": true,
256
+ "autoincrement": false
257
+ },
258
+ "name": {
259
+ "name": "name",
260
+ "type": "text",
261
+ "primaryKey": false,
262
+ "notNull": true,
263
+ "autoincrement": false
264
+ },
265
+ "brand": {
266
+ "name": "brand",
267
+ "type": "text",
268
+ "primaryKey": false,
269
+ "notNull": true,
270
+ "autoincrement": false,
271
+ "default": "'{}'"
272
+ },
273
+ "facts": {
274
+ "name": "facts",
275
+ "type": "text",
276
+ "primaryKey": false,
277
+ "notNull": true,
278
+ "autoincrement": false,
279
+ "default": "'[]'"
280
+ },
281
+ "mcp_servers": {
282
+ "name": "mcp_servers",
283
+ "type": "text",
284
+ "primaryKey": false,
285
+ "notNull": true,
286
+ "autoincrement": false,
287
+ "default": "'[]'"
288
+ },
289
+ "origin": {
290
+ "name": "origin",
291
+ "type": "text",
292
+ "primaryKey": false,
293
+ "notNull": false,
294
+ "autoincrement": false
295
+ },
296
+ "synced_at": {
297
+ "name": "synced_at",
298
+ "type": "integer",
299
+ "primaryKey": false,
300
+ "notNull": false,
301
+ "autoincrement": false
302
+ },
303
+ "created_at": {
304
+ "name": "created_at",
305
+ "type": "integer",
306
+ "primaryKey": false,
307
+ "notNull": true,
308
+ "autoincrement": false,
309
+ "default": "(unixepoch() * 1000)"
310
+ },
311
+ "updated_at": {
312
+ "name": "updated_at",
313
+ "type": "integer",
314
+ "primaryKey": false,
315
+ "notNull": true,
316
+ "autoincrement": false,
317
+ "default": "(unixepoch() * 1000)"
318
+ }
319
+ },
320
+ "indexes": {
321
+ "project_tenant": {
322
+ "name": "project_tenant",
323
+ "columns": [
324
+ "tenant_id"
325
+ ],
326
+ "isUnique": false
327
+ }
328
+ },
329
+ "foreignKeys": {},
330
+ "compositePrimaryKeys": {},
331
+ "uniqueConstraints": {},
332
+ "checkConstraints": {}
333
+ },
334
+ "project_chunk": {
335
+ "name": "project_chunk",
336
+ "columns": {
337
+ "id": {
338
+ "name": "id",
339
+ "type": "integer",
340
+ "primaryKey": true,
341
+ "notNull": true,
342
+ "autoincrement": true
343
+ },
344
+ "project_id": {
345
+ "name": "project_id",
346
+ "type": "text",
347
+ "primaryKey": false,
348
+ "notNull": true,
349
+ "autoincrement": false
350
+ },
351
+ "file_id": {
352
+ "name": "file_id",
353
+ "type": "text",
354
+ "primaryKey": false,
355
+ "notNull": false,
356
+ "autoincrement": false
357
+ },
358
+ "page_id": {
359
+ "name": "page_id",
360
+ "type": "text",
361
+ "primaryKey": false,
362
+ "notNull": false,
363
+ "autoincrement": false
364
+ },
365
+ "row_id": {
366
+ "name": "row_id",
367
+ "type": "text",
368
+ "primaryKey": false,
369
+ "notNull": false,
370
+ "autoincrement": false
371
+ },
372
+ "table_id": {
373
+ "name": "table_id",
374
+ "type": "text",
375
+ "primaryKey": false,
376
+ "notNull": false,
377
+ "autoincrement": false
378
+ },
379
+ "value_id": {
380
+ "name": "value_id",
381
+ "type": "text",
382
+ "primaryKey": false,
383
+ "notNull": false,
384
+ "autoincrement": false
385
+ },
386
+ "heading": {
387
+ "name": "heading",
388
+ "type": "text",
389
+ "primaryKey": false,
390
+ "notNull": false,
391
+ "autoincrement": false
392
+ },
393
+ "sheet": {
394
+ "name": "sheet",
395
+ "type": "integer",
396
+ "primaryKey": false,
397
+ "notNull": false,
398
+ "autoincrement": false
399
+ },
400
+ "plugin": {
401
+ "name": "plugin",
402
+ "type": "text",
403
+ "primaryKey": false,
404
+ "notNull": false,
405
+ "autoincrement": false
406
+ },
407
+ "ref": {
408
+ "name": "ref",
409
+ "type": "text",
410
+ "primaryKey": false,
411
+ "notNull": false,
412
+ "autoincrement": false
413
+ },
414
+ "title": {
415
+ "name": "title",
416
+ "type": "text",
417
+ "primaryKey": false,
418
+ "notNull": false,
419
+ "autoincrement": false
420
+ },
421
+ "link": {
422
+ "name": "link",
423
+ "type": "text",
424
+ "primaryKey": false,
425
+ "notNull": false,
426
+ "autoincrement": false
427
+ },
428
+ "idx": {
429
+ "name": "idx",
430
+ "type": "integer",
431
+ "primaryKey": false,
432
+ "notNull": true,
433
+ "autoincrement": false
434
+ },
435
+ "text": {
436
+ "name": "text",
437
+ "type": "text",
438
+ "primaryKey": false,
439
+ "notNull": true,
440
+ "autoincrement": false
441
+ },
442
+ "embedding": {
443
+ "name": "embedding",
444
+ "type": "blob",
445
+ "primaryKey": false,
446
+ "notNull": false,
447
+ "autoincrement": false
448
+ },
449
+ "model": {
450
+ "name": "model",
451
+ "type": "text",
452
+ "primaryKey": false,
453
+ "notNull": false,
454
+ "autoincrement": false
455
+ }
456
+ },
457
+ "indexes": {
458
+ "project_chunk_project": {
459
+ "name": "project_chunk_project",
460
+ "columns": [
461
+ "project_id",
462
+ "model"
463
+ ],
464
+ "isUnique": false
465
+ },
466
+ "project_chunk_file": {
467
+ "name": "project_chunk_file",
468
+ "columns": [
469
+ "file_id"
470
+ ],
471
+ "isUnique": false
472
+ },
473
+ "project_chunk_ref": {
474
+ "name": "project_chunk_ref",
475
+ "columns": [
476
+ "project_id",
477
+ "plugin",
478
+ "ref"
479
+ ],
480
+ "isUnique": false
481
+ },
482
+ "project_chunk_page": {
483
+ "name": "project_chunk_page",
484
+ "columns": [
485
+ "page_id"
486
+ ],
487
+ "isUnique": false
488
+ },
489
+ "project_chunk_row": {
490
+ "name": "project_chunk_row",
491
+ "columns": [
492
+ "row_id"
493
+ ],
494
+ "isUnique": false
495
+ },
496
+ "project_chunk_table": {
497
+ "name": "project_chunk_table",
498
+ "columns": [
499
+ "table_id"
500
+ ],
501
+ "isUnique": false
502
+ },
503
+ "project_chunk_value": {
504
+ "name": "project_chunk_value",
505
+ "columns": [
506
+ "value_id"
507
+ ],
508
+ "isUnique": false
509
+ }
510
+ },
511
+ "foreignKeys": {
512
+ "project_chunk_project_id_project_id_fk": {
513
+ "name": "project_chunk_project_id_project_id_fk",
514
+ "tableFrom": "project_chunk",
515
+ "tableTo": "project",
516
+ "columnsFrom": [
517
+ "project_id"
518
+ ],
519
+ "columnsTo": [
520
+ "id"
521
+ ],
522
+ "onDelete": "cascade",
523
+ "onUpdate": "no action"
524
+ },
525
+ "project_chunk_file_id_project_file_id_fk": {
526
+ "name": "project_chunk_file_id_project_file_id_fk",
527
+ "tableFrom": "project_chunk",
528
+ "tableTo": "project_file",
529
+ "columnsFrom": [
530
+ "file_id"
531
+ ],
532
+ "columnsTo": [
533
+ "id"
534
+ ],
535
+ "onDelete": "cascade",
536
+ "onUpdate": "no action"
537
+ },
538
+ "project_chunk_page_id_space_page_id_fk": {
539
+ "name": "project_chunk_page_id_space_page_id_fk",
540
+ "tableFrom": "project_chunk",
541
+ "tableTo": "space_page",
542
+ "columnsFrom": [
543
+ "page_id"
544
+ ],
545
+ "columnsTo": [
546
+ "id"
547
+ ],
548
+ "onDelete": "cascade",
549
+ "onUpdate": "no action"
550
+ },
551
+ "project_chunk_row_id_space_table_row_id_fk": {
552
+ "name": "project_chunk_row_id_space_table_row_id_fk",
553
+ "tableFrom": "project_chunk",
554
+ "tableTo": "space_table_row",
555
+ "columnsFrom": [
556
+ "row_id"
557
+ ],
558
+ "columnsTo": [
559
+ "id"
560
+ ],
561
+ "onDelete": "cascade",
562
+ "onUpdate": "no action"
563
+ },
564
+ "project_chunk_table_id_space_table_id_fk": {
565
+ "name": "project_chunk_table_id_space_table_id_fk",
566
+ "tableFrom": "project_chunk",
567
+ "tableTo": "space_table",
568
+ "columnsFrom": [
569
+ "table_id"
570
+ ],
571
+ "columnsTo": [
572
+ "id"
573
+ ],
574
+ "onDelete": "cascade",
575
+ "onUpdate": "no action"
576
+ },
577
+ "project_chunk_value_id_space_category_value_id_fk": {
578
+ "name": "project_chunk_value_id_space_category_value_id_fk",
579
+ "tableFrom": "project_chunk",
580
+ "tableTo": "space_category_value",
581
+ "columnsFrom": [
582
+ "value_id"
583
+ ],
584
+ "columnsTo": [
585
+ "id"
586
+ ],
587
+ "onDelete": "cascade",
588
+ "onUpdate": "no action"
589
+ }
590
+ },
591
+ "compositePrimaryKeys": {},
592
+ "uniqueConstraints": {},
593
+ "checkConstraints": {}
594
+ },
595
+ "project_connector": {
596
+ "name": "project_connector",
597
+ "columns": {
598
+ "project_id": {
599
+ "name": "project_id",
600
+ "type": "text",
601
+ "primaryKey": false,
602
+ "notNull": true,
603
+ "autoincrement": false
604
+ },
605
+ "id": {
606
+ "name": "id",
607
+ "type": "text",
608
+ "primaryKey": false,
609
+ "notNull": true,
610
+ "autoincrement": false
611
+ },
612
+ "record": {
613
+ "name": "record",
614
+ "type": "text",
615
+ "primaryKey": false,
616
+ "notNull": true,
617
+ "autoincrement": false
618
+ },
619
+ "created_at": {
620
+ "name": "created_at",
621
+ "type": "integer",
622
+ "primaryKey": false,
623
+ "notNull": true,
624
+ "autoincrement": false,
625
+ "default": "(unixepoch() * 1000)"
626
+ },
627
+ "updated_at": {
628
+ "name": "updated_at",
629
+ "type": "integer",
630
+ "primaryKey": false,
631
+ "notNull": true,
632
+ "autoincrement": false,
633
+ "default": "(unixepoch() * 1000)"
634
+ }
635
+ },
636
+ "indexes": {},
637
+ "foreignKeys": {
638
+ "project_connector_project_id_project_id_fk": {
639
+ "name": "project_connector_project_id_project_id_fk",
640
+ "tableFrom": "project_connector",
641
+ "tableTo": "project",
642
+ "columnsFrom": [
643
+ "project_id"
644
+ ],
645
+ "columnsTo": [
646
+ "id"
647
+ ],
648
+ "onDelete": "cascade",
649
+ "onUpdate": "no action"
650
+ }
651
+ },
652
+ "compositePrimaryKeys": {
653
+ "project_connector_project_id_id_pk": {
654
+ "columns": [
655
+ "project_id",
656
+ "id"
657
+ ],
658
+ "name": "project_connector_project_id_id_pk"
659
+ }
660
+ },
661
+ "uniqueConstraints": {},
662
+ "checkConstraints": {}
663
+ },
664
+ "project_file": {
665
+ "name": "project_file",
666
+ "columns": {
667
+ "id": {
668
+ "name": "id",
669
+ "type": "text",
670
+ "primaryKey": true,
671
+ "notNull": true,
672
+ "autoincrement": false
673
+ },
674
+ "project_id": {
675
+ "name": "project_id",
676
+ "type": "text",
677
+ "primaryKey": false,
678
+ "notNull": true,
679
+ "autoincrement": false
680
+ },
681
+ "kind": {
682
+ "name": "kind",
683
+ "type": "text",
684
+ "primaryKey": false,
685
+ "notNull": true,
686
+ "autoincrement": false
687
+ },
688
+ "name": {
689
+ "name": "name",
690
+ "type": "text",
691
+ "primaryKey": false,
692
+ "notNull": true,
693
+ "autoincrement": false
694
+ },
695
+ "mime": {
696
+ "name": "mime",
697
+ "type": "text",
698
+ "primaryKey": false,
699
+ "notNull": true,
700
+ "autoincrement": false
701
+ },
702
+ "size": {
703
+ "name": "size",
704
+ "type": "integer",
705
+ "primaryKey": false,
706
+ "notNull": true,
707
+ "autoincrement": false
708
+ },
709
+ "description": {
710
+ "name": "description",
711
+ "type": "text",
712
+ "primaryKey": false,
713
+ "notNull": true,
714
+ "autoincrement": false,
715
+ "default": "''"
716
+ },
717
+ "source": {
718
+ "name": "source",
719
+ "type": "text",
720
+ "primaryKey": false,
721
+ "notNull": false,
722
+ "autoincrement": false
723
+ },
724
+ "position": {
725
+ "name": "position",
726
+ "type": "integer",
727
+ "primaryKey": false,
728
+ "notNull": true,
729
+ "autoincrement": false,
730
+ "default": 0
731
+ },
732
+ "status": {
733
+ "name": "status",
734
+ "type": "text",
735
+ "primaryKey": false,
736
+ "notNull": true,
737
+ "autoincrement": false,
738
+ "default": "'ready'"
739
+ },
740
+ "error": {
741
+ "name": "error",
742
+ "type": "text",
743
+ "primaryKey": false,
744
+ "notNull": false,
745
+ "autoincrement": false
746
+ },
747
+ "text_hash": {
748
+ "name": "text_hash",
749
+ "type": "text",
750
+ "primaryKey": false,
751
+ "notNull": false,
752
+ "autoincrement": false
753
+ },
754
+ "pages": {
755
+ "name": "pages",
756
+ "type": "integer",
757
+ "primaryKey": false,
758
+ "notNull": false,
759
+ "autoincrement": false
760
+ },
761
+ "chars": {
762
+ "name": "chars",
763
+ "type": "integer",
764
+ "primaryKey": false,
765
+ "notNull": false,
766
+ "autoincrement": false
767
+ },
768
+ "indexed": {
769
+ "name": "indexed",
770
+ "type": "text",
771
+ "primaryKey": false,
772
+ "notNull": false,
773
+ "autoincrement": false
774
+ },
775
+ "origin": {
776
+ "name": "origin",
777
+ "type": "text",
778
+ "primaryKey": false,
779
+ "notNull": false,
780
+ "autoincrement": false
781
+ },
782
+ "origin_key": {
783
+ "name": "origin_key",
784
+ "type": "text",
785
+ "primaryKey": false,
786
+ "notNull": false,
787
+ "autoincrement": false
788
+ },
789
+ "origin_label": {
790
+ "name": "origin_label",
791
+ "type": "text",
792
+ "primaryKey": false,
793
+ "notNull": false,
794
+ "autoincrement": false
795
+ },
796
+ "created_at": {
797
+ "name": "created_at",
798
+ "type": "integer",
799
+ "primaryKey": false,
800
+ "notNull": true,
801
+ "autoincrement": false,
802
+ "default": "(unixepoch() * 1000)"
803
+ },
804
+ "updated_at": {
805
+ "name": "updated_at",
806
+ "type": "integer",
807
+ "primaryKey": false,
808
+ "notNull": true,
809
+ "autoincrement": false,
810
+ "default": "(unixepoch() * 1000)"
811
+ }
812
+ },
813
+ "indexes": {
814
+ "project_file_project": {
815
+ "name": "project_file_project",
816
+ "columns": [
817
+ "project_id",
818
+ "kind",
819
+ "position"
820
+ ],
821
+ "isUnique": false
822
+ },
823
+ "project_file_origin": {
824
+ "name": "project_file_origin",
825
+ "columns": [
826
+ "project_id",
827
+ "origin",
828
+ "origin_key"
829
+ ],
830
+ "isUnique": true
831
+ }
832
+ },
833
+ "foreignKeys": {
834
+ "project_file_project_id_project_id_fk": {
835
+ "name": "project_file_project_id_project_id_fk",
836
+ "tableFrom": "project_file",
837
+ "tableTo": "project",
838
+ "columnsFrom": [
839
+ "project_id"
840
+ ],
841
+ "columnsTo": [
842
+ "id"
843
+ ],
844
+ "onDelete": "cascade",
845
+ "onUpdate": "no action"
846
+ }
847
+ },
848
+ "compositePrimaryKeys": {},
849
+ "uniqueConstraints": {},
850
+ "checkConstraints": {}
851
+ },
852
+ "run": {
853
+ "name": "run",
854
+ "columns": {
855
+ "id": {
856
+ "name": "id",
857
+ "type": "text",
858
+ "primaryKey": true,
859
+ "notNull": true,
860
+ "autoincrement": false
861
+ },
862
+ "wizard_id": {
863
+ "name": "wizard_id",
864
+ "type": "text",
865
+ "primaryKey": false,
866
+ "notNull": true,
867
+ "autoincrement": false
868
+ },
869
+ "tenant_id": {
870
+ "name": "tenant_id",
871
+ "type": "text",
872
+ "primaryKey": false,
873
+ "notNull": true,
874
+ "autoincrement": false
875
+ },
876
+ "definition": {
877
+ "name": "definition",
878
+ "type": "text",
879
+ "primaryKey": false,
880
+ "notNull": true,
881
+ "autoincrement": false
882
+ },
883
+ "files": {
884
+ "name": "files",
885
+ "type": "text",
886
+ "primaryKey": false,
887
+ "notNull": true,
888
+ "autoincrement": false,
889
+ "default": "'[]'"
890
+ },
891
+ "version": {
892
+ "name": "version",
893
+ "type": "integer",
894
+ "primaryKey": false,
895
+ "notNull": false,
896
+ "autoincrement": false
897
+ },
898
+ "mode": {
899
+ "name": "mode",
900
+ "type": "text",
901
+ "primaryKey": false,
902
+ "notNull": true,
903
+ "autoincrement": false
904
+ },
905
+ "runner": {
906
+ "name": "runner",
907
+ "type": "text",
908
+ "primaryKey": false,
909
+ "notNull": false,
910
+ "autoincrement": false
911
+ },
912
+ "visitor_id": {
913
+ "name": "visitor_id",
914
+ "type": "text",
915
+ "primaryKey": false,
916
+ "notNull": false,
917
+ "autoincrement": false
918
+ },
919
+ "user_id": {
920
+ "name": "user_id",
921
+ "type": "text",
922
+ "primaryKey": false,
923
+ "notNull": false,
924
+ "autoincrement": false
925
+ },
926
+ "ip_hash": {
927
+ "name": "ip_hash",
928
+ "type": "text",
929
+ "primaryKey": false,
930
+ "notNull": false,
931
+ "autoincrement": false
932
+ },
933
+ "status": {
934
+ "name": "status",
935
+ "type": "text",
936
+ "primaryKey": false,
937
+ "notNull": true,
938
+ "autoincrement": false
939
+ },
940
+ "cursor": {
941
+ "name": "cursor",
942
+ "type": "text",
943
+ "primaryKey": false,
944
+ "notNull": false,
945
+ "autoincrement": false
946
+ },
947
+ "state": {
948
+ "name": "state",
949
+ "type": "text",
950
+ "primaryKey": false,
951
+ "notNull": true,
952
+ "autoincrement": false
953
+ },
954
+ "error": {
955
+ "name": "error",
956
+ "type": "text",
957
+ "primaryKey": false,
958
+ "notNull": false,
959
+ "autoincrement": false
960
+ },
961
+ "ask": {
962
+ "name": "ask",
963
+ "type": "text",
964
+ "primaryKey": false,
965
+ "notNull": false,
966
+ "autoincrement": false
967
+ },
968
+ "cost_micros": {
969
+ "name": "cost_micros",
970
+ "type": "integer",
971
+ "primaryKey": false,
972
+ "notNull": true,
973
+ "autoincrement": false,
974
+ "default": 0
975
+ },
976
+ "share_token": {
977
+ "name": "share_token",
978
+ "type": "text",
979
+ "primaryKey": false,
980
+ "notNull": false,
981
+ "autoincrement": false
982
+ },
983
+ "shared_at": {
984
+ "name": "shared_at",
985
+ "type": "integer",
986
+ "primaryKey": false,
987
+ "notNull": false,
988
+ "autoincrement": false
989
+ },
990
+ "expires_at": {
991
+ "name": "expires_at",
992
+ "type": "integer",
993
+ "primaryKey": false,
994
+ "notNull": false,
995
+ "autoincrement": false
996
+ },
997
+ "created_at": {
998
+ "name": "created_at",
999
+ "type": "integer",
1000
+ "primaryKey": false,
1001
+ "notNull": true,
1002
+ "autoincrement": false,
1003
+ "default": "(unixepoch() * 1000)"
1004
+ },
1005
+ "updated_at": {
1006
+ "name": "updated_at",
1007
+ "type": "integer",
1008
+ "primaryKey": false,
1009
+ "notNull": true,
1010
+ "autoincrement": false,
1011
+ "default": "(unixepoch() * 1000)"
1012
+ }
1013
+ },
1014
+ "indexes": {
1015
+ "run_share_token": {
1016
+ "name": "run_share_token",
1017
+ "columns": [
1018
+ "share_token"
1019
+ ],
1020
+ "isUnique": true
1021
+ },
1022
+ "run_expires": {
1023
+ "name": "run_expires",
1024
+ "columns": [
1025
+ "expires_at"
1026
+ ],
1027
+ "isUnique": false
1028
+ },
1029
+ "run_wizard": {
1030
+ "name": "run_wizard",
1031
+ "columns": [
1032
+ "wizard_id",
1033
+ "created_at"
1034
+ ],
1035
+ "isUnique": false
1036
+ },
1037
+ "run_visitor": {
1038
+ "name": "run_visitor",
1039
+ "columns": [
1040
+ "visitor_id",
1041
+ "created_at"
1042
+ ],
1043
+ "isUnique": false
1044
+ },
1045
+ "run_status": {
1046
+ "name": "run_status",
1047
+ "columns": [
1048
+ "status"
1049
+ ],
1050
+ "isUnique": false
1051
+ }
1052
+ },
1053
+ "foreignKeys": {
1054
+ "run_wizard_id_wizard_id_fk": {
1055
+ "name": "run_wizard_id_wizard_id_fk",
1056
+ "tableFrom": "run",
1057
+ "tableTo": "wizard",
1058
+ "columnsFrom": [
1059
+ "wizard_id"
1060
+ ],
1061
+ "columnsTo": [
1062
+ "id"
1063
+ ],
1064
+ "onDelete": "cascade",
1065
+ "onUpdate": "no action"
1066
+ }
1067
+ },
1068
+ "compositePrimaryKeys": {},
1069
+ "uniqueConstraints": {},
1070
+ "checkConstraints": {}
1071
+ },
1072
+ "run_cost": {
1073
+ "name": "run_cost",
1074
+ "columns": {
1075
+ "run_id": {
1076
+ "name": "run_id",
1077
+ "type": "text",
1078
+ "primaryKey": false,
1079
+ "notNull": true,
1080
+ "autoincrement": false
1081
+ },
1082
+ "step_id": {
1083
+ "name": "step_id",
1084
+ "type": "text",
1085
+ "primaryKey": false,
1086
+ "notNull": true,
1087
+ "autoincrement": false
1088
+ },
1089
+ "micros": {
1090
+ "name": "micros",
1091
+ "type": "integer",
1092
+ "primaryKey": false,
1093
+ "notNull": true,
1094
+ "autoincrement": false,
1095
+ "default": 0
1096
+ }
1097
+ },
1098
+ "indexes": {},
1099
+ "foreignKeys": {
1100
+ "run_cost_run_id_run_id_fk": {
1101
+ "name": "run_cost_run_id_run_id_fk",
1102
+ "tableFrom": "run_cost",
1103
+ "tableTo": "run",
1104
+ "columnsFrom": [
1105
+ "run_id"
1106
+ ],
1107
+ "columnsTo": [
1108
+ "id"
1109
+ ],
1110
+ "onDelete": "cascade",
1111
+ "onUpdate": "no action"
1112
+ }
1113
+ },
1114
+ "compositePrimaryKeys": {
1115
+ "run_cost_run_id_step_id_pk": {
1116
+ "columns": [
1117
+ "run_id",
1118
+ "step_id"
1119
+ ],
1120
+ "name": "run_cost_run_id_step_id_pk"
1121
+ }
1122
+ },
1123
+ "uniqueConstraints": {},
1124
+ "checkConstraints": {}
1125
+ },
1126
+ "run_event": {
1127
+ "name": "run_event",
1128
+ "columns": {
1129
+ "id": {
1130
+ "name": "id",
1131
+ "type": "integer",
1132
+ "primaryKey": true,
1133
+ "notNull": true,
1134
+ "autoincrement": true
1135
+ },
1136
+ "run_id": {
1137
+ "name": "run_id",
1138
+ "type": "text",
1139
+ "primaryKey": false,
1140
+ "notNull": true,
1141
+ "autoincrement": false
1142
+ },
1143
+ "step_id": {
1144
+ "name": "step_id",
1145
+ "type": "text",
1146
+ "primaryKey": false,
1147
+ "notNull": false,
1148
+ "autoincrement": false
1149
+ },
1150
+ "type": {
1151
+ "name": "type",
1152
+ "type": "text",
1153
+ "primaryKey": false,
1154
+ "notNull": true,
1155
+ "autoincrement": false
1156
+ },
1157
+ "message": {
1158
+ "name": "message",
1159
+ "type": "text",
1160
+ "primaryKey": false,
1161
+ "notNull": true,
1162
+ "autoincrement": false
1163
+ },
1164
+ "note": {
1165
+ "name": "note",
1166
+ "type": "text",
1167
+ "primaryKey": false,
1168
+ "notNull": false,
1169
+ "autoincrement": false
1170
+ },
1171
+ "asset_id": {
1172
+ "name": "asset_id",
1173
+ "type": "text",
1174
+ "primaryKey": false,
1175
+ "notNull": false,
1176
+ "autoincrement": false
1177
+ },
1178
+ "created_at": {
1179
+ "name": "created_at",
1180
+ "type": "integer",
1181
+ "primaryKey": false,
1182
+ "notNull": true,
1183
+ "autoincrement": false,
1184
+ "default": "(unixepoch() * 1000)"
1185
+ }
1186
+ },
1187
+ "indexes": {
1188
+ "run_event_run": {
1189
+ "name": "run_event_run",
1190
+ "columns": [
1191
+ "run_id",
1192
+ "id"
1193
+ ],
1194
+ "isUnique": false
1195
+ }
1196
+ },
1197
+ "foreignKeys": {
1198
+ "run_event_run_id_run_id_fk": {
1199
+ "name": "run_event_run_id_run_id_fk",
1200
+ "tableFrom": "run_event",
1201
+ "tableTo": "run",
1202
+ "columnsFrom": [
1203
+ "run_id"
1204
+ ],
1205
+ "columnsTo": [
1206
+ "id"
1207
+ ],
1208
+ "onDelete": "cascade",
1209
+ "onUpdate": "no action"
1210
+ }
1211
+ },
1212
+ "compositePrimaryKeys": {},
1213
+ "uniqueConstraints": {},
1214
+ "checkConstraints": {}
1215
+ },
1216
+ "space_category": {
1217
+ "name": "space_category",
1218
+ "columns": {
1219
+ "id": {
1220
+ "name": "id",
1221
+ "type": "text",
1222
+ "primaryKey": true,
1223
+ "notNull": true,
1224
+ "autoincrement": false
1225
+ },
1226
+ "tenant_id": {
1227
+ "name": "tenant_id",
1228
+ "type": "text",
1229
+ "primaryKey": false,
1230
+ "notNull": true,
1231
+ "autoincrement": false
1232
+ },
1233
+ "project_id": {
1234
+ "name": "project_id",
1235
+ "type": "text",
1236
+ "primaryKey": false,
1237
+ "notNull": true,
1238
+ "autoincrement": false
1239
+ },
1240
+ "name": {
1241
+ "name": "name",
1242
+ "type": "text",
1243
+ "primaryKey": false,
1244
+ "notNull": true,
1245
+ "autoincrement": false
1246
+ },
1247
+ "type": {
1248
+ "name": "type",
1249
+ "type": "text",
1250
+ "primaryKey": false,
1251
+ "notNull": true,
1252
+ "autoincrement": false
1253
+ },
1254
+ "unit": {
1255
+ "name": "unit",
1256
+ "type": "text",
1257
+ "primaryKey": false,
1258
+ "notNull": false,
1259
+ "autoincrement": false
1260
+ },
1261
+ "multiple": {
1262
+ "name": "multiple",
1263
+ "type": "integer",
1264
+ "primaryKey": false,
1265
+ "notNull": true,
1266
+ "autoincrement": false,
1267
+ "default": false
1268
+ },
1269
+ "ordered": {
1270
+ "name": "ordered",
1271
+ "type": "integer",
1272
+ "primaryKey": false,
1273
+ "notNull": true,
1274
+ "autoincrement": false,
1275
+ "default": false
1276
+ },
1277
+ "hint": {
1278
+ "name": "hint",
1279
+ "type": "text",
1280
+ "primaryKey": false,
1281
+ "notNull": false,
1282
+ "autoincrement": false
1283
+ },
1284
+ "origin": {
1285
+ "name": "origin",
1286
+ "type": "text",
1287
+ "primaryKey": false,
1288
+ "notNull": false,
1289
+ "autoincrement": false
1290
+ },
1291
+ "proposed": {
1292
+ "name": "proposed",
1293
+ "type": "integer",
1294
+ "primaryKey": false,
1295
+ "notNull": true,
1296
+ "autoincrement": false,
1297
+ "default": false
1298
+ },
1299
+ "table_id": {
1300
+ "name": "table_id",
1301
+ "type": "text",
1302
+ "primaryKey": false,
1303
+ "notNull": false,
1304
+ "autoincrement": false
1305
+ },
1306
+ "column_id": {
1307
+ "name": "column_id",
1308
+ "type": "text",
1309
+ "primaryKey": false,
1310
+ "notNull": false,
1311
+ "autoincrement": false
1312
+ },
1313
+ "position": {
1314
+ "name": "position",
1315
+ "type": "integer",
1316
+ "primaryKey": false,
1317
+ "notNull": true,
1318
+ "autoincrement": false,
1319
+ "default": 0
1320
+ },
1321
+ "created_at": {
1322
+ "name": "created_at",
1323
+ "type": "integer",
1324
+ "primaryKey": false,
1325
+ "notNull": true,
1326
+ "autoincrement": false,
1327
+ "default": "(unixepoch() * 1000)"
1328
+ },
1329
+ "updated_at": {
1330
+ "name": "updated_at",
1331
+ "type": "integer",
1332
+ "primaryKey": false,
1333
+ "notNull": true,
1334
+ "autoincrement": false,
1335
+ "default": "(unixepoch() * 1000)"
1336
+ }
1337
+ },
1338
+ "indexes": {
1339
+ "space_category_name": {
1340
+ "name": "space_category_name",
1341
+ "columns": [
1342
+ "project_id",
1343
+ "name"
1344
+ ],
1345
+ "isUnique": true
1346
+ }
1347
+ },
1348
+ "foreignKeys": {
1349
+ "space_category_project_id_project_id_fk": {
1350
+ "name": "space_category_project_id_project_id_fk",
1351
+ "tableFrom": "space_category",
1352
+ "tableTo": "project",
1353
+ "columnsFrom": [
1354
+ "project_id"
1355
+ ],
1356
+ "columnsTo": [
1357
+ "id"
1358
+ ],
1359
+ "onDelete": "cascade",
1360
+ "onUpdate": "no action"
1361
+ },
1362
+ "space_category_table_id_space_table_id_fk": {
1363
+ "name": "space_category_table_id_space_table_id_fk",
1364
+ "tableFrom": "space_category",
1365
+ "tableTo": "space_table",
1366
+ "columnsFrom": [
1367
+ "table_id"
1368
+ ],
1369
+ "columnsTo": [
1370
+ "id"
1371
+ ],
1372
+ "onDelete": "set null",
1373
+ "onUpdate": "no action"
1374
+ }
1375
+ },
1376
+ "compositePrimaryKeys": {},
1377
+ "uniqueConstraints": {},
1378
+ "checkConstraints": {}
1379
+ },
1380
+ "space_category_value": {
1381
+ "name": "space_category_value",
1382
+ "columns": {
1383
+ "id": {
1384
+ "name": "id",
1385
+ "type": "text",
1386
+ "primaryKey": true,
1387
+ "notNull": true,
1388
+ "autoincrement": false
1389
+ },
1390
+ "category_id": {
1391
+ "name": "category_id",
1392
+ "type": "text",
1393
+ "primaryKey": false,
1394
+ "notNull": true,
1395
+ "autoincrement": false
1396
+ },
1397
+ "value": {
1398
+ "name": "value",
1399
+ "type": "text",
1400
+ "primaryKey": false,
1401
+ "notNull": true,
1402
+ "autoincrement": false
1403
+ },
1404
+ "position": {
1405
+ "name": "position",
1406
+ "type": "integer",
1407
+ "primaryKey": false,
1408
+ "notNull": true,
1409
+ "autoincrement": false,
1410
+ "default": 0
1411
+ },
1412
+ "summary": {
1413
+ "name": "summary",
1414
+ "type": "text",
1415
+ "primaryKey": false,
1416
+ "notNull": false,
1417
+ "autoincrement": false
1418
+ },
1419
+ "summary_at": {
1420
+ "name": "summary_at",
1421
+ "type": "integer",
1422
+ "primaryKey": false,
1423
+ "notNull": false,
1424
+ "autoincrement": false
1425
+ },
1426
+ "created_at": {
1427
+ "name": "created_at",
1428
+ "type": "integer",
1429
+ "primaryKey": false,
1430
+ "notNull": true,
1431
+ "autoincrement": false,
1432
+ "default": "(unixepoch() * 1000)"
1433
+ }
1434
+ },
1435
+ "indexes": {
1436
+ "space_category_value_value": {
1437
+ "name": "space_category_value_value",
1438
+ "columns": [
1439
+ "category_id",
1440
+ "value"
1441
+ ],
1442
+ "isUnique": true
1443
+ }
1444
+ },
1445
+ "foreignKeys": {
1446
+ "space_category_value_category_id_space_category_id_fk": {
1447
+ "name": "space_category_value_category_id_space_category_id_fk",
1448
+ "tableFrom": "space_category_value",
1449
+ "tableTo": "space_category",
1450
+ "columnsFrom": [
1451
+ "category_id"
1452
+ ],
1453
+ "columnsTo": [
1454
+ "id"
1455
+ ],
1456
+ "onDelete": "cascade",
1457
+ "onUpdate": "no action"
1458
+ }
1459
+ },
1460
+ "compositePrimaryKeys": {},
1461
+ "uniqueConstraints": {},
1462
+ "checkConstraints": {}
1463
+ },
1464
+ "space_item_category": {
1465
+ "name": "space_item_category",
1466
+ "columns": {
1467
+ "id": {
1468
+ "name": "id",
1469
+ "type": "integer",
1470
+ "primaryKey": true,
1471
+ "notNull": true,
1472
+ "autoincrement": true
1473
+ },
1474
+ "project_id": {
1475
+ "name": "project_id",
1476
+ "type": "text",
1477
+ "primaryKey": false,
1478
+ "notNull": true,
1479
+ "autoincrement": false
1480
+ },
1481
+ "category_id": {
1482
+ "name": "category_id",
1483
+ "type": "text",
1484
+ "primaryKey": false,
1485
+ "notNull": true,
1486
+ "autoincrement": false
1487
+ },
1488
+ "page_id": {
1489
+ "name": "page_id",
1490
+ "type": "text",
1491
+ "primaryKey": false,
1492
+ "notNull": false,
1493
+ "autoincrement": false
1494
+ },
1495
+ "row_id": {
1496
+ "name": "row_id",
1497
+ "type": "text",
1498
+ "primaryKey": false,
1499
+ "notNull": false,
1500
+ "autoincrement": false
1501
+ },
1502
+ "table_id": {
1503
+ "name": "table_id",
1504
+ "type": "text",
1505
+ "primaryKey": false,
1506
+ "notNull": false,
1507
+ "autoincrement": false
1508
+ },
1509
+ "file_id": {
1510
+ "name": "file_id",
1511
+ "type": "text",
1512
+ "primaryKey": false,
1513
+ "notNull": false,
1514
+ "autoincrement": false
1515
+ },
1516
+ "value_id": {
1517
+ "name": "value_id",
1518
+ "type": "text",
1519
+ "primaryKey": false,
1520
+ "notNull": false,
1521
+ "autoincrement": false
1522
+ },
1523
+ "text": {
1524
+ "name": "text",
1525
+ "type": "text",
1526
+ "primaryKey": false,
1527
+ "notNull": false,
1528
+ "autoincrement": false
1529
+ },
1530
+ "num": {
1531
+ "name": "num",
1532
+ "type": "real",
1533
+ "primaryKey": false,
1534
+ "notNull": false,
1535
+ "autoincrement": false
1536
+ },
1537
+ "at": {
1538
+ "name": "at",
1539
+ "type": "integer",
1540
+ "primaryKey": false,
1541
+ "notNull": false,
1542
+ "autoincrement": false
1543
+ },
1544
+ "bool": {
1545
+ "name": "bool",
1546
+ "type": "integer",
1547
+ "primaryKey": false,
1548
+ "notNull": false,
1549
+ "autoincrement": false
1550
+ },
1551
+ "by": {
1552
+ "name": "by",
1553
+ "type": "text",
1554
+ "primaryKey": false,
1555
+ "notNull": true,
1556
+ "autoincrement": false,
1557
+ "default": "'person'"
1558
+ }
1559
+ },
1560
+ "indexes": {
1561
+ "space_item_category_category": {
1562
+ "name": "space_item_category_category",
1563
+ "columns": [
1564
+ "category_id",
1565
+ "value_id"
1566
+ ],
1567
+ "isUnique": false
1568
+ },
1569
+ "space_item_category_page": {
1570
+ "name": "space_item_category_page",
1571
+ "columns": [
1572
+ "page_id"
1573
+ ],
1574
+ "isUnique": false
1575
+ },
1576
+ "space_item_category_row": {
1577
+ "name": "space_item_category_row",
1578
+ "columns": [
1579
+ "row_id"
1580
+ ],
1581
+ "isUnique": false
1582
+ },
1583
+ "space_item_category_table": {
1584
+ "name": "space_item_category_table",
1585
+ "columns": [
1586
+ "table_id"
1587
+ ],
1588
+ "isUnique": false
1589
+ },
1590
+ "space_item_category_file": {
1591
+ "name": "space_item_category_file",
1592
+ "columns": [
1593
+ "file_id"
1594
+ ],
1595
+ "isUnique": false
1596
+ }
1597
+ },
1598
+ "foreignKeys": {
1599
+ "space_item_category_project_id_project_id_fk": {
1600
+ "name": "space_item_category_project_id_project_id_fk",
1601
+ "tableFrom": "space_item_category",
1602
+ "tableTo": "project",
1603
+ "columnsFrom": [
1604
+ "project_id"
1605
+ ],
1606
+ "columnsTo": [
1607
+ "id"
1608
+ ],
1609
+ "onDelete": "cascade",
1610
+ "onUpdate": "no action"
1611
+ },
1612
+ "space_item_category_category_id_space_category_id_fk": {
1613
+ "name": "space_item_category_category_id_space_category_id_fk",
1614
+ "tableFrom": "space_item_category",
1615
+ "tableTo": "space_category",
1616
+ "columnsFrom": [
1617
+ "category_id"
1618
+ ],
1619
+ "columnsTo": [
1620
+ "id"
1621
+ ],
1622
+ "onDelete": "cascade",
1623
+ "onUpdate": "no action"
1624
+ },
1625
+ "space_item_category_page_id_space_page_id_fk": {
1626
+ "name": "space_item_category_page_id_space_page_id_fk",
1627
+ "tableFrom": "space_item_category",
1628
+ "tableTo": "space_page",
1629
+ "columnsFrom": [
1630
+ "page_id"
1631
+ ],
1632
+ "columnsTo": [
1633
+ "id"
1634
+ ],
1635
+ "onDelete": "cascade",
1636
+ "onUpdate": "no action"
1637
+ },
1638
+ "space_item_category_row_id_space_table_row_id_fk": {
1639
+ "name": "space_item_category_row_id_space_table_row_id_fk",
1640
+ "tableFrom": "space_item_category",
1641
+ "tableTo": "space_table_row",
1642
+ "columnsFrom": [
1643
+ "row_id"
1644
+ ],
1645
+ "columnsTo": [
1646
+ "id"
1647
+ ],
1648
+ "onDelete": "cascade",
1649
+ "onUpdate": "no action"
1650
+ },
1651
+ "space_item_category_table_id_space_table_id_fk": {
1652
+ "name": "space_item_category_table_id_space_table_id_fk",
1653
+ "tableFrom": "space_item_category",
1654
+ "tableTo": "space_table",
1655
+ "columnsFrom": [
1656
+ "table_id"
1657
+ ],
1658
+ "columnsTo": [
1659
+ "id"
1660
+ ],
1661
+ "onDelete": "cascade",
1662
+ "onUpdate": "no action"
1663
+ },
1664
+ "space_item_category_file_id_project_file_id_fk": {
1665
+ "name": "space_item_category_file_id_project_file_id_fk",
1666
+ "tableFrom": "space_item_category",
1667
+ "tableTo": "project_file",
1668
+ "columnsFrom": [
1669
+ "file_id"
1670
+ ],
1671
+ "columnsTo": [
1672
+ "id"
1673
+ ],
1674
+ "onDelete": "cascade",
1675
+ "onUpdate": "no action"
1676
+ },
1677
+ "space_item_category_value_id_space_category_value_id_fk": {
1678
+ "name": "space_item_category_value_id_space_category_value_id_fk",
1679
+ "tableFrom": "space_item_category",
1680
+ "tableTo": "space_category_value",
1681
+ "columnsFrom": [
1682
+ "value_id"
1683
+ ],
1684
+ "columnsTo": [
1685
+ "id"
1686
+ ],
1687
+ "onDelete": "cascade",
1688
+ "onUpdate": "no action"
1689
+ }
1690
+ },
1691
+ "compositePrimaryKeys": {},
1692
+ "uniqueConstraints": {},
1693
+ "checkConstraints": {}
1694
+ },
1695
+ "space_page": {
1696
+ "name": "space_page",
1697
+ "columns": {
1698
+ "id": {
1699
+ "name": "id",
1700
+ "type": "text",
1701
+ "primaryKey": true,
1702
+ "notNull": true,
1703
+ "autoincrement": false
1704
+ },
1705
+ "tenant_id": {
1706
+ "name": "tenant_id",
1707
+ "type": "text",
1708
+ "primaryKey": false,
1709
+ "notNull": true,
1710
+ "autoincrement": false
1711
+ },
1712
+ "project_id": {
1713
+ "name": "project_id",
1714
+ "type": "text",
1715
+ "primaryKey": false,
1716
+ "notNull": true,
1717
+ "autoincrement": false
1718
+ },
1719
+ "wizard_id": {
1720
+ "name": "wizard_id",
1721
+ "type": "text",
1722
+ "primaryKey": false,
1723
+ "notNull": false,
1724
+ "autoincrement": false
1725
+ },
1726
+ "parent_id": {
1727
+ "name": "parent_id",
1728
+ "type": "text",
1729
+ "primaryKey": false,
1730
+ "notNull": false,
1731
+ "autoincrement": false
1732
+ },
1733
+ "position": {
1734
+ "name": "position",
1735
+ "type": "integer",
1736
+ "primaryKey": false,
1737
+ "notNull": true,
1738
+ "autoincrement": false,
1739
+ "default": 0
1740
+ },
1741
+ "title": {
1742
+ "name": "title",
1743
+ "type": "text",
1744
+ "primaryKey": false,
1745
+ "notNull": true,
1746
+ "autoincrement": false
1747
+ },
1748
+ "slug": {
1749
+ "name": "slug",
1750
+ "type": "text",
1751
+ "primaryKey": false,
1752
+ "notNull": false,
1753
+ "autoincrement": false
1754
+ },
1755
+ "markdown": {
1756
+ "name": "markdown",
1757
+ "type": "text",
1758
+ "primaryKey": false,
1759
+ "notNull": true,
1760
+ "autoincrement": false,
1761
+ "default": "''"
1762
+ },
1763
+ "origin": {
1764
+ "name": "origin",
1765
+ "type": "text",
1766
+ "primaryKey": false,
1767
+ "notNull": false,
1768
+ "autoincrement": false
1769
+ },
1770
+ "origin_key": {
1771
+ "name": "origin_key",
1772
+ "type": "text",
1773
+ "primaryKey": false,
1774
+ "notNull": false,
1775
+ "autoincrement": false
1776
+ },
1777
+ "origin_label": {
1778
+ "name": "origin_label",
1779
+ "type": "text",
1780
+ "primaryKey": false,
1781
+ "notNull": false,
1782
+ "autoincrement": false
1783
+ },
1784
+ "kept": {
1785
+ "name": "kept",
1786
+ "type": "integer",
1787
+ "primaryKey": false,
1788
+ "notNull": true,
1789
+ "autoincrement": false,
1790
+ "default": false
1791
+ },
1792
+ "review": {
1793
+ "name": "review",
1794
+ "type": "text",
1795
+ "primaryKey": false,
1796
+ "notNull": false,
1797
+ "autoincrement": false
1798
+ },
1799
+ "file_id": {
1800
+ "name": "file_id",
1801
+ "type": "text",
1802
+ "primaryKey": false,
1803
+ "notNull": false,
1804
+ "autoincrement": false
1805
+ },
1806
+ "created_at": {
1807
+ "name": "created_at",
1808
+ "type": "integer",
1809
+ "primaryKey": false,
1810
+ "notNull": true,
1811
+ "autoincrement": false,
1812
+ "default": "(unixepoch() * 1000)"
1813
+ },
1814
+ "updated_at": {
1815
+ "name": "updated_at",
1816
+ "type": "integer",
1817
+ "primaryKey": false,
1818
+ "notNull": true,
1819
+ "autoincrement": false,
1820
+ "default": "(unixepoch() * 1000)"
1821
+ }
1822
+ },
1823
+ "indexes": {
1824
+ "space_page_project": {
1825
+ "name": "space_page_project",
1826
+ "columns": [
1827
+ "project_id",
1828
+ "wizard_id"
1829
+ ],
1830
+ "isUnique": false
1831
+ },
1832
+ "space_page_parent": {
1833
+ "name": "space_page_parent",
1834
+ "columns": [
1835
+ "parent_id",
1836
+ "position"
1837
+ ],
1838
+ "isUnique": false
1839
+ },
1840
+ "space_page_origin": {
1841
+ "name": "space_page_origin",
1842
+ "columns": [
1843
+ "project_id",
1844
+ "origin",
1845
+ "origin_key"
1846
+ ],
1847
+ "isUnique": true
1848
+ }
1849
+ },
1850
+ "foreignKeys": {
1851
+ "space_page_project_id_project_id_fk": {
1852
+ "name": "space_page_project_id_project_id_fk",
1853
+ "tableFrom": "space_page",
1854
+ "tableTo": "project",
1855
+ "columnsFrom": [
1856
+ "project_id"
1857
+ ],
1858
+ "columnsTo": [
1859
+ "id"
1860
+ ],
1861
+ "onDelete": "cascade",
1862
+ "onUpdate": "no action"
1863
+ },
1864
+ "space_page_wizard_id_wizard_id_fk": {
1865
+ "name": "space_page_wizard_id_wizard_id_fk",
1866
+ "tableFrom": "space_page",
1867
+ "tableTo": "wizard",
1868
+ "columnsFrom": [
1869
+ "wizard_id"
1870
+ ],
1871
+ "columnsTo": [
1872
+ "id"
1873
+ ],
1874
+ "onDelete": "cascade",
1875
+ "onUpdate": "no action"
1876
+ },
1877
+ "space_page_parent_id_space_page_id_fk": {
1878
+ "name": "space_page_parent_id_space_page_id_fk",
1879
+ "tableFrom": "space_page",
1880
+ "tableTo": "space_page",
1881
+ "columnsFrom": [
1882
+ "parent_id"
1883
+ ],
1884
+ "columnsTo": [
1885
+ "id"
1886
+ ],
1887
+ "onDelete": "cascade",
1888
+ "onUpdate": "no action"
1889
+ },
1890
+ "space_page_file_id_project_file_id_fk": {
1891
+ "name": "space_page_file_id_project_file_id_fk",
1892
+ "tableFrom": "space_page",
1893
+ "tableTo": "project_file",
1894
+ "columnsFrom": [
1895
+ "file_id"
1896
+ ],
1897
+ "columnsTo": [
1898
+ "id"
1899
+ ],
1900
+ "onDelete": "set null",
1901
+ "onUpdate": "no action"
1902
+ }
1903
+ },
1904
+ "compositePrimaryKeys": {},
1905
+ "uniqueConstraints": {},
1906
+ "checkConstraints": {}
1907
+ },
1908
+ "space_table": {
1909
+ "name": "space_table",
1910
+ "columns": {
1911
+ "id": {
1912
+ "name": "id",
1913
+ "type": "text",
1914
+ "primaryKey": true,
1915
+ "notNull": true,
1916
+ "autoincrement": false
1917
+ },
1918
+ "tenant_id": {
1919
+ "name": "tenant_id",
1920
+ "type": "text",
1921
+ "primaryKey": false,
1922
+ "notNull": true,
1923
+ "autoincrement": false
1924
+ },
1925
+ "project_id": {
1926
+ "name": "project_id",
1927
+ "type": "text",
1928
+ "primaryKey": false,
1929
+ "notNull": true,
1930
+ "autoincrement": false
1931
+ },
1932
+ "wizard_id": {
1933
+ "name": "wizard_id",
1934
+ "type": "text",
1935
+ "primaryKey": false,
1936
+ "notNull": false,
1937
+ "autoincrement": false
1938
+ },
1939
+ "list": {
1940
+ "name": "list",
1941
+ "type": "text",
1942
+ "primaryKey": false,
1943
+ "notNull": false,
1944
+ "autoincrement": false
1945
+ },
1946
+ "key_column": {
1947
+ "name": "key_column",
1948
+ "type": "text",
1949
+ "primaryKey": false,
1950
+ "notNull": false,
1951
+ "autoincrement": false
1952
+ },
1953
+ "title": {
1954
+ "name": "title",
1955
+ "type": "text",
1956
+ "primaryKey": false,
1957
+ "notNull": true,
1958
+ "autoincrement": false
1959
+ },
1960
+ "slug": {
1961
+ "name": "slug",
1962
+ "type": "text",
1963
+ "primaryKey": false,
1964
+ "notNull": false,
1965
+ "autoincrement": false
1966
+ },
1967
+ "format": {
1968
+ "name": "format",
1969
+ "type": "text",
1970
+ "primaryKey": false,
1971
+ "notNull": false,
1972
+ "autoincrement": false
1973
+ },
1974
+ "columns": {
1975
+ "name": "columns",
1976
+ "type": "text",
1977
+ "primaryKey": false,
1978
+ "notNull": true,
1979
+ "autoincrement": false
1980
+ },
1981
+ "origin": {
1982
+ "name": "origin",
1983
+ "type": "text",
1984
+ "primaryKey": false,
1985
+ "notNull": false,
1986
+ "autoincrement": false
1987
+ },
1988
+ "origin_key": {
1989
+ "name": "origin_key",
1990
+ "type": "text",
1991
+ "primaryKey": false,
1992
+ "notNull": false,
1993
+ "autoincrement": false
1994
+ },
1995
+ "origin_label": {
1996
+ "name": "origin_label",
1997
+ "type": "text",
1998
+ "primaryKey": false,
1999
+ "notNull": false,
2000
+ "autoincrement": false
2001
+ },
2002
+ "kept": {
2003
+ "name": "kept",
2004
+ "type": "integer",
2005
+ "primaryKey": false,
2006
+ "notNull": true,
2007
+ "autoincrement": false,
2008
+ "default": false
2009
+ },
2010
+ "review": {
2011
+ "name": "review",
2012
+ "type": "text",
2013
+ "primaryKey": false,
2014
+ "notNull": false,
2015
+ "autoincrement": false
2016
+ },
2017
+ "file_id": {
2018
+ "name": "file_id",
2019
+ "type": "text",
2020
+ "primaryKey": false,
2021
+ "notNull": false,
2022
+ "autoincrement": false
2023
+ },
2024
+ "created_at": {
2025
+ "name": "created_at",
2026
+ "type": "integer",
2027
+ "primaryKey": false,
2028
+ "notNull": true,
2029
+ "autoincrement": false,
2030
+ "default": "(unixepoch() * 1000)"
2031
+ },
2032
+ "updated_at": {
2033
+ "name": "updated_at",
2034
+ "type": "integer",
2035
+ "primaryKey": false,
2036
+ "notNull": true,
2037
+ "autoincrement": false,
2038
+ "default": "(unixepoch() * 1000)"
2039
+ }
2040
+ },
2041
+ "indexes": {
2042
+ "space_table_project": {
2043
+ "name": "space_table_project",
2044
+ "columns": [
2045
+ "project_id",
2046
+ "wizard_id"
2047
+ ],
2048
+ "isUnique": false
2049
+ },
2050
+ "space_table_list": {
2051
+ "name": "space_table_list",
2052
+ "columns": [
2053
+ "wizard_id",
2054
+ "list"
2055
+ ],
2056
+ "isUnique": true
2057
+ },
2058
+ "space_table_origin": {
2059
+ "name": "space_table_origin",
2060
+ "columns": [
2061
+ "project_id",
2062
+ "origin",
2063
+ "origin_key"
2064
+ ],
2065
+ "isUnique": true
2066
+ }
2067
+ },
2068
+ "foreignKeys": {
2069
+ "space_table_project_id_project_id_fk": {
2070
+ "name": "space_table_project_id_project_id_fk",
2071
+ "tableFrom": "space_table",
2072
+ "tableTo": "project",
2073
+ "columnsFrom": [
2074
+ "project_id"
2075
+ ],
2076
+ "columnsTo": [
2077
+ "id"
2078
+ ],
2079
+ "onDelete": "cascade",
2080
+ "onUpdate": "no action"
2081
+ },
2082
+ "space_table_wizard_id_wizard_id_fk": {
2083
+ "name": "space_table_wizard_id_wizard_id_fk",
2084
+ "tableFrom": "space_table",
2085
+ "tableTo": "wizard",
2086
+ "columnsFrom": [
2087
+ "wizard_id"
2088
+ ],
2089
+ "columnsTo": [
2090
+ "id"
2091
+ ],
2092
+ "onDelete": "cascade",
2093
+ "onUpdate": "no action"
2094
+ },
2095
+ "space_table_file_id_project_file_id_fk": {
2096
+ "name": "space_table_file_id_project_file_id_fk",
2097
+ "tableFrom": "space_table",
2098
+ "tableTo": "project_file",
2099
+ "columnsFrom": [
2100
+ "file_id"
2101
+ ],
2102
+ "columnsTo": [
2103
+ "id"
2104
+ ],
2105
+ "onDelete": "set null",
2106
+ "onUpdate": "no action"
2107
+ }
2108
+ },
2109
+ "compositePrimaryKeys": {},
2110
+ "uniqueConstraints": {},
2111
+ "checkConstraints": {}
2112
+ },
2113
+ "space_table_row": {
2114
+ "name": "space_table_row",
2115
+ "columns": {
2116
+ "id": {
2117
+ "name": "id",
2118
+ "type": "text",
2119
+ "primaryKey": true,
2120
+ "notNull": true,
2121
+ "autoincrement": false
2122
+ },
2123
+ "table_id": {
2124
+ "name": "table_id",
2125
+ "type": "text",
2126
+ "primaryKey": false,
2127
+ "notNull": true,
2128
+ "autoincrement": false
2129
+ },
2130
+ "key": {
2131
+ "name": "key",
2132
+ "type": "text",
2133
+ "primaryKey": false,
2134
+ "notNull": false,
2135
+ "autoincrement": false
2136
+ },
2137
+ "cells": {
2138
+ "name": "cells",
2139
+ "type": "text",
2140
+ "primaryKey": false,
2141
+ "notNull": true,
2142
+ "autoincrement": false
2143
+ },
2144
+ "created_at": {
2145
+ "name": "created_at",
2146
+ "type": "integer",
2147
+ "primaryKey": false,
2148
+ "notNull": true,
2149
+ "autoincrement": false,
2150
+ "default": "(unixepoch() * 1000)"
2151
+ },
2152
+ "updated_at": {
2153
+ "name": "updated_at",
2154
+ "type": "integer",
2155
+ "primaryKey": false,
2156
+ "notNull": true,
2157
+ "autoincrement": false,
2158
+ "default": "(unixepoch() * 1000)"
2159
+ }
2160
+ },
2161
+ "indexes": {
2162
+ "space_table_row_table": {
2163
+ "name": "space_table_row_table",
2164
+ "columns": [
2165
+ "table_id",
2166
+ "created_at"
2167
+ ],
2168
+ "isUnique": false
2169
+ },
2170
+ "space_table_row_key": {
2171
+ "name": "space_table_row_key",
2172
+ "columns": [
2173
+ "table_id",
2174
+ "key"
2175
+ ],
2176
+ "isUnique": false
2177
+ }
2178
+ },
2179
+ "foreignKeys": {
2180
+ "space_table_row_table_id_space_table_id_fk": {
2181
+ "name": "space_table_row_table_id_space_table_id_fk",
2182
+ "tableFrom": "space_table_row",
2183
+ "tableTo": "space_table",
2184
+ "columnsFrom": [
2185
+ "table_id"
2186
+ ],
2187
+ "columnsTo": [
2188
+ "id"
2189
+ ],
2190
+ "onDelete": "cascade",
2191
+ "onUpdate": "no action"
2192
+ }
2193
+ },
2194
+ "compositePrimaryKeys": {},
2195
+ "uniqueConstraints": {},
2196
+ "checkConstraints": {}
2197
+ },
2198
+ "store_file": {
2199
+ "name": "store_file",
2200
+ "columns": {
2201
+ "wizard_id": {
2202
+ "name": "wizard_id",
2203
+ "type": "text",
2204
+ "primaryKey": false,
2205
+ "notNull": true,
2206
+ "autoincrement": false
2207
+ },
2208
+ "holder": {
2209
+ "name": "holder",
2210
+ "type": "text",
2211
+ "primaryKey": false,
2212
+ "notNull": true,
2213
+ "autoincrement": false
2214
+ },
2215
+ "path": {
2216
+ "name": "path",
2217
+ "type": "text",
2218
+ "primaryKey": false,
2219
+ "notNull": true,
2220
+ "autoincrement": false
2221
+ },
2222
+ "hash": {
2223
+ "name": "hash",
2224
+ "type": "text",
2225
+ "primaryKey": false,
2226
+ "notNull": true,
2227
+ "autoincrement": false
2228
+ },
2229
+ "mime": {
2230
+ "name": "mime",
2231
+ "type": "text",
2232
+ "primaryKey": false,
2233
+ "notNull": true,
2234
+ "autoincrement": false
2235
+ },
2236
+ "size": {
2237
+ "name": "size",
2238
+ "type": "integer",
2239
+ "primaryKey": false,
2240
+ "notNull": true,
2241
+ "autoincrement": false
2242
+ },
2243
+ "source": {
2244
+ "name": "source",
2245
+ "type": "text",
2246
+ "primaryKey": false,
2247
+ "notNull": false,
2248
+ "autoincrement": false
2249
+ },
2250
+ "updated_at": {
2251
+ "name": "updated_at",
2252
+ "type": "integer",
2253
+ "primaryKey": false,
2254
+ "notNull": true,
2255
+ "autoincrement": false,
2256
+ "default": "(unixepoch() * 1000)"
2257
+ }
2258
+ },
2259
+ "indexes": {},
2260
+ "foreignKeys": {
2261
+ "store_file_wizard_id_wizard_id_fk": {
2262
+ "name": "store_file_wizard_id_wizard_id_fk",
2263
+ "tableFrom": "store_file",
2264
+ "tableTo": "wizard",
2265
+ "columnsFrom": [
2266
+ "wizard_id"
2267
+ ],
2268
+ "columnsTo": [
2269
+ "id"
2270
+ ],
2271
+ "onDelete": "cascade",
2272
+ "onUpdate": "no action"
2273
+ }
2274
+ },
2275
+ "compositePrimaryKeys": {
2276
+ "store_file_wizard_id_holder_path_pk": {
2277
+ "columns": [
2278
+ "wizard_id",
2279
+ "holder",
2280
+ "path"
2281
+ ],
2282
+ "name": "store_file_wizard_id_holder_path_pk"
2283
+ }
2284
+ },
2285
+ "uniqueConstraints": {},
2286
+ "checkConstraints": {}
2287
+ },
2288
+ "store_holder": {
2289
+ "name": "store_holder",
2290
+ "columns": {
2291
+ "wizard_id": {
2292
+ "name": "wizard_id",
2293
+ "type": "text",
2294
+ "primaryKey": false,
2295
+ "notNull": true,
2296
+ "autoincrement": false
2297
+ },
2298
+ "holder": {
2299
+ "name": "holder",
2300
+ "type": "text",
2301
+ "primaryKey": false,
2302
+ "notNull": true,
2303
+ "autoincrement": false
2304
+ },
2305
+ "used_at": {
2306
+ "name": "used_at",
2307
+ "type": "integer",
2308
+ "primaryKey": false,
2309
+ "notNull": true,
2310
+ "autoincrement": false,
2311
+ "default": "(unixepoch() * 1000)"
2312
+ }
2313
+ },
2314
+ "indexes": {
2315
+ "store_holder_used": {
2316
+ "name": "store_holder_used",
2317
+ "columns": [
2318
+ "used_at"
2319
+ ],
2320
+ "isUnique": false
2321
+ }
2322
+ },
2323
+ "foreignKeys": {
2324
+ "store_holder_wizard_id_wizard_id_fk": {
2325
+ "name": "store_holder_wizard_id_wizard_id_fk",
2326
+ "tableFrom": "store_holder",
2327
+ "tableTo": "wizard",
2328
+ "columnsFrom": [
2329
+ "wizard_id"
2330
+ ],
2331
+ "columnsTo": [
2332
+ "id"
2333
+ ],
2334
+ "onDelete": "cascade",
2335
+ "onUpdate": "no action"
2336
+ }
2337
+ },
2338
+ "compositePrimaryKeys": {
2339
+ "store_holder_wizard_id_holder_pk": {
2340
+ "columns": [
2341
+ "wizard_id",
2342
+ "holder"
2343
+ ],
2344
+ "name": "store_holder_wizard_id_holder_pk"
2345
+ }
2346
+ },
2347
+ "uniqueConstraints": {},
2348
+ "checkConstraints": {}
2349
+ },
2350
+ "store_row": {
2351
+ "name": "store_row",
2352
+ "columns": {
2353
+ "id": {
2354
+ "name": "id",
2355
+ "type": "text",
2356
+ "primaryKey": true,
2357
+ "notNull": true,
2358
+ "autoincrement": false
2359
+ },
2360
+ "wizard_id": {
2361
+ "name": "wizard_id",
2362
+ "type": "text",
2363
+ "primaryKey": false,
2364
+ "notNull": true,
2365
+ "autoincrement": false
2366
+ },
2367
+ "holder": {
2368
+ "name": "holder",
2369
+ "type": "text",
2370
+ "primaryKey": false,
2371
+ "notNull": true,
2372
+ "autoincrement": false
2373
+ },
2374
+ "list": {
2375
+ "name": "list",
2376
+ "type": "text",
2377
+ "primaryKey": false,
2378
+ "notNull": true,
2379
+ "autoincrement": false
2380
+ },
2381
+ "key": {
2382
+ "name": "key",
2383
+ "type": "text",
2384
+ "primaryKey": false,
2385
+ "notNull": false,
2386
+ "autoincrement": false
2387
+ },
2388
+ "cells": {
2389
+ "name": "cells",
2390
+ "type": "text",
2391
+ "primaryKey": false,
2392
+ "notNull": true,
2393
+ "autoincrement": false
2394
+ },
2395
+ "created_at": {
2396
+ "name": "created_at",
2397
+ "type": "integer",
2398
+ "primaryKey": false,
2399
+ "notNull": true,
2400
+ "autoincrement": false,
2401
+ "default": "(unixepoch() * 1000)"
2402
+ },
2403
+ "updated_at": {
2404
+ "name": "updated_at",
2405
+ "type": "integer",
2406
+ "primaryKey": false,
2407
+ "notNull": true,
2408
+ "autoincrement": false,
2409
+ "default": "(unixepoch() * 1000)"
2410
+ }
2411
+ },
2412
+ "indexes": {
2413
+ "store_row_key": {
2414
+ "name": "store_row_key",
2415
+ "columns": [
2416
+ "wizard_id",
2417
+ "holder",
2418
+ "list",
2419
+ "key"
2420
+ ],
2421
+ "isUnique": true
2422
+ },
2423
+ "store_row_list": {
2424
+ "name": "store_row_list",
2425
+ "columns": [
2426
+ "wizard_id",
2427
+ "holder",
2428
+ "list",
2429
+ "created_at"
2430
+ ],
2431
+ "isUnique": false
2432
+ }
2433
+ },
2434
+ "foreignKeys": {
2435
+ "store_row_wizard_id_wizard_id_fk": {
2436
+ "name": "store_row_wizard_id_wizard_id_fk",
2437
+ "tableFrom": "store_row",
2438
+ "tableTo": "wizard",
2439
+ "columnsFrom": [
2440
+ "wizard_id"
2441
+ ],
2442
+ "columnsTo": [
2443
+ "id"
2444
+ ],
2445
+ "onDelete": "cascade",
2446
+ "onUpdate": "no action"
2447
+ }
2448
+ },
2449
+ "compositePrimaryKeys": {},
2450
+ "uniqueConstraints": {},
2451
+ "checkConstraints": {}
2452
+ },
2453
+ "store_secret": {
2454
+ "name": "store_secret",
2455
+ "columns": {
2456
+ "id": {
2457
+ "name": "id",
2458
+ "type": "text",
2459
+ "primaryKey": true,
2460
+ "notNull": true,
2461
+ "autoincrement": false
2462
+ },
2463
+ "wizard_id": {
2464
+ "name": "wizard_id",
2465
+ "type": "text",
2466
+ "primaryKey": false,
2467
+ "notNull": true,
2468
+ "autoincrement": false
2469
+ },
2470
+ "holder": {
2471
+ "name": "holder",
2472
+ "type": "text",
2473
+ "primaryKey": false,
2474
+ "notNull": true,
2475
+ "autoincrement": false
2476
+ },
2477
+ "slot": {
2478
+ "name": "slot",
2479
+ "type": "text",
2480
+ "primaryKey": false,
2481
+ "notNull": true,
2482
+ "autoincrement": false
2483
+ },
2484
+ "provider": {
2485
+ "name": "provider",
2486
+ "type": "text",
2487
+ "primaryKey": false,
2488
+ "notNull": true,
2489
+ "autoincrement": false
2490
+ },
2491
+ "label": {
2492
+ "name": "label",
2493
+ "type": "text",
2494
+ "primaryKey": false,
2495
+ "notNull": true,
2496
+ "autoincrement": false
2497
+ },
2498
+ "data": {
2499
+ "name": "data",
2500
+ "type": "text",
2501
+ "primaryKey": false,
2502
+ "notNull": true,
2503
+ "autoincrement": false
2504
+ },
2505
+ "created_at": {
2506
+ "name": "created_at",
2507
+ "type": "integer",
2508
+ "primaryKey": false,
2509
+ "notNull": true,
2510
+ "autoincrement": false,
2511
+ "default": "(unixepoch() * 1000)"
2512
+ },
2513
+ "updated_at": {
2514
+ "name": "updated_at",
2515
+ "type": "integer",
2516
+ "primaryKey": false,
2517
+ "notNull": true,
2518
+ "autoincrement": false,
2519
+ "default": "(unixepoch() * 1000)"
2520
+ }
2521
+ },
2522
+ "indexes": {
2523
+ "store_secret_slot": {
2524
+ "name": "store_secret_slot",
2525
+ "columns": [
2526
+ "wizard_id",
2527
+ "holder",
2528
+ "slot"
2529
+ ],
2530
+ "isUnique": true
2531
+ }
2532
+ },
2533
+ "foreignKeys": {
2534
+ "store_secret_wizard_id_wizard_id_fk": {
2535
+ "name": "store_secret_wizard_id_wizard_id_fk",
2536
+ "tableFrom": "store_secret",
2537
+ "tableTo": "wizard",
2538
+ "columnsFrom": [
2539
+ "wizard_id"
2540
+ ],
2541
+ "columnsTo": [
2542
+ "id"
2543
+ ],
2544
+ "onDelete": "cascade",
2545
+ "onUpdate": "no action"
2546
+ }
2547
+ },
2548
+ "compositePrimaryKeys": {},
2549
+ "uniqueConstraints": {},
2550
+ "checkConstraints": {}
2551
+ },
2552
+ "wizard": {
2553
+ "name": "wizard",
2554
+ "columns": {
2555
+ "id": {
2556
+ "name": "id",
2557
+ "type": "text",
2558
+ "primaryKey": true,
2559
+ "notNull": true,
2560
+ "autoincrement": false
2561
+ },
2562
+ "project_id": {
2563
+ "name": "project_id",
2564
+ "type": "text",
2565
+ "primaryKey": false,
2566
+ "notNull": true,
2567
+ "autoincrement": false
2568
+ },
2569
+ "tenant_id": {
2570
+ "name": "tenant_id",
2571
+ "type": "text",
2572
+ "primaryKey": false,
2573
+ "notNull": true,
2574
+ "autoincrement": false
2575
+ },
2576
+ "title": {
2577
+ "name": "title",
2578
+ "type": "text",
2579
+ "primaryKey": false,
2580
+ "notNull": true,
2581
+ "autoincrement": false
2582
+ },
2583
+ "draft": {
2584
+ "name": "draft",
2585
+ "type": "text",
2586
+ "primaryKey": false,
2587
+ "notNull": true,
2588
+ "autoincrement": false
2589
+ },
2590
+ "published_version": {
2591
+ "name": "published_version",
2592
+ "type": "integer",
2593
+ "primaryKey": false,
2594
+ "notNull": false,
2595
+ "autoincrement": false
2596
+ },
2597
+ "share_token": {
2598
+ "name": "share_token",
2599
+ "type": "text",
2600
+ "primaryKey": false,
2601
+ "notNull": true,
2602
+ "autoincrement": false
2603
+ },
2604
+ "share_enabled": {
2605
+ "name": "share_enabled",
2606
+ "type": "integer",
2607
+ "primaryKey": false,
2608
+ "notNull": true,
2609
+ "autoincrement": false,
2610
+ "default": true
2611
+ },
2612
+ "daily_run_limit": {
2613
+ "name": "daily_run_limit",
2614
+ "type": "integer",
2615
+ "primaryKey": false,
2616
+ "notNull": true,
2617
+ "autoincrement": false,
2618
+ "default": 50
2619
+ },
2620
+ "starter": {
2621
+ "name": "starter",
2622
+ "type": "text",
2623
+ "primaryKey": false,
2624
+ "notNull": false,
2625
+ "autoincrement": false
2626
+ },
2627
+ "starter_revision": {
2628
+ "name": "starter_revision",
2629
+ "type": "integer",
2630
+ "primaryKey": false,
2631
+ "notNull": false,
2632
+ "autoincrement": false
2633
+ },
2634
+ "revision": {
2635
+ "name": "revision",
2636
+ "type": "integer",
2637
+ "primaryKey": false,
2638
+ "notNull": true,
2639
+ "autoincrement": false,
2640
+ "default": 0
2641
+ },
2642
+ "runners": {
2643
+ "name": "runners",
2644
+ "type": "text",
2645
+ "primaryKey": false,
2646
+ "notNull": false,
2647
+ "autoincrement": false
2648
+ },
2649
+ "created_at": {
2650
+ "name": "created_at",
2651
+ "type": "integer",
2652
+ "primaryKey": false,
2653
+ "notNull": true,
2654
+ "autoincrement": false,
2655
+ "default": "(unixepoch() * 1000)"
2656
+ },
2657
+ "updated_at": {
2658
+ "name": "updated_at",
2659
+ "type": "integer",
2660
+ "primaryKey": false,
2661
+ "notNull": true,
2662
+ "autoincrement": false,
2663
+ "default": "(unixepoch() * 1000)"
2664
+ }
2665
+ },
2666
+ "indexes": {
2667
+ "wizard_share_token": {
2668
+ "name": "wizard_share_token",
2669
+ "columns": [
2670
+ "share_token"
2671
+ ],
2672
+ "isUnique": true
2673
+ },
2674
+ "wizard_project": {
2675
+ "name": "wizard_project",
2676
+ "columns": [
2677
+ "project_id"
2678
+ ],
2679
+ "isUnique": false
2680
+ }
2681
+ },
2682
+ "foreignKeys": {
2683
+ "wizard_project_id_project_id_fk": {
2684
+ "name": "wizard_project_id_project_id_fk",
2685
+ "tableFrom": "wizard",
2686
+ "tableTo": "project",
2687
+ "columnsFrom": [
2688
+ "project_id"
2689
+ ],
2690
+ "columnsTo": [
2691
+ "id"
2692
+ ],
2693
+ "onDelete": "cascade",
2694
+ "onUpdate": "no action"
2695
+ }
2696
+ },
2697
+ "compositePrimaryKeys": {},
2698
+ "uniqueConstraints": {},
2699
+ "checkConstraints": {}
2700
+ },
2701
+ "wizard_file": {
2702
+ "name": "wizard_file",
2703
+ "columns": {
2704
+ "wizard_id": {
2705
+ "name": "wizard_id",
2706
+ "type": "text",
2707
+ "primaryKey": false,
2708
+ "notNull": true,
2709
+ "autoincrement": false
2710
+ },
2711
+ "path": {
2712
+ "name": "path",
2713
+ "type": "text",
2714
+ "primaryKey": false,
2715
+ "notNull": true,
2716
+ "autoincrement": false
2717
+ },
2718
+ "hash": {
2719
+ "name": "hash",
2720
+ "type": "text",
2721
+ "primaryKey": false,
2722
+ "notNull": true,
2723
+ "autoincrement": false
2724
+ },
2725
+ "mime": {
2726
+ "name": "mime",
2727
+ "type": "text",
2728
+ "primaryKey": false,
2729
+ "notNull": true,
2730
+ "autoincrement": false
2731
+ },
2732
+ "size": {
2733
+ "name": "size",
2734
+ "type": "integer",
2735
+ "primaryKey": false,
2736
+ "notNull": true,
2737
+ "autoincrement": false
2738
+ },
2739
+ "updated_at": {
2740
+ "name": "updated_at",
2741
+ "type": "integer",
2742
+ "primaryKey": false,
2743
+ "notNull": true,
2744
+ "autoincrement": false,
2745
+ "default": "(unixepoch() * 1000)"
2746
+ }
2747
+ },
2748
+ "indexes": {},
2749
+ "foreignKeys": {
2750
+ "wizard_file_wizard_id_wizard_id_fk": {
2751
+ "name": "wizard_file_wizard_id_wizard_id_fk",
2752
+ "tableFrom": "wizard_file",
2753
+ "tableTo": "wizard",
2754
+ "columnsFrom": [
2755
+ "wizard_id"
2756
+ ],
2757
+ "columnsTo": [
2758
+ "id"
2759
+ ],
2760
+ "onDelete": "cascade",
2761
+ "onUpdate": "no action"
2762
+ }
2763
+ },
2764
+ "compositePrimaryKeys": {
2765
+ "wizard_file_wizard_id_path_pk": {
2766
+ "columns": [
2767
+ "wizard_id",
2768
+ "path"
2769
+ ],
2770
+ "name": "wizard_file_wizard_id_path_pk"
2771
+ }
2772
+ },
2773
+ "uniqueConstraints": {},
2774
+ "checkConstraints": {}
2775
+ },
2776
+ "wizard_message": {
2777
+ "name": "wizard_message",
2778
+ "columns": {
2779
+ "id": {
2780
+ "name": "id",
2781
+ "type": "text",
2782
+ "primaryKey": true,
2783
+ "notNull": true,
2784
+ "autoincrement": false
2785
+ },
2786
+ "wizard_id": {
2787
+ "name": "wizard_id",
2788
+ "type": "text",
2789
+ "primaryKey": false,
2790
+ "notNull": true,
2791
+ "autoincrement": false
2792
+ },
2793
+ "role": {
2794
+ "name": "role",
2795
+ "type": "text",
2796
+ "primaryKey": false,
2797
+ "notNull": true,
2798
+ "autoincrement": false
2799
+ },
2800
+ "content": {
2801
+ "name": "content",
2802
+ "type": "text",
2803
+ "primaryKey": false,
2804
+ "notNull": true,
2805
+ "autoincrement": false
2806
+ },
2807
+ "changed": {
2808
+ "name": "changed",
2809
+ "type": "integer",
2810
+ "primaryKey": false,
2811
+ "notNull": true,
2812
+ "autoincrement": false,
2813
+ "default": false
2814
+ },
2815
+ "source": {
2816
+ "name": "source",
2817
+ "type": "text",
2818
+ "primaryKey": false,
2819
+ "notNull": true,
2820
+ "autoincrement": false,
2821
+ "default": "'studio'"
2822
+ },
2823
+ "client": {
2824
+ "name": "client",
2825
+ "type": "text",
2826
+ "primaryKey": false,
2827
+ "notNull": false,
2828
+ "autoincrement": false
2829
+ },
2830
+ "created_at": {
2831
+ "name": "created_at",
2832
+ "type": "integer",
2833
+ "primaryKey": false,
2834
+ "notNull": true,
2835
+ "autoincrement": false,
2836
+ "default": "(unixepoch() * 1000)"
2837
+ }
2838
+ },
2839
+ "indexes": {
2840
+ "wizard_message_wizard": {
2841
+ "name": "wizard_message_wizard",
2842
+ "columns": [
2843
+ "wizard_id",
2844
+ "created_at"
2845
+ ],
2846
+ "isUnique": false
2847
+ }
2848
+ },
2849
+ "foreignKeys": {
2850
+ "wizard_message_wizard_id_wizard_id_fk": {
2851
+ "name": "wizard_message_wizard_id_wizard_id_fk",
2852
+ "tableFrom": "wizard_message",
2853
+ "tableTo": "wizard",
2854
+ "columnsFrom": [
2855
+ "wizard_id"
2856
+ ],
2857
+ "columnsTo": [
2858
+ "id"
2859
+ ],
2860
+ "onDelete": "cascade",
2861
+ "onUpdate": "no action"
2862
+ }
2863
+ },
2864
+ "compositePrimaryKeys": {},
2865
+ "uniqueConstraints": {},
2866
+ "checkConstraints": {}
2867
+ },
2868
+ "wizard_version": {
2869
+ "name": "wizard_version",
2870
+ "columns": {
2871
+ "id": {
2872
+ "name": "id",
2873
+ "type": "text",
2874
+ "primaryKey": true,
2875
+ "notNull": true,
2876
+ "autoincrement": false
2877
+ },
2878
+ "wizard_id": {
2879
+ "name": "wizard_id",
2880
+ "type": "text",
2881
+ "primaryKey": false,
2882
+ "notNull": true,
2883
+ "autoincrement": false
2884
+ },
2885
+ "version": {
2886
+ "name": "version",
2887
+ "type": "integer",
2888
+ "primaryKey": false,
2889
+ "notNull": true,
2890
+ "autoincrement": false
2891
+ },
2892
+ "definition": {
2893
+ "name": "definition",
2894
+ "type": "text",
2895
+ "primaryKey": false,
2896
+ "notNull": true,
2897
+ "autoincrement": false
2898
+ },
2899
+ "files": {
2900
+ "name": "files",
2901
+ "type": "text",
2902
+ "primaryKey": false,
2903
+ "notNull": true,
2904
+ "autoincrement": false,
2905
+ "default": "'[]'"
2906
+ },
2907
+ "created_at": {
2908
+ "name": "created_at",
2909
+ "type": "integer",
2910
+ "primaryKey": false,
2911
+ "notNull": true,
2912
+ "autoincrement": false,
2913
+ "default": "(unixepoch() * 1000)"
2914
+ }
2915
+ },
2916
+ "indexes": {
2917
+ "wizard_version_n": {
2918
+ "name": "wizard_version_n",
2919
+ "columns": [
2920
+ "wizard_id",
2921
+ "version"
2922
+ ],
2923
+ "isUnique": true
2924
+ }
2925
+ },
2926
+ "foreignKeys": {
2927
+ "wizard_version_wizard_id_wizard_id_fk": {
2928
+ "name": "wizard_version_wizard_id_wizard_id_fk",
2929
+ "tableFrom": "wizard_version",
2930
+ "tableTo": "wizard",
2931
+ "columnsFrom": [
2932
+ "wizard_id"
2933
+ ],
2934
+ "columnsTo": [
2935
+ "id"
2936
+ ],
2937
+ "onDelete": "cascade",
2938
+ "onUpdate": "no action"
2939
+ }
2940
+ },
2941
+ "compositePrimaryKeys": {},
2942
+ "uniqueConstraints": {},
2943
+ "checkConstraints": {}
2944
+ }
2945
+ },
2946
+ "views": {},
2947
+ "enums": {},
2948
+ "_meta": {
2949
+ "schemas": {},
2950
+ "tables": {},
2951
+ "columns": {}
2952
+ },
2953
+ "internal": {
2954
+ "indexes": {}
2955
+ }
2956
+ }