@engenty/wizards-runtime 0.0.0-stage → 0.7.5

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 (518) hide show
  1. package/LICENSE +110 -0
  2. package/README.md +214 -2
  3. package/apps/runtime/dist/agents/architect.js +444 -0
  4. package/apps/runtime/dist/agents/studio-assistant.js +883 -0
  5. package/apps/runtime/dist/agents/subscription.js +207 -0
  6. package/apps/runtime/dist/agents/thought.js +21 -0
  7. package/apps/runtime/dist/agents/website.js +480 -0
  8. package/apps/runtime/dist/app.js +359 -0
  9. package/apps/runtime/dist/apple/wizards-apple +0 -0
  10. package/apps/runtime/dist/assistant/browser.js +26 -0
  11. package/apps/runtime/dist/assistant/docs.js +158 -0
  12. package/apps/runtime/dist/assistant/knows.js +353 -0
  13. package/apps/runtime/dist/assistant/primer.js +26 -0
  14. package/apps/runtime/dist/assistant/runs.js +24 -0
  15. package/apps/runtime/dist/auth/account.js +175 -0
  16. package/apps/runtime/dist/auth/device.js +112 -0
  17. package/apps/runtime/dist/auth/index.js +358 -0
  18. package/apps/runtime/dist/auth/keys.js +55 -0
  19. package/apps/runtime/dist/auth/local-ticket.js +26 -0
  20. package/apps/runtime/dist/authoring/example.js +74 -0
  21. package/apps/runtime/dist/authoring/guide.js +433 -0
  22. package/apps/runtime/dist/authoring/ops.js +117 -0
  23. package/apps/runtime/dist/browser/fast/action-space.js +160 -0
  24. package/apps/runtime/dist/browser/fast/classifier.js +91 -0
  25. package/apps/runtime/dist/browser/fast/decide.js +171 -0
  26. package/apps/runtime/dist/browser/fast/driver.js +141 -0
  27. package/apps/runtime/dist/browser/fast/instructions.js +33 -0
  28. package/apps/runtime/dist/browser/fast/run.js +249 -0
  29. package/apps/runtime/dist/browser/fast/span-picker.js +153 -0
  30. package/apps/runtime/dist/browser/fast/text-helper.js +178 -0
  31. package/apps/runtime/dist/browser/snapshot.js +335 -0
  32. package/apps/runtime/dist/cli/account.js +385 -0
  33. package/apps/runtime/dist/cli/autostart.js +182 -0
  34. package/apps/runtime/dist/cli/autoupdate.js +221 -0
  35. package/apps/runtime/dist/cli/clients.js +44 -0
  36. package/apps/runtime/dist/cli/connect.js +540 -0
  37. package/apps/runtime/dist/cli/environment.js +93 -0
  38. package/apps/runtime/dist/cli/exec.js +45 -0
  39. package/apps/runtime/dist/cli/features.js +50 -0
  40. package/apps/runtime/dist/cli/home.js +88 -0
  41. package/apps/runtime/dist/cli/install-env.js +33 -0
  42. package/apps/runtime/dist/cli/machine.js +107 -0
  43. package/apps/runtime/dist/cli/main.js +222 -0
  44. package/apps/runtime/dist/cli/mcp.js +136 -0
  45. package/apps/runtime/dist/cli/menu.js +202 -0
  46. package/apps/runtime/dist/cli/processes.js +72 -0
  47. package/apps/runtime/dist/cli/report.js +66 -0
  48. package/apps/runtime/dist/cli/setup.js +335 -0
  49. package/apps/runtime/dist/cli/start.js +276 -0
  50. package/apps/runtime/dist/cli/status.js +203 -0
  51. package/apps/runtime/dist/cli/ui.js +59 -0
  52. package/apps/runtime/dist/cli/uninstall-main.js +20 -0
  53. package/apps/runtime/dist/cli/uninstall.js +231 -0
  54. package/apps/runtime/dist/cli/update.js +86 -0
  55. package/apps/runtime/dist/cli/validate.js +75 -0
  56. package/apps/runtime/dist/cli/versions.js +123 -0
  57. package/apps/runtime/dist/connectors/builtin.js +86 -0
  58. package/apps/runtime/dist/connectors/external.js +409 -0
  59. package/apps/runtime/dist/connectors/gmail.js +107 -0
  60. package/apps/runtime/dist/connectors/imap.js +261 -0
  61. package/apps/runtime/dist/connectors/index.js +325 -0
  62. package/apps/runtime/dist/connectors/mail.js +72 -0
  63. package/apps/runtime/dist/connectors/outlook.js +90 -0
  64. package/apps/runtime/dist/connectors/plugin-connections.js +343 -0
  65. package/apps/runtime/dist/connectors/via-account.js +65 -0
  66. package/apps/runtime/dist/credits/credits.js +100 -0
  67. package/apps/runtime/dist/credits/estimate.js +152 -0
  68. package/apps/runtime/dist/db/adopt.js +149 -0
  69. package/apps/runtime/dist/db/client.js +173 -0
  70. package/apps/runtime/dist/db/control-schema.js +133 -0
  71. package/apps/runtime/dist/db/migrations/control/0000_last_absorbing_man.sql +47 -0
  72. package/apps/runtime/dist/db/migrations/control/0001_gorgeous_nicolaos.sql +41 -0
  73. package/apps/runtime/dist/db/migrations/control/0002_secret_penance.sql +1 -0
  74. package/apps/runtime/dist/db/migrations/control/0003_nasty_mordo.sql +3 -0
  75. package/apps/runtime/dist/db/migrations/control/0004_breezy_eddie_brock.sql +6 -0
  76. package/apps/runtime/dist/db/migrations/control/0005_chilly_oracle.sql +1 -0
  77. package/apps/runtime/dist/db/migrations/control/0006_sleepy_mojo.sql +1 -0
  78. package/apps/runtime/dist/db/migrations/control/0007_common_the_hand.sql +15 -0
  79. package/apps/runtime/dist/db/migrations/control/0008_runner.sql +8 -0
  80. package/apps/runtime/dist/db/migrations/control/0009_plugin_claim.sql +9 -0
  81. package/apps/runtime/dist/db/migrations/control/0010_tan_snowbird.sql +6 -0
  82. package/apps/runtime/dist/db/migrations/control/meta/0000_snapshot.json +311 -0
  83. package/apps/runtime/dist/db/migrations/control/meta/0001_snapshot.json +599 -0
  84. package/apps/runtime/dist/db/migrations/control/meta/0002_snapshot.json +607 -0
  85. package/apps/runtime/dist/db/migrations/control/meta/0003_snapshot.json +311 -0
  86. package/apps/runtime/dist/db/migrations/control/meta/0004_snapshot.json +350 -0
  87. package/apps/runtime/dist/db/migrations/control/meta/0005_snapshot.json +358 -0
  88. package/apps/runtime/dist/db/migrations/control/meta/0006_snapshot.json +365 -0
  89. package/apps/runtime/dist/db/migrations/control/meta/0007_snapshot.json +460 -0
  90. package/apps/runtime/dist/db/migrations/control/meta/0008_snapshot.json +505 -0
  91. package/apps/runtime/dist/db/migrations/control/meta/0009_snapshot.json +561 -0
  92. package/apps/runtime/dist/db/migrations/control/meta/0010_snapshot.json +600 -0
  93. package/apps/runtime/dist/db/migrations/control/meta/_journal.json +83 -0
  94. package/apps/runtime/dist/db/migrations/tenant/0000_eminent_freak.sql +188 -0
  95. package/apps/runtime/dist/db/migrations/tenant/0001_salty_master_chief.sql +1 -0
  96. package/apps/runtime/dist/db/migrations/tenant/0002_cloudy_firebird.sql +1 -0
  97. package/apps/runtime/dist/db/migrations/tenant/0003_brown_warbound.sql +52 -0
  98. package/apps/runtime/dist/db/migrations/tenant/0004_romantic_nocturne.sql +6 -0
  99. package/apps/runtime/dist/db/migrations/tenant/0005_reflective_forgotten_one.sql +2 -0
  100. package/apps/runtime/dist/db/migrations/tenant/0006_hard_war_machine.sql +30 -0
  101. package/apps/runtime/dist/db/migrations/tenant/0007_space_data.sql +43 -0
  102. package/apps/runtime/dist/db/migrations/tenant/0008_run_event_note.sql +1 -0
  103. package/apps/runtime/dist/db/migrations/tenant/0009_knowledge.sql +104 -0
  104. package/apps/runtime/dist/db/migrations/tenant/0010_plugin_connection.sql +15 -0
  105. package/apps/runtime/dist/db/migrations/tenant/0011_runners.sql +2 -0
  106. package/apps/runtime/dist/db/migrations/tenant/0012_assistant_chat.sql +40 -0
  107. package/apps/runtime/dist/db/migrations/tenant/0013_run_origin.sql +1 -0
  108. package/apps/runtime/dist/db/migrations/tenant/0014_run_answer.sql +2 -0
  109. package/apps/runtime/dist/db/migrations/tenant/0015_device_calls.sql +13 -0
  110. package/apps/runtime/dist/db/migrations/tenant/0016_even_trish_tilby.sql +12 -0
  111. package/apps/runtime/dist/db/migrations/tenant/meta/0000_snapshot.json +1323 -0
  112. package/apps/runtime/dist/db/migrations/tenant/meta/0001_snapshot.json +1330 -0
  113. package/apps/runtime/dist/db/migrations/tenant/meta/0002_snapshot.json +1337 -0
  114. package/apps/runtime/dist/db/migrations/tenant/meta/0003_snapshot.json +1605 -0
  115. package/apps/runtime/dist/db/migrations/tenant/meta/0004_snapshot.json +1645 -0
  116. package/apps/runtime/dist/db/migrations/tenant/meta/0005_snapshot.json +1659 -0
  117. package/apps/runtime/dist/db/migrations/tenant/meta/0006_snapshot.json +1696 -0
  118. package/apps/runtime/dist/db/migrations/tenant/meta/0007_snapshot.json +2012 -0
  119. package/apps/runtime/dist/db/migrations/tenant/meta/0008_snapshot.json +2019 -0
  120. package/apps/runtime/dist/db/migrations/tenant/meta/0009_snapshot.json +2837 -0
  121. package/apps/runtime/dist/db/migrations/tenant/meta/0010_snapshot.json +2942 -0
  122. package/apps/runtime/dist/db/migrations/tenant/meta/0011_snapshot.json +2956 -0
  123. package/apps/runtime/dist/db/migrations/tenant/meta/0012_snapshot.json +3132 -0
  124. package/apps/runtime/dist/db/migrations/tenant/meta/0013_snapshot.json +3139 -0
  125. package/apps/runtime/dist/db/migrations/tenant/meta/0014_snapshot.json +3154 -0
  126. package/apps/runtime/dist/db/migrations/tenant/meta/0015_snapshot.json +3243 -0
  127. package/apps/runtime/dist/db/migrations/tenant/meta/0016_snapshot.json +3326 -0
  128. package/apps/runtime/dist/db/migrations/tenant/meta/_journal.json +125 -0
  129. package/apps/runtime/dist/db/schema.js +602 -0
  130. package/apps/runtime/dist/debug.js +196 -0
  131. package/apps/runtime/dist/docs/dev/index.md +41 -0
  132. package/apps/runtime/dist/docs/dev/meta.json +7 -0
  133. package/apps/runtime/dist/docs/dev/plugins/connections.md +74 -0
  134. package/apps/runtime/dist/docs/dev/plugins/events.md +89 -0
  135. package/apps/runtime/dist/docs/dev/plugins/examples.md +101 -0
  136. package/apps/runtime/dist/docs/dev/plugins/index.md +78 -0
  137. package/apps/runtime/dist/docs/dev/plugins/layout.md +90 -0
  138. package/apps/runtime/dist/docs/dev/plugins/meta.json +28 -0
  139. package/apps/runtime/dist/docs/dev/plugins/quick-start.md +94 -0
  140. package/apps/runtime/dist/docs/dev/plugins/reference.md +348 -0
  141. package/apps/runtime/dist/docs/dev/plugins/reloading.md +76 -0
  142. package/apps/runtime/dist/docs/dev/plugins/routes.md +185 -0
  143. package/apps/runtime/dist/docs/dev/plugins/runners.md +230 -0
  144. package/apps/runtime/dist/docs/dev/plugins/server.md +281 -0
  145. package/apps/runtime/dist/docs/dev/plugins/shipping.md +79 -0
  146. package/apps/runtime/dist/docs/dev/plugins/space.md +297 -0
  147. package/apps/runtime/dist/docs/dev/plugins/starters.md +70 -0
  148. package/apps/runtime/dist/docs/dev/plugins/studio.md +363 -0
  149. package/apps/runtime/dist/docs/dev/plugins/styling.md +129 -0
  150. package/apps/runtime/dist/docs/dev/plugins/tables.md +104 -0
  151. package/apps/runtime/dist/docs/dev/plugins/tools.md +139 -0
  152. package/apps/runtime/dist/docs/dev/wizard-format.md +125 -0
  153. package/apps/runtime/dist/docs/meta.json +3 -0
  154. package/apps/runtime/dist/docs/user/ai-apps.md +112 -0
  155. package/apps/runtime/dist/docs/user/assistant.md +77 -0
  156. package/apps/runtime/dist/docs/user/build-a-wizard.md +116 -0
  157. package/apps/runtime/dist/docs/user/command-line.md +83 -0
  158. package/apps/runtime/dist/docs/user/connectors.md +90 -0
  159. package/apps/runtime/dist/docs/user/create-account.md +52 -0
  160. package/apps/runtime/dist/docs/user/data.md +66 -0
  161. package/apps/runtime/dist/docs/user/first-start.md +60 -0
  162. package/apps/runtime/dist/docs/user/index.md +49 -0
  163. package/apps/runtime/dist/docs/user/install.md +123 -0
  164. package/apps/runtime/dist/docs/user/local-only.md +42 -0
  165. package/apps/runtime/dist/docs/user/meta.json +32 -0
  166. package/apps/runtime/dist/docs/user/models.md +156 -0
  167. package/apps/runtime/dist/docs/user/plugins.md +71 -0
  168. package/apps/runtime/dist/docs/user/run.md +98 -0
  169. package/apps/runtime/dist/docs/user/server.md +52 -0
  170. package/apps/runtime/dist/docs/user/space.md +126 -0
  171. package/apps/runtime/dist/docs/user/steps.md +220 -0
  172. package/apps/runtime/dist/docs/user/test-and-share.md +224 -0
  173. package/apps/runtime/dist/docs/user/troubleshooting.md +67 -0
  174. package/apps/runtime/dist/docs/user/wordpress.md +121 -0
  175. package/apps/runtime/dist/documents/parse.js +246 -0
  176. package/apps/runtime/dist/engenty/connections-external/build-connector.js +193 -0
  177. package/apps/runtime/dist/engenty/connections-external/errors.js +11 -0
  178. package/apps/runtime/dist/engenty/connections-external/import-service.js +270 -0
  179. package/apps/runtime/dist/engenty/connections-external/importer/classify.js +34 -0
  180. package/apps/runtime/dist/engenty/connections-external/importer/map-auth.js +185 -0
  181. package/apps/runtime/dist/engenty/connections-external/importer/normalize-mcp.js +63 -0
  182. package/apps/runtime/dist/engenty/connections-external/importer/normalize-openapi.js +130 -0
  183. package/apps/runtime/dist/engenty/connections-external/invoke/http-invoker.js +143 -0
  184. package/apps/runtime/dist/engenty/connections-external/invoke/mcp-client.js +143 -0
  185. package/apps/runtime/dist/engenty/connections-external/net/guarded-fetch.js +119 -0
  186. package/apps/runtime/dist/engenty/connections-external/oauth-dcr.js +88 -0
  187. package/apps/runtime/dist/engenty/connections-external/registry-client.js +336 -0
  188. package/apps/runtime/dist/engenty/connections-external/registry-source.js +82 -0
  189. package/apps/runtime/dist/engenty/connections-external/types.js +7 -0
  190. package/apps/runtime/dist/engenty/connections-github/connector.js +209 -0
  191. package/apps/runtime/dist/engenty/connections-google/connectors/calendar.js +381 -0
  192. package/apps/runtime/dist/engenty/connections-google/connectors/contacts.js +94 -0
  193. package/apps/runtime/dist/engenty/connections-google/connectors/drive.js +290 -0
  194. package/apps/runtime/dist/engenty/connections-google/connectors/gmail.js +567 -0
  195. package/apps/runtime/dist/engenty/connections-google/definitions.js +11 -0
  196. package/apps/runtime/dist/engenty/connections-google/shared.js +73 -0
  197. package/apps/runtime/dist/engenty/connections-hubspot/connector.js +140 -0
  198. package/apps/runtime/dist/engenty/connections-microsoft/action.js +17 -0
  199. package/apps/runtime/dist/engenty/connections-microsoft/graph.js +114 -0
  200. package/apps/runtime/dist/engenty/connections-microsoft/onedrive.js +286 -0
  201. package/apps/runtime/dist/engenty/connections-microsoft/outlook.js +492 -0
  202. package/apps/runtime/dist/engenty/connections-s3/s3.js +328 -0
  203. package/apps/runtime/dist/engenty/connections-sdk/files-capability.js +86 -0
  204. package/apps/runtime/dist/engenty/connections-sdk/oauth2.js +150 -0
  205. package/apps/runtime/dist/engenty/connections-sdk/registry.js +89 -0
  206. package/apps/runtime/dist/engenty/connections-sdk/storage-capability.js +84 -0
  207. package/apps/runtime/dist/engenty/connections-sdk/types.js +30 -0
  208. package/apps/runtime/dist/engenty/connections-slack/connector.js +360 -0
  209. package/apps/runtime/dist/engenty/csv-import/csv-matrix.js +178 -0
  210. package/apps/runtime/dist/engenty/csv-import/import-sources.js +87 -0
  211. package/apps/runtime/dist/engenty/csv-import/parse-csv.js +129 -0
  212. package/apps/runtime/dist/engenty/csv-import/serialize-csv.js +20 -0
  213. package/apps/runtime/dist/engenty/csv-import/types.js +1 -0
  214. package/apps/runtime/dist/engenty/csv-import/xlsx-workbook.js +159 -0
  215. package/apps/runtime/dist/engenty/doc-converter/interface.js +9 -0
  216. package/apps/runtime/dist/engenty/doc-converter/page-break.js +92 -0
  217. package/apps/runtime/dist/engenty/doc-converter/providers/local/index.js +72 -0
  218. package/apps/runtime/dist/engenty/document-scanner/schemas/classifier.js +30 -0
  219. package/apps/runtime/dist/engenty/document-scanner/schemas/index.js +4 -0
  220. package/apps/runtime/dist/engenty/document-scanner/schemas/invoice.js +73 -0
  221. package/apps/runtime/dist/engenty/document-scanner/schemas/receipt.js +63 -0
  222. package/apps/runtime/dist/engenty/document-scanner/schemas/shared.js +40 -0
  223. package/apps/runtime/dist/engenty/search-index/chunks.js +164 -0
  224. package/apps/runtime/dist/engenty/search-index/contracts.js +9 -0
  225. package/apps/runtime/dist/engenty/shims/connections-sdk.js +39 -0
  226. package/apps/runtime/dist/engenty/shims/plugin-sdk.js +1 -0
  227. package/apps/runtime/dist/engenty/shims/web-ingest.js +19 -0
  228. package/apps/runtime/dist/engenty/web-ingest/ssrf.js +277 -0
  229. package/apps/runtime/dist/engine/asks.js +82 -0
  230. package/apps/runtime/dist/engine/decide.js +82 -0
  231. package/apps/runtime/dist/engine/device.js +194 -0
  232. package/apps/runtime/dist/engine/events.js +128 -0
  233. package/apps/runtime/dist/engine/input.js +208 -0
  234. package/apps/runtime/dist/engine/owner.js +32 -0
  235. package/apps/runtime/dist/engine/prepare.js +90 -0
  236. package/apps/runtime/dist/engine/push.js +58 -0
  237. package/apps/runtime/dist/engine/requirements.js +355 -0
  238. package/apps/runtime/dist/engine/resources.js +198 -0
  239. package/apps/runtime/dist/engine/runner.js +970 -0
  240. package/apps/runtime/dist/engine/steps.js +1000 -0
  241. package/apps/runtime/dist/engine/surface.js +91 -0
  242. package/apps/runtime/dist/engine/template.js +240 -0
  243. package/apps/runtime/dist/engine/types.js +4 -0
  244. package/apps/runtime/dist/env.js +295 -0
  245. package/apps/runtime/dist/features.js +123 -0
  246. package/apps/runtime/dist/files/blobs.js +22 -0
  247. package/apps/runtime/dist/files/objects.js +86 -0
  248. package/apps/runtime/dist/files/storage.js +120 -0
  249. package/apps/runtime/dist/files/web-images.js +101 -0
  250. package/apps/runtime/dist/film/project.js +257 -0
  251. package/apps/runtime/dist/film/skills.js +91 -0
  252. package/apps/runtime/dist/film/sounds.js +122 -0
  253. package/apps/runtime/dist/film/step.js +289 -0
  254. package/apps/runtime/dist/film/tools.js +99 -0
  255. package/apps/runtime/dist/geocode.js +58 -0
  256. package/apps/runtime/dist/harness/antigravity.js +129 -0
  257. package/apps/runtime/dist/harness/apple.js +270 -0
  258. package/apps/runtime/dist/harness/claude.js +147 -0
  259. package/apps/runtime/dist/harness/codex.js +229 -0
  260. package/apps/runtime/dist/harness/cursor.js +93 -0
  261. package/apps/runtime/dist/harness/env.js +124 -0
  262. package/apps/runtime/dist/harness/index.js +95 -0
  263. package/apps/runtime/dist/harness/model.js +279 -0
  264. package/apps/runtime/dist/harness/prompt.js +121 -0
  265. package/apps/runtime/dist/harness/terminal.js +194 -0
  266. package/apps/runtime/dist/harness/types.js +7 -0
  267. package/apps/runtime/dist/index.js +113 -0
  268. package/apps/runtime/dist/limits.js +81 -0
  269. package/apps/runtime/dist/link-preview.js +60 -0
  270. package/apps/runtime/dist/log.js +106 -0
  271. package/apps/runtime/dist/manage.js +249 -0
  272. package/apps/runtime/dist/mcp/auth.js +161 -0
  273. package/apps/runtime/dist/mcp/bridge.js +59 -0
  274. package/apps/runtime/dist/mcp/flow-app.js +97 -0
  275. package/apps/runtime/dist/mcp/handler.js +54 -0
  276. package/apps/runtime/dist/mcp/scopes.js +14 -0
  277. package/apps/runtime/dist/mcp/seen.js +65 -0
  278. package/apps/runtime/dist/mcp/tools.js +572 -0
  279. package/apps/runtime/dist/media/conversation.js +167 -0
  280. package/apps/runtime/dist/media/ffmpeg.js +121 -0
  281. package/apps/runtime/dist/media/generate.js +120 -0
  282. package/apps/runtime/dist/media/marking.js +121 -0
  283. package/apps/runtime/dist/media/transcribe.js +198 -0
  284. package/apps/runtime/dist/model-errors.js +42 -0
  285. package/apps/runtime/dist/models.js +1164 -0
  286. package/apps/runtime/dist/plugin.js +61 -0
  287. package/apps/runtime/dist/plugins/channels.js +78 -0
  288. package/apps/runtime/dist/plugins/claims.js +56 -0
  289. package/apps/runtime/dist/plugins/discovery.js +155 -0
  290. package/apps/runtime/dist/plugins/events.js +63 -0
  291. package/apps/runtime/dist/plugins/jobs.js +64 -0
  292. package/apps/runtime/dist/plugins/loader.js +508 -0
  293. package/apps/runtime/dist/plugins/migrations.js +69 -0
  294. package/apps/runtime/dist/plugins/pro-keys.js +34 -0
  295. package/apps/runtime/dist/plugins/pro-state.js +83 -0
  296. package/apps/runtime/dist/plugins/pro.js +310 -0
  297. package/apps/runtime/dist/plugins/public.js +44 -0
  298. package/apps/runtime/dist/plugins/registry.js +122 -0
  299. package/apps/runtime/dist/plugins/runs.js +210 -0
  300. package/apps/runtime/dist/render/browser-path.js +54 -0
  301. package/apps/runtime/dist/render/chromium.js +98 -0
  302. package/apps/runtime/dist/render/convert.js +158 -0
  303. package/apps/runtime/dist/render/downloads.js +299 -0
  304. package/apps/runtime/dist/render/guard.js +25 -0
  305. package/apps/runtime/dist/render/shaped.js +137 -0
  306. package/apps/runtime/dist/routes/api.js +440 -0
  307. package/apps/runtime/dist/routes/debug.js +42 -0
  308. package/apps/runtime/dist/routes/delivery.js +90 -0
  309. package/apps/runtime/dist/routes/internal.js +81 -0
  310. package/apps/runtime/dist/routes/lang.js +25 -0
  311. package/apps/runtime/dist/routes/marketplace.js +43 -0
  312. package/apps/runtime/dist/routes/plugin-public.js +113 -0
  313. package/apps/runtime/dist/routes/plugins.js +212 -0
  314. package/apps/runtime/dist/routes/runs.js +1422 -0
  315. package/apps/runtime/dist/routes/studio.js +1629 -0
  316. package/apps/runtime/dist/routes/wizard-stream.js +30 -0
  317. package/apps/runtime/dist/running.js +39 -0
  318. package/apps/runtime/dist/sandbox/docker.js +75 -0
  319. package/apps/runtime/dist/sandbox/index.js +23 -0
  320. package/apps/runtime/dist/sandbox/types.js +1 -0
  321. package/apps/runtime/dist/secrets/crypto.js +28 -0
  322. package/apps/runtime/dist/secrets/signing.js +52 -0
  323. package/apps/runtime/dist/secrets/vault.js +59 -0
  324. package/apps/runtime/dist/services/access.js +88 -0
  325. package/apps/runtime/dist/services/api.js +248 -0
  326. package/apps/runtime/dist/services/architect.js +95 -0
  327. package/apps/runtime/dist/services/assistant-chats.js +311 -0
  328. package/apps/runtime/dist/services/brand.js +85 -0
  329. package/apps/runtime/dist/services/cloud.js +456 -0
  330. package/apps/runtime/dist/services/draft-events.js +27 -0
  331. package/apps/runtime/dist/services/engenty-shapes.js +71 -0
  332. package/apps/runtime/dist/services/errors.js +29 -0
  333. package/apps/runtime/dist/services/files.js +178 -0
  334. package/apps/runtime/dist/services/knowledge-model.js +559 -0
  335. package/apps/runtime/dist/services/knowledge.js +721 -0
  336. package/apps/runtime/dist/services/links.js +16 -0
  337. package/apps/runtime/dist/services/marketplace.js +492 -0
  338. package/apps/runtime/dist/services/onboarding.js +152 -0
  339. package/apps/runtime/dist/services/package-file.js +82 -0
  340. package/apps/runtime/dist/services/package.js +170 -0
  341. package/apps/runtime/dist/services/profile.js +51 -0
  342. package/apps/runtime/dist/services/project-files.js +439 -0
  343. package/apps/runtime/dist/services/project-index.js +707 -0
  344. package/apps/runtime/dist/services/projects.js +387 -0
  345. package/apps/runtime/dist/services/relevance.js +58 -0
  346. package/apps/runtime/dist/services/runners.js +178 -0
  347. package/apps/runtime/dist/services/runs.js +524 -0
  348. package/apps/runtime/dist/services/shares.js +130 -0
  349. package/apps/runtime/dist/services/site.js +270 -0
  350. package/apps/runtime/dist/services/space-categories.js +861 -0
  351. package/apps/runtime/dist/services/space-data.js +792 -0
  352. package/apps/runtime/dist/services/space-origin.js +207 -0
  353. package/apps/runtime/dist/services/spaces.js +656 -0
  354. package/apps/runtime/dist/services/translations.js +306 -0
  355. package/apps/runtime/dist/services/widgets.js +34 -0
  356. package/apps/runtime/dist/services/wizard-icon.js +157 -0
  357. package/apps/runtime/dist/services/wizards.js +420 -0
  358. package/apps/runtime/dist/settings.js +16 -0
  359. package/apps/runtime/dist/store/errors.js +4 -0
  360. package/apps/runtime/dist/store/index.js +299 -0
  361. package/apps/runtime/dist/store/shared-lists.js +123 -0
  362. package/apps/runtime/dist/tenants/control.js +238 -0
  363. package/apps/runtime/dist/tenants/tenant.js +26 -0
  364. package/apps/runtime/dist/texts.js +207 -0
  365. package/apps/runtime/dist/tools/browser.js +703 -0
  366. package/apps/runtime/dist/tools/connector.js +204 -0
  367. package/apps/runtime/dist/tools/index.js +291 -0
  368. package/apps/runtime/dist/tools/mail.js +104 -0
  369. package/apps/runtime/dist/tools/net-guard.js +170 -0
  370. package/apps/runtime/dist/tools/pages.js +81 -0
  371. package/apps/runtime/dist/tools/plugin.js +180 -0
  372. package/apps/runtime/dist/tools/project.js +154 -0
  373. package/apps/runtime/dist/tools/shared.js +69 -0
  374. package/apps/runtime/dist/tools/store.js +238 -0
  375. package/apps/runtime/dist/update.js +113 -0
  376. package/apps/runtime/dist/widgets/bundle.js +99 -0
  377. package/apps/runtime/dist/widgets/render.js +329 -0
  378. package/apps/runtime/dist/widgets/runtime.js +108 -0
  379. package/apps/runtime/dist/widgets/script.js +30 -0
  380. package/apps/runtime/dist/widgets/step.js +223 -0
  381. package/apps/web/dist/ai-labels/ai-black.svg +20 -0
  382. package/apps/web/dist/ai-labels/ai-generated-black.svg +31 -0
  383. package/apps/web/dist/ai-labels/ai-generated-white.svg +32 -0
  384. package/apps/web/dist/ai-labels/ai-modified-black.svg +30 -0
  385. package/apps/web/dist/ai-labels/ai-modified-white.svg +31 -0
  386. package/apps/web/dist/ai-labels/ai-white.svg +21 -0
  387. package/apps/web/dist/assets/AboutDialog-D4mvc-zu.js +1 -0
  388. package/apps/web/dist/assets/ChangelogDialog-DLqpJsF6.js +1 -0
  389. package/apps/web/dist/assets/ChatView-3laypRcE.js +10 -0
  390. package/apps/web/dist/assets/EditorPage-BalA5U2Y.js +3 -0
  391. package/apps/web/dist/assets/FlowPreview-CusP7ci9.js +1 -0
  392. package/apps/web/dist/assets/Harness-BrP-ENHg.css +1 -0
  393. package/apps/web/dist/assets/Harness-iYLtOLaK.js +16 -0
  394. package/apps/web/dist/assets/NewWizardChannels-CbwJ9A56.js +1 -0
  395. package/apps/web/dist/assets/NewWizardPage-BOBYiB9i.js +7 -0
  396. package/apps/web/dist/assets/OnboardingPage-CUwCiVIr.js +1 -0
  397. package/apps/web/dist/assets/ProjectPage-Bb16MdYG.js +1 -0
  398. package/apps/web/dist/assets/PublicRunner-BCt7Q6C-.js +1 -0
  399. package/apps/web/dist/assets/ReadOnly-kIHX2TEy.js +1 -0
  400. package/apps/web/dist/assets/RunDrawer-hZ9oeSXu.js +4 -0
  401. package/apps/web/dist/assets/RunnerView-DUS9fPmx.js +1 -0
  402. package/apps/web/dist/assets/SettingsPage-BzwR50fi.js +1 -0
  403. package/apps/web/dist/assets/SetupPage-gAp7rPxp.js +1 -0
  404. package/apps/web/dist/assets/SharePage-DqZWHva_.js +1 -0
  405. package/apps/web/dist/assets/changelog-DugmCNSf.js +1 -0
  406. package/apps/web/dist/assets/engenty-eXZ-EAwd.js +1 -0
  407. package/apps/web/dist/assets/esm-DXeMu8Lb.js +7 -0
  408. package/apps/web/dist/assets/fluffy-engenty-ClRou7yu.js +456 -0
  409. package/apps/web/dist/assets/index-AfUa8xKD.css +1 -0
  410. package/apps/web/dist/assets/index-C5Sm7tTR.js +14 -0
  411. package/apps/web/dist/assets/jsx-runtime-BNakU3Ej.js +1 -0
  412. package/apps/web/dist/assets/lock-R_CfU0Xo.js +1 -0
  413. package/apps/web/dist/assets/oss-credits-cZ9NUaLZ.js +1 -0
  414. package/apps/web/dist/assets/pdfmake-Cx9scTbD.js +228 -0
  415. package/apps/web/dist/assets/phone-CgrIS4_-.js +1 -0
  416. package/apps/web/dist/assets/preload-helper-CNEI7N0N.js +1 -0
  417. package/apps/web/dist/assets/qr-scanner-worker.min-CJaXo3yu.js +98 -0
  418. package/apps/web/dist/assets/qr-scanner.min-C_UI0gH-.js +1 -0
  419. package/apps/web/dist/assets/rolldown-runtime-hePW80VL.js +1 -0
  420. package/apps/web/dist/assets/settings-menu-2IMOOlLl.js +1 -0
  421. package/apps/web/dist/assets/ui-dzGvc3xk.js +137 -0
  422. package/apps/web/dist/assets/upload-BSuTilFF.js +1 -0
  423. package/apps/web/dist/assets/vfs_fonts-DllDSYt1.js +1 -0
  424. package/apps/web/dist/embed.js +266 -0
  425. package/apps/web/dist/favicon.svg +1 -0
  426. package/apps/web/dist/icons/apple-touch-icon.png +0 -0
  427. package/apps/web/dist/icons/icon-192.png +0 -0
  428. package/apps/web/dist/icons/icon-512.png +0 -0
  429. package/apps/web/dist/icons/icon-maskable-512.png +0 -0
  430. package/apps/web/dist/index.html +48 -0
  431. package/apps/web/dist/install.sh +577 -0
  432. package/apps/web/dist/manifest.webmanifest +21 -0
  433. package/apps/web/dist/mcp/flow.html +980 -0
  434. package/apps/web/dist/sw.js +15 -0
  435. package/bin/wizards.mjs +288 -0
  436. package/modules/README.md +15 -0
  437. package/node_modules/@engenty/wizards/dist/plugin/index.d.ts +1150 -0
  438. package/node_modules/@engenty/wizards/dist/plugin/index.js +4 -0
  439. package/node_modules/@engenty/wizards/dist/plugin/studio.d.ts +322 -0
  440. package/node_modules/@engenty/wizards/dist/plugin/studio.js +4 -0
  441. package/node_modules/@engenty/wizards/dist/plugin/thread.d.ts +174 -0
  442. package/node_modules/@engenty/wizards/dist/plugin/thread.js +821 -0
  443. package/node_modules/@engenty/wizards/package.json +11 -0
  444. package/node_modules/@engenty-wizards/shared/dist/assistant.d.ts +174 -0
  445. package/node_modules/@engenty-wizards/shared/dist/assistant.js +65 -0
  446. package/node_modules/@engenty-wizards/shared/dist/changes.d.ts +22 -0
  447. package/node_modules/@engenty-wizards/shared/dist/changes.js +61 -0
  448. package/node_modules/@engenty-wizards/shared/dist/connectors.d.ts +77 -0
  449. package/node_modules/@engenty-wizards/shared/dist/connectors.js +2 -0
  450. package/node_modules/@engenty-wizards/shared/dist/decision.d.ts +76 -0
  451. package/node_modules/@engenty-wizards/shared/dist/decision.js +147 -0
  452. package/node_modules/@engenty-wizards/shared/dist/definition.d.ts +2922 -0
  453. package/node_modules/@engenty-wizards/shared/dist/definition.js +1920 -0
  454. package/node_modules/@engenty-wizards/shared/dist/engenty/data-tables/columns-format.d.ts +5 -0
  455. package/node_modules/@engenty-wizards/shared/dist/engenty/data-tables/columns-format.js +132 -0
  456. package/node_modules/@engenty-wizards/shared/dist/engenty/data-tables/columns-value.d.ts +11 -0
  457. package/node_modules/@engenty-wizards/shared/dist/engenty/data-tables/columns-value.js +209 -0
  458. package/node_modules/@engenty-wizards/shared/dist/engenty/data-tables/columns.d.ts +532 -0
  459. package/node_modules/@engenty-wizards/shared/dist/engenty/data-tables/columns.js +217 -0
  460. package/node_modules/@engenty-wizards/shared/dist/engenty/data-tables/index.d.ts +3 -0
  461. package/node_modules/@engenty-wizards/shared/dist/engenty/data-tables/index.js +3 -0
  462. package/node_modules/@engenty-wizards/shared/dist/engenty/search-index/catalog-lexical.d.ts +14 -0
  463. package/node_modules/@engenty-wizards/shared/dist/engenty/search-index/catalog-lexical.js +166 -0
  464. package/node_modules/@engenty-wizards/shared/dist/engenty/search-index/catalog-rank.d.ts +33 -0
  465. package/node_modules/@engenty-wizards/shared/dist/engenty/search-index/catalog-rank.js +99 -0
  466. package/node_modules/@engenty-wizards/shared/dist/feature-flags.d.ts +78 -0
  467. package/node_modules/@engenty-wizards/shared/dist/feature-flags.js +70 -0
  468. package/node_modules/@engenty-wizards/shared/dist/features.d.ts +41 -0
  469. package/node_modules/@engenty-wizards/shared/dist/features.js +89 -0
  470. package/node_modules/@engenty-wizards/shared/dist/fit.d.ts +71 -0
  471. package/node_modules/@engenty-wizards/shared/dist/fit.js +382 -0
  472. package/node_modules/@engenty-wizards/shared/dist/json-schema.d.ts +14 -0
  473. package/node_modules/@engenty-wizards/shared/dist/json-schema.js +66 -0
  474. package/node_modules/@engenty-wizards/shared/dist/knowledge.d.ts +199 -0
  475. package/node_modules/@engenty-wizards/shared/dist/knowledge.js +68 -0
  476. package/node_modules/@engenty-wizards/shared/dist/marketplace-entry.d.ts +35 -0
  477. package/node_modules/@engenty-wizards/shared/dist/marketplace-entry.js +107 -0
  478. package/node_modules/@engenty-wizards/shared/dist/marketplace-search.d.ts +20 -0
  479. package/node_modules/@engenty-wizards/shared/dist/marketplace-search.js +136 -0
  480. package/node_modules/@engenty-wizards/shared/dist/marketplace.d.ts +227 -0
  481. package/node_modules/@engenty-wizards/shared/dist/marketplace.js +354 -0
  482. package/node_modules/@engenty-wizards/shared/dist/merge.d.ts +7 -0
  483. package/node_modules/@engenty-wizards/shared/dist/merge.js +40 -0
  484. package/node_modules/@engenty-wizards/shared/dist/numbers.d.ts +24 -0
  485. package/node_modules/@engenty-wizards/shared/dist/numbers.js +54 -0
  486. package/node_modules/@engenty-wizards/shared/dist/projects.d.ts +224 -0
  487. package/node_modules/@engenty-wizards/shared/dist/projects.js +319 -0
  488. package/node_modules/@engenty-wizards/shared/dist/providers.d.ts +101 -0
  489. package/node_modules/@engenty-wizards/shared/dist/providers.js +390 -0
  490. package/node_modules/@engenty-wizards/shared/dist/run.d.ts +680 -0
  491. package/node_modules/@engenty-wizards/shared/dist/run.js +620 -0
  492. package/node_modules/@engenty-wizards/shared/dist/runner-texts.d.ts +546 -0
  493. package/node_modules/@engenty-wizards/shared/dist/runner-texts.js +523 -0
  494. package/node_modules/@engenty-wizards/shared/dist/runners.d.ts +93 -0
  495. package/node_modules/@engenty-wizards/shared/dist/runners.js +146 -0
  496. package/node_modules/@engenty-wizards/shared/dist/shape.d.ts +102 -0
  497. package/node_modules/@engenty-wizards/shared/dist/shape.js +318 -0
  498. package/node_modules/@engenty-wizards/shared/dist/space-data.d.ts +89 -0
  499. package/node_modules/@engenty-wizards/shared/dist/space-data.js +47 -0
  500. package/node_modules/@engenty-wizards/shared/dist/store.d.ts +117 -0
  501. package/node_modules/@engenty-wizards/shared/dist/store.js +81 -0
  502. package/node_modules/@engenty-wizards/shared/dist/surface.d.ts +115 -0
  503. package/node_modules/@engenty-wizards/shared/dist/surface.js +442 -0
  504. package/node_modules/@engenty-wizards/shared/dist/texts.d.ts +45 -0
  505. package/node_modules/@engenty-wizards/shared/dist/texts.js +54 -0
  506. package/node_modules/@engenty-wizards/shared/dist/translation.d.ts +23 -0
  507. package/node_modules/@engenty-wizards/shared/dist/translation.js +154 -0
  508. package/node_modules/@engenty-wizards/shared/dist/wizard-package.d.ts +48 -0
  509. package/node_modules/@engenty-wizards/shared/dist/wizard-package.js +49 -0
  510. package/node_modules/@engenty-wizards/shared/dist/workspace.d.ts +16 -0
  511. package/node_modules/@engenty-wizards/shared/dist/workspace.js +51 -0
  512. package/node_modules/@engenty-wizards/shared/package.json +10 -0
  513. package/package.json +77 -4
  514. package/plugin/.claude-plugin/plugin.json +9 -0
  515. package/plugin/.mcp.json +8 -0
  516. package/plugin/commands/wizard.md +8 -0
  517. package/plugin/skills/build-wizard/SKILL.md +27 -0
  518. package/plugin/skills/use-wizard/SKILL.md +18 -0
@@ -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
+ }