wizards 0.2.16 → 0.2.18

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 (90) hide show
  1. package/apps/runtime/dist/agents/project-assistant.js +20 -2
  2. package/apps/runtime/dist/authoring/guide.js +6 -3
  3. package/apps/runtime/dist/credits/estimate.js +14 -8
  4. package/apps/runtime/dist/db/migrations/tenant/0008_run_event_note.sql +1 -0
  5. package/apps/runtime/dist/db/migrations/tenant/0009_knowledge.sql +104 -0
  6. package/apps/runtime/dist/db/migrations/tenant/meta/0008_snapshot.json +2019 -0
  7. package/apps/runtime/dist/db/migrations/tenant/meta/0009_snapshot.json +2837 -0
  8. package/apps/runtime/dist/db/migrations/tenant/meta/_journal.json +14 -0
  9. package/apps/runtime/dist/db/schema.js +162 -8
  10. package/apps/runtime/dist/engine/events.js +14 -2
  11. package/apps/runtime/dist/engine/prepare.js +5 -2
  12. package/apps/runtime/dist/engine/requirements.js +108 -0
  13. package/apps/runtime/dist/engine/runner.js +2 -2
  14. package/apps/runtime/dist/engine/steps.js +21 -21
  15. package/apps/runtime/dist/engine/template.js +13 -10
  16. package/apps/runtime/dist/env.js +2 -0
  17. package/apps/runtime/dist/files/storage.js +15 -0
  18. package/apps/runtime/dist/models.js +38 -0
  19. package/apps/runtime/dist/plugins/loader.js +2 -0
  20. package/apps/runtime/dist/routes/studio.js +149 -8
  21. package/apps/runtime/dist/services/cloud.js +59 -1
  22. package/apps/runtime/dist/services/knowledge-model.js +558 -0
  23. package/apps/runtime/dist/services/knowledge.js +721 -0
  24. package/apps/runtime/dist/services/marketplace.js +2 -2
  25. package/apps/runtime/dist/services/project-files.js +114 -6
  26. package/apps/runtime/dist/services/project-index.js +632 -94
  27. package/apps/runtime/dist/services/relevance.js +90 -0
  28. package/apps/runtime/dist/services/space-categories.js +882 -0
  29. package/apps/runtime/dist/services/space-data.js +466 -38
  30. package/apps/runtime/dist/services/space-origin.js +164 -0
  31. package/apps/runtime/dist/services/spaces.js +155 -1
  32. package/apps/runtime/dist/tools/browser.js +12 -6
  33. package/apps/runtime/dist/tools/index.js +12 -6
  34. package/apps/runtime/dist/tools/mail.js +5 -2
  35. package/apps/runtime/dist/tools/pages.js +28 -23
  36. package/apps/runtime/dist/tools/project.js +132 -39
  37. package/apps/runtime/dist/tools/store.js +4 -4
  38. package/apps/runtime/dist/widgets/step.js +10 -4
  39. package/apps/web/dist/assets/{Account-BE_W101C.js → Account-Cp1cgqjV.js} +1 -1
  40. package/apps/web/dist/assets/{ChangelogDialog-DjKQJAos.js → ChangelogDialog-Chke1qUe.js} +1 -1
  41. package/apps/web/dist/assets/ChatPanel-DWrwewr6.js +1 -0
  42. package/apps/web/dist/assets/CreditsDialog-Ckema8Ss.js +1 -0
  43. package/apps/web/dist/assets/EditorPage-XX6pfHk5.js +2 -0
  44. package/apps/web/dist/assets/{FlowPreview-DK4RZqTW.js → FlowPreview-DS545n78.js} +1 -1
  45. package/apps/web/dist/assets/{Harness-DcI94f1U.js → Harness-H3yXP-2L.js} +2 -2
  46. package/apps/web/dist/assets/{HomePage-BBNFgryu.js → HomePage-Bds84ShK.js} +1 -1
  47. package/apps/web/dist/assets/{ImportWizard-BoYqovdl.js → ImportWizard-0_NkA8aS.js} +1 -1
  48. package/apps/web/dist/assets/LocalRuntime-DnABzTOe.js +1 -0
  49. package/apps/web/dist/assets/{NewWizardPage-tKV2S4eK.js → NewWizardPage-BqP75V9K.js} +2 -2
  50. package/apps/web/dist/assets/ProjectPage-DbOvwOdZ.js +5 -0
  51. package/apps/web/dist/assets/PublicRunner-CtZ7vxl_.js +1 -0
  52. package/apps/web/dist/assets/RunnerView-xV5bWclu.js +70 -0
  53. package/apps/web/dist/assets/SettingsPage-DKt55zFh.js +1 -0
  54. package/apps/web/dist/assets/{SetupPage-qxHvlf87.js → SetupPage-c6mMD9zN.js} +1 -1
  55. package/apps/web/dist/assets/SharePage-DTKIbMj-.js +1 -0
  56. package/apps/web/dist/assets/{api-t9_w1XNe.js → api-CVG-xDEn.js} +2 -2
  57. package/apps/web/dist/assets/changelog-CXXT0zsp.js +1 -0
  58. package/apps/web/dist/assets/{esm-D0YVMTdo.js → esm-DLM3jdbm.js} +1 -1
  59. package/apps/web/dist/assets/index-1gmaxDSk.js +10 -0
  60. package/apps/web/dist/assets/index-Bwyehu0k.css +1 -0
  61. package/apps/web/dist/assets/{meta-BJHYbMh7.js → meta-m947x6uG.js} +1 -1
  62. package/apps/web/dist/assets/{settings-menu-BqqUAvIY.js → settings-menu-DUY6__C3.js} +1 -1
  63. package/apps/web/dist/assets/ui-BPY2pIh0.js +1 -0
  64. package/apps/web/dist/index.html +4 -4
  65. package/apps/web/dist/mcp/flow.html +54 -54
  66. package/node_modules/@engenty-wizards/plugin-sdk/dist/index.d.ts +164 -0
  67. package/node_modules/@engenty-wizards/shared/dist/definition.d.ts +10 -0
  68. package/node_modules/@engenty-wizards/shared/dist/definition.js +25 -0
  69. package/node_modules/@engenty-wizards/shared/dist/knowledge.d.ts +199 -0
  70. package/node_modules/@engenty-wizards/shared/dist/knowledge.js +68 -0
  71. package/node_modules/@engenty-wizards/shared/dist/projects.d.ts +1 -16
  72. package/node_modules/@engenty-wizards/shared/dist/projects.js +1 -1
  73. package/node_modules/@engenty-wizards/shared/dist/run.d.ts +149 -0
  74. package/node_modules/@engenty-wizards/shared/dist/run.js +77 -1
  75. package/node_modules/@engenty-wizards/shared/dist/space-data.d.ts +20 -0
  76. package/node_modules/@engenty-wizards/shared/dist/space-data.js +2 -1
  77. package/package.json +1 -1
  78. package/apps/web/dist/assets/ChatPanel-BWrcDs4s.js +0 -1
  79. package/apps/web/dist/assets/CreditsDialog-DUjR5xkl.js +0 -1
  80. package/apps/web/dist/assets/EditorPage-CrOqikP2.js +0 -2
  81. package/apps/web/dist/assets/LocalRuntime-BD8zGN8w.js +0 -1
  82. package/apps/web/dist/assets/ProjectPage-voR0hvzy.js +0 -4
  83. package/apps/web/dist/assets/PublicRunner-CYZE_hSi.js +0 -1
  84. package/apps/web/dist/assets/RunnerView-D_C7hn81.js +0 -70
  85. package/apps/web/dist/assets/SettingsPage-DguoPF_3.js +0 -1
  86. package/apps/web/dist/assets/SharePage-Cf3i7KB-.js +0 -1
  87. package/apps/web/dist/assets/changelog-kz0DmHY4.js +0 -1
  88. package/apps/web/dist/assets/index-BPpKz65x.css +0 -1
  89. package/apps/web/dist/assets/index-D5w3fW1p.js +0 -10
  90. package/apps/web/dist/assets/ui-BHXO_e0e.js +0 -1
@@ -0,0 +1,2019 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "a7857cf7-f901-43b3-b61e-71991217fe21",
5
+ "prevId": "e5bcf4bb-d3aa-47d1-8c1f-8db05271ac38",
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
+ "project": {
137
+ "name": "project",
138
+ "columns": {
139
+ "id": {
140
+ "name": "id",
141
+ "type": "text",
142
+ "primaryKey": true,
143
+ "notNull": true,
144
+ "autoincrement": false
145
+ },
146
+ "tenant_id": {
147
+ "name": "tenant_id",
148
+ "type": "text",
149
+ "primaryKey": false,
150
+ "notNull": true,
151
+ "autoincrement": false
152
+ },
153
+ "name": {
154
+ "name": "name",
155
+ "type": "text",
156
+ "primaryKey": false,
157
+ "notNull": true,
158
+ "autoincrement": false
159
+ },
160
+ "brand": {
161
+ "name": "brand",
162
+ "type": "text",
163
+ "primaryKey": false,
164
+ "notNull": true,
165
+ "autoincrement": false,
166
+ "default": "'{}'"
167
+ },
168
+ "facts": {
169
+ "name": "facts",
170
+ "type": "text",
171
+ "primaryKey": false,
172
+ "notNull": true,
173
+ "autoincrement": false,
174
+ "default": "'[]'"
175
+ },
176
+ "mcp_servers": {
177
+ "name": "mcp_servers",
178
+ "type": "text",
179
+ "primaryKey": false,
180
+ "notNull": true,
181
+ "autoincrement": false,
182
+ "default": "'[]'"
183
+ },
184
+ "origin": {
185
+ "name": "origin",
186
+ "type": "text",
187
+ "primaryKey": false,
188
+ "notNull": false,
189
+ "autoincrement": false
190
+ },
191
+ "synced_at": {
192
+ "name": "synced_at",
193
+ "type": "integer",
194
+ "primaryKey": false,
195
+ "notNull": false,
196
+ "autoincrement": false
197
+ },
198
+ "created_at": {
199
+ "name": "created_at",
200
+ "type": "integer",
201
+ "primaryKey": false,
202
+ "notNull": true,
203
+ "autoincrement": false,
204
+ "default": "(unixepoch() * 1000)"
205
+ },
206
+ "updated_at": {
207
+ "name": "updated_at",
208
+ "type": "integer",
209
+ "primaryKey": false,
210
+ "notNull": true,
211
+ "autoincrement": false,
212
+ "default": "(unixepoch() * 1000)"
213
+ }
214
+ },
215
+ "indexes": {
216
+ "project_tenant": {
217
+ "name": "project_tenant",
218
+ "columns": [
219
+ "tenant_id"
220
+ ],
221
+ "isUnique": false
222
+ }
223
+ },
224
+ "foreignKeys": {},
225
+ "compositePrimaryKeys": {},
226
+ "uniqueConstraints": {},
227
+ "checkConstraints": {}
228
+ },
229
+ "project_chunk": {
230
+ "name": "project_chunk",
231
+ "columns": {
232
+ "id": {
233
+ "name": "id",
234
+ "type": "integer",
235
+ "primaryKey": true,
236
+ "notNull": true,
237
+ "autoincrement": true
238
+ },
239
+ "project_id": {
240
+ "name": "project_id",
241
+ "type": "text",
242
+ "primaryKey": false,
243
+ "notNull": true,
244
+ "autoincrement": false
245
+ },
246
+ "file_id": {
247
+ "name": "file_id",
248
+ "type": "text",
249
+ "primaryKey": false,
250
+ "notNull": false,
251
+ "autoincrement": false
252
+ },
253
+ "plugin": {
254
+ "name": "plugin",
255
+ "type": "text",
256
+ "primaryKey": false,
257
+ "notNull": false,
258
+ "autoincrement": false
259
+ },
260
+ "ref": {
261
+ "name": "ref",
262
+ "type": "text",
263
+ "primaryKey": false,
264
+ "notNull": false,
265
+ "autoincrement": false
266
+ },
267
+ "title": {
268
+ "name": "title",
269
+ "type": "text",
270
+ "primaryKey": false,
271
+ "notNull": false,
272
+ "autoincrement": false
273
+ },
274
+ "link": {
275
+ "name": "link",
276
+ "type": "text",
277
+ "primaryKey": false,
278
+ "notNull": false,
279
+ "autoincrement": false
280
+ },
281
+ "idx": {
282
+ "name": "idx",
283
+ "type": "integer",
284
+ "primaryKey": false,
285
+ "notNull": true,
286
+ "autoincrement": false
287
+ },
288
+ "text": {
289
+ "name": "text",
290
+ "type": "text",
291
+ "primaryKey": false,
292
+ "notNull": true,
293
+ "autoincrement": false
294
+ },
295
+ "embedding": {
296
+ "name": "embedding",
297
+ "type": "blob",
298
+ "primaryKey": false,
299
+ "notNull": false,
300
+ "autoincrement": false
301
+ },
302
+ "model": {
303
+ "name": "model",
304
+ "type": "text",
305
+ "primaryKey": false,
306
+ "notNull": false,
307
+ "autoincrement": false
308
+ }
309
+ },
310
+ "indexes": {
311
+ "project_chunk_project": {
312
+ "name": "project_chunk_project",
313
+ "columns": [
314
+ "project_id",
315
+ "model"
316
+ ],
317
+ "isUnique": false
318
+ },
319
+ "project_chunk_file": {
320
+ "name": "project_chunk_file",
321
+ "columns": [
322
+ "file_id"
323
+ ],
324
+ "isUnique": false
325
+ },
326
+ "project_chunk_ref": {
327
+ "name": "project_chunk_ref",
328
+ "columns": [
329
+ "project_id",
330
+ "plugin",
331
+ "ref"
332
+ ],
333
+ "isUnique": false
334
+ }
335
+ },
336
+ "foreignKeys": {
337
+ "project_chunk_project_id_project_id_fk": {
338
+ "name": "project_chunk_project_id_project_id_fk",
339
+ "tableFrom": "project_chunk",
340
+ "tableTo": "project",
341
+ "columnsFrom": [
342
+ "project_id"
343
+ ],
344
+ "columnsTo": [
345
+ "id"
346
+ ],
347
+ "onDelete": "cascade",
348
+ "onUpdate": "no action"
349
+ },
350
+ "project_chunk_file_id_project_file_id_fk": {
351
+ "name": "project_chunk_file_id_project_file_id_fk",
352
+ "tableFrom": "project_chunk",
353
+ "tableTo": "project_file",
354
+ "columnsFrom": [
355
+ "file_id"
356
+ ],
357
+ "columnsTo": [
358
+ "id"
359
+ ],
360
+ "onDelete": "cascade",
361
+ "onUpdate": "no action"
362
+ }
363
+ },
364
+ "compositePrimaryKeys": {},
365
+ "uniqueConstraints": {},
366
+ "checkConstraints": {}
367
+ },
368
+ "project_connector": {
369
+ "name": "project_connector",
370
+ "columns": {
371
+ "project_id": {
372
+ "name": "project_id",
373
+ "type": "text",
374
+ "primaryKey": false,
375
+ "notNull": true,
376
+ "autoincrement": false
377
+ },
378
+ "id": {
379
+ "name": "id",
380
+ "type": "text",
381
+ "primaryKey": false,
382
+ "notNull": true,
383
+ "autoincrement": false
384
+ },
385
+ "record": {
386
+ "name": "record",
387
+ "type": "text",
388
+ "primaryKey": false,
389
+ "notNull": true,
390
+ "autoincrement": false
391
+ },
392
+ "created_at": {
393
+ "name": "created_at",
394
+ "type": "integer",
395
+ "primaryKey": false,
396
+ "notNull": true,
397
+ "autoincrement": false,
398
+ "default": "(unixepoch() * 1000)"
399
+ },
400
+ "updated_at": {
401
+ "name": "updated_at",
402
+ "type": "integer",
403
+ "primaryKey": false,
404
+ "notNull": true,
405
+ "autoincrement": false,
406
+ "default": "(unixepoch() * 1000)"
407
+ }
408
+ },
409
+ "indexes": {},
410
+ "foreignKeys": {
411
+ "project_connector_project_id_project_id_fk": {
412
+ "name": "project_connector_project_id_project_id_fk",
413
+ "tableFrom": "project_connector",
414
+ "tableTo": "project",
415
+ "columnsFrom": [
416
+ "project_id"
417
+ ],
418
+ "columnsTo": [
419
+ "id"
420
+ ],
421
+ "onDelete": "cascade",
422
+ "onUpdate": "no action"
423
+ }
424
+ },
425
+ "compositePrimaryKeys": {
426
+ "project_connector_project_id_id_pk": {
427
+ "columns": [
428
+ "project_id",
429
+ "id"
430
+ ],
431
+ "name": "project_connector_project_id_id_pk"
432
+ }
433
+ },
434
+ "uniqueConstraints": {},
435
+ "checkConstraints": {}
436
+ },
437
+ "project_file": {
438
+ "name": "project_file",
439
+ "columns": {
440
+ "id": {
441
+ "name": "id",
442
+ "type": "text",
443
+ "primaryKey": true,
444
+ "notNull": true,
445
+ "autoincrement": false
446
+ },
447
+ "project_id": {
448
+ "name": "project_id",
449
+ "type": "text",
450
+ "primaryKey": false,
451
+ "notNull": true,
452
+ "autoincrement": false
453
+ },
454
+ "kind": {
455
+ "name": "kind",
456
+ "type": "text",
457
+ "primaryKey": false,
458
+ "notNull": true,
459
+ "autoincrement": false
460
+ },
461
+ "name": {
462
+ "name": "name",
463
+ "type": "text",
464
+ "primaryKey": false,
465
+ "notNull": true,
466
+ "autoincrement": false
467
+ },
468
+ "mime": {
469
+ "name": "mime",
470
+ "type": "text",
471
+ "primaryKey": false,
472
+ "notNull": true,
473
+ "autoincrement": false
474
+ },
475
+ "size": {
476
+ "name": "size",
477
+ "type": "integer",
478
+ "primaryKey": false,
479
+ "notNull": true,
480
+ "autoincrement": false
481
+ },
482
+ "description": {
483
+ "name": "description",
484
+ "type": "text",
485
+ "primaryKey": false,
486
+ "notNull": true,
487
+ "autoincrement": false,
488
+ "default": "''"
489
+ },
490
+ "source": {
491
+ "name": "source",
492
+ "type": "text",
493
+ "primaryKey": false,
494
+ "notNull": false,
495
+ "autoincrement": false
496
+ },
497
+ "position": {
498
+ "name": "position",
499
+ "type": "integer",
500
+ "primaryKey": false,
501
+ "notNull": true,
502
+ "autoincrement": false,
503
+ "default": 0
504
+ },
505
+ "status": {
506
+ "name": "status",
507
+ "type": "text",
508
+ "primaryKey": false,
509
+ "notNull": true,
510
+ "autoincrement": false,
511
+ "default": "'ready'"
512
+ },
513
+ "error": {
514
+ "name": "error",
515
+ "type": "text",
516
+ "primaryKey": false,
517
+ "notNull": false,
518
+ "autoincrement": false
519
+ },
520
+ "text_hash": {
521
+ "name": "text_hash",
522
+ "type": "text",
523
+ "primaryKey": false,
524
+ "notNull": false,
525
+ "autoincrement": false
526
+ },
527
+ "pages": {
528
+ "name": "pages",
529
+ "type": "integer",
530
+ "primaryKey": false,
531
+ "notNull": false,
532
+ "autoincrement": false
533
+ },
534
+ "chars": {
535
+ "name": "chars",
536
+ "type": "integer",
537
+ "primaryKey": false,
538
+ "notNull": false,
539
+ "autoincrement": false
540
+ },
541
+ "indexed": {
542
+ "name": "indexed",
543
+ "type": "text",
544
+ "primaryKey": false,
545
+ "notNull": false,
546
+ "autoincrement": false
547
+ },
548
+ "created_at": {
549
+ "name": "created_at",
550
+ "type": "integer",
551
+ "primaryKey": false,
552
+ "notNull": true,
553
+ "autoincrement": false,
554
+ "default": "(unixepoch() * 1000)"
555
+ },
556
+ "updated_at": {
557
+ "name": "updated_at",
558
+ "type": "integer",
559
+ "primaryKey": false,
560
+ "notNull": true,
561
+ "autoincrement": false,
562
+ "default": "(unixepoch() * 1000)"
563
+ }
564
+ },
565
+ "indexes": {
566
+ "project_file_project": {
567
+ "name": "project_file_project",
568
+ "columns": [
569
+ "project_id",
570
+ "kind",
571
+ "position"
572
+ ],
573
+ "isUnique": false
574
+ }
575
+ },
576
+ "foreignKeys": {
577
+ "project_file_project_id_project_id_fk": {
578
+ "name": "project_file_project_id_project_id_fk",
579
+ "tableFrom": "project_file",
580
+ "tableTo": "project",
581
+ "columnsFrom": [
582
+ "project_id"
583
+ ],
584
+ "columnsTo": [
585
+ "id"
586
+ ],
587
+ "onDelete": "cascade",
588
+ "onUpdate": "no action"
589
+ }
590
+ },
591
+ "compositePrimaryKeys": {},
592
+ "uniqueConstraints": {},
593
+ "checkConstraints": {}
594
+ },
595
+ "run": {
596
+ "name": "run",
597
+ "columns": {
598
+ "id": {
599
+ "name": "id",
600
+ "type": "text",
601
+ "primaryKey": true,
602
+ "notNull": true,
603
+ "autoincrement": false
604
+ },
605
+ "wizard_id": {
606
+ "name": "wizard_id",
607
+ "type": "text",
608
+ "primaryKey": false,
609
+ "notNull": true,
610
+ "autoincrement": false
611
+ },
612
+ "tenant_id": {
613
+ "name": "tenant_id",
614
+ "type": "text",
615
+ "primaryKey": false,
616
+ "notNull": true,
617
+ "autoincrement": false
618
+ },
619
+ "definition": {
620
+ "name": "definition",
621
+ "type": "text",
622
+ "primaryKey": false,
623
+ "notNull": true,
624
+ "autoincrement": false
625
+ },
626
+ "files": {
627
+ "name": "files",
628
+ "type": "text",
629
+ "primaryKey": false,
630
+ "notNull": true,
631
+ "autoincrement": false,
632
+ "default": "'[]'"
633
+ },
634
+ "version": {
635
+ "name": "version",
636
+ "type": "integer",
637
+ "primaryKey": false,
638
+ "notNull": false,
639
+ "autoincrement": false
640
+ },
641
+ "mode": {
642
+ "name": "mode",
643
+ "type": "text",
644
+ "primaryKey": false,
645
+ "notNull": true,
646
+ "autoincrement": false
647
+ },
648
+ "visitor_id": {
649
+ "name": "visitor_id",
650
+ "type": "text",
651
+ "primaryKey": false,
652
+ "notNull": false,
653
+ "autoincrement": false
654
+ },
655
+ "user_id": {
656
+ "name": "user_id",
657
+ "type": "text",
658
+ "primaryKey": false,
659
+ "notNull": false,
660
+ "autoincrement": false
661
+ },
662
+ "ip_hash": {
663
+ "name": "ip_hash",
664
+ "type": "text",
665
+ "primaryKey": false,
666
+ "notNull": false,
667
+ "autoincrement": false
668
+ },
669
+ "status": {
670
+ "name": "status",
671
+ "type": "text",
672
+ "primaryKey": false,
673
+ "notNull": true,
674
+ "autoincrement": false
675
+ },
676
+ "cursor": {
677
+ "name": "cursor",
678
+ "type": "text",
679
+ "primaryKey": false,
680
+ "notNull": false,
681
+ "autoincrement": false
682
+ },
683
+ "state": {
684
+ "name": "state",
685
+ "type": "text",
686
+ "primaryKey": false,
687
+ "notNull": true,
688
+ "autoincrement": false
689
+ },
690
+ "error": {
691
+ "name": "error",
692
+ "type": "text",
693
+ "primaryKey": false,
694
+ "notNull": false,
695
+ "autoincrement": false
696
+ },
697
+ "ask": {
698
+ "name": "ask",
699
+ "type": "text",
700
+ "primaryKey": false,
701
+ "notNull": false,
702
+ "autoincrement": false
703
+ },
704
+ "cost_micros": {
705
+ "name": "cost_micros",
706
+ "type": "integer",
707
+ "primaryKey": false,
708
+ "notNull": true,
709
+ "autoincrement": false,
710
+ "default": 0
711
+ },
712
+ "share_token": {
713
+ "name": "share_token",
714
+ "type": "text",
715
+ "primaryKey": false,
716
+ "notNull": false,
717
+ "autoincrement": false
718
+ },
719
+ "shared_at": {
720
+ "name": "shared_at",
721
+ "type": "integer",
722
+ "primaryKey": false,
723
+ "notNull": false,
724
+ "autoincrement": false
725
+ },
726
+ "expires_at": {
727
+ "name": "expires_at",
728
+ "type": "integer",
729
+ "primaryKey": false,
730
+ "notNull": false,
731
+ "autoincrement": false
732
+ },
733
+ "created_at": {
734
+ "name": "created_at",
735
+ "type": "integer",
736
+ "primaryKey": false,
737
+ "notNull": true,
738
+ "autoincrement": false,
739
+ "default": "(unixepoch() * 1000)"
740
+ },
741
+ "updated_at": {
742
+ "name": "updated_at",
743
+ "type": "integer",
744
+ "primaryKey": false,
745
+ "notNull": true,
746
+ "autoincrement": false,
747
+ "default": "(unixepoch() * 1000)"
748
+ }
749
+ },
750
+ "indexes": {
751
+ "run_share_token": {
752
+ "name": "run_share_token",
753
+ "columns": [
754
+ "share_token"
755
+ ],
756
+ "isUnique": true
757
+ },
758
+ "run_expires": {
759
+ "name": "run_expires",
760
+ "columns": [
761
+ "expires_at"
762
+ ],
763
+ "isUnique": false
764
+ },
765
+ "run_wizard": {
766
+ "name": "run_wizard",
767
+ "columns": [
768
+ "wizard_id",
769
+ "created_at"
770
+ ],
771
+ "isUnique": false
772
+ },
773
+ "run_visitor": {
774
+ "name": "run_visitor",
775
+ "columns": [
776
+ "visitor_id",
777
+ "created_at"
778
+ ],
779
+ "isUnique": false
780
+ },
781
+ "run_status": {
782
+ "name": "run_status",
783
+ "columns": [
784
+ "status"
785
+ ],
786
+ "isUnique": false
787
+ }
788
+ },
789
+ "foreignKeys": {
790
+ "run_wizard_id_wizard_id_fk": {
791
+ "name": "run_wizard_id_wizard_id_fk",
792
+ "tableFrom": "run",
793
+ "tableTo": "wizard",
794
+ "columnsFrom": [
795
+ "wizard_id"
796
+ ],
797
+ "columnsTo": [
798
+ "id"
799
+ ],
800
+ "onDelete": "cascade",
801
+ "onUpdate": "no action"
802
+ }
803
+ },
804
+ "compositePrimaryKeys": {},
805
+ "uniqueConstraints": {},
806
+ "checkConstraints": {}
807
+ },
808
+ "run_cost": {
809
+ "name": "run_cost",
810
+ "columns": {
811
+ "run_id": {
812
+ "name": "run_id",
813
+ "type": "text",
814
+ "primaryKey": false,
815
+ "notNull": true,
816
+ "autoincrement": false
817
+ },
818
+ "step_id": {
819
+ "name": "step_id",
820
+ "type": "text",
821
+ "primaryKey": false,
822
+ "notNull": true,
823
+ "autoincrement": false
824
+ },
825
+ "micros": {
826
+ "name": "micros",
827
+ "type": "integer",
828
+ "primaryKey": false,
829
+ "notNull": true,
830
+ "autoincrement": false,
831
+ "default": 0
832
+ }
833
+ },
834
+ "indexes": {},
835
+ "foreignKeys": {
836
+ "run_cost_run_id_run_id_fk": {
837
+ "name": "run_cost_run_id_run_id_fk",
838
+ "tableFrom": "run_cost",
839
+ "tableTo": "run",
840
+ "columnsFrom": [
841
+ "run_id"
842
+ ],
843
+ "columnsTo": [
844
+ "id"
845
+ ],
846
+ "onDelete": "cascade",
847
+ "onUpdate": "no action"
848
+ }
849
+ },
850
+ "compositePrimaryKeys": {
851
+ "run_cost_run_id_step_id_pk": {
852
+ "columns": [
853
+ "run_id",
854
+ "step_id"
855
+ ],
856
+ "name": "run_cost_run_id_step_id_pk"
857
+ }
858
+ },
859
+ "uniqueConstraints": {},
860
+ "checkConstraints": {}
861
+ },
862
+ "run_event": {
863
+ "name": "run_event",
864
+ "columns": {
865
+ "id": {
866
+ "name": "id",
867
+ "type": "integer",
868
+ "primaryKey": true,
869
+ "notNull": true,
870
+ "autoincrement": true
871
+ },
872
+ "run_id": {
873
+ "name": "run_id",
874
+ "type": "text",
875
+ "primaryKey": false,
876
+ "notNull": true,
877
+ "autoincrement": false
878
+ },
879
+ "step_id": {
880
+ "name": "step_id",
881
+ "type": "text",
882
+ "primaryKey": false,
883
+ "notNull": false,
884
+ "autoincrement": false
885
+ },
886
+ "type": {
887
+ "name": "type",
888
+ "type": "text",
889
+ "primaryKey": false,
890
+ "notNull": true,
891
+ "autoincrement": false
892
+ },
893
+ "message": {
894
+ "name": "message",
895
+ "type": "text",
896
+ "primaryKey": false,
897
+ "notNull": true,
898
+ "autoincrement": false
899
+ },
900
+ "note": {
901
+ "name": "note",
902
+ "type": "text",
903
+ "primaryKey": false,
904
+ "notNull": false,
905
+ "autoincrement": false
906
+ },
907
+ "asset_id": {
908
+ "name": "asset_id",
909
+ "type": "text",
910
+ "primaryKey": false,
911
+ "notNull": false,
912
+ "autoincrement": false
913
+ },
914
+ "created_at": {
915
+ "name": "created_at",
916
+ "type": "integer",
917
+ "primaryKey": false,
918
+ "notNull": true,
919
+ "autoincrement": false,
920
+ "default": "(unixepoch() * 1000)"
921
+ }
922
+ },
923
+ "indexes": {
924
+ "run_event_run": {
925
+ "name": "run_event_run",
926
+ "columns": [
927
+ "run_id",
928
+ "id"
929
+ ],
930
+ "isUnique": false
931
+ }
932
+ },
933
+ "foreignKeys": {
934
+ "run_event_run_id_run_id_fk": {
935
+ "name": "run_event_run_id_run_id_fk",
936
+ "tableFrom": "run_event",
937
+ "tableTo": "run",
938
+ "columnsFrom": [
939
+ "run_id"
940
+ ],
941
+ "columnsTo": [
942
+ "id"
943
+ ],
944
+ "onDelete": "cascade",
945
+ "onUpdate": "no action"
946
+ }
947
+ },
948
+ "compositePrimaryKeys": {},
949
+ "uniqueConstraints": {},
950
+ "checkConstraints": {}
951
+ },
952
+ "space_page": {
953
+ "name": "space_page",
954
+ "columns": {
955
+ "id": {
956
+ "name": "id",
957
+ "type": "text",
958
+ "primaryKey": true,
959
+ "notNull": true,
960
+ "autoincrement": false
961
+ },
962
+ "tenant_id": {
963
+ "name": "tenant_id",
964
+ "type": "text",
965
+ "primaryKey": false,
966
+ "notNull": true,
967
+ "autoincrement": false
968
+ },
969
+ "project_id": {
970
+ "name": "project_id",
971
+ "type": "text",
972
+ "primaryKey": false,
973
+ "notNull": true,
974
+ "autoincrement": false
975
+ },
976
+ "wizard_id": {
977
+ "name": "wizard_id",
978
+ "type": "text",
979
+ "primaryKey": false,
980
+ "notNull": false,
981
+ "autoincrement": false
982
+ },
983
+ "title": {
984
+ "name": "title",
985
+ "type": "text",
986
+ "primaryKey": false,
987
+ "notNull": true,
988
+ "autoincrement": false
989
+ },
990
+ "markdown": {
991
+ "name": "markdown",
992
+ "type": "text",
993
+ "primaryKey": false,
994
+ "notNull": true,
995
+ "autoincrement": false,
996
+ "default": "''"
997
+ },
998
+ "created_at": {
999
+ "name": "created_at",
1000
+ "type": "integer",
1001
+ "primaryKey": false,
1002
+ "notNull": true,
1003
+ "autoincrement": false,
1004
+ "default": "(unixepoch() * 1000)"
1005
+ },
1006
+ "updated_at": {
1007
+ "name": "updated_at",
1008
+ "type": "integer",
1009
+ "primaryKey": false,
1010
+ "notNull": true,
1011
+ "autoincrement": false,
1012
+ "default": "(unixepoch() * 1000)"
1013
+ }
1014
+ },
1015
+ "indexes": {
1016
+ "space_page_project": {
1017
+ "name": "space_page_project",
1018
+ "columns": [
1019
+ "project_id",
1020
+ "wizard_id"
1021
+ ],
1022
+ "isUnique": false
1023
+ }
1024
+ },
1025
+ "foreignKeys": {
1026
+ "space_page_project_id_project_id_fk": {
1027
+ "name": "space_page_project_id_project_id_fk",
1028
+ "tableFrom": "space_page",
1029
+ "tableTo": "project",
1030
+ "columnsFrom": [
1031
+ "project_id"
1032
+ ],
1033
+ "columnsTo": [
1034
+ "id"
1035
+ ],
1036
+ "onDelete": "cascade",
1037
+ "onUpdate": "no action"
1038
+ },
1039
+ "space_page_wizard_id_wizard_id_fk": {
1040
+ "name": "space_page_wizard_id_wizard_id_fk",
1041
+ "tableFrom": "space_page",
1042
+ "tableTo": "wizard",
1043
+ "columnsFrom": [
1044
+ "wizard_id"
1045
+ ],
1046
+ "columnsTo": [
1047
+ "id"
1048
+ ],
1049
+ "onDelete": "cascade",
1050
+ "onUpdate": "no action"
1051
+ }
1052
+ },
1053
+ "compositePrimaryKeys": {},
1054
+ "uniqueConstraints": {},
1055
+ "checkConstraints": {}
1056
+ },
1057
+ "space_table": {
1058
+ "name": "space_table",
1059
+ "columns": {
1060
+ "id": {
1061
+ "name": "id",
1062
+ "type": "text",
1063
+ "primaryKey": true,
1064
+ "notNull": true,
1065
+ "autoincrement": false
1066
+ },
1067
+ "tenant_id": {
1068
+ "name": "tenant_id",
1069
+ "type": "text",
1070
+ "primaryKey": false,
1071
+ "notNull": true,
1072
+ "autoincrement": false
1073
+ },
1074
+ "project_id": {
1075
+ "name": "project_id",
1076
+ "type": "text",
1077
+ "primaryKey": false,
1078
+ "notNull": true,
1079
+ "autoincrement": false
1080
+ },
1081
+ "wizard_id": {
1082
+ "name": "wizard_id",
1083
+ "type": "text",
1084
+ "primaryKey": false,
1085
+ "notNull": false,
1086
+ "autoincrement": false
1087
+ },
1088
+ "list": {
1089
+ "name": "list",
1090
+ "type": "text",
1091
+ "primaryKey": false,
1092
+ "notNull": false,
1093
+ "autoincrement": false
1094
+ },
1095
+ "key_column": {
1096
+ "name": "key_column",
1097
+ "type": "text",
1098
+ "primaryKey": false,
1099
+ "notNull": false,
1100
+ "autoincrement": false
1101
+ },
1102
+ "title": {
1103
+ "name": "title",
1104
+ "type": "text",
1105
+ "primaryKey": false,
1106
+ "notNull": true,
1107
+ "autoincrement": false
1108
+ },
1109
+ "columns": {
1110
+ "name": "columns",
1111
+ "type": "text",
1112
+ "primaryKey": false,
1113
+ "notNull": true,
1114
+ "autoincrement": false
1115
+ },
1116
+ "created_at": {
1117
+ "name": "created_at",
1118
+ "type": "integer",
1119
+ "primaryKey": false,
1120
+ "notNull": true,
1121
+ "autoincrement": false,
1122
+ "default": "(unixepoch() * 1000)"
1123
+ },
1124
+ "updated_at": {
1125
+ "name": "updated_at",
1126
+ "type": "integer",
1127
+ "primaryKey": false,
1128
+ "notNull": true,
1129
+ "autoincrement": false,
1130
+ "default": "(unixepoch() * 1000)"
1131
+ }
1132
+ },
1133
+ "indexes": {
1134
+ "space_table_project": {
1135
+ "name": "space_table_project",
1136
+ "columns": [
1137
+ "project_id",
1138
+ "wizard_id"
1139
+ ],
1140
+ "isUnique": false
1141
+ },
1142
+ "space_table_list": {
1143
+ "name": "space_table_list",
1144
+ "columns": [
1145
+ "wizard_id",
1146
+ "list"
1147
+ ],
1148
+ "isUnique": true
1149
+ }
1150
+ },
1151
+ "foreignKeys": {
1152
+ "space_table_project_id_project_id_fk": {
1153
+ "name": "space_table_project_id_project_id_fk",
1154
+ "tableFrom": "space_table",
1155
+ "tableTo": "project",
1156
+ "columnsFrom": [
1157
+ "project_id"
1158
+ ],
1159
+ "columnsTo": [
1160
+ "id"
1161
+ ],
1162
+ "onDelete": "cascade",
1163
+ "onUpdate": "no action"
1164
+ },
1165
+ "space_table_wizard_id_wizard_id_fk": {
1166
+ "name": "space_table_wizard_id_wizard_id_fk",
1167
+ "tableFrom": "space_table",
1168
+ "tableTo": "wizard",
1169
+ "columnsFrom": [
1170
+ "wizard_id"
1171
+ ],
1172
+ "columnsTo": [
1173
+ "id"
1174
+ ],
1175
+ "onDelete": "cascade",
1176
+ "onUpdate": "no action"
1177
+ }
1178
+ },
1179
+ "compositePrimaryKeys": {},
1180
+ "uniqueConstraints": {},
1181
+ "checkConstraints": {}
1182
+ },
1183
+ "space_table_row": {
1184
+ "name": "space_table_row",
1185
+ "columns": {
1186
+ "id": {
1187
+ "name": "id",
1188
+ "type": "text",
1189
+ "primaryKey": true,
1190
+ "notNull": true,
1191
+ "autoincrement": false
1192
+ },
1193
+ "table_id": {
1194
+ "name": "table_id",
1195
+ "type": "text",
1196
+ "primaryKey": false,
1197
+ "notNull": true,
1198
+ "autoincrement": false
1199
+ },
1200
+ "key": {
1201
+ "name": "key",
1202
+ "type": "text",
1203
+ "primaryKey": false,
1204
+ "notNull": false,
1205
+ "autoincrement": false
1206
+ },
1207
+ "cells": {
1208
+ "name": "cells",
1209
+ "type": "text",
1210
+ "primaryKey": false,
1211
+ "notNull": true,
1212
+ "autoincrement": false
1213
+ },
1214
+ "created_at": {
1215
+ "name": "created_at",
1216
+ "type": "integer",
1217
+ "primaryKey": false,
1218
+ "notNull": true,
1219
+ "autoincrement": false,
1220
+ "default": "(unixepoch() * 1000)"
1221
+ },
1222
+ "updated_at": {
1223
+ "name": "updated_at",
1224
+ "type": "integer",
1225
+ "primaryKey": false,
1226
+ "notNull": true,
1227
+ "autoincrement": false,
1228
+ "default": "(unixepoch() * 1000)"
1229
+ }
1230
+ },
1231
+ "indexes": {
1232
+ "space_table_row_table": {
1233
+ "name": "space_table_row_table",
1234
+ "columns": [
1235
+ "table_id",
1236
+ "created_at"
1237
+ ],
1238
+ "isUnique": false
1239
+ },
1240
+ "space_table_row_key": {
1241
+ "name": "space_table_row_key",
1242
+ "columns": [
1243
+ "table_id",
1244
+ "key"
1245
+ ],
1246
+ "isUnique": false
1247
+ }
1248
+ },
1249
+ "foreignKeys": {
1250
+ "space_table_row_table_id_space_table_id_fk": {
1251
+ "name": "space_table_row_table_id_space_table_id_fk",
1252
+ "tableFrom": "space_table_row",
1253
+ "tableTo": "space_table",
1254
+ "columnsFrom": [
1255
+ "table_id"
1256
+ ],
1257
+ "columnsTo": [
1258
+ "id"
1259
+ ],
1260
+ "onDelete": "cascade",
1261
+ "onUpdate": "no action"
1262
+ }
1263
+ },
1264
+ "compositePrimaryKeys": {},
1265
+ "uniqueConstraints": {},
1266
+ "checkConstraints": {}
1267
+ },
1268
+ "store_file": {
1269
+ "name": "store_file",
1270
+ "columns": {
1271
+ "wizard_id": {
1272
+ "name": "wizard_id",
1273
+ "type": "text",
1274
+ "primaryKey": false,
1275
+ "notNull": true,
1276
+ "autoincrement": false
1277
+ },
1278
+ "holder": {
1279
+ "name": "holder",
1280
+ "type": "text",
1281
+ "primaryKey": false,
1282
+ "notNull": true,
1283
+ "autoincrement": false
1284
+ },
1285
+ "path": {
1286
+ "name": "path",
1287
+ "type": "text",
1288
+ "primaryKey": false,
1289
+ "notNull": true,
1290
+ "autoincrement": false
1291
+ },
1292
+ "hash": {
1293
+ "name": "hash",
1294
+ "type": "text",
1295
+ "primaryKey": false,
1296
+ "notNull": true,
1297
+ "autoincrement": false
1298
+ },
1299
+ "mime": {
1300
+ "name": "mime",
1301
+ "type": "text",
1302
+ "primaryKey": false,
1303
+ "notNull": true,
1304
+ "autoincrement": false
1305
+ },
1306
+ "size": {
1307
+ "name": "size",
1308
+ "type": "integer",
1309
+ "primaryKey": false,
1310
+ "notNull": true,
1311
+ "autoincrement": false
1312
+ },
1313
+ "source": {
1314
+ "name": "source",
1315
+ "type": "text",
1316
+ "primaryKey": false,
1317
+ "notNull": false,
1318
+ "autoincrement": false
1319
+ },
1320
+ "updated_at": {
1321
+ "name": "updated_at",
1322
+ "type": "integer",
1323
+ "primaryKey": false,
1324
+ "notNull": true,
1325
+ "autoincrement": false,
1326
+ "default": "(unixepoch() * 1000)"
1327
+ }
1328
+ },
1329
+ "indexes": {},
1330
+ "foreignKeys": {
1331
+ "store_file_wizard_id_wizard_id_fk": {
1332
+ "name": "store_file_wizard_id_wizard_id_fk",
1333
+ "tableFrom": "store_file",
1334
+ "tableTo": "wizard",
1335
+ "columnsFrom": [
1336
+ "wizard_id"
1337
+ ],
1338
+ "columnsTo": [
1339
+ "id"
1340
+ ],
1341
+ "onDelete": "cascade",
1342
+ "onUpdate": "no action"
1343
+ }
1344
+ },
1345
+ "compositePrimaryKeys": {
1346
+ "store_file_wizard_id_holder_path_pk": {
1347
+ "columns": [
1348
+ "wizard_id",
1349
+ "holder",
1350
+ "path"
1351
+ ],
1352
+ "name": "store_file_wizard_id_holder_path_pk"
1353
+ }
1354
+ },
1355
+ "uniqueConstraints": {},
1356
+ "checkConstraints": {}
1357
+ },
1358
+ "store_holder": {
1359
+ "name": "store_holder",
1360
+ "columns": {
1361
+ "wizard_id": {
1362
+ "name": "wizard_id",
1363
+ "type": "text",
1364
+ "primaryKey": false,
1365
+ "notNull": true,
1366
+ "autoincrement": false
1367
+ },
1368
+ "holder": {
1369
+ "name": "holder",
1370
+ "type": "text",
1371
+ "primaryKey": false,
1372
+ "notNull": true,
1373
+ "autoincrement": false
1374
+ },
1375
+ "used_at": {
1376
+ "name": "used_at",
1377
+ "type": "integer",
1378
+ "primaryKey": false,
1379
+ "notNull": true,
1380
+ "autoincrement": false,
1381
+ "default": "(unixepoch() * 1000)"
1382
+ }
1383
+ },
1384
+ "indexes": {
1385
+ "store_holder_used": {
1386
+ "name": "store_holder_used",
1387
+ "columns": [
1388
+ "used_at"
1389
+ ],
1390
+ "isUnique": false
1391
+ }
1392
+ },
1393
+ "foreignKeys": {
1394
+ "store_holder_wizard_id_wizard_id_fk": {
1395
+ "name": "store_holder_wizard_id_wizard_id_fk",
1396
+ "tableFrom": "store_holder",
1397
+ "tableTo": "wizard",
1398
+ "columnsFrom": [
1399
+ "wizard_id"
1400
+ ],
1401
+ "columnsTo": [
1402
+ "id"
1403
+ ],
1404
+ "onDelete": "cascade",
1405
+ "onUpdate": "no action"
1406
+ }
1407
+ },
1408
+ "compositePrimaryKeys": {
1409
+ "store_holder_wizard_id_holder_pk": {
1410
+ "columns": [
1411
+ "wizard_id",
1412
+ "holder"
1413
+ ],
1414
+ "name": "store_holder_wizard_id_holder_pk"
1415
+ }
1416
+ },
1417
+ "uniqueConstraints": {},
1418
+ "checkConstraints": {}
1419
+ },
1420
+ "store_row": {
1421
+ "name": "store_row",
1422
+ "columns": {
1423
+ "id": {
1424
+ "name": "id",
1425
+ "type": "text",
1426
+ "primaryKey": true,
1427
+ "notNull": true,
1428
+ "autoincrement": false
1429
+ },
1430
+ "wizard_id": {
1431
+ "name": "wizard_id",
1432
+ "type": "text",
1433
+ "primaryKey": false,
1434
+ "notNull": true,
1435
+ "autoincrement": false
1436
+ },
1437
+ "holder": {
1438
+ "name": "holder",
1439
+ "type": "text",
1440
+ "primaryKey": false,
1441
+ "notNull": true,
1442
+ "autoincrement": false
1443
+ },
1444
+ "list": {
1445
+ "name": "list",
1446
+ "type": "text",
1447
+ "primaryKey": false,
1448
+ "notNull": true,
1449
+ "autoincrement": false
1450
+ },
1451
+ "key": {
1452
+ "name": "key",
1453
+ "type": "text",
1454
+ "primaryKey": false,
1455
+ "notNull": false,
1456
+ "autoincrement": false
1457
+ },
1458
+ "cells": {
1459
+ "name": "cells",
1460
+ "type": "text",
1461
+ "primaryKey": false,
1462
+ "notNull": true,
1463
+ "autoincrement": false
1464
+ },
1465
+ "created_at": {
1466
+ "name": "created_at",
1467
+ "type": "integer",
1468
+ "primaryKey": false,
1469
+ "notNull": true,
1470
+ "autoincrement": false,
1471
+ "default": "(unixepoch() * 1000)"
1472
+ },
1473
+ "updated_at": {
1474
+ "name": "updated_at",
1475
+ "type": "integer",
1476
+ "primaryKey": false,
1477
+ "notNull": true,
1478
+ "autoincrement": false,
1479
+ "default": "(unixepoch() * 1000)"
1480
+ }
1481
+ },
1482
+ "indexes": {
1483
+ "store_row_key": {
1484
+ "name": "store_row_key",
1485
+ "columns": [
1486
+ "wizard_id",
1487
+ "holder",
1488
+ "list",
1489
+ "key"
1490
+ ],
1491
+ "isUnique": true
1492
+ },
1493
+ "store_row_list": {
1494
+ "name": "store_row_list",
1495
+ "columns": [
1496
+ "wizard_id",
1497
+ "holder",
1498
+ "list",
1499
+ "created_at"
1500
+ ],
1501
+ "isUnique": false
1502
+ }
1503
+ },
1504
+ "foreignKeys": {
1505
+ "store_row_wizard_id_wizard_id_fk": {
1506
+ "name": "store_row_wizard_id_wizard_id_fk",
1507
+ "tableFrom": "store_row",
1508
+ "tableTo": "wizard",
1509
+ "columnsFrom": [
1510
+ "wizard_id"
1511
+ ],
1512
+ "columnsTo": [
1513
+ "id"
1514
+ ],
1515
+ "onDelete": "cascade",
1516
+ "onUpdate": "no action"
1517
+ }
1518
+ },
1519
+ "compositePrimaryKeys": {},
1520
+ "uniqueConstraints": {},
1521
+ "checkConstraints": {}
1522
+ },
1523
+ "store_secret": {
1524
+ "name": "store_secret",
1525
+ "columns": {
1526
+ "id": {
1527
+ "name": "id",
1528
+ "type": "text",
1529
+ "primaryKey": true,
1530
+ "notNull": true,
1531
+ "autoincrement": false
1532
+ },
1533
+ "wizard_id": {
1534
+ "name": "wizard_id",
1535
+ "type": "text",
1536
+ "primaryKey": false,
1537
+ "notNull": true,
1538
+ "autoincrement": false
1539
+ },
1540
+ "holder": {
1541
+ "name": "holder",
1542
+ "type": "text",
1543
+ "primaryKey": false,
1544
+ "notNull": true,
1545
+ "autoincrement": false
1546
+ },
1547
+ "slot": {
1548
+ "name": "slot",
1549
+ "type": "text",
1550
+ "primaryKey": false,
1551
+ "notNull": true,
1552
+ "autoincrement": false
1553
+ },
1554
+ "provider": {
1555
+ "name": "provider",
1556
+ "type": "text",
1557
+ "primaryKey": false,
1558
+ "notNull": true,
1559
+ "autoincrement": false
1560
+ },
1561
+ "label": {
1562
+ "name": "label",
1563
+ "type": "text",
1564
+ "primaryKey": false,
1565
+ "notNull": true,
1566
+ "autoincrement": false
1567
+ },
1568
+ "data": {
1569
+ "name": "data",
1570
+ "type": "text",
1571
+ "primaryKey": false,
1572
+ "notNull": true,
1573
+ "autoincrement": false
1574
+ },
1575
+ "created_at": {
1576
+ "name": "created_at",
1577
+ "type": "integer",
1578
+ "primaryKey": false,
1579
+ "notNull": true,
1580
+ "autoincrement": false,
1581
+ "default": "(unixepoch() * 1000)"
1582
+ },
1583
+ "updated_at": {
1584
+ "name": "updated_at",
1585
+ "type": "integer",
1586
+ "primaryKey": false,
1587
+ "notNull": true,
1588
+ "autoincrement": false,
1589
+ "default": "(unixepoch() * 1000)"
1590
+ }
1591
+ },
1592
+ "indexes": {
1593
+ "store_secret_slot": {
1594
+ "name": "store_secret_slot",
1595
+ "columns": [
1596
+ "wizard_id",
1597
+ "holder",
1598
+ "slot"
1599
+ ],
1600
+ "isUnique": true
1601
+ }
1602
+ },
1603
+ "foreignKeys": {
1604
+ "store_secret_wizard_id_wizard_id_fk": {
1605
+ "name": "store_secret_wizard_id_wizard_id_fk",
1606
+ "tableFrom": "store_secret",
1607
+ "tableTo": "wizard",
1608
+ "columnsFrom": [
1609
+ "wizard_id"
1610
+ ],
1611
+ "columnsTo": [
1612
+ "id"
1613
+ ],
1614
+ "onDelete": "cascade",
1615
+ "onUpdate": "no action"
1616
+ }
1617
+ },
1618
+ "compositePrimaryKeys": {},
1619
+ "uniqueConstraints": {},
1620
+ "checkConstraints": {}
1621
+ },
1622
+ "wizard": {
1623
+ "name": "wizard",
1624
+ "columns": {
1625
+ "id": {
1626
+ "name": "id",
1627
+ "type": "text",
1628
+ "primaryKey": true,
1629
+ "notNull": true,
1630
+ "autoincrement": false
1631
+ },
1632
+ "project_id": {
1633
+ "name": "project_id",
1634
+ "type": "text",
1635
+ "primaryKey": false,
1636
+ "notNull": true,
1637
+ "autoincrement": false
1638
+ },
1639
+ "tenant_id": {
1640
+ "name": "tenant_id",
1641
+ "type": "text",
1642
+ "primaryKey": false,
1643
+ "notNull": true,
1644
+ "autoincrement": false
1645
+ },
1646
+ "title": {
1647
+ "name": "title",
1648
+ "type": "text",
1649
+ "primaryKey": false,
1650
+ "notNull": true,
1651
+ "autoincrement": false
1652
+ },
1653
+ "draft": {
1654
+ "name": "draft",
1655
+ "type": "text",
1656
+ "primaryKey": false,
1657
+ "notNull": true,
1658
+ "autoincrement": false
1659
+ },
1660
+ "published_version": {
1661
+ "name": "published_version",
1662
+ "type": "integer",
1663
+ "primaryKey": false,
1664
+ "notNull": false,
1665
+ "autoincrement": false
1666
+ },
1667
+ "share_token": {
1668
+ "name": "share_token",
1669
+ "type": "text",
1670
+ "primaryKey": false,
1671
+ "notNull": true,
1672
+ "autoincrement": false
1673
+ },
1674
+ "share_enabled": {
1675
+ "name": "share_enabled",
1676
+ "type": "integer",
1677
+ "primaryKey": false,
1678
+ "notNull": true,
1679
+ "autoincrement": false,
1680
+ "default": true
1681
+ },
1682
+ "daily_run_limit": {
1683
+ "name": "daily_run_limit",
1684
+ "type": "integer",
1685
+ "primaryKey": false,
1686
+ "notNull": true,
1687
+ "autoincrement": false,
1688
+ "default": 50
1689
+ },
1690
+ "starter": {
1691
+ "name": "starter",
1692
+ "type": "text",
1693
+ "primaryKey": false,
1694
+ "notNull": false,
1695
+ "autoincrement": false
1696
+ },
1697
+ "starter_revision": {
1698
+ "name": "starter_revision",
1699
+ "type": "integer",
1700
+ "primaryKey": false,
1701
+ "notNull": false,
1702
+ "autoincrement": false
1703
+ },
1704
+ "revision": {
1705
+ "name": "revision",
1706
+ "type": "integer",
1707
+ "primaryKey": false,
1708
+ "notNull": true,
1709
+ "autoincrement": false,
1710
+ "default": 0
1711
+ },
1712
+ "created_at": {
1713
+ "name": "created_at",
1714
+ "type": "integer",
1715
+ "primaryKey": false,
1716
+ "notNull": true,
1717
+ "autoincrement": false,
1718
+ "default": "(unixepoch() * 1000)"
1719
+ },
1720
+ "updated_at": {
1721
+ "name": "updated_at",
1722
+ "type": "integer",
1723
+ "primaryKey": false,
1724
+ "notNull": true,
1725
+ "autoincrement": false,
1726
+ "default": "(unixepoch() * 1000)"
1727
+ }
1728
+ },
1729
+ "indexes": {
1730
+ "wizard_share_token": {
1731
+ "name": "wizard_share_token",
1732
+ "columns": [
1733
+ "share_token"
1734
+ ],
1735
+ "isUnique": true
1736
+ },
1737
+ "wizard_project": {
1738
+ "name": "wizard_project",
1739
+ "columns": [
1740
+ "project_id"
1741
+ ],
1742
+ "isUnique": false
1743
+ }
1744
+ },
1745
+ "foreignKeys": {
1746
+ "wizard_project_id_project_id_fk": {
1747
+ "name": "wizard_project_id_project_id_fk",
1748
+ "tableFrom": "wizard",
1749
+ "tableTo": "project",
1750
+ "columnsFrom": [
1751
+ "project_id"
1752
+ ],
1753
+ "columnsTo": [
1754
+ "id"
1755
+ ],
1756
+ "onDelete": "cascade",
1757
+ "onUpdate": "no action"
1758
+ }
1759
+ },
1760
+ "compositePrimaryKeys": {},
1761
+ "uniqueConstraints": {},
1762
+ "checkConstraints": {}
1763
+ },
1764
+ "wizard_file": {
1765
+ "name": "wizard_file",
1766
+ "columns": {
1767
+ "wizard_id": {
1768
+ "name": "wizard_id",
1769
+ "type": "text",
1770
+ "primaryKey": false,
1771
+ "notNull": true,
1772
+ "autoincrement": false
1773
+ },
1774
+ "path": {
1775
+ "name": "path",
1776
+ "type": "text",
1777
+ "primaryKey": false,
1778
+ "notNull": true,
1779
+ "autoincrement": false
1780
+ },
1781
+ "hash": {
1782
+ "name": "hash",
1783
+ "type": "text",
1784
+ "primaryKey": false,
1785
+ "notNull": true,
1786
+ "autoincrement": false
1787
+ },
1788
+ "mime": {
1789
+ "name": "mime",
1790
+ "type": "text",
1791
+ "primaryKey": false,
1792
+ "notNull": true,
1793
+ "autoincrement": false
1794
+ },
1795
+ "size": {
1796
+ "name": "size",
1797
+ "type": "integer",
1798
+ "primaryKey": false,
1799
+ "notNull": true,
1800
+ "autoincrement": false
1801
+ },
1802
+ "updated_at": {
1803
+ "name": "updated_at",
1804
+ "type": "integer",
1805
+ "primaryKey": false,
1806
+ "notNull": true,
1807
+ "autoincrement": false,
1808
+ "default": "(unixepoch() * 1000)"
1809
+ }
1810
+ },
1811
+ "indexes": {},
1812
+ "foreignKeys": {
1813
+ "wizard_file_wizard_id_wizard_id_fk": {
1814
+ "name": "wizard_file_wizard_id_wizard_id_fk",
1815
+ "tableFrom": "wizard_file",
1816
+ "tableTo": "wizard",
1817
+ "columnsFrom": [
1818
+ "wizard_id"
1819
+ ],
1820
+ "columnsTo": [
1821
+ "id"
1822
+ ],
1823
+ "onDelete": "cascade",
1824
+ "onUpdate": "no action"
1825
+ }
1826
+ },
1827
+ "compositePrimaryKeys": {
1828
+ "wizard_file_wizard_id_path_pk": {
1829
+ "columns": [
1830
+ "wizard_id",
1831
+ "path"
1832
+ ],
1833
+ "name": "wizard_file_wizard_id_path_pk"
1834
+ }
1835
+ },
1836
+ "uniqueConstraints": {},
1837
+ "checkConstraints": {}
1838
+ },
1839
+ "wizard_message": {
1840
+ "name": "wizard_message",
1841
+ "columns": {
1842
+ "id": {
1843
+ "name": "id",
1844
+ "type": "text",
1845
+ "primaryKey": true,
1846
+ "notNull": true,
1847
+ "autoincrement": false
1848
+ },
1849
+ "wizard_id": {
1850
+ "name": "wizard_id",
1851
+ "type": "text",
1852
+ "primaryKey": false,
1853
+ "notNull": true,
1854
+ "autoincrement": false
1855
+ },
1856
+ "role": {
1857
+ "name": "role",
1858
+ "type": "text",
1859
+ "primaryKey": false,
1860
+ "notNull": true,
1861
+ "autoincrement": false
1862
+ },
1863
+ "content": {
1864
+ "name": "content",
1865
+ "type": "text",
1866
+ "primaryKey": false,
1867
+ "notNull": true,
1868
+ "autoincrement": false
1869
+ },
1870
+ "changed": {
1871
+ "name": "changed",
1872
+ "type": "integer",
1873
+ "primaryKey": false,
1874
+ "notNull": true,
1875
+ "autoincrement": false,
1876
+ "default": false
1877
+ },
1878
+ "source": {
1879
+ "name": "source",
1880
+ "type": "text",
1881
+ "primaryKey": false,
1882
+ "notNull": true,
1883
+ "autoincrement": false,
1884
+ "default": "'studio'"
1885
+ },
1886
+ "client": {
1887
+ "name": "client",
1888
+ "type": "text",
1889
+ "primaryKey": false,
1890
+ "notNull": false,
1891
+ "autoincrement": false
1892
+ },
1893
+ "created_at": {
1894
+ "name": "created_at",
1895
+ "type": "integer",
1896
+ "primaryKey": false,
1897
+ "notNull": true,
1898
+ "autoincrement": false,
1899
+ "default": "(unixepoch() * 1000)"
1900
+ }
1901
+ },
1902
+ "indexes": {
1903
+ "wizard_message_wizard": {
1904
+ "name": "wizard_message_wizard",
1905
+ "columns": [
1906
+ "wizard_id",
1907
+ "created_at"
1908
+ ],
1909
+ "isUnique": false
1910
+ }
1911
+ },
1912
+ "foreignKeys": {
1913
+ "wizard_message_wizard_id_wizard_id_fk": {
1914
+ "name": "wizard_message_wizard_id_wizard_id_fk",
1915
+ "tableFrom": "wizard_message",
1916
+ "tableTo": "wizard",
1917
+ "columnsFrom": [
1918
+ "wizard_id"
1919
+ ],
1920
+ "columnsTo": [
1921
+ "id"
1922
+ ],
1923
+ "onDelete": "cascade",
1924
+ "onUpdate": "no action"
1925
+ }
1926
+ },
1927
+ "compositePrimaryKeys": {},
1928
+ "uniqueConstraints": {},
1929
+ "checkConstraints": {}
1930
+ },
1931
+ "wizard_version": {
1932
+ "name": "wizard_version",
1933
+ "columns": {
1934
+ "id": {
1935
+ "name": "id",
1936
+ "type": "text",
1937
+ "primaryKey": true,
1938
+ "notNull": true,
1939
+ "autoincrement": false
1940
+ },
1941
+ "wizard_id": {
1942
+ "name": "wizard_id",
1943
+ "type": "text",
1944
+ "primaryKey": false,
1945
+ "notNull": true,
1946
+ "autoincrement": false
1947
+ },
1948
+ "version": {
1949
+ "name": "version",
1950
+ "type": "integer",
1951
+ "primaryKey": false,
1952
+ "notNull": true,
1953
+ "autoincrement": false
1954
+ },
1955
+ "definition": {
1956
+ "name": "definition",
1957
+ "type": "text",
1958
+ "primaryKey": false,
1959
+ "notNull": true,
1960
+ "autoincrement": false
1961
+ },
1962
+ "files": {
1963
+ "name": "files",
1964
+ "type": "text",
1965
+ "primaryKey": false,
1966
+ "notNull": true,
1967
+ "autoincrement": false,
1968
+ "default": "'[]'"
1969
+ },
1970
+ "created_at": {
1971
+ "name": "created_at",
1972
+ "type": "integer",
1973
+ "primaryKey": false,
1974
+ "notNull": true,
1975
+ "autoincrement": false,
1976
+ "default": "(unixepoch() * 1000)"
1977
+ }
1978
+ },
1979
+ "indexes": {
1980
+ "wizard_version_n": {
1981
+ "name": "wizard_version_n",
1982
+ "columns": [
1983
+ "wizard_id",
1984
+ "version"
1985
+ ],
1986
+ "isUnique": true
1987
+ }
1988
+ },
1989
+ "foreignKeys": {
1990
+ "wizard_version_wizard_id_wizard_id_fk": {
1991
+ "name": "wizard_version_wizard_id_wizard_id_fk",
1992
+ "tableFrom": "wizard_version",
1993
+ "tableTo": "wizard",
1994
+ "columnsFrom": [
1995
+ "wizard_id"
1996
+ ],
1997
+ "columnsTo": [
1998
+ "id"
1999
+ ],
2000
+ "onDelete": "cascade",
2001
+ "onUpdate": "no action"
2002
+ }
2003
+ },
2004
+ "compositePrimaryKeys": {},
2005
+ "uniqueConstraints": {},
2006
+ "checkConstraints": {}
2007
+ }
2008
+ },
2009
+ "views": {},
2010
+ "enums": {},
2011
+ "_meta": {
2012
+ "schemas": {},
2013
+ "tables": {},
2014
+ "columns": {}
2015
+ },
2016
+ "internal": {
2017
+ "indexes": {}
2018
+ }
2019
+ }