wizards 0.2.17 → 0.2.19

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