wizards 0.2.8 → 0.2.9

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 (60) hide show
  1. package/apps/runtime/dist/agents/project-assistant.js +16 -2
  2. package/apps/runtime/dist/agents/website.js +48 -10
  3. package/apps/runtime/dist/app.js +2 -0
  4. package/apps/runtime/dist/db/control-schema.js +18 -1
  5. package/apps/runtime/dist/db/migrations/control/0007_common_the_hand.sql +15 -0
  6. package/apps/runtime/dist/db/migrations/control/meta/0007_snapshot.json +460 -0
  7. package/apps/runtime/dist/db/migrations/control/meta/_journal.json +7 -0
  8. package/apps/runtime/dist/db/migrations/tenant/0006_hard_war_machine.sql +30 -0
  9. package/apps/runtime/dist/db/migrations/tenant/meta/0006_snapshot.json +1696 -0
  10. package/apps/runtime/dist/db/migrations/tenant/meta/_journal.json +7 -0
  11. package/apps/runtime/dist/db/schema.js +12 -6
  12. package/apps/runtime/dist/engine/steps.js +3 -0
  13. package/apps/runtime/dist/env.js +2 -0
  14. package/apps/runtime/dist/index.js +2 -0
  15. package/apps/runtime/dist/plugins/events.js +37 -14
  16. package/apps/runtime/dist/plugins/jobs.js +64 -0
  17. package/apps/runtime/dist/plugins/loader.js +67 -4
  18. package/apps/runtime/dist/plugins/public.js +31 -0
  19. package/apps/runtime/dist/plugins/registry.js +5 -0
  20. package/apps/runtime/dist/routes/plugin-public.js +59 -0
  21. package/apps/runtime/dist/routes/plugins.js +1 -1
  22. package/apps/runtime/dist/routes/studio.js +3 -0
  23. package/apps/runtime/dist/services/project-files.js +4 -0
  24. package/apps/runtime/dist/services/project-index.js +69 -9
  25. package/apps/runtime/dist/services/projects.js +7 -1
  26. package/apps/runtime/dist/services/spaces.js +2 -0
  27. package/apps/runtime/dist/tools/index.js +3 -2
  28. package/apps/runtime/dist/tools/plugin.js +89 -17
  29. package/apps/runtime/dist/tools/project.js +39 -31
  30. package/apps/web/dist/assets/Account-ZAqYVN9S.js +1 -0
  31. package/apps/web/dist/assets/{ChangelogDialog-BNQ9yup8.js → ChangelogDialog-CzdNuUMU.js} +1 -1
  32. package/apps/web/dist/assets/{ChatPanel-CtE1wcUD.js → ChatPanel-CDkHMh5g.js} +1 -1
  33. package/apps/web/dist/assets/{EditorPage-CAxamSak.js → EditorPage-D4mertxP.js} +2 -2
  34. package/apps/web/dist/assets/{FlowPreview-B3IxmikV.js → FlowPreview-DWYKllel.js} +1 -1
  35. package/apps/web/dist/assets/{Harness-Bo-kwm1H.js → Harness-WJ0jpIl3.js} +1 -1
  36. package/apps/web/dist/assets/{HomePage-BdIa2zcg.js → HomePage-2Zn7et7Z.js} +1 -1
  37. package/apps/web/dist/assets/{ImportWizard-DMea5ZH1.js → ImportWizard-Dn7AiRgV.js} +1 -1
  38. package/apps/web/dist/assets/{LocalRuntime-DFswQjxc.js → LocalRuntime-BggRFDJt.js} +1 -1
  39. package/apps/web/dist/assets/{NewWizardPage-Cnb6UYme.js → NewWizardPage-k-xPHAwe.js} +2 -2
  40. package/apps/web/dist/assets/ProjectPage-CZgR1dQj.js +2 -0
  41. package/apps/web/dist/assets/{PublicRunner-CIHEMLlN.js → PublicRunner-BsvhBQMD.js} +1 -1
  42. package/apps/web/dist/assets/{RunnerView-COKGppwq.js → RunnerView-0srHaE2T.js} +1 -1
  43. package/apps/web/dist/assets/SettingsPage-CNsK0n6L.js +1 -0
  44. package/apps/web/dist/assets/{SetupPage-Bk4qXYZV.js → SetupPage-BXQ6wfWP.js} +1 -1
  45. package/apps/web/dist/assets/{SharePage-ChEtCkhn.js → SharePage-CA8uuk9K.js} +1 -1
  46. package/apps/web/dist/assets/changelog-D7O5icPX.js +1 -0
  47. package/apps/web/dist/assets/{esm-Rtjq9ReB.js → esm-BbARZ7EE.js} +1 -1
  48. package/apps/web/dist/assets/index-BQQihL4r.js +10 -0
  49. package/apps/web/dist/assets/{meta-MVWkLr9H.js → meta-Dsb9LZTu.js} +1 -1
  50. package/apps/web/dist/assets/{outputs-s8BpXH6V.js → outputs-C806GWxt.js} +1 -1
  51. package/apps/web/dist/index.html +1 -1
  52. package/node_modules/@engenty-wizards/plugin-sdk/dist/index.d.ts +183 -0
  53. package/node_modules/@engenty-wizards/plugin-sdk/dist/studio.d.ts +48 -3
  54. package/node_modules/@engenty-wizards/shared/dist/projects.d.ts +7 -1
  55. package/package.json +1 -1
  56. package/apps/web/dist/assets/Account-YJEQEo5k.js +0 -1
  57. package/apps/web/dist/assets/ProjectPage-CR_FIUya.js +0 -2
  58. package/apps/web/dist/assets/SettingsPage-BqAogRSI.js +0 -1
  59. package/apps/web/dist/assets/changelog-C03GWYid.js +0 -1
  60. package/apps/web/dist/assets/index-BAQ2e4is.js +0 -10
@@ -0,0 +1,1696 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "657ea358-ada0-4714-97e2-666c83f82e46",
5
+ "prevId": "d8315348-6847-4a02-b6b8-684510b89cb9",
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
+ "asset_id": {
901
+ "name": "asset_id",
902
+ "type": "text",
903
+ "primaryKey": false,
904
+ "notNull": false,
905
+ "autoincrement": false
906
+ },
907
+ "created_at": {
908
+ "name": "created_at",
909
+ "type": "integer",
910
+ "primaryKey": false,
911
+ "notNull": true,
912
+ "autoincrement": false,
913
+ "default": "(unixepoch() * 1000)"
914
+ }
915
+ },
916
+ "indexes": {
917
+ "run_event_run": {
918
+ "name": "run_event_run",
919
+ "columns": [
920
+ "run_id",
921
+ "id"
922
+ ],
923
+ "isUnique": false
924
+ }
925
+ },
926
+ "foreignKeys": {
927
+ "run_event_run_id_run_id_fk": {
928
+ "name": "run_event_run_id_run_id_fk",
929
+ "tableFrom": "run_event",
930
+ "tableTo": "run",
931
+ "columnsFrom": [
932
+ "run_id"
933
+ ],
934
+ "columnsTo": [
935
+ "id"
936
+ ],
937
+ "onDelete": "cascade",
938
+ "onUpdate": "no action"
939
+ }
940
+ },
941
+ "compositePrimaryKeys": {},
942
+ "uniqueConstraints": {},
943
+ "checkConstraints": {}
944
+ },
945
+ "store_file": {
946
+ "name": "store_file",
947
+ "columns": {
948
+ "wizard_id": {
949
+ "name": "wizard_id",
950
+ "type": "text",
951
+ "primaryKey": false,
952
+ "notNull": true,
953
+ "autoincrement": false
954
+ },
955
+ "holder": {
956
+ "name": "holder",
957
+ "type": "text",
958
+ "primaryKey": false,
959
+ "notNull": true,
960
+ "autoincrement": false
961
+ },
962
+ "path": {
963
+ "name": "path",
964
+ "type": "text",
965
+ "primaryKey": false,
966
+ "notNull": true,
967
+ "autoincrement": false
968
+ },
969
+ "hash": {
970
+ "name": "hash",
971
+ "type": "text",
972
+ "primaryKey": false,
973
+ "notNull": true,
974
+ "autoincrement": false
975
+ },
976
+ "mime": {
977
+ "name": "mime",
978
+ "type": "text",
979
+ "primaryKey": false,
980
+ "notNull": true,
981
+ "autoincrement": false
982
+ },
983
+ "size": {
984
+ "name": "size",
985
+ "type": "integer",
986
+ "primaryKey": false,
987
+ "notNull": true,
988
+ "autoincrement": false
989
+ },
990
+ "source": {
991
+ "name": "source",
992
+ "type": "text",
993
+ "primaryKey": false,
994
+ "notNull": false,
995
+ "autoincrement": false
996
+ },
997
+ "updated_at": {
998
+ "name": "updated_at",
999
+ "type": "integer",
1000
+ "primaryKey": false,
1001
+ "notNull": true,
1002
+ "autoincrement": false,
1003
+ "default": "(unixepoch() * 1000)"
1004
+ }
1005
+ },
1006
+ "indexes": {},
1007
+ "foreignKeys": {
1008
+ "store_file_wizard_id_wizard_id_fk": {
1009
+ "name": "store_file_wizard_id_wizard_id_fk",
1010
+ "tableFrom": "store_file",
1011
+ "tableTo": "wizard",
1012
+ "columnsFrom": [
1013
+ "wizard_id"
1014
+ ],
1015
+ "columnsTo": [
1016
+ "id"
1017
+ ],
1018
+ "onDelete": "cascade",
1019
+ "onUpdate": "no action"
1020
+ }
1021
+ },
1022
+ "compositePrimaryKeys": {
1023
+ "store_file_wizard_id_holder_path_pk": {
1024
+ "columns": [
1025
+ "wizard_id",
1026
+ "holder",
1027
+ "path"
1028
+ ],
1029
+ "name": "store_file_wizard_id_holder_path_pk"
1030
+ }
1031
+ },
1032
+ "uniqueConstraints": {},
1033
+ "checkConstraints": {}
1034
+ },
1035
+ "store_holder": {
1036
+ "name": "store_holder",
1037
+ "columns": {
1038
+ "wizard_id": {
1039
+ "name": "wizard_id",
1040
+ "type": "text",
1041
+ "primaryKey": false,
1042
+ "notNull": true,
1043
+ "autoincrement": false
1044
+ },
1045
+ "holder": {
1046
+ "name": "holder",
1047
+ "type": "text",
1048
+ "primaryKey": false,
1049
+ "notNull": true,
1050
+ "autoincrement": false
1051
+ },
1052
+ "used_at": {
1053
+ "name": "used_at",
1054
+ "type": "integer",
1055
+ "primaryKey": false,
1056
+ "notNull": true,
1057
+ "autoincrement": false,
1058
+ "default": "(unixepoch() * 1000)"
1059
+ }
1060
+ },
1061
+ "indexes": {
1062
+ "store_holder_used": {
1063
+ "name": "store_holder_used",
1064
+ "columns": [
1065
+ "used_at"
1066
+ ],
1067
+ "isUnique": false
1068
+ }
1069
+ },
1070
+ "foreignKeys": {
1071
+ "store_holder_wizard_id_wizard_id_fk": {
1072
+ "name": "store_holder_wizard_id_wizard_id_fk",
1073
+ "tableFrom": "store_holder",
1074
+ "tableTo": "wizard",
1075
+ "columnsFrom": [
1076
+ "wizard_id"
1077
+ ],
1078
+ "columnsTo": [
1079
+ "id"
1080
+ ],
1081
+ "onDelete": "cascade",
1082
+ "onUpdate": "no action"
1083
+ }
1084
+ },
1085
+ "compositePrimaryKeys": {
1086
+ "store_holder_wizard_id_holder_pk": {
1087
+ "columns": [
1088
+ "wizard_id",
1089
+ "holder"
1090
+ ],
1091
+ "name": "store_holder_wizard_id_holder_pk"
1092
+ }
1093
+ },
1094
+ "uniqueConstraints": {},
1095
+ "checkConstraints": {}
1096
+ },
1097
+ "store_row": {
1098
+ "name": "store_row",
1099
+ "columns": {
1100
+ "id": {
1101
+ "name": "id",
1102
+ "type": "text",
1103
+ "primaryKey": true,
1104
+ "notNull": true,
1105
+ "autoincrement": false
1106
+ },
1107
+ "wizard_id": {
1108
+ "name": "wizard_id",
1109
+ "type": "text",
1110
+ "primaryKey": false,
1111
+ "notNull": true,
1112
+ "autoincrement": false
1113
+ },
1114
+ "holder": {
1115
+ "name": "holder",
1116
+ "type": "text",
1117
+ "primaryKey": false,
1118
+ "notNull": true,
1119
+ "autoincrement": false
1120
+ },
1121
+ "list": {
1122
+ "name": "list",
1123
+ "type": "text",
1124
+ "primaryKey": false,
1125
+ "notNull": true,
1126
+ "autoincrement": false
1127
+ },
1128
+ "key": {
1129
+ "name": "key",
1130
+ "type": "text",
1131
+ "primaryKey": false,
1132
+ "notNull": false,
1133
+ "autoincrement": false
1134
+ },
1135
+ "cells": {
1136
+ "name": "cells",
1137
+ "type": "text",
1138
+ "primaryKey": false,
1139
+ "notNull": true,
1140
+ "autoincrement": false
1141
+ },
1142
+ "created_at": {
1143
+ "name": "created_at",
1144
+ "type": "integer",
1145
+ "primaryKey": false,
1146
+ "notNull": true,
1147
+ "autoincrement": false,
1148
+ "default": "(unixepoch() * 1000)"
1149
+ },
1150
+ "updated_at": {
1151
+ "name": "updated_at",
1152
+ "type": "integer",
1153
+ "primaryKey": false,
1154
+ "notNull": true,
1155
+ "autoincrement": false,
1156
+ "default": "(unixepoch() * 1000)"
1157
+ }
1158
+ },
1159
+ "indexes": {
1160
+ "store_row_key": {
1161
+ "name": "store_row_key",
1162
+ "columns": [
1163
+ "wizard_id",
1164
+ "holder",
1165
+ "list",
1166
+ "key"
1167
+ ],
1168
+ "isUnique": true
1169
+ },
1170
+ "store_row_list": {
1171
+ "name": "store_row_list",
1172
+ "columns": [
1173
+ "wizard_id",
1174
+ "holder",
1175
+ "list",
1176
+ "created_at"
1177
+ ],
1178
+ "isUnique": false
1179
+ }
1180
+ },
1181
+ "foreignKeys": {
1182
+ "store_row_wizard_id_wizard_id_fk": {
1183
+ "name": "store_row_wizard_id_wizard_id_fk",
1184
+ "tableFrom": "store_row",
1185
+ "tableTo": "wizard",
1186
+ "columnsFrom": [
1187
+ "wizard_id"
1188
+ ],
1189
+ "columnsTo": [
1190
+ "id"
1191
+ ],
1192
+ "onDelete": "cascade",
1193
+ "onUpdate": "no action"
1194
+ }
1195
+ },
1196
+ "compositePrimaryKeys": {},
1197
+ "uniqueConstraints": {},
1198
+ "checkConstraints": {}
1199
+ },
1200
+ "store_secret": {
1201
+ "name": "store_secret",
1202
+ "columns": {
1203
+ "id": {
1204
+ "name": "id",
1205
+ "type": "text",
1206
+ "primaryKey": true,
1207
+ "notNull": true,
1208
+ "autoincrement": false
1209
+ },
1210
+ "wizard_id": {
1211
+ "name": "wizard_id",
1212
+ "type": "text",
1213
+ "primaryKey": false,
1214
+ "notNull": true,
1215
+ "autoincrement": false
1216
+ },
1217
+ "holder": {
1218
+ "name": "holder",
1219
+ "type": "text",
1220
+ "primaryKey": false,
1221
+ "notNull": true,
1222
+ "autoincrement": false
1223
+ },
1224
+ "slot": {
1225
+ "name": "slot",
1226
+ "type": "text",
1227
+ "primaryKey": false,
1228
+ "notNull": true,
1229
+ "autoincrement": false
1230
+ },
1231
+ "provider": {
1232
+ "name": "provider",
1233
+ "type": "text",
1234
+ "primaryKey": false,
1235
+ "notNull": true,
1236
+ "autoincrement": false
1237
+ },
1238
+ "label": {
1239
+ "name": "label",
1240
+ "type": "text",
1241
+ "primaryKey": false,
1242
+ "notNull": true,
1243
+ "autoincrement": false
1244
+ },
1245
+ "data": {
1246
+ "name": "data",
1247
+ "type": "text",
1248
+ "primaryKey": false,
1249
+ "notNull": true,
1250
+ "autoincrement": false
1251
+ },
1252
+ "created_at": {
1253
+ "name": "created_at",
1254
+ "type": "integer",
1255
+ "primaryKey": false,
1256
+ "notNull": true,
1257
+ "autoincrement": false,
1258
+ "default": "(unixepoch() * 1000)"
1259
+ },
1260
+ "updated_at": {
1261
+ "name": "updated_at",
1262
+ "type": "integer",
1263
+ "primaryKey": false,
1264
+ "notNull": true,
1265
+ "autoincrement": false,
1266
+ "default": "(unixepoch() * 1000)"
1267
+ }
1268
+ },
1269
+ "indexes": {
1270
+ "store_secret_slot": {
1271
+ "name": "store_secret_slot",
1272
+ "columns": [
1273
+ "wizard_id",
1274
+ "holder",
1275
+ "slot"
1276
+ ],
1277
+ "isUnique": true
1278
+ }
1279
+ },
1280
+ "foreignKeys": {
1281
+ "store_secret_wizard_id_wizard_id_fk": {
1282
+ "name": "store_secret_wizard_id_wizard_id_fk",
1283
+ "tableFrom": "store_secret",
1284
+ "tableTo": "wizard",
1285
+ "columnsFrom": [
1286
+ "wizard_id"
1287
+ ],
1288
+ "columnsTo": [
1289
+ "id"
1290
+ ],
1291
+ "onDelete": "cascade",
1292
+ "onUpdate": "no action"
1293
+ }
1294
+ },
1295
+ "compositePrimaryKeys": {},
1296
+ "uniqueConstraints": {},
1297
+ "checkConstraints": {}
1298
+ },
1299
+ "wizard": {
1300
+ "name": "wizard",
1301
+ "columns": {
1302
+ "id": {
1303
+ "name": "id",
1304
+ "type": "text",
1305
+ "primaryKey": true,
1306
+ "notNull": true,
1307
+ "autoincrement": false
1308
+ },
1309
+ "project_id": {
1310
+ "name": "project_id",
1311
+ "type": "text",
1312
+ "primaryKey": false,
1313
+ "notNull": true,
1314
+ "autoincrement": false
1315
+ },
1316
+ "tenant_id": {
1317
+ "name": "tenant_id",
1318
+ "type": "text",
1319
+ "primaryKey": false,
1320
+ "notNull": true,
1321
+ "autoincrement": false
1322
+ },
1323
+ "title": {
1324
+ "name": "title",
1325
+ "type": "text",
1326
+ "primaryKey": false,
1327
+ "notNull": true,
1328
+ "autoincrement": false
1329
+ },
1330
+ "draft": {
1331
+ "name": "draft",
1332
+ "type": "text",
1333
+ "primaryKey": false,
1334
+ "notNull": true,
1335
+ "autoincrement": false
1336
+ },
1337
+ "published_version": {
1338
+ "name": "published_version",
1339
+ "type": "integer",
1340
+ "primaryKey": false,
1341
+ "notNull": false,
1342
+ "autoincrement": false
1343
+ },
1344
+ "share_token": {
1345
+ "name": "share_token",
1346
+ "type": "text",
1347
+ "primaryKey": false,
1348
+ "notNull": true,
1349
+ "autoincrement": false
1350
+ },
1351
+ "share_enabled": {
1352
+ "name": "share_enabled",
1353
+ "type": "integer",
1354
+ "primaryKey": false,
1355
+ "notNull": true,
1356
+ "autoincrement": false,
1357
+ "default": true
1358
+ },
1359
+ "daily_run_limit": {
1360
+ "name": "daily_run_limit",
1361
+ "type": "integer",
1362
+ "primaryKey": false,
1363
+ "notNull": true,
1364
+ "autoincrement": false,
1365
+ "default": 50
1366
+ },
1367
+ "starter": {
1368
+ "name": "starter",
1369
+ "type": "text",
1370
+ "primaryKey": false,
1371
+ "notNull": false,
1372
+ "autoincrement": false
1373
+ },
1374
+ "starter_revision": {
1375
+ "name": "starter_revision",
1376
+ "type": "integer",
1377
+ "primaryKey": false,
1378
+ "notNull": false,
1379
+ "autoincrement": false
1380
+ },
1381
+ "revision": {
1382
+ "name": "revision",
1383
+ "type": "integer",
1384
+ "primaryKey": false,
1385
+ "notNull": true,
1386
+ "autoincrement": false,
1387
+ "default": 0
1388
+ },
1389
+ "created_at": {
1390
+ "name": "created_at",
1391
+ "type": "integer",
1392
+ "primaryKey": false,
1393
+ "notNull": true,
1394
+ "autoincrement": false,
1395
+ "default": "(unixepoch() * 1000)"
1396
+ },
1397
+ "updated_at": {
1398
+ "name": "updated_at",
1399
+ "type": "integer",
1400
+ "primaryKey": false,
1401
+ "notNull": true,
1402
+ "autoincrement": false,
1403
+ "default": "(unixepoch() * 1000)"
1404
+ }
1405
+ },
1406
+ "indexes": {
1407
+ "wizard_share_token": {
1408
+ "name": "wizard_share_token",
1409
+ "columns": [
1410
+ "share_token"
1411
+ ],
1412
+ "isUnique": true
1413
+ },
1414
+ "wizard_project": {
1415
+ "name": "wizard_project",
1416
+ "columns": [
1417
+ "project_id"
1418
+ ],
1419
+ "isUnique": false
1420
+ }
1421
+ },
1422
+ "foreignKeys": {
1423
+ "wizard_project_id_project_id_fk": {
1424
+ "name": "wizard_project_id_project_id_fk",
1425
+ "tableFrom": "wizard",
1426
+ "tableTo": "project",
1427
+ "columnsFrom": [
1428
+ "project_id"
1429
+ ],
1430
+ "columnsTo": [
1431
+ "id"
1432
+ ],
1433
+ "onDelete": "cascade",
1434
+ "onUpdate": "no action"
1435
+ }
1436
+ },
1437
+ "compositePrimaryKeys": {},
1438
+ "uniqueConstraints": {},
1439
+ "checkConstraints": {}
1440
+ },
1441
+ "wizard_file": {
1442
+ "name": "wizard_file",
1443
+ "columns": {
1444
+ "wizard_id": {
1445
+ "name": "wizard_id",
1446
+ "type": "text",
1447
+ "primaryKey": false,
1448
+ "notNull": true,
1449
+ "autoincrement": false
1450
+ },
1451
+ "path": {
1452
+ "name": "path",
1453
+ "type": "text",
1454
+ "primaryKey": false,
1455
+ "notNull": true,
1456
+ "autoincrement": false
1457
+ },
1458
+ "hash": {
1459
+ "name": "hash",
1460
+ "type": "text",
1461
+ "primaryKey": false,
1462
+ "notNull": true,
1463
+ "autoincrement": false
1464
+ },
1465
+ "mime": {
1466
+ "name": "mime",
1467
+ "type": "text",
1468
+ "primaryKey": false,
1469
+ "notNull": true,
1470
+ "autoincrement": false
1471
+ },
1472
+ "size": {
1473
+ "name": "size",
1474
+ "type": "integer",
1475
+ "primaryKey": false,
1476
+ "notNull": true,
1477
+ "autoincrement": false
1478
+ },
1479
+ "updated_at": {
1480
+ "name": "updated_at",
1481
+ "type": "integer",
1482
+ "primaryKey": false,
1483
+ "notNull": true,
1484
+ "autoincrement": false,
1485
+ "default": "(unixepoch() * 1000)"
1486
+ }
1487
+ },
1488
+ "indexes": {},
1489
+ "foreignKeys": {
1490
+ "wizard_file_wizard_id_wizard_id_fk": {
1491
+ "name": "wizard_file_wizard_id_wizard_id_fk",
1492
+ "tableFrom": "wizard_file",
1493
+ "tableTo": "wizard",
1494
+ "columnsFrom": [
1495
+ "wizard_id"
1496
+ ],
1497
+ "columnsTo": [
1498
+ "id"
1499
+ ],
1500
+ "onDelete": "cascade",
1501
+ "onUpdate": "no action"
1502
+ }
1503
+ },
1504
+ "compositePrimaryKeys": {
1505
+ "wizard_file_wizard_id_path_pk": {
1506
+ "columns": [
1507
+ "wizard_id",
1508
+ "path"
1509
+ ],
1510
+ "name": "wizard_file_wizard_id_path_pk"
1511
+ }
1512
+ },
1513
+ "uniqueConstraints": {},
1514
+ "checkConstraints": {}
1515
+ },
1516
+ "wizard_message": {
1517
+ "name": "wizard_message",
1518
+ "columns": {
1519
+ "id": {
1520
+ "name": "id",
1521
+ "type": "text",
1522
+ "primaryKey": true,
1523
+ "notNull": true,
1524
+ "autoincrement": false
1525
+ },
1526
+ "wizard_id": {
1527
+ "name": "wizard_id",
1528
+ "type": "text",
1529
+ "primaryKey": false,
1530
+ "notNull": true,
1531
+ "autoincrement": false
1532
+ },
1533
+ "role": {
1534
+ "name": "role",
1535
+ "type": "text",
1536
+ "primaryKey": false,
1537
+ "notNull": true,
1538
+ "autoincrement": false
1539
+ },
1540
+ "content": {
1541
+ "name": "content",
1542
+ "type": "text",
1543
+ "primaryKey": false,
1544
+ "notNull": true,
1545
+ "autoincrement": false
1546
+ },
1547
+ "changed": {
1548
+ "name": "changed",
1549
+ "type": "integer",
1550
+ "primaryKey": false,
1551
+ "notNull": true,
1552
+ "autoincrement": false,
1553
+ "default": false
1554
+ },
1555
+ "source": {
1556
+ "name": "source",
1557
+ "type": "text",
1558
+ "primaryKey": false,
1559
+ "notNull": true,
1560
+ "autoincrement": false,
1561
+ "default": "'studio'"
1562
+ },
1563
+ "client": {
1564
+ "name": "client",
1565
+ "type": "text",
1566
+ "primaryKey": false,
1567
+ "notNull": false,
1568
+ "autoincrement": false
1569
+ },
1570
+ "created_at": {
1571
+ "name": "created_at",
1572
+ "type": "integer",
1573
+ "primaryKey": false,
1574
+ "notNull": true,
1575
+ "autoincrement": false,
1576
+ "default": "(unixepoch() * 1000)"
1577
+ }
1578
+ },
1579
+ "indexes": {
1580
+ "wizard_message_wizard": {
1581
+ "name": "wizard_message_wizard",
1582
+ "columns": [
1583
+ "wizard_id",
1584
+ "created_at"
1585
+ ],
1586
+ "isUnique": false
1587
+ }
1588
+ },
1589
+ "foreignKeys": {
1590
+ "wizard_message_wizard_id_wizard_id_fk": {
1591
+ "name": "wizard_message_wizard_id_wizard_id_fk",
1592
+ "tableFrom": "wizard_message",
1593
+ "tableTo": "wizard",
1594
+ "columnsFrom": [
1595
+ "wizard_id"
1596
+ ],
1597
+ "columnsTo": [
1598
+ "id"
1599
+ ],
1600
+ "onDelete": "cascade",
1601
+ "onUpdate": "no action"
1602
+ }
1603
+ },
1604
+ "compositePrimaryKeys": {},
1605
+ "uniqueConstraints": {},
1606
+ "checkConstraints": {}
1607
+ },
1608
+ "wizard_version": {
1609
+ "name": "wizard_version",
1610
+ "columns": {
1611
+ "id": {
1612
+ "name": "id",
1613
+ "type": "text",
1614
+ "primaryKey": true,
1615
+ "notNull": true,
1616
+ "autoincrement": false
1617
+ },
1618
+ "wizard_id": {
1619
+ "name": "wizard_id",
1620
+ "type": "text",
1621
+ "primaryKey": false,
1622
+ "notNull": true,
1623
+ "autoincrement": false
1624
+ },
1625
+ "version": {
1626
+ "name": "version",
1627
+ "type": "integer",
1628
+ "primaryKey": false,
1629
+ "notNull": true,
1630
+ "autoincrement": false
1631
+ },
1632
+ "definition": {
1633
+ "name": "definition",
1634
+ "type": "text",
1635
+ "primaryKey": false,
1636
+ "notNull": true,
1637
+ "autoincrement": false
1638
+ },
1639
+ "files": {
1640
+ "name": "files",
1641
+ "type": "text",
1642
+ "primaryKey": false,
1643
+ "notNull": true,
1644
+ "autoincrement": false,
1645
+ "default": "'[]'"
1646
+ },
1647
+ "created_at": {
1648
+ "name": "created_at",
1649
+ "type": "integer",
1650
+ "primaryKey": false,
1651
+ "notNull": true,
1652
+ "autoincrement": false,
1653
+ "default": "(unixepoch() * 1000)"
1654
+ }
1655
+ },
1656
+ "indexes": {
1657
+ "wizard_version_n": {
1658
+ "name": "wizard_version_n",
1659
+ "columns": [
1660
+ "wizard_id",
1661
+ "version"
1662
+ ],
1663
+ "isUnique": true
1664
+ }
1665
+ },
1666
+ "foreignKeys": {
1667
+ "wizard_version_wizard_id_wizard_id_fk": {
1668
+ "name": "wizard_version_wizard_id_wizard_id_fk",
1669
+ "tableFrom": "wizard_version",
1670
+ "tableTo": "wizard",
1671
+ "columnsFrom": [
1672
+ "wizard_id"
1673
+ ],
1674
+ "columnsTo": [
1675
+ "id"
1676
+ ],
1677
+ "onDelete": "cascade",
1678
+ "onUpdate": "no action"
1679
+ }
1680
+ },
1681
+ "compositePrimaryKeys": {},
1682
+ "uniqueConstraints": {},
1683
+ "checkConstraints": {}
1684
+ }
1685
+ },
1686
+ "views": {},
1687
+ "enums": {},
1688
+ "_meta": {
1689
+ "schemas": {},
1690
+ "tables": {},
1691
+ "columns": {}
1692
+ },
1693
+ "internal": {
1694
+ "indexes": {}
1695
+ }
1696
+ }