wizards 0.2.2 → 0.2.4

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 (78) hide show
  1. package/apps/runtime/dist/app.js +44 -0
  2. package/apps/runtime/dist/auth/account.js +16 -2
  3. package/apps/runtime/dist/auth/index.js +14 -1
  4. package/apps/runtime/dist/connectors/external.js +5 -0
  5. package/apps/runtime/dist/db/client.js +24 -3
  6. package/apps/runtime/dist/db/control-schema.js +12 -3
  7. package/apps/runtime/dist/db/migrations/control/0005_chilly_oracle.sql +1 -0
  8. package/apps/runtime/dist/db/migrations/control/0006_sleepy_mojo.sql +1 -0
  9. package/apps/runtime/dist/db/migrations/control/meta/0005_snapshot.json +358 -0
  10. package/apps/runtime/dist/db/migrations/control/meta/0006_snapshot.json +365 -0
  11. package/apps/runtime/dist/db/migrations/control/meta/_journal.json +14 -0
  12. package/apps/runtime/dist/db/migrations/tenant/0005_reflective_forgotten_one.sql +2 -0
  13. package/apps/runtime/dist/db/migrations/tenant/meta/0005_snapshot.json +1659 -0
  14. package/apps/runtime/dist/db/migrations/tenant/meta/_journal.json +7 -0
  15. package/apps/runtime/dist/db/schema.js +6 -0
  16. package/apps/runtime/dist/engine/asks.js +2 -0
  17. package/apps/runtime/dist/engine/push.js +58 -0
  18. package/apps/runtime/dist/engine/runner.js +6 -0
  19. package/apps/runtime/dist/env.js +13 -0
  20. package/apps/runtime/dist/index.js +6 -0
  21. package/apps/runtime/dist/limits.js +21 -0
  22. package/apps/runtime/dist/manage.js +16 -3
  23. package/apps/runtime/dist/mcp/tools.js +4 -2
  24. package/apps/runtime/dist/routes/api.js +96 -6
  25. package/apps/runtime/dist/routes/runs.js +68 -2
  26. package/apps/runtime/dist/routes/studio.js +79 -11
  27. package/apps/runtime/dist/services/access.js +62 -0
  28. package/apps/runtime/dist/services/architect.js +3 -2
  29. package/apps/runtime/dist/services/cloud.js +298 -39
  30. package/apps/runtime/dist/services/errors.js +1 -0
  31. package/apps/runtime/dist/services/files.js +53 -4
  32. package/apps/runtime/dist/services/project-files.js +6 -0
  33. package/apps/runtime/dist/services/projects.js +38 -14
  34. package/apps/runtime/dist/services/spaces.js +400 -0
  35. package/apps/runtime/dist/services/wizards.js +19 -8
  36. package/apps/runtime/dist/tenants/control.js +47 -0
  37. package/apps/runtime/dist/update.js +3 -3
  38. package/apps/web/dist/assets/{ChangelogDialog-4HCt88rf.js → ChangelogDialog-lGa0JKY1.js} +1 -1
  39. package/apps/web/dist/assets/ChatPanel-Dk_45uca.js +1 -0
  40. package/apps/web/dist/assets/{CreditsDialog-D3fZRqXH.js → CreditsDialog-BPMWo6tp.js} +1 -1
  41. package/apps/web/dist/assets/EditorPage-Dt4MCcrU.js +2 -0
  42. package/apps/web/dist/assets/{FlowPreview-CjUK5046.js → FlowPreview-gwtUv8-X.js} +1 -1
  43. package/apps/web/dist/assets/HomePage-Bi9FK3_1.js +1 -0
  44. package/apps/web/dist/assets/ImportWizard-D6y4bKlF.js +1 -0
  45. package/apps/web/dist/assets/{LocalRuntime-DupxjXff.js → LocalRuntime-BjzPSsHr.js} +10 -10
  46. package/apps/web/dist/assets/NewWizardPage-2HbCaPSt.js +2 -0
  47. package/apps/web/dist/assets/PublicRunner-Dac_e6wg.js +1 -0
  48. package/apps/web/dist/assets/RunnerView-BC6crf1p.js +2 -0
  49. package/apps/web/dist/assets/SettingsPage-BfXxa4SU.js +2 -0
  50. package/apps/web/dist/assets/{SetupPage-xiqJMR0J.js → SetupPage-CYKVspBJ.js} +1 -1
  51. package/apps/web/dist/assets/{SharePage-C8B9BUSU.js → SharePage-DFIHsNS-.js} +1 -1
  52. package/apps/web/dist/assets/{api-KMi35npD.js → api-BTfKh3La.js} +1 -1
  53. package/apps/web/dist/assets/changelog-CLmll9By.js +1 -0
  54. package/apps/web/dist/assets/index-CIwJmOjo.css +1 -0
  55. package/apps/web/dist/assets/{index-2Ktgo6f1.js → index-DOpyzQiU.js} +3 -3
  56. package/apps/web/dist/assets/{meta-4R1Lnr25.js → meta-BbVhbYf6.js} +1 -1
  57. package/apps/web/dist/assets/oss-credits-Hu4LieLA.js +1 -0
  58. package/apps/web/dist/assets/outputs-n_yhxmMk.js +69 -0
  59. package/apps/web/dist/assets/{session-B6-6VomQ.js → session-D_Zggq_t.js} +1 -1
  60. package/apps/web/dist/assets/type-BMJpS6_D.js +1 -0
  61. package/apps/web/dist/assets/ui-C3bTWmdM.js +1 -0
  62. package/apps/web/dist/index.html +5 -5
  63. package/apps/web/dist/mcp/flow.html +54 -54
  64. package/package.json +1 -1
  65. package/apps/web/dist/assets/ChatPanel-B91fTrzg.js +0 -1
  66. package/apps/web/dist/assets/EditorPage-ZZjb9mGV.js +0 -2
  67. package/apps/web/dist/assets/HomePage-Cn5TCZk7.js +0 -1
  68. package/apps/web/dist/assets/ImportWizard-DiV62Uno.js +0 -1
  69. package/apps/web/dist/assets/NewWizardPage-Bz3PIQGp.js +0 -2
  70. package/apps/web/dist/assets/PublicRunner-Axs1zwqe.js +0 -1
  71. package/apps/web/dist/assets/RunnerView-Bhv6RNME.js +0 -2
  72. package/apps/web/dist/assets/SettingsPage-in_RmI8i.js +0 -2
  73. package/apps/web/dist/assets/changelog-C2LDEzLQ.js +0 -1
  74. package/apps/web/dist/assets/index-B9YVjvVY.css +0 -1
  75. package/apps/web/dist/assets/oss-credits-roB62QJu.js +0 -1
  76. package/apps/web/dist/assets/outputs-Dhqtf-SA.js +0 -69
  77. package/apps/web/dist/assets/type-Bj9H3eOK.js +0 -1
  78. package/apps/web/dist/assets/ui-Cs6lpsmj.js +0 -1
@@ -0,0 +1,1659 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "d8315348-6847-4a02-b6b8-684510b89cb9",
5
+ "prevId": "13dc6cc9-52a3-4a98-9f38-3f43139d1ca4",
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": true,
251
+ "autoincrement": false
252
+ },
253
+ "idx": {
254
+ "name": "idx",
255
+ "type": "integer",
256
+ "primaryKey": false,
257
+ "notNull": true,
258
+ "autoincrement": false
259
+ },
260
+ "text": {
261
+ "name": "text",
262
+ "type": "text",
263
+ "primaryKey": false,
264
+ "notNull": true,
265
+ "autoincrement": false
266
+ },
267
+ "embedding": {
268
+ "name": "embedding",
269
+ "type": "blob",
270
+ "primaryKey": false,
271
+ "notNull": false,
272
+ "autoincrement": false
273
+ },
274
+ "model": {
275
+ "name": "model",
276
+ "type": "text",
277
+ "primaryKey": false,
278
+ "notNull": false,
279
+ "autoincrement": false
280
+ }
281
+ },
282
+ "indexes": {
283
+ "project_chunk_project": {
284
+ "name": "project_chunk_project",
285
+ "columns": [
286
+ "project_id",
287
+ "model"
288
+ ],
289
+ "isUnique": false
290
+ },
291
+ "project_chunk_file": {
292
+ "name": "project_chunk_file",
293
+ "columns": [
294
+ "file_id"
295
+ ],
296
+ "isUnique": false
297
+ }
298
+ },
299
+ "foreignKeys": {
300
+ "project_chunk_project_id_project_id_fk": {
301
+ "name": "project_chunk_project_id_project_id_fk",
302
+ "tableFrom": "project_chunk",
303
+ "tableTo": "project",
304
+ "columnsFrom": [
305
+ "project_id"
306
+ ],
307
+ "columnsTo": [
308
+ "id"
309
+ ],
310
+ "onDelete": "cascade",
311
+ "onUpdate": "no action"
312
+ },
313
+ "project_chunk_file_id_project_file_id_fk": {
314
+ "name": "project_chunk_file_id_project_file_id_fk",
315
+ "tableFrom": "project_chunk",
316
+ "tableTo": "project_file",
317
+ "columnsFrom": [
318
+ "file_id"
319
+ ],
320
+ "columnsTo": [
321
+ "id"
322
+ ],
323
+ "onDelete": "cascade",
324
+ "onUpdate": "no action"
325
+ }
326
+ },
327
+ "compositePrimaryKeys": {},
328
+ "uniqueConstraints": {},
329
+ "checkConstraints": {}
330
+ },
331
+ "project_connector": {
332
+ "name": "project_connector",
333
+ "columns": {
334
+ "project_id": {
335
+ "name": "project_id",
336
+ "type": "text",
337
+ "primaryKey": false,
338
+ "notNull": true,
339
+ "autoincrement": false
340
+ },
341
+ "id": {
342
+ "name": "id",
343
+ "type": "text",
344
+ "primaryKey": false,
345
+ "notNull": true,
346
+ "autoincrement": false
347
+ },
348
+ "record": {
349
+ "name": "record",
350
+ "type": "text",
351
+ "primaryKey": false,
352
+ "notNull": true,
353
+ "autoincrement": false
354
+ },
355
+ "created_at": {
356
+ "name": "created_at",
357
+ "type": "integer",
358
+ "primaryKey": false,
359
+ "notNull": true,
360
+ "autoincrement": false,
361
+ "default": "(unixepoch() * 1000)"
362
+ },
363
+ "updated_at": {
364
+ "name": "updated_at",
365
+ "type": "integer",
366
+ "primaryKey": false,
367
+ "notNull": true,
368
+ "autoincrement": false,
369
+ "default": "(unixepoch() * 1000)"
370
+ }
371
+ },
372
+ "indexes": {},
373
+ "foreignKeys": {
374
+ "project_connector_project_id_project_id_fk": {
375
+ "name": "project_connector_project_id_project_id_fk",
376
+ "tableFrom": "project_connector",
377
+ "tableTo": "project",
378
+ "columnsFrom": [
379
+ "project_id"
380
+ ],
381
+ "columnsTo": [
382
+ "id"
383
+ ],
384
+ "onDelete": "cascade",
385
+ "onUpdate": "no action"
386
+ }
387
+ },
388
+ "compositePrimaryKeys": {
389
+ "project_connector_project_id_id_pk": {
390
+ "columns": [
391
+ "project_id",
392
+ "id"
393
+ ],
394
+ "name": "project_connector_project_id_id_pk"
395
+ }
396
+ },
397
+ "uniqueConstraints": {},
398
+ "checkConstraints": {}
399
+ },
400
+ "project_file": {
401
+ "name": "project_file",
402
+ "columns": {
403
+ "id": {
404
+ "name": "id",
405
+ "type": "text",
406
+ "primaryKey": true,
407
+ "notNull": true,
408
+ "autoincrement": false
409
+ },
410
+ "project_id": {
411
+ "name": "project_id",
412
+ "type": "text",
413
+ "primaryKey": false,
414
+ "notNull": true,
415
+ "autoincrement": false
416
+ },
417
+ "kind": {
418
+ "name": "kind",
419
+ "type": "text",
420
+ "primaryKey": false,
421
+ "notNull": true,
422
+ "autoincrement": false
423
+ },
424
+ "name": {
425
+ "name": "name",
426
+ "type": "text",
427
+ "primaryKey": false,
428
+ "notNull": true,
429
+ "autoincrement": false
430
+ },
431
+ "mime": {
432
+ "name": "mime",
433
+ "type": "text",
434
+ "primaryKey": false,
435
+ "notNull": true,
436
+ "autoincrement": false
437
+ },
438
+ "size": {
439
+ "name": "size",
440
+ "type": "integer",
441
+ "primaryKey": false,
442
+ "notNull": true,
443
+ "autoincrement": false
444
+ },
445
+ "description": {
446
+ "name": "description",
447
+ "type": "text",
448
+ "primaryKey": false,
449
+ "notNull": true,
450
+ "autoincrement": false,
451
+ "default": "''"
452
+ },
453
+ "source": {
454
+ "name": "source",
455
+ "type": "text",
456
+ "primaryKey": false,
457
+ "notNull": false,
458
+ "autoincrement": false
459
+ },
460
+ "position": {
461
+ "name": "position",
462
+ "type": "integer",
463
+ "primaryKey": false,
464
+ "notNull": true,
465
+ "autoincrement": false,
466
+ "default": 0
467
+ },
468
+ "status": {
469
+ "name": "status",
470
+ "type": "text",
471
+ "primaryKey": false,
472
+ "notNull": true,
473
+ "autoincrement": false,
474
+ "default": "'ready'"
475
+ },
476
+ "error": {
477
+ "name": "error",
478
+ "type": "text",
479
+ "primaryKey": false,
480
+ "notNull": false,
481
+ "autoincrement": false
482
+ },
483
+ "text_hash": {
484
+ "name": "text_hash",
485
+ "type": "text",
486
+ "primaryKey": false,
487
+ "notNull": false,
488
+ "autoincrement": false
489
+ },
490
+ "pages": {
491
+ "name": "pages",
492
+ "type": "integer",
493
+ "primaryKey": false,
494
+ "notNull": false,
495
+ "autoincrement": false
496
+ },
497
+ "chars": {
498
+ "name": "chars",
499
+ "type": "integer",
500
+ "primaryKey": false,
501
+ "notNull": false,
502
+ "autoincrement": false
503
+ },
504
+ "indexed": {
505
+ "name": "indexed",
506
+ "type": "text",
507
+ "primaryKey": false,
508
+ "notNull": false,
509
+ "autoincrement": false
510
+ },
511
+ "created_at": {
512
+ "name": "created_at",
513
+ "type": "integer",
514
+ "primaryKey": false,
515
+ "notNull": true,
516
+ "autoincrement": false,
517
+ "default": "(unixepoch() * 1000)"
518
+ },
519
+ "updated_at": {
520
+ "name": "updated_at",
521
+ "type": "integer",
522
+ "primaryKey": false,
523
+ "notNull": true,
524
+ "autoincrement": false,
525
+ "default": "(unixepoch() * 1000)"
526
+ }
527
+ },
528
+ "indexes": {
529
+ "project_file_project": {
530
+ "name": "project_file_project",
531
+ "columns": [
532
+ "project_id",
533
+ "kind",
534
+ "position"
535
+ ],
536
+ "isUnique": false
537
+ }
538
+ },
539
+ "foreignKeys": {
540
+ "project_file_project_id_project_id_fk": {
541
+ "name": "project_file_project_id_project_id_fk",
542
+ "tableFrom": "project_file",
543
+ "tableTo": "project",
544
+ "columnsFrom": [
545
+ "project_id"
546
+ ],
547
+ "columnsTo": [
548
+ "id"
549
+ ],
550
+ "onDelete": "cascade",
551
+ "onUpdate": "no action"
552
+ }
553
+ },
554
+ "compositePrimaryKeys": {},
555
+ "uniqueConstraints": {},
556
+ "checkConstraints": {}
557
+ },
558
+ "run": {
559
+ "name": "run",
560
+ "columns": {
561
+ "id": {
562
+ "name": "id",
563
+ "type": "text",
564
+ "primaryKey": true,
565
+ "notNull": true,
566
+ "autoincrement": false
567
+ },
568
+ "wizard_id": {
569
+ "name": "wizard_id",
570
+ "type": "text",
571
+ "primaryKey": false,
572
+ "notNull": true,
573
+ "autoincrement": false
574
+ },
575
+ "tenant_id": {
576
+ "name": "tenant_id",
577
+ "type": "text",
578
+ "primaryKey": false,
579
+ "notNull": true,
580
+ "autoincrement": false
581
+ },
582
+ "definition": {
583
+ "name": "definition",
584
+ "type": "text",
585
+ "primaryKey": false,
586
+ "notNull": true,
587
+ "autoincrement": false
588
+ },
589
+ "files": {
590
+ "name": "files",
591
+ "type": "text",
592
+ "primaryKey": false,
593
+ "notNull": true,
594
+ "autoincrement": false,
595
+ "default": "'[]'"
596
+ },
597
+ "version": {
598
+ "name": "version",
599
+ "type": "integer",
600
+ "primaryKey": false,
601
+ "notNull": false,
602
+ "autoincrement": false
603
+ },
604
+ "mode": {
605
+ "name": "mode",
606
+ "type": "text",
607
+ "primaryKey": false,
608
+ "notNull": true,
609
+ "autoincrement": false
610
+ },
611
+ "visitor_id": {
612
+ "name": "visitor_id",
613
+ "type": "text",
614
+ "primaryKey": false,
615
+ "notNull": false,
616
+ "autoincrement": false
617
+ },
618
+ "user_id": {
619
+ "name": "user_id",
620
+ "type": "text",
621
+ "primaryKey": false,
622
+ "notNull": false,
623
+ "autoincrement": false
624
+ },
625
+ "ip_hash": {
626
+ "name": "ip_hash",
627
+ "type": "text",
628
+ "primaryKey": false,
629
+ "notNull": false,
630
+ "autoincrement": false
631
+ },
632
+ "status": {
633
+ "name": "status",
634
+ "type": "text",
635
+ "primaryKey": false,
636
+ "notNull": true,
637
+ "autoincrement": false
638
+ },
639
+ "cursor": {
640
+ "name": "cursor",
641
+ "type": "text",
642
+ "primaryKey": false,
643
+ "notNull": false,
644
+ "autoincrement": false
645
+ },
646
+ "state": {
647
+ "name": "state",
648
+ "type": "text",
649
+ "primaryKey": false,
650
+ "notNull": true,
651
+ "autoincrement": false
652
+ },
653
+ "error": {
654
+ "name": "error",
655
+ "type": "text",
656
+ "primaryKey": false,
657
+ "notNull": false,
658
+ "autoincrement": false
659
+ },
660
+ "ask": {
661
+ "name": "ask",
662
+ "type": "text",
663
+ "primaryKey": false,
664
+ "notNull": false,
665
+ "autoincrement": false
666
+ },
667
+ "cost_micros": {
668
+ "name": "cost_micros",
669
+ "type": "integer",
670
+ "primaryKey": false,
671
+ "notNull": true,
672
+ "autoincrement": false,
673
+ "default": 0
674
+ },
675
+ "share_token": {
676
+ "name": "share_token",
677
+ "type": "text",
678
+ "primaryKey": false,
679
+ "notNull": false,
680
+ "autoincrement": false
681
+ },
682
+ "shared_at": {
683
+ "name": "shared_at",
684
+ "type": "integer",
685
+ "primaryKey": false,
686
+ "notNull": false,
687
+ "autoincrement": false
688
+ },
689
+ "expires_at": {
690
+ "name": "expires_at",
691
+ "type": "integer",
692
+ "primaryKey": false,
693
+ "notNull": false,
694
+ "autoincrement": false
695
+ },
696
+ "created_at": {
697
+ "name": "created_at",
698
+ "type": "integer",
699
+ "primaryKey": false,
700
+ "notNull": true,
701
+ "autoincrement": false,
702
+ "default": "(unixepoch() * 1000)"
703
+ },
704
+ "updated_at": {
705
+ "name": "updated_at",
706
+ "type": "integer",
707
+ "primaryKey": false,
708
+ "notNull": true,
709
+ "autoincrement": false,
710
+ "default": "(unixepoch() * 1000)"
711
+ }
712
+ },
713
+ "indexes": {
714
+ "run_share_token": {
715
+ "name": "run_share_token",
716
+ "columns": [
717
+ "share_token"
718
+ ],
719
+ "isUnique": true
720
+ },
721
+ "run_expires": {
722
+ "name": "run_expires",
723
+ "columns": [
724
+ "expires_at"
725
+ ],
726
+ "isUnique": false
727
+ },
728
+ "run_wizard": {
729
+ "name": "run_wizard",
730
+ "columns": [
731
+ "wizard_id",
732
+ "created_at"
733
+ ],
734
+ "isUnique": false
735
+ },
736
+ "run_visitor": {
737
+ "name": "run_visitor",
738
+ "columns": [
739
+ "visitor_id",
740
+ "created_at"
741
+ ],
742
+ "isUnique": false
743
+ },
744
+ "run_status": {
745
+ "name": "run_status",
746
+ "columns": [
747
+ "status"
748
+ ],
749
+ "isUnique": false
750
+ }
751
+ },
752
+ "foreignKeys": {
753
+ "run_wizard_id_wizard_id_fk": {
754
+ "name": "run_wizard_id_wizard_id_fk",
755
+ "tableFrom": "run",
756
+ "tableTo": "wizard",
757
+ "columnsFrom": [
758
+ "wizard_id"
759
+ ],
760
+ "columnsTo": [
761
+ "id"
762
+ ],
763
+ "onDelete": "cascade",
764
+ "onUpdate": "no action"
765
+ }
766
+ },
767
+ "compositePrimaryKeys": {},
768
+ "uniqueConstraints": {},
769
+ "checkConstraints": {}
770
+ },
771
+ "run_cost": {
772
+ "name": "run_cost",
773
+ "columns": {
774
+ "run_id": {
775
+ "name": "run_id",
776
+ "type": "text",
777
+ "primaryKey": false,
778
+ "notNull": true,
779
+ "autoincrement": false
780
+ },
781
+ "step_id": {
782
+ "name": "step_id",
783
+ "type": "text",
784
+ "primaryKey": false,
785
+ "notNull": true,
786
+ "autoincrement": false
787
+ },
788
+ "micros": {
789
+ "name": "micros",
790
+ "type": "integer",
791
+ "primaryKey": false,
792
+ "notNull": true,
793
+ "autoincrement": false,
794
+ "default": 0
795
+ }
796
+ },
797
+ "indexes": {},
798
+ "foreignKeys": {
799
+ "run_cost_run_id_run_id_fk": {
800
+ "name": "run_cost_run_id_run_id_fk",
801
+ "tableFrom": "run_cost",
802
+ "tableTo": "run",
803
+ "columnsFrom": [
804
+ "run_id"
805
+ ],
806
+ "columnsTo": [
807
+ "id"
808
+ ],
809
+ "onDelete": "cascade",
810
+ "onUpdate": "no action"
811
+ }
812
+ },
813
+ "compositePrimaryKeys": {
814
+ "run_cost_run_id_step_id_pk": {
815
+ "columns": [
816
+ "run_id",
817
+ "step_id"
818
+ ],
819
+ "name": "run_cost_run_id_step_id_pk"
820
+ }
821
+ },
822
+ "uniqueConstraints": {},
823
+ "checkConstraints": {}
824
+ },
825
+ "run_event": {
826
+ "name": "run_event",
827
+ "columns": {
828
+ "id": {
829
+ "name": "id",
830
+ "type": "integer",
831
+ "primaryKey": true,
832
+ "notNull": true,
833
+ "autoincrement": true
834
+ },
835
+ "run_id": {
836
+ "name": "run_id",
837
+ "type": "text",
838
+ "primaryKey": false,
839
+ "notNull": true,
840
+ "autoincrement": false
841
+ },
842
+ "step_id": {
843
+ "name": "step_id",
844
+ "type": "text",
845
+ "primaryKey": false,
846
+ "notNull": false,
847
+ "autoincrement": false
848
+ },
849
+ "type": {
850
+ "name": "type",
851
+ "type": "text",
852
+ "primaryKey": false,
853
+ "notNull": true,
854
+ "autoincrement": false
855
+ },
856
+ "message": {
857
+ "name": "message",
858
+ "type": "text",
859
+ "primaryKey": false,
860
+ "notNull": true,
861
+ "autoincrement": false
862
+ },
863
+ "asset_id": {
864
+ "name": "asset_id",
865
+ "type": "text",
866
+ "primaryKey": false,
867
+ "notNull": false,
868
+ "autoincrement": false
869
+ },
870
+ "created_at": {
871
+ "name": "created_at",
872
+ "type": "integer",
873
+ "primaryKey": false,
874
+ "notNull": true,
875
+ "autoincrement": false,
876
+ "default": "(unixepoch() * 1000)"
877
+ }
878
+ },
879
+ "indexes": {
880
+ "run_event_run": {
881
+ "name": "run_event_run",
882
+ "columns": [
883
+ "run_id",
884
+ "id"
885
+ ],
886
+ "isUnique": false
887
+ }
888
+ },
889
+ "foreignKeys": {
890
+ "run_event_run_id_run_id_fk": {
891
+ "name": "run_event_run_id_run_id_fk",
892
+ "tableFrom": "run_event",
893
+ "tableTo": "run",
894
+ "columnsFrom": [
895
+ "run_id"
896
+ ],
897
+ "columnsTo": [
898
+ "id"
899
+ ],
900
+ "onDelete": "cascade",
901
+ "onUpdate": "no action"
902
+ }
903
+ },
904
+ "compositePrimaryKeys": {},
905
+ "uniqueConstraints": {},
906
+ "checkConstraints": {}
907
+ },
908
+ "store_file": {
909
+ "name": "store_file",
910
+ "columns": {
911
+ "wizard_id": {
912
+ "name": "wizard_id",
913
+ "type": "text",
914
+ "primaryKey": false,
915
+ "notNull": true,
916
+ "autoincrement": false
917
+ },
918
+ "holder": {
919
+ "name": "holder",
920
+ "type": "text",
921
+ "primaryKey": false,
922
+ "notNull": true,
923
+ "autoincrement": false
924
+ },
925
+ "path": {
926
+ "name": "path",
927
+ "type": "text",
928
+ "primaryKey": false,
929
+ "notNull": true,
930
+ "autoincrement": false
931
+ },
932
+ "hash": {
933
+ "name": "hash",
934
+ "type": "text",
935
+ "primaryKey": false,
936
+ "notNull": true,
937
+ "autoincrement": false
938
+ },
939
+ "mime": {
940
+ "name": "mime",
941
+ "type": "text",
942
+ "primaryKey": false,
943
+ "notNull": true,
944
+ "autoincrement": false
945
+ },
946
+ "size": {
947
+ "name": "size",
948
+ "type": "integer",
949
+ "primaryKey": false,
950
+ "notNull": true,
951
+ "autoincrement": false
952
+ },
953
+ "source": {
954
+ "name": "source",
955
+ "type": "text",
956
+ "primaryKey": false,
957
+ "notNull": false,
958
+ "autoincrement": false
959
+ },
960
+ "updated_at": {
961
+ "name": "updated_at",
962
+ "type": "integer",
963
+ "primaryKey": false,
964
+ "notNull": true,
965
+ "autoincrement": false,
966
+ "default": "(unixepoch() * 1000)"
967
+ }
968
+ },
969
+ "indexes": {},
970
+ "foreignKeys": {
971
+ "store_file_wizard_id_wizard_id_fk": {
972
+ "name": "store_file_wizard_id_wizard_id_fk",
973
+ "tableFrom": "store_file",
974
+ "tableTo": "wizard",
975
+ "columnsFrom": [
976
+ "wizard_id"
977
+ ],
978
+ "columnsTo": [
979
+ "id"
980
+ ],
981
+ "onDelete": "cascade",
982
+ "onUpdate": "no action"
983
+ }
984
+ },
985
+ "compositePrimaryKeys": {
986
+ "store_file_wizard_id_holder_path_pk": {
987
+ "columns": [
988
+ "wizard_id",
989
+ "holder",
990
+ "path"
991
+ ],
992
+ "name": "store_file_wizard_id_holder_path_pk"
993
+ }
994
+ },
995
+ "uniqueConstraints": {},
996
+ "checkConstraints": {}
997
+ },
998
+ "store_holder": {
999
+ "name": "store_holder",
1000
+ "columns": {
1001
+ "wizard_id": {
1002
+ "name": "wizard_id",
1003
+ "type": "text",
1004
+ "primaryKey": false,
1005
+ "notNull": true,
1006
+ "autoincrement": false
1007
+ },
1008
+ "holder": {
1009
+ "name": "holder",
1010
+ "type": "text",
1011
+ "primaryKey": false,
1012
+ "notNull": true,
1013
+ "autoincrement": false
1014
+ },
1015
+ "used_at": {
1016
+ "name": "used_at",
1017
+ "type": "integer",
1018
+ "primaryKey": false,
1019
+ "notNull": true,
1020
+ "autoincrement": false,
1021
+ "default": "(unixepoch() * 1000)"
1022
+ }
1023
+ },
1024
+ "indexes": {
1025
+ "store_holder_used": {
1026
+ "name": "store_holder_used",
1027
+ "columns": [
1028
+ "used_at"
1029
+ ],
1030
+ "isUnique": false
1031
+ }
1032
+ },
1033
+ "foreignKeys": {
1034
+ "store_holder_wizard_id_wizard_id_fk": {
1035
+ "name": "store_holder_wizard_id_wizard_id_fk",
1036
+ "tableFrom": "store_holder",
1037
+ "tableTo": "wizard",
1038
+ "columnsFrom": [
1039
+ "wizard_id"
1040
+ ],
1041
+ "columnsTo": [
1042
+ "id"
1043
+ ],
1044
+ "onDelete": "cascade",
1045
+ "onUpdate": "no action"
1046
+ }
1047
+ },
1048
+ "compositePrimaryKeys": {
1049
+ "store_holder_wizard_id_holder_pk": {
1050
+ "columns": [
1051
+ "wizard_id",
1052
+ "holder"
1053
+ ],
1054
+ "name": "store_holder_wizard_id_holder_pk"
1055
+ }
1056
+ },
1057
+ "uniqueConstraints": {},
1058
+ "checkConstraints": {}
1059
+ },
1060
+ "store_row": {
1061
+ "name": "store_row",
1062
+ "columns": {
1063
+ "id": {
1064
+ "name": "id",
1065
+ "type": "text",
1066
+ "primaryKey": true,
1067
+ "notNull": true,
1068
+ "autoincrement": false
1069
+ },
1070
+ "wizard_id": {
1071
+ "name": "wizard_id",
1072
+ "type": "text",
1073
+ "primaryKey": false,
1074
+ "notNull": true,
1075
+ "autoincrement": false
1076
+ },
1077
+ "holder": {
1078
+ "name": "holder",
1079
+ "type": "text",
1080
+ "primaryKey": false,
1081
+ "notNull": true,
1082
+ "autoincrement": false
1083
+ },
1084
+ "list": {
1085
+ "name": "list",
1086
+ "type": "text",
1087
+ "primaryKey": false,
1088
+ "notNull": true,
1089
+ "autoincrement": false
1090
+ },
1091
+ "key": {
1092
+ "name": "key",
1093
+ "type": "text",
1094
+ "primaryKey": false,
1095
+ "notNull": false,
1096
+ "autoincrement": false
1097
+ },
1098
+ "cells": {
1099
+ "name": "cells",
1100
+ "type": "text",
1101
+ "primaryKey": false,
1102
+ "notNull": true,
1103
+ "autoincrement": false
1104
+ },
1105
+ "created_at": {
1106
+ "name": "created_at",
1107
+ "type": "integer",
1108
+ "primaryKey": false,
1109
+ "notNull": true,
1110
+ "autoincrement": false,
1111
+ "default": "(unixepoch() * 1000)"
1112
+ },
1113
+ "updated_at": {
1114
+ "name": "updated_at",
1115
+ "type": "integer",
1116
+ "primaryKey": false,
1117
+ "notNull": true,
1118
+ "autoincrement": false,
1119
+ "default": "(unixepoch() * 1000)"
1120
+ }
1121
+ },
1122
+ "indexes": {
1123
+ "store_row_key": {
1124
+ "name": "store_row_key",
1125
+ "columns": [
1126
+ "wizard_id",
1127
+ "holder",
1128
+ "list",
1129
+ "key"
1130
+ ],
1131
+ "isUnique": true
1132
+ },
1133
+ "store_row_list": {
1134
+ "name": "store_row_list",
1135
+ "columns": [
1136
+ "wizard_id",
1137
+ "holder",
1138
+ "list",
1139
+ "created_at"
1140
+ ],
1141
+ "isUnique": false
1142
+ }
1143
+ },
1144
+ "foreignKeys": {
1145
+ "store_row_wizard_id_wizard_id_fk": {
1146
+ "name": "store_row_wizard_id_wizard_id_fk",
1147
+ "tableFrom": "store_row",
1148
+ "tableTo": "wizard",
1149
+ "columnsFrom": [
1150
+ "wizard_id"
1151
+ ],
1152
+ "columnsTo": [
1153
+ "id"
1154
+ ],
1155
+ "onDelete": "cascade",
1156
+ "onUpdate": "no action"
1157
+ }
1158
+ },
1159
+ "compositePrimaryKeys": {},
1160
+ "uniqueConstraints": {},
1161
+ "checkConstraints": {}
1162
+ },
1163
+ "store_secret": {
1164
+ "name": "store_secret",
1165
+ "columns": {
1166
+ "id": {
1167
+ "name": "id",
1168
+ "type": "text",
1169
+ "primaryKey": true,
1170
+ "notNull": true,
1171
+ "autoincrement": false
1172
+ },
1173
+ "wizard_id": {
1174
+ "name": "wizard_id",
1175
+ "type": "text",
1176
+ "primaryKey": false,
1177
+ "notNull": true,
1178
+ "autoincrement": false
1179
+ },
1180
+ "holder": {
1181
+ "name": "holder",
1182
+ "type": "text",
1183
+ "primaryKey": false,
1184
+ "notNull": true,
1185
+ "autoincrement": false
1186
+ },
1187
+ "slot": {
1188
+ "name": "slot",
1189
+ "type": "text",
1190
+ "primaryKey": false,
1191
+ "notNull": true,
1192
+ "autoincrement": false
1193
+ },
1194
+ "provider": {
1195
+ "name": "provider",
1196
+ "type": "text",
1197
+ "primaryKey": false,
1198
+ "notNull": true,
1199
+ "autoincrement": false
1200
+ },
1201
+ "label": {
1202
+ "name": "label",
1203
+ "type": "text",
1204
+ "primaryKey": false,
1205
+ "notNull": true,
1206
+ "autoincrement": false
1207
+ },
1208
+ "data": {
1209
+ "name": "data",
1210
+ "type": "text",
1211
+ "primaryKey": false,
1212
+ "notNull": true,
1213
+ "autoincrement": false
1214
+ },
1215
+ "created_at": {
1216
+ "name": "created_at",
1217
+ "type": "integer",
1218
+ "primaryKey": false,
1219
+ "notNull": true,
1220
+ "autoincrement": false,
1221
+ "default": "(unixepoch() * 1000)"
1222
+ },
1223
+ "updated_at": {
1224
+ "name": "updated_at",
1225
+ "type": "integer",
1226
+ "primaryKey": false,
1227
+ "notNull": true,
1228
+ "autoincrement": false,
1229
+ "default": "(unixepoch() * 1000)"
1230
+ }
1231
+ },
1232
+ "indexes": {
1233
+ "store_secret_slot": {
1234
+ "name": "store_secret_slot",
1235
+ "columns": [
1236
+ "wizard_id",
1237
+ "holder",
1238
+ "slot"
1239
+ ],
1240
+ "isUnique": true
1241
+ }
1242
+ },
1243
+ "foreignKeys": {
1244
+ "store_secret_wizard_id_wizard_id_fk": {
1245
+ "name": "store_secret_wizard_id_wizard_id_fk",
1246
+ "tableFrom": "store_secret",
1247
+ "tableTo": "wizard",
1248
+ "columnsFrom": [
1249
+ "wizard_id"
1250
+ ],
1251
+ "columnsTo": [
1252
+ "id"
1253
+ ],
1254
+ "onDelete": "cascade",
1255
+ "onUpdate": "no action"
1256
+ }
1257
+ },
1258
+ "compositePrimaryKeys": {},
1259
+ "uniqueConstraints": {},
1260
+ "checkConstraints": {}
1261
+ },
1262
+ "wizard": {
1263
+ "name": "wizard",
1264
+ "columns": {
1265
+ "id": {
1266
+ "name": "id",
1267
+ "type": "text",
1268
+ "primaryKey": true,
1269
+ "notNull": true,
1270
+ "autoincrement": false
1271
+ },
1272
+ "project_id": {
1273
+ "name": "project_id",
1274
+ "type": "text",
1275
+ "primaryKey": false,
1276
+ "notNull": true,
1277
+ "autoincrement": false
1278
+ },
1279
+ "tenant_id": {
1280
+ "name": "tenant_id",
1281
+ "type": "text",
1282
+ "primaryKey": false,
1283
+ "notNull": true,
1284
+ "autoincrement": false
1285
+ },
1286
+ "title": {
1287
+ "name": "title",
1288
+ "type": "text",
1289
+ "primaryKey": false,
1290
+ "notNull": true,
1291
+ "autoincrement": false
1292
+ },
1293
+ "draft": {
1294
+ "name": "draft",
1295
+ "type": "text",
1296
+ "primaryKey": false,
1297
+ "notNull": true,
1298
+ "autoincrement": false
1299
+ },
1300
+ "published_version": {
1301
+ "name": "published_version",
1302
+ "type": "integer",
1303
+ "primaryKey": false,
1304
+ "notNull": false,
1305
+ "autoincrement": false
1306
+ },
1307
+ "share_token": {
1308
+ "name": "share_token",
1309
+ "type": "text",
1310
+ "primaryKey": false,
1311
+ "notNull": true,
1312
+ "autoincrement": false
1313
+ },
1314
+ "share_enabled": {
1315
+ "name": "share_enabled",
1316
+ "type": "integer",
1317
+ "primaryKey": false,
1318
+ "notNull": true,
1319
+ "autoincrement": false,
1320
+ "default": true
1321
+ },
1322
+ "daily_run_limit": {
1323
+ "name": "daily_run_limit",
1324
+ "type": "integer",
1325
+ "primaryKey": false,
1326
+ "notNull": true,
1327
+ "autoincrement": false,
1328
+ "default": 50
1329
+ },
1330
+ "starter": {
1331
+ "name": "starter",
1332
+ "type": "text",
1333
+ "primaryKey": false,
1334
+ "notNull": false,
1335
+ "autoincrement": false
1336
+ },
1337
+ "starter_revision": {
1338
+ "name": "starter_revision",
1339
+ "type": "integer",
1340
+ "primaryKey": false,
1341
+ "notNull": false,
1342
+ "autoincrement": false
1343
+ },
1344
+ "revision": {
1345
+ "name": "revision",
1346
+ "type": "integer",
1347
+ "primaryKey": false,
1348
+ "notNull": true,
1349
+ "autoincrement": false,
1350
+ "default": 0
1351
+ },
1352
+ "created_at": {
1353
+ "name": "created_at",
1354
+ "type": "integer",
1355
+ "primaryKey": false,
1356
+ "notNull": true,
1357
+ "autoincrement": false,
1358
+ "default": "(unixepoch() * 1000)"
1359
+ },
1360
+ "updated_at": {
1361
+ "name": "updated_at",
1362
+ "type": "integer",
1363
+ "primaryKey": false,
1364
+ "notNull": true,
1365
+ "autoincrement": false,
1366
+ "default": "(unixepoch() * 1000)"
1367
+ }
1368
+ },
1369
+ "indexes": {
1370
+ "wizard_share_token": {
1371
+ "name": "wizard_share_token",
1372
+ "columns": [
1373
+ "share_token"
1374
+ ],
1375
+ "isUnique": true
1376
+ },
1377
+ "wizard_project": {
1378
+ "name": "wizard_project",
1379
+ "columns": [
1380
+ "project_id"
1381
+ ],
1382
+ "isUnique": false
1383
+ }
1384
+ },
1385
+ "foreignKeys": {
1386
+ "wizard_project_id_project_id_fk": {
1387
+ "name": "wizard_project_id_project_id_fk",
1388
+ "tableFrom": "wizard",
1389
+ "tableTo": "project",
1390
+ "columnsFrom": [
1391
+ "project_id"
1392
+ ],
1393
+ "columnsTo": [
1394
+ "id"
1395
+ ],
1396
+ "onDelete": "cascade",
1397
+ "onUpdate": "no action"
1398
+ }
1399
+ },
1400
+ "compositePrimaryKeys": {},
1401
+ "uniqueConstraints": {},
1402
+ "checkConstraints": {}
1403
+ },
1404
+ "wizard_file": {
1405
+ "name": "wizard_file",
1406
+ "columns": {
1407
+ "wizard_id": {
1408
+ "name": "wizard_id",
1409
+ "type": "text",
1410
+ "primaryKey": false,
1411
+ "notNull": true,
1412
+ "autoincrement": false
1413
+ },
1414
+ "path": {
1415
+ "name": "path",
1416
+ "type": "text",
1417
+ "primaryKey": false,
1418
+ "notNull": true,
1419
+ "autoincrement": false
1420
+ },
1421
+ "hash": {
1422
+ "name": "hash",
1423
+ "type": "text",
1424
+ "primaryKey": false,
1425
+ "notNull": true,
1426
+ "autoincrement": false
1427
+ },
1428
+ "mime": {
1429
+ "name": "mime",
1430
+ "type": "text",
1431
+ "primaryKey": false,
1432
+ "notNull": true,
1433
+ "autoincrement": false
1434
+ },
1435
+ "size": {
1436
+ "name": "size",
1437
+ "type": "integer",
1438
+ "primaryKey": false,
1439
+ "notNull": true,
1440
+ "autoincrement": false
1441
+ },
1442
+ "updated_at": {
1443
+ "name": "updated_at",
1444
+ "type": "integer",
1445
+ "primaryKey": false,
1446
+ "notNull": true,
1447
+ "autoincrement": false,
1448
+ "default": "(unixepoch() * 1000)"
1449
+ }
1450
+ },
1451
+ "indexes": {},
1452
+ "foreignKeys": {
1453
+ "wizard_file_wizard_id_wizard_id_fk": {
1454
+ "name": "wizard_file_wizard_id_wizard_id_fk",
1455
+ "tableFrom": "wizard_file",
1456
+ "tableTo": "wizard",
1457
+ "columnsFrom": [
1458
+ "wizard_id"
1459
+ ],
1460
+ "columnsTo": [
1461
+ "id"
1462
+ ],
1463
+ "onDelete": "cascade",
1464
+ "onUpdate": "no action"
1465
+ }
1466
+ },
1467
+ "compositePrimaryKeys": {
1468
+ "wizard_file_wizard_id_path_pk": {
1469
+ "columns": [
1470
+ "wizard_id",
1471
+ "path"
1472
+ ],
1473
+ "name": "wizard_file_wizard_id_path_pk"
1474
+ }
1475
+ },
1476
+ "uniqueConstraints": {},
1477
+ "checkConstraints": {}
1478
+ },
1479
+ "wizard_message": {
1480
+ "name": "wizard_message",
1481
+ "columns": {
1482
+ "id": {
1483
+ "name": "id",
1484
+ "type": "text",
1485
+ "primaryKey": true,
1486
+ "notNull": true,
1487
+ "autoincrement": false
1488
+ },
1489
+ "wizard_id": {
1490
+ "name": "wizard_id",
1491
+ "type": "text",
1492
+ "primaryKey": false,
1493
+ "notNull": true,
1494
+ "autoincrement": false
1495
+ },
1496
+ "role": {
1497
+ "name": "role",
1498
+ "type": "text",
1499
+ "primaryKey": false,
1500
+ "notNull": true,
1501
+ "autoincrement": false
1502
+ },
1503
+ "content": {
1504
+ "name": "content",
1505
+ "type": "text",
1506
+ "primaryKey": false,
1507
+ "notNull": true,
1508
+ "autoincrement": false
1509
+ },
1510
+ "changed": {
1511
+ "name": "changed",
1512
+ "type": "integer",
1513
+ "primaryKey": false,
1514
+ "notNull": true,
1515
+ "autoincrement": false,
1516
+ "default": false
1517
+ },
1518
+ "source": {
1519
+ "name": "source",
1520
+ "type": "text",
1521
+ "primaryKey": false,
1522
+ "notNull": true,
1523
+ "autoincrement": false,
1524
+ "default": "'studio'"
1525
+ },
1526
+ "client": {
1527
+ "name": "client",
1528
+ "type": "text",
1529
+ "primaryKey": false,
1530
+ "notNull": false,
1531
+ "autoincrement": false
1532
+ },
1533
+ "created_at": {
1534
+ "name": "created_at",
1535
+ "type": "integer",
1536
+ "primaryKey": false,
1537
+ "notNull": true,
1538
+ "autoincrement": false,
1539
+ "default": "(unixepoch() * 1000)"
1540
+ }
1541
+ },
1542
+ "indexes": {
1543
+ "wizard_message_wizard": {
1544
+ "name": "wizard_message_wizard",
1545
+ "columns": [
1546
+ "wizard_id",
1547
+ "created_at"
1548
+ ],
1549
+ "isUnique": false
1550
+ }
1551
+ },
1552
+ "foreignKeys": {
1553
+ "wizard_message_wizard_id_wizard_id_fk": {
1554
+ "name": "wizard_message_wizard_id_wizard_id_fk",
1555
+ "tableFrom": "wizard_message",
1556
+ "tableTo": "wizard",
1557
+ "columnsFrom": [
1558
+ "wizard_id"
1559
+ ],
1560
+ "columnsTo": [
1561
+ "id"
1562
+ ],
1563
+ "onDelete": "cascade",
1564
+ "onUpdate": "no action"
1565
+ }
1566
+ },
1567
+ "compositePrimaryKeys": {},
1568
+ "uniqueConstraints": {},
1569
+ "checkConstraints": {}
1570
+ },
1571
+ "wizard_version": {
1572
+ "name": "wizard_version",
1573
+ "columns": {
1574
+ "id": {
1575
+ "name": "id",
1576
+ "type": "text",
1577
+ "primaryKey": true,
1578
+ "notNull": true,
1579
+ "autoincrement": false
1580
+ },
1581
+ "wizard_id": {
1582
+ "name": "wizard_id",
1583
+ "type": "text",
1584
+ "primaryKey": false,
1585
+ "notNull": true,
1586
+ "autoincrement": false
1587
+ },
1588
+ "version": {
1589
+ "name": "version",
1590
+ "type": "integer",
1591
+ "primaryKey": false,
1592
+ "notNull": true,
1593
+ "autoincrement": false
1594
+ },
1595
+ "definition": {
1596
+ "name": "definition",
1597
+ "type": "text",
1598
+ "primaryKey": false,
1599
+ "notNull": true,
1600
+ "autoincrement": false
1601
+ },
1602
+ "files": {
1603
+ "name": "files",
1604
+ "type": "text",
1605
+ "primaryKey": false,
1606
+ "notNull": true,
1607
+ "autoincrement": false,
1608
+ "default": "'[]'"
1609
+ },
1610
+ "created_at": {
1611
+ "name": "created_at",
1612
+ "type": "integer",
1613
+ "primaryKey": false,
1614
+ "notNull": true,
1615
+ "autoincrement": false,
1616
+ "default": "(unixepoch() * 1000)"
1617
+ }
1618
+ },
1619
+ "indexes": {
1620
+ "wizard_version_n": {
1621
+ "name": "wizard_version_n",
1622
+ "columns": [
1623
+ "wizard_id",
1624
+ "version"
1625
+ ],
1626
+ "isUnique": true
1627
+ }
1628
+ },
1629
+ "foreignKeys": {
1630
+ "wizard_version_wizard_id_wizard_id_fk": {
1631
+ "name": "wizard_version_wizard_id_wizard_id_fk",
1632
+ "tableFrom": "wizard_version",
1633
+ "tableTo": "wizard",
1634
+ "columnsFrom": [
1635
+ "wizard_id"
1636
+ ],
1637
+ "columnsTo": [
1638
+ "id"
1639
+ ],
1640
+ "onDelete": "cascade",
1641
+ "onUpdate": "no action"
1642
+ }
1643
+ },
1644
+ "compositePrimaryKeys": {},
1645
+ "uniqueConstraints": {},
1646
+ "checkConstraints": {}
1647
+ }
1648
+ },
1649
+ "views": {},
1650
+ "enums": {},
1651
+ "_meta": {
1652
+ "schemas": {},
1653
+ "tables": {},
1654
+ "columns": {}
1655
+ },
1656
+ "internal": {
1657
+ "indexes": {}
1658
+ }
1659
+ }