wizards 0.5.11 → 0.5.13

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 (91) hide show
  1. package/apps/runtime/dist/browser/fast/action-space.js +0 -2
  2. package/apps/runtime/dist/cli/mcp.js +2 -15
  3. package/apps/runtime/dist/cli/report.js +2 -15
  4. package/apps/runtime/dist/cli/start.js +28 -14
  5. package/apps/runtime/dist/cli/status.js +1 -1
  6. package/apps/runtime/dist/credits/credits.js +0 -3
  7. package/apps/runtime/dist/db/client.js +0 -7
  8. package/apps/runtime/dist/db/control-schema.js +10 -0
  9. package/apps/runtime/dist/db/migrations/control/0010_tan_snowbird.sql +6 -0
  10. package/apps/runtime/dist/db/migrations/control/meta/0010_snapshot.json +600 -0
  11. package/apps/runtime/dist/db/migrations/control/meta/_journal.json +7 -0
  12. package/apps/runtime/dist/db/migrations/tenant/0016_even_trish_tilby.sql +12 -0
  13. package/apps/runtime/dist/db/migrations/tenant/meta/0016_snapshot.json +3326 -0
  14. package/apps/runtime/dist/db/migrations/tenant/meta/_journal.json +7 -0
  15. package/apps/runtime/dist/db/schema.js +20 -0
  16. package/apps/runtime/dist/docs/user/build-a-wizard.md +1 -1
  17. package/apps/runtime/dist/engine/runner.js +31 -10
  18. package/apps/runtime/dist/engine/steps.js +15 -4
  19. package/apps/runtime/dist/harness/index.js +0 -4
  20. package/apps/runtime/dist/manage.js +7 -7
  21. package/apps/runtime/dist/model-errors.js +20 -7
  22. package/apps/runtime/dist/plugins/pro.js +0 -6
  23. package/apps/runtime/dist/render/convert.js +0 -3
  24. package/apps/runtime/dist/routes/runs.js +170 -23
  25. package/apps/runtime/dist/routes/studio.js +83 -9
  26. package/apps/runtime/dist/services/api.js +8 -6
  27. package/apps/runtime/dist/services/cloud.js +1 -0
  28. package/apps/runtime/dist/services/spaces.js +1 -0
  29. package/apps/runtime/dist/services/translations.js +303 -0
  30. package/apps/runtime/dist/services/wizards.js +3 -1
  31. package/apps/runtime/dist/store/index.js +0 -11
  32. package/apps/runtime/dist/texts.js +47 -39
  33. package/apps/web/dist/assets/{AboutDialog-L1hcshAX.js → AboutDialog-CkE7uZNL.js} +1 -1
  34. package/apps/web/dist/assets/{ChangelogDialog-DZLYVOkl.js → ChangelogDialog-BCS3WIRA.js} +1 -1
  35. package/apps/web/dist/assets/ChatView-DClGzMte.js +10 -0
  36. package/apps/web/dist/assets/EditorPage-Dg27sIZ7.js +3 -0
  37. package/apps/web/dist/assets/{FlowPreview-CTEJi5TQ.js → FlowPreview-D2haAZwo.js} +1 -1
  38. package/apps/web/dist/assets/{Harness-CApAHvJE.js → Harness-CGI6ZMTA.js} +2 -2
  39. package/apps/web/dist/assets/{NewWizardChannels-tst10rkV.js → NewWizardChannels-C4b_phHw.js} +1 -1
  40. package/apps/web/dist/assets/{NewWizardPage-BAKaUY1g.js → NewWizardPage-DhDXrjKX.js} +2 -2
  41. package/apps/web/dist/assets/OnboardingPage-DgySdBgo.js +1 -0
  42. package/apps/web/dist/assets/ProjectPage-dvtJn_3c.js +1 -0
  43. package/apps/web/dist/assets/PublicRunner-lP4sVF1q.js +1 -0
  44. package/apps/web/dist/assets/{ReadOnly-Bb8khbuH.js → ReadOnly-B-4l3bVt.js} +1 -1
  45. package/apps/web/dist/assets/RunDrawer-B2bsB9Z6.js +4 -0
  46. package/apps/web/dist/assets/RunnerView-BZ83HUnO.js +1 -0
  47. package/apps/web/dist/assets/SettingsPage-C0_wAa_j.js +1 -0
  48. package/apps/web/dist/assets/SetupPage-kuvBk0G0.js +1 -0
  49. package/apps/web/dist/assets/{SharePage-Bb-BIvAX.js → SharePage-COLVxXMI.js} +1 -1
  50. package/apps/web/dist/assets/changelog-CIYdRaa5.js +1 -0
  51. package/apps/web/dist/assets/{esm-pbWES-Cu.js → esm-BqbWrbsa.js} +1 -1
  52. package/apps/web/dist/assets/index-Da9Pvzpj.js +14 -0
  53. package/apps/web/dist/assets/index-DaKjB676.css +1 -0
  54. package/apps/web/dist/assets/{lock-C6LaSCq_.js → lock-BkN0Fai6.js} +1 -1
  55. package/apps/web/dist/assets/{phone-BUWpzNWn.js → phone-Dip_wSUZ.js} +1 -1
  56. package/apps/web/dist/assets/{settings-menu-yO8b8LjQ.js → settings-menu-B7eXkvba.js} +1 -1
  57. package/apps/web/dist/assets/ui-B9AOCT0v.js +134 -0
  58. package/apps/web/dist/assets/{upload-D89fyY2-.js → upload-DPQ4pwnl.js} +1 -1
  59. package/apps/web/dist/index.html +3 -3
  60. package/apps/web/dist/mcp/flow.html +54 -54
  61. package/node_modules/@engenty-wizards/plugin-sdk/dist/thread.js +34 -34
  62. package/node_modules/@engenty-wizards/shared/dist/definition.d.ts +19 -6
  63. package/node_modules/@engenty-wizards/shared/dist/definition.js +51 -10
  64. package/node_modules/@engenty-wizards/shared/dist/features.d.ts +0 -1
  65. package/node_modules/@engenty-wizards/shared/dist/features.js +0 -1
  66. package/node_modules/@engenty-wizards/shared/dist/marketplace.d.ts +0 -5
  67. package/node_modules/@engenty-wizards/shared/dist/marketplace.js +0 -5
  68. package/node_modules/@engenty-wizards/shared/dist/providers.d.ts +1 -1
  69. package/node_modules/@engenty-wizards/shared/dist/providers.js +1 -1
  70. package/node_modules/@engenty-wizards/shared/dist/run.d.ts +46 -4
  71. package/node_modules/@engenty-wizards/shared/dist/run.js +24 -9
  72. package/node_modules/@engenty-wizards/shared/dist/runner-texts.d.ts +506 -0
  73. package/node_modules/@engenty-wizards/shared/dist/runner-texts.js +483 -0
  74. package/node_modules/@engenty-wizards/shared/dist/texts.d.ts +11 -2
  75. package/node_modules/@engenty-wizards/shared/dist/texts.js +16 -8
  76. package/node_modules/@engenty-wizards/shared/dist/translation.d.ts +23 -0
  77. package/node_modules/@engenty-wizards/shared/dist/translation.js +154 -0
  78. package/package.json +1 -1
  79. package/apps/web/dist/assets/ChatView-GNHi9ZnZ.js +0 -10
  80. package/apps/web/dist/assets/EditorPage-COJunH8K.js +0 -3
  81. package/apps/web/dist/assets/OnboardingPage-Di8AuZj_.js +0 -1
  82. package/apps/web/dist/assets/ProjectPage-DaerYm8A.js +0 -1
  83. package/apps/web/dist/assets/PublicRunner-Hms0Vi88.js +0 -1
  84. package/apps/web/dist/assets/RunDrawer-DWaC_ryo.js +0 -4
  85. package/apps/web/dist/assets/RunnerView-D5BQ99ah.js +0 -1
  86. package/apps/web/dist/assets/SettingsPage-CQX6fKsa.js +0 -1
  87. package/apps/web/dist/assets/SetupPage-BZkbpN_V.js +0 -1
  88. package/apps/web/dist/assets/changelog-BUHje4CT.js +0 -1
  89. package/apps/web/dist/assets/index-BVWLhiGX.js +0 -14
  90. package/apps/web/dist/assets/index-DmQEcSlY.css +0 -1
  91. package/apps/web/dist/assets/ui-i5saQjmD.js +0 -134
@@ -0,0 +1,3326 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "cfecaf2a-93c7-49f9-82dc-3b7ad7e71e4f",
5
+ "prevId": "1ac1fe22-03e6-4ebf-b4d9-e3f22633ec8b",
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
+ "assistant_chat": {
97
+ "name": "assistant_chat",
98
+ "columns": {
99
+ "id": {
100
+ "name": "id",
101
+ "type": "text",
102
+ "primaryKey": true,
103
+ "notNull": true,
104
+ "autoincrement": false
105
+ },
106
+ "tenant_id": {
107
+ "name": "tenant_id",
108
+ "type": "text",
109
+ "primaryKey": false,
110
+ "notNull": true,
111
+ "autoincrement": false
112
+ },
113
+ "user_id": {
114
+ "name": "user_id",
115
+ "type": "text",
116
+ "primaryKey": false,
117
+ "notNull": true,
118
+ "autoincrement": false
119
+ },
120
+ "title": {
121
+ "name": "title",
122
+ "type": "text",
123
+ "primaryKey": false,
124
+ "notNull": false,
125
+ "autoincrement": false
126
+ },
127
+ "summary": {
128
+ "name": "summary",
129
+ "type": "text",
130
+ "primaryKey": false,
131
+ "notNull": false,
132
+ "autoincrement": false
133
+ },
134
+ "folded": {
135
+ "name": "folded",
136
+ "type": "integer",
137
+ "primaryKey": false,
138
+ "notNull": true,
139
+ "autoincrement": false,
140
+ "default": 0
141
+ },
142
+ "created_at": {
143
+ "name": "created_at",
144
+ "type": "integer",
145
+ "primaryKey": false,
146
+ "notNull": true,
147
+ "autoincrement": false,
148
+ "default": "(unixepoch() * 1000)"
149
+ },
150
+ "closed_at": {
151
+ "name": "closed_at",
152
+ "type": "integer",
153
+ "primaryKey": false,
154
+ "notNull": false,
155
+ "autoincrement": false
156
+ }
157
+ },
158
+ "indexes": {
159
+ "assistant_chat_user": {
160
+ "name": "assistant_chat_user",
161
+ "columns": [
162
+ "tenant_id",
163
+ "user_id",
164
+ "closed_at"
165
+ ],
166
+ "isUnique": false
167
+ }
168
+ },
169
+ "foreignKeys": {},
170
+ "compositePrimaryKeys": {},
171
+ "uniqueConstraints": {},
172
+ "checkConstraints": {}
173
+ },
174
+ "assistant_message": {
175
+ "name": "assistant_message",
176
+ "columns": {
177
+ "id": {
178
+ "name": "id",
179
+ "type": "text",
180
+ "primaryKey": true,
181
+ "notNull": true,
182
+ "autoincrement": false
183
+ },
184
+ "chat_id": {
185
+ "name": "chat_id",
186
+ "type": "text",
187
+ "primaryKey": false,
188
+ "notNull": true,
189
+ "autoincrement": false
190
+ },
191
+ "role": {
192
+ "name": "role",
193
+ "type": "text",
194
+ "primaryKey": false,
195
+ "notNull": true,
196
+ "autoincrement": false
197
+ },
198
+ "content": {
199
+ "name": "content",
200
+ "type": "text",
201
+ "primaryKey": false,
202
+ "notNull": true,
203
+ "autoincrement": false
204
+ },
205
+ "cards": {
206
+ "name": "cards",
207
+ "type": "text",
208
+ "primaryKey": false,
209
+ "notNull": false,
210
+ "autoincrement": false
211
+ },
212
+ "tool_calls": {
213
+ "name": "tool_calls",
214
+ "type": "text",
215
+ "primaryKey": false,
216
+ "notNull": false,
217
+ "autoincrement": false
218
+ },
219
+ "page": {
220
+ "name": "page",
221
+ "type": "text",
222
+ "primaryKey": false,
223
+ "notNull": false,
224
+ "autoincrement": false
225
+ },
226
+ "changed": {
227
+ "name": "changed",
228
+ "type": "integer",
229
+ "primaryKey": false,
230
+ "notNull": true,
231
+ "autoincrement": false,
232
+ "default": false
233
+ },
234
+ "created_at": {
235
+ "name": "created_at",
236
+ "type": "integer",
237
+ "primaryKey": false,
238
+ "notNull": true,
239
+ "autoincrement": false,
240
+ "default": "(unixepoch() * 1000)"
241
+ }
242
+ },
243
+ "indexes": {
244
+ "assistant_message_chat": {
245
+ "name": "assistant_message_chat",
246
+ "columns": [
247
+ "chat_id",
248
+ "created_at"
249
+ ],
250
+ "isUnique": false
251
+ }
252
+ },
253
+ "foreignKeys": {
254
+ "assistant_message_chat_id_assistant_chat_id_fk": {
255
+ "name": "assistant_message_chat_id_assistant_chat_id_fk",
256
+ "tableFrom": "assistant_message",
257
+ "tableTo": "assistant_chat",
258
+ "columnsFrom": [
259
+ "chat_id"
260
+ ],
261
+ "columnsTo": [
262
+ "id"
263
+ ],
264
+ "onDelete": "cascade",
265
+ "onUpdate": "no action"
266
+ }
267
+ },
268
+ "compositePrimaryKeys": {},
269
+ "uniqueConstraints": {},
270
+ "checkConstraints": {}
271
+ },
272
+ "device_call": {
273
+ "name": "device_call",
274
+ "columns": {
275
+ "id": {
276
+ "name": "id",
277
+ "type": "integer",
278
+ "primaryKey": true,
279
+ "notNull": true,
280
+ "autoincrement": true
281
+ },
282
+ "run_id": {
283
+ "name": "run_id",
284
+ "type": "text",
285
+ "primaryKey": false,
286
+ "notNull": true,
287
+ "autoincrement": false
288
+ },
289
+ "req_id": {
290
+ "name": "req_id",
291
+ "type": "text",
292
+ "primaryKey": false,
293
+ "notNull": true,
294
+ "autoincrement": false
295
+ },
296
+ "request": {
297
+ "name": "request",
298
+ "type": "text",
299
+ "primaryKey": false,
300
+ "notNull": true,
301
+ "autoincrement": false
302
+ },
303
+ "answer": {
304
+ "name": "answer",
305
+ "type": "text",
306
+ "primaryKey": false,
307
+ "notNull": false,
308
+ "autoincrement": false
309
+ },
310
+ "created_at": {
311
+ "name": "created_at",
312
+ "type": "integer",
313
+ "primaryKey": false,
314
+ "notNull": true,
315
+ "autoincrement": false,
316
+ "default": "(unixepoch() * 1000)"
317
+ }
318
+ },
319
+ "indexes": {
320
+ "device_call_req": {
321
+ "name": "device_call_req",
322
+ "columns": [
323
+ "req_id"
324
+ ],
325
+ "isUnique": true
326
+ },
327
+ "device_call_run": {
328
+ "name": "device_call_run",
329
+ "columns": [
330
+ "run_id"
331
+ ],
332
+ "isUnique": false
333
+ }
334
+ },
335
+ "foreignKeys": {
336
+ "device_call_run_id_run_id_fk": {
337
+ "name": "device_call_run_id_run_id_fk",
338
+ "tableFrom": "device_call",
339
+ "tableTo": "run",
340
+ "columnsFrom": [
341
+ "run_id"
342
+ ],
343
+ "columnsTo": [
344
+ "id"
345
+ ],
346
+ "onDelete": "cascade",
347
+ "onUpdate": "no action"
348
+ }
349
+ },
350
+ "compositePrimaryKeys": {},
351
+ "uniqueConstraints": {},
352
+ "checkConstraints": {}
353
+ },
354
+ "marketplace_star": {
355
+ "name": "marketplace_star",
356
+ "columns": {
357
+ "tenant_id": {
358
+ "name": "tenant_id",
359
+ "type": "text",
360
+ "primaryKey": false,
361
+ "notNull": true,
362
+ "autoincrement": false
363
+ },
364
+ "entry_id": {
365
+ "name": "entry_id",
366
+ "type": "text",
367
+ "primaryKey": false,
368
+ "notNull": true,
369
+ "autoincrement": false
370
+ },
371
+ "created_at": {
372
+ "name": "created_at",
373
+ "type": "integer",
374
+ "primaryKey": false,
375
+ "notNull": true,
376
+ "autoincrement": false,
377
+ "default": "(unixepoch() * 1000)"
378
+ }
379
+ },
380
+ "indexes": {},
381
+ "foreignKeys": {},
382
+ "compositePrimaryKeys": {
383
+ "marketplace_star_tenant_id_entry_id_pk": {
384
+ "columns": [
385
+ "tenant_id",
386
+ "entry_id"
387
+ ],
388
+ "name": "marketplace_star_tenant_id_entry_id_pk"
389
+ }
390
+ },
391
+ "uniqueConstraints": {},
392
+ "checkConstraints": {}
393
+ },
394
+ "plugin_connection": {
395
+ "name": "plugin_connection",
396
+ "columns": {
397
+ "id": {
398
+ "name": "id",
399
+ "type": "text",
400
+ "primaryKey": true,
401
+ "notNull": true,
402
+ "autoincrement": false
403
+ },
404
+ "plugin": {
405
+ "name": "plugin",
406
+ "type": "text",
407
+ "primaryKey": false,
408
+ "notNull": true,
409
+ "autoincrement": false
410
+ },
411
+ "project_id": {
412
+ "name": "project_id",
413
+ "type": "text",
414
+ "primaryKey": false,
415
+ "notNull": true,
416
+ "autoincrement": false
417
+ },
418
+ "connector": {
419
+ "name": "connector",
420
+ "type": "text",
421
+ "primaryKey": false,
422
+ "notNull": true,
423
+ "autoincrement": false
424
+ },
425
+ "label": {
426
+ "name": "label",
427
+ "type": "text",
428
+ "primaryKey": false,
429
+ "notNull": true,
430
+ "autoincrement": false
431
+ },
432
+ "actions": {
433
+ "name": "actions",
434
+ "type": "text",
435
+ "primaryKey": false,
436
+ "notNull": true,
437
+ "autoincrement": false
438
+ },
439
+ "data": {
440
+ "name": "data",
441
+ "type": "text",
442
+ "primaryKey": false,
443
+ "notNull": true,
444
+ "autoincrement": false
445
+ },
446
+ "created_by": {
447
+ "name": "created_by",
448
+ "type": "text",
449
+ "primaryKey": false,
450
+ "notNull": false,
451
+ "autoincrement": false
452
+ },
453
+ "created_at": {
454
+ "name": "created_at",
455
+ "type": "integer",
456
+ "primaryKey": false,
457
+ "notNull": true,
458
+ "autoincrement": false,
459
+ "default": "(unixepoch() * 1000)"
460
+ },
461
+ "updated_at": {
462
+ "name": "updated_at",
463
+ "type": "integer",
464
+ "primaryKey": false,
465
+ "notNull": true,
466
+ "autoincrement": false,
467
+ "default": "(unixepoch() * 1000)"
468
+ }
469
+ },
470
+ "indexes": {
471
+ "plugin_connection_space": {
472
+ "name": "plugin_connection_space",
473
+ "columns": [
474
+ "plugin",
475
+ "project_id"
476
+ ],
477
+ "isUnique": false
478
+ }
479
+ },
480
+ "foreignKeys": {
481
+ "plugin_connection_project_id_project_id_fk": {
482
+ "name": "plugin_connection_project_id_project_id_fk",
483
+ "tableFrom": "plugin_connection",
484
+ "tableTo": "project",
485
+ "columnsFrom": [
486
+ "project_id"
487
+ ],
488
+ "columnsTo": [
489
+ "id"
490
+ ],
491
+ "onDelete": "cascade",
492
+ "onUpdate": "no action"
493
+ }
494
+ },
495
+ "compositePrimaryKeys": {},
496
+ "uniqueConstraints": {},
497
+ "checkConstraints": {}
498
+ },
499
+ "project": {
500
+ "name": "project",
501
+ "columns": {
502
+ "id": {
503
+ "name": "id",
504
+ "type": "text",
505
+ "primaryKey": true,
506
+ "notNull": true,
507
+ "autoincrement": false
508
+ },
509
+ "tenant_id": {
510
+ "name": "tenant_id",
511
+ "type": "text",
512
+ "primaryKey": false,
513
+ "notNull": true,
514
+ "autoincrement": false
515
+ },
516
+ "name": {
517
+ "name": "name",
518
+ "type": "text",
519
+ "primaryKey": false,
520
+ "notNull": true,
521
+ "autoincrement": false
522
+ },
523
+ "brand": {
524
+ "name": "brand",
525
+ "type": "text",
526
+ "primaryKey": false,
527
+ "notNull": true,
528
+ "autoincrement": false,
529
+ "default": "'{}'"
530
+ },
531
+ "facts": {
532
+ "name": "facts",
533
+ "type": "text",
534
+ "primaryKey": false,
535
+ "notNull": true,
536
+ "autoincrement": false,
537
+ "default": "'[]'"
538
+ },
539
+ "mcp_servers": {
540
+ "name": "mcp_servers",
541
+ "type": "text",
542
+ "primaryKey": false,
543
+ "notNull": true,
544
+ "autoincrement": false,
545
+ "default": "'[]'"
546
+ },
547
+ "origin": {
548
+ "name": "origin",
549
+ "type": "text",
550
+ "primaryKey": false,
551
+ "notNull": false,
552
+ "autoincrement": false
553
+ },
554
+ "synced_at": {
555
+ "name": "synced_at",
556
+ "type": "integer",
557
+ "primaryKey": false,
558
+ "notNull": false,
559
+ "autoincrement": false
560
+ },
561
+ "created_at": {
562
+ "name": "created_at",
563
+ "type": "integer",
564
+ "primaryKey": false,
565
+ "notNull": true,
566
+ "autoincrement": false,
567
+ "default": "(unixepoch() * 1000)"
568
+ },
569
+ "updated_at": {
570
+ "name": "updated_at",
571
+ "type": "integer",
572
+ "primaryKey": false,
573
+ "notNull": true,
574
+ "autoincrement": false,
575
+ "default": "(unixepoch() * 1000)"
576
+ }
577
+ },
578
+ "indexes": {
579
+ "project_tenant": {
580
+ "name": "project_tenant",
581
+ "columns": [
582
+ "tenant_id"
583
+ ],
584
+ "isUnique": false
585
+ }
586
+ },
587
+ "foreignKeys": {},
588
+ "compositePrimaryKeys": {},
589
+ "uniqueConstraints": {},
590
+ "checkConstraints": {}
591
+ },
592
+ "project_chunk": {
593
+ "name": "project_chunk",
594
+ "columns": {
595
+ "id": {
596
+ "name": "id",
597
+ "type": "integer",
598
+ "primaryKey": true,
599
+ "notNull": true,
600
+ "autoincrement": true
601
+ },
602
+ "project_id": {
603
+ "name": "project_id",
604
+ "type": "text",
605
+ "primaryKey": false,
606
+ "notNull": true,
607
+ "autoincrement": false
608
+ },
609
+ "file_id": {
610
+ "name": "file_id",
611
+ "type": "text",
612
+ "primaryKey": false,
613
+ "notNull": false,
614
+ "autoincrement": false
615
+ },
616
+ "page_id": {
617
+ "name": "page_id",
618
+ "type": "text",
619
+ "primaryKey": false,
620
+ "notNull": false,
621
+ "autoincrement": false
622
+ },
623
+ "row_id": {
624
+ "name": "row_id",
625
+ "type": "text",
626
+ "primaryKey": false,
627
+ "notNull": false,
628
+ "autoincrement": false
629
+ },
630
+ "table_id": {
631
+ "name": "table_id",
632
+ "type": "text",
633
+ "primaryKey": false,
634
+ "notNull": false,
635
+ "autoincrement": false
636
+ },
637
+ "value_id": {
638
+ "name": "value_id",
639
+ "type": "text",
640
+ "primaryKey": false,
641
+ "notNull": false,
642
+ "autoincrement": false
643
+ },
644
+ "heading": {
645
+ "name": "heading",
646
+ "type": "text",
647
+ "primaryKey": false,
648
+ "notNull": false,
649
+ "autoincrement": false
650
+ },
651
+ "sheet": {
652
+ "name": "sheet",
653
+ "type": "integer",
654
+ "primaryKey": false,
655
+ "notNull": false,
656
+ "autoincrement": false
657
+ },
658
+ "plugin": {
659
+ "name": "plugin",
660
+ "type": "text",
661
+ "primaryKey": false,
662
+ "notNull": false,
663
+ "autoincrement": false
664
+ },
665
+ "ref": {
666
+ "name": "ref",
667
+ "type": "text",
668
+ "primaryKey": false,
669
+ "notNull": false,
670
+ "autoincrement": false
671
+ },
672
+ "title": {
673
+ "name": "title",
674
+ "type": "text",
675
+ "primaryKey": false,
676
+ "notNull": false,
677
+ "autoincrement": false
678
+ },
679
+ "link": {
680
+ "name": "link",
681
+ "type": "text",
682
+ "primaryKey": false,
683
+ "notNull": false,
684
+ "autoincrement": false
685
+ },
686
+ "idx": {
687
+ "name": "idx",
688
+ "type": "integer",
689
+ "primaryKey": false,
690
+ "notNull": true,
691
+ "autoincrement": false
692
+ },
693
+ "text": {
694
+ "name": "text",
695
+ "type": "text",
696
+ "primaryKey": false,
697
+ "notNull": true,
698
+ "autoincrement": false
699
+ },
700
+ "embedding": {
701
+ "name": "embedding",
702
+ "type": "blob",
703
+ "primaryKey": false,
704
+ "notNull": false,
705
+ "autoincrement": false
706
+ },
707
+ "model": {
708
+ "name": "model",
709
+ "type": "text",
710
+ "primaryKey": false,
711
+ "notNull": false,
712
+ "autoincrement": false
713
+ }
714
+ },
715
+ "indexes": {
716
+ "project_chunk_project": {
717
+ "name": "project_chunk_project",
718
+ "columns": [
719
+ "project_id",
720
+ "model"
721
+ ],
722
+ "isUnique": false
723
+ },
724
+ "project_chunk_file": {
725
+ "name": "project_chunk_file",
726
+ "columns": [
727
+ "file_id"
728
+ ],
729
+ "isUnique": false
730
+ },
731
+ "project_chunk_ref": {
732
+ "name": "project_chunk_ref",
733
+ "columns": [
734
+ "project_id",
735
+ "plugin",
736
+ "ref"
737
+ ],
738
+ "isUnique": false
739
+ },
740
+ "project_chunk_page": {
741
+ "name": "project_chunk_page",
742
+ "columns": [
743
+ "page_id"
744
+ ],
745
+ "isUnique": false
746
+ },
747
+ "project_chunk_row": {
748
+ "name": "project_chunk_row",
749
+ "columns": [
750
+ "row_id"
751
+ ],
752
+ "isUnique": false
753
+ },
754
+ "project_chunk_table": {
755
+ "name": "project_chunk_table",
756
+ "columns": [
757
+ "table_id"
758
+ ],
759
+ "isUnique": false
760
+ },
761
+ "project_chunk_value": {
762
+ "name": "project_chunk_value",
763
+ "columns": [
764
+ "value_id"
765
+ ],
766
+ "isUnique": false
767
+ }
768
+ },
769
+ "foreignKeys": {
770
+ "project_chunk_project_id_project_id_fk": {
771
+ "name": "project_chunk_project_id_project_id_fk",
772
+ "tableFrom": "project_chunk",
773
+ "tableTo": "project",
774
+ "columnsFrom": [
775
+ "project_id"
776
+ ],
777
+ "columnsTo": [
778
+ "id"
779
+ ],
780
+ "onDelete": "cascade",
781
+ "onUpdate": "no action"
782
+ },
783
+ "project_chunk_file_id_project_file_id_fk": {
784
+ "name": "project_chunk_file_id_project_file_id_fk",
785
+ "tableFrom": "project_chunk",
786
+ "tableTo": "project_file",
787
+ "columnsFrom": [
788
+ "file_id"
789
+ ],
790
+ "columnsTo": [
791
+ "id"
792
+ ],
793
+ "onDelete": "cascade",
794
+ "onUpdate": "no action"
795
+ },
796
+ "project_chunk_page_id_space_page_id_fk": {
797
+ "name": "project_chunk_page_id_space_page_id_fk",
798
+ "tableFrom": "project_chunk",
799
+ "tableTo": "space_page",
800
+ "columnsFrom": [
801
+ "page_id"
802
+ ],
803
+ "columnsTo": [
804
+ "id"
805
+ ],
806
+ "onDelete": "cascade",
807
+ "onUpdate": "no action"
808
+ },
809
+ "project_chunk_row_id_space_table_row_id_fk": {
810
+ "name": "project_chunk_row_id_space_table_row_id_fk",
811
+ "tableFrom": "project_chunk",
812
+ "tableTo": "space_table_row",
813
+ "columnsFrom": [
814
+ "row_id"
815
+ ],
816
+ "columnsTo": [
817
+ "id"
818
+ ],
819
+ "onDelete": "cascade",
820
+ "onUpdate": "no action"
821
+ },
822
+ "project_chunk_table_id_space_table_id_fk": {
823
+ "name": "project_chunk_table_id_space_table_id_fk",
824
+ "tableFrom": "project_chunk",
825
+ "tableTo": "space_table",
826
+ "columnsFrom": [
827
+ "table_id"
828
+ ],
829
+ "columnsTo": [
830
+ "id"
831
+ ],
832
+ "onDelete": "cascade",
833
+ "onUpdate": "no action"
834
+ },
835
+ "project_chunk_value_id_space_category_value_id_fk": {
836
+ "name": "project_chunk_value_id_space_category_value_id_fk",
837
+ "tableFrom": "project_chunk",
838
+ "tableTo": "space_category_value",
839
+ "columnsFrom": [
840
+ "value_id"
841
+ ],
842
+ "columnsTo": [
843
+ "id"
844
+ ],
845
+ "onDelete": "cascade",
846
+ "onUpdate": "no action"
847
+ }
848
+ },
849
+ "compositePrimaryKeys": {},
850
+ "uniqueConstraints": {},
851
+ "checkConstraints": {}
852
+ },
853
+ "project_connector": {
854
+ "name": "project_connector",
855
+ "columns": {
856
+ "project_id": {
857
+ "name": "project_id",
858
+ "type": "text",
859
+ "primaryKey": false,
860
+ "notNull": true,
861
+ "autoincrement": false
862
+ },
863
+ "id": {
864
+ "name": "id",
865
+ "type": "text",
866
+ "primaryKey": false,
867
+ "notNull": true,
868
+ "autoincrement": false
869
+ },
870
+ "record": {
871
+ "name": "record",
872
+ "type": "text",
873
+ "primaryKey": false,
874
+ "notNull": true,
875
+ "autoincrement": false
876
+ },
877
+ "created_at": {
878
+ "name": "created_at",
879
+ "type": "integer",
880
+ "primaryKey": false,
881
+ "notNull": true,
882
+ "autoincrement": false,
883
+ "default": "(unixepoch() * 1000)"
884
+ },
885
+ "updated_at": {
886
+ "name": "updated_at",
887
+ "type": "integer",
888
+ "primaryKey": false,
889
+ "notNull": true,
890
+ "autoincrement": false,
891
+ "default": "(unixepoch() * 1000)"
892
+ }
893
+ },
894
+ "indexes": {},
895
+ "foreignKeys": {
896
+ "project_connector_project_id_project_id_fk": {
897
+ "name": "project_connector_project_id_project_id_fk",
898
+ "tableFrom": "project_connector",
899
+ "tableTo": "project",
900
+ "columnsFrom": [
901
+ "project_id"
902
+ ],
903
+ "columnsTo": [
904
+ "id"
905
+ ],
906
+ "onDelete": "cascade",
907
+ "onUpdate": "no action"
908
+ }
909
+ },
910
+ "compositePrimaryKeys": {
911
+ "project_connector_project_id_id_pk": {
912
+ "columns": [
913
+ "project_id",
914
+ "id"
915
+ ],
916
+ "name": "project_connector_project_id_id_pk"
917
+ }
918
+ },
919
+ "uniqueConstraints": {},
920
+ "checkConstraints": {}
921
+ },
922
+ "project_file": {
923
+ "name": "project_file",
924
+ "columns": {
925
+ "id": {
926
+ "name": "id",
927
+ "type": "text",
928
+ "primaryKey": true,
929
+ "notNull": true,
930
+ "autoincrement": false
931
+ },
932
+ "project_id": {
933
+ "name": "project_id",
934
+ "type": "text",
935
+ "primaryKey": false,
936
+ "notNull": true,
937
+ "autoincrement": false
938
+ },
939
+ "kind": {
940
+ "name": "kind",
941
+ "type": "text",
942
+ "primaryKey": false,
943
+ "notNull": true,
944
+ "autoincrement": false
945
+ },
946
+ "name": {
947
+ "name": "name",
948
+ "type": "text",
949
+ "primaryKey": false,
950
+ "notNull": true,
951
+ "autoincrement": false
952
+ },
953
+ "mime": {
954
+ "name": "mime",
955
+ "type": "text",
956
+ "primaryKey": false,
957
+ "notNull": true,
958
+ "autoincrement": false
959
+ },
960
+ "size": {
961
+ "name": "size",
962
+ "type": "integer",
963
+ "primaryKey": false,
964
+ "notNull": true,
965
+ "autoincrement": false
966
+ },
967
+ "description": {
968
+ "name": "description",
969
+ "type": "text",
970
+ "primaryKey": false,
971
+ "notNull": true,
972
+ "autoincrement": false,
973
+ "default": "''"
974
+ },
975
+ "source": {
976
+ "name": "source",
977
+ "type": "text",
978
+ "primaryKey": false,
979
+ "notNull": false,
980
+ "autoincrement": false
981
+ },
982
+ "position": {
983
+ "name": "position",
984
+ "type": "integer",
985
+ "primaryKey": false,
986
+ "notNull": true,
987
+ "autoincrement": false,
988
+ "default": 0
989
+ },
990
+ "status": {
991
+ "name": "status",
992
+ "type": "text",
993
+ "primaryKey": false,
994
+ "notNull": true,
995
+ "autoincrement": false,
996
+ "default": "'ready'"
997
+ },
998
+ "error": {
999
+ "name": "error",
1000
+ "type": "text",
1001
+ "primaryKey": false,
1002
+ "notNull": false,
1003
+ "autoincrement": false
1004
+ },
1005
+ "text_hash": {
1006
+ "name": "text_hash",
1007
+ "type": "text",
1008
+ "primaryKey": false,
1009
+ "notNull": false,
1010
+ "autoincrement": false
1011
+ },
1012
+ "pages": {
1013
+ "name": "pages",
1014
+ "type": "integer",
1015
+ "primaryKey": false,
1016
+ "notNull": false,
1017
+ "autoincrement": false
1018
+ },
1019
+ "chars": {
1020
+ "name": "chars",
1021
+ "type": "integer",
1022
+ "primaryKey": false,
1023
+ "notNull": false,
1024
+ "autoincrement": false
1025
+ },
1026
+ "indexed": {
1027
+ "name": "indexed",
1028
+ "type": "text",
1029
+ "primaryKey": false,
1030
+ "notNull": false,
1031
+ "autoincrement": false
1032
+ },
1033
+ "origin": {
1034
+ "name": "origin",
1035
+ "type": "text",
1036
+ "primaryKey": false,
1037
+ "notNull": false,
1038
+ "autoincrement": false
1039
+ },
1040
+ "origin_key": {
1041
+ "name": "origin_key",
1042
+ "type": "text",
1043
+ "primaryKey": false,
1044
+ "notNull": false,
1045
+ "autoincrement": false
1046
+ },
1047
+ "origin_label": {
1048
+ "name": "origin_label",
1049
+ "type": "text",
1050
+ "primaryKey": false,
1051
+ "notNull": false,
1052
+ "autoincrement": false
1053
+ },
1054
+ "created_at": {
1055
+ "name": "created_at",
1056
+ "type": "integer",
1057
+ "primaryKey": false,
1058
+ "notNull": true,
1059
+ "autoincrement": false,
1060
+ "default": "(unixepoch() * 1000)"
1061
+ },
1062
+ "updated_at": {
1063
+ "name": "updated_at",
1064
+ "type": "integer",
1065
+ "primaryKey": false,
1066
+ "notNull": true,
1067
+ "autoincrement": false,
1068
+ "default": "(unixepoch() * 1000)"
1069
+ }
1070
+ },
1071
+ "indexes": {
1072
+ "project_file_project": {
1073
+ "name": "project_file_project",
1074
+ "columns": [
1075
+ "project_id",
1076
+ "kind",
1077
+ "position"
1078
+ ],
1079
+ "isUnique": false
1080
+ },
1081
+ "project_file_origin": {
1082
+ "name": "project_file_origin",
1083
+ "columns": [
1084
+ "project_id",
1085
+ "origin",
1086
+ "origin_key"
1087
+ ],
1088
+ "isUnique": true
1089
+ }
1090
+ },
1091
+ "foreignKeys": {
1092
+ "project_file_project_id_project_id_fk": {
1093
+ "name": "project_file_project_id_project_id_fk",
1094
+ "tableFrom": "project_file",
1095
+ "tableTo": "project",
1096
+ "columnsFrom": [
1097
+ "project_id"
1098
+ ],
1099
+ "columnsTo": [
1100
+ "id"
1101
+ ],
1102
+ "onDelete": "cascade",
1103
+ "onUpdate": "no action"
1104
+ }
1105
+ },
1106
+ "compositePrimaryKeys": {},
1107
+ "uniqueConstraints": {},
1108
+ "checkConstraints": {}
1109
+ },
1110
+ "run": {
1111
+ "name": "run",
1112
+ "columns": {
1113
+ "id": {
1114
+ "name": "id",
1115
+ "type": "text",
1116
+ "primaryKey": true,
1117
+ "notNull": true,
1118
+ "autoincrement": false
1119
+ },
1120
+ "wizard_id": {
1121
+ "name": "wizard_id",
1122
+ "type": "text",
1123
+ "primaryKey": false,
1124
+ "notNull": true,
1125
+ "autoincrement": false
1126
+ },
1127
+ "tenant_id": {
1128
+ "name": "tenant_id",
1129
+ "type": "text",
1130
+ "primaryKey": false,
1131
+ "notNull": true,
1132
+ "autoincrement": false
1133
+ },
1134
+ "definition": {
1135
+ "name": "definition",
1136
+ "type": "text",
1137
+ "primaryKey": false,
1138
+ "notNull": true,
1139
+ "autoincrement": false
1140
+ },
1141
+ "files": {
1142
+ "name": "files",
1143
+ "type": "text",
1144
+ "primaryKey": false,
1145
+ "notNull": true,
1146
+ "autoincrement": false,
1147
+ "default": "'[]'"
1148
+ },
1149
+ "version": {
1150
+ "name": "version",
1151
+ "type": "integer",
1152
+ "primaryKey": false,
1153
+ "notNull": false,
1154
+ "autoincrement": false
1155
+ },
1156
+ "mode": {
1157
+ "name": "mode",
1158
+ "type": "text",
1159
+ "primaryKey": false,
1160
+ "notNull": true,
1161
+ "autoincrement": false
1162
+ },
1163
+ "runner": {
1164
+ "name": "runner",
1165
+ "type": "text",
1166
+ "primaryKey": false,
1167
+ "notNull": false,
1168
+ "autoincrement": false
1169
+ },
1170
+ "lang": {
1171
+ "name": "lang",
1172
+ "type": "text",
1173
+ "primaryKey": false,
1174
+ "notNull": false,
1175
+ "autoincrement": false
1176
+ },
1177
+ "visitor_id": {
1178
+ "name": "visitor_id",
1179
+ "type": "text",
1180
+ "primaryKey": false,
1181
+ "notNull": false,
1182
+ "autoincrement": false
1183
+ },
1184
+ "user_id": {
1185
+ "name": "user_id",
1186
+ "type": "text",
1187
+ "primaryKey": false,
1188
+ "notNull": false,
1189
+ "autoincrement": false
1190
+ },
1191
+ "ip_hash": {
1192
+ "name": "ip_hash",
1193
+ "type": "text",
1194
+ "primaryKey": false,
1195
+ "notNull": false,
1196
+ "autoincrement": false
1197
+ },
1198
+ "origin": {
1199
+ "name": "origin",
1200
+ "type": "text",
1201
+ "primaryKey": false,
1202
+ "notNull": false,
1203
+ "autoincrement": false
1204
+ },
1205
+ "status": {
1206
+ "name": "status",
1207
+ "type": "text",
1208
+ "primaryKey": false,
1209
+ "notNull": true,
1210
+ "autoincrement": false
1211
+ },
1212
+ "cursor": {
1213
+ "name": "cursor",
1214
+ "type": "text",
1215
+ "primaryKey": false,
1216
+ "notNull": false,
1217
+ "autoincrement": false
1218
+ },
1219
+ "state": {
1220
+ "name": "state",
1221
+ "type": "text",
1222
+ "primaryKey": false,
1223
+ "notNull": true,
1224
+ "autoincrement": false
1225
+ },
1226
+ "error": {
1227
+ "name": "error",
1228
+ "type": "text",
1229
+ "primaryKey": false,
1230
+ "notNull": false,
1231
+ "autoincrement": false
1232
+ },
1233
+ "ask": {
1234
+ "name": "ask",
1235
+ "type": "text",
1236
+ "primaryKey": false,
1237
+ "notNull": false,
1238
+ "autoincrement": false
1239
+ },
1240
+ "answer": {
1241
+ "name": "answer",
1242
+ "type": "text",
1243
+ "primaryKey": false,
1244
+ "notNull": false,
1245
+ "autoincrement": false
1246
+ },
1247
+ "unattended": {
1248
+ "name": "unattended",
1249
+ "type": "integer",
1250
+ "primaryKey": false,
1251
+ "notNull": true,
1252
+ "autoincrement": false,
1253
+ "default": false
1254
+ },
1255
+ "device_offer": {
1256
+ "name": "device_offer",
1257
+ "type": "text",
1258
+ "primaryKey": false,
1259
+ "notNull": false,
1260
+ "autoincrement": false
1261
+ },
1262
+ "cost_micros": {
1263
+ "name": "cost_micros",
1264
+ "type": "integer",
1265
+ "primaryKey": false,
1266
+ "notNull": true,
1267
+ "autoincrement": false,
1268
+ "default": 0
1269
+ },
1270
+ "share_token": {
1271
+ "name": "share_token",
1272
+ "type": "text",
1273
+ "primaryKey": false,
1274
+ "notNull": false,
1275
+ "autoincrement": false
1276
+ },
1277
+ "shared_at": {
1278
+ "name": "shared_at",
1279
+ "type": "integer",
1280
+ "primaryKey": false,
1281
+ "notNull": false,
1282
+ "autoincrement": false
1283
+ },
1284
+ "expires_at": {
1285
+ "name": "expires_at",
1286
+ "type": "integer",
1287
+ "primaryKey": false,
1288
+ "notNull": false,
1289
+ "autoincrement": false
1290
+ },
1291
+ "created_at": {
1292
+ "name": "created_at",
1293
+ "type": "integer",
1294
+ "primaryKey": false,
1295
+ "notNull": true,
1296
+ "autoincrement": false,
1297
+ "default": "(unixepoch() * 1000)"
1298
+ },
1299
+ "updated_at": {
1300
+ "name": "updated_at",
1301
+ "type": "integer",
1302
+ "primaryKey": false,
1303
+ "notNull": true,
1304
+ "autoincrement": false,
1305
+ "default": "(unixepoch() * 1000)"
1306
+ }
1307
+ },
1308
+ "indexes": {
1309
+ "run_share_token": {
1310
+ "name": "run_share_token",
1311
+ "columns": [
1312
+ "share_token"
1313
+ ],
1314
+ "isUnique": true
1315
+ },
1316
+ "run_expires": {
1317
+ "name": "run_expires",
1318
+ "columns": [
1319
+ "expires_at"
1320
+ ],
1321
+ "isUnique": false
1322
+ },
1323
+ "run_wizard": {
1324
+ "name": "run_wizard",
1325
+ "columns": [
1326
+ "wizard_id",
1327
+ "created_at"
1328
+ ],
1329
+ "isUnique": false
1330
+ },
1331
+ "run_visitor": {
1332
+ "name": "run_visitor",
1333
+ "columns": [
1334
+ "visitor_id",
1335
+ "created_at"
1336
+ ],
1337
+ "isUnique": false
1338
+ },
1339
+ "run_status": {
1340
+ "name": "run_status",
1341
+ "columns": [
1342
+ "status"
1343
+ ],
1344
+ "isUnique": false
1345
+ }
1346
+ },
1347
+ "foreignKeys": {
1348
+ "run_wizard_id_wizard_id_fk": {
1349
+ "name": "run_wizard_id_wizard_id_fk",
1350
+ "tableFrom": "run",
1351
+ "tableTo": "wizard",
1352
+ "columnsFrom": [
1353
+ "wizard_id"
1354
+ ],
1355
+ "columnsTo": [
1356
+ "id"
1357
+ ],
1358
+ "onDelete": "cascade",
1359
+ "onUpdate": "no action"
1360
+ }
1361
+ },
1362
+ "compositePrimaryKeys": {},
1363
+ "uniqueConstraints": {},
1364
+ "checkConstraints": {}
1365
+ },
1366
+ "run_cost": {
1367
+ "name": "run_cost",
1368
+ "columns": {
1369
+ "run_id": {
1370
+ "name": "run_id",
1371
+ "type": "text",
1372
+ "primaryKey": false,
1373
+ "notNull": true,
1374
+ "autoincrement": false
1375
+ },
1376
+ "step_id": {
1377
+ "name": "step_id",
1378
+ "type": "text",
1379
+ "primaryKey": false,
1380
+ "notNull": true,
1381
+ "autoincrement": false
1382
+ },
1383
+ "micros": {
1384
+ "name": "micros",
1385
+ "type": "integer",
1386
+ "primaryKey": false,
1387
+ "notNull": true,
1388
+ "autoincrement": false,
1389
+ "default": 0
1390
+ }
1391
+ },
1392
+ "indexes": {},
1393
+ "foreignKeys": {
1394
+ "run_cost_run_id_run_id_fk": {
1395
+ "name": "run_cost_run_id_run_id_fk",
1396
+ "tableFrom": "run_cost",
1397
+ "tableTo": "run",
1398
+ "columnsFrom": [
1399
+ "run_id"
1400
+ ],
1401
+ "columnsTo": [
1402
+ "id"
1403
+ ],
1404
+ "onDelete": "cascade",
1405
+ "onUpdate": "no action"
1406
+ }
1407
+ },
1408
+ "compositePrimaryKeys": {
1409
+ "run_cost_run_id_step_id_pk": {
1410
+ "columns": [
1411
+ "run_id",
1412
+ "step_id"
1413
+ ],
1414
+ "name": "run_cost_run_id_step_id_pk"
1415
+ }
1416
+ },
1417
+ "uniqueConstraints": {},
1418
+ "checkConstraints": {}
1419
+ },
1420
+ "run_event": {
1421
+ "name": "run_event",
1422
+ "columns": {
1423
+ "id": {
1424
+ "name": "id",
1425
+ "type": "integer",
1426
+ "primaryKey": true,
1427
+ "notNull": true,
1428
+ "autoincrement": true
1429
+ },
1430
+ "run_id": {
1431
+ "name": "run_id",
1432
+ "type": "text",
1433
+ "primaryKey": false,
1434
+ "notNull": true,
1435
+ "autoincrement": false
1436
+ },
1437
+ "step_id": {
1438
+ "name": "step_id",
1439
+ "type": "text",
1440
+ "primaryKey": false,
1441
+ "notNull": false,
1442
+ "autoincrement": false
1443
+ },
1444
+ "type": {
1445
+ "name": "type",
1446
+ "type": "text",
1447
+ "primaryKey": false,
1448
+ "notNull": true,
1449
+ "autoincrement": false
1450
+ },
1451
+ "message": {
1452
+ "name": "message",
1453
+ "type": "text",
1454
+ "primaryKey": false,
1455
+ "notNull": true,
1456
+ "autoincrement": false
1457
+ },
1458
+ "note": {
1459
+ "name": "note",
1460
+ "type": "text",
1461
+ "primaryKey": false,
1462
+ "notNull": false,
1463
+ "autoincrement": false
1464
+ },
1465
+ "asset_id": {
1466
+ "name": "asset_id",
1467
+ "type": "text",
1468
+ "primaryKey": false,
1469
+ "notNull": false,
1470
+ "autoincrement": false
1471
+ },
1472
+ "created_at": {
1473
+ "name": "created_at",
1474
+ "type": "integer",
1475
+ "primaryKey": false,
1476
+ "notNull": true,
1477
+ "autoincrement": false,
1478
+ "default": "(unixepoch() * 1000)"
1479
+ }
1480
+ },
1481
+ "indexes": {
1482
+ "run_event_run": {
1483
+ "name": "run_event_run",
1484
+ "columns": [
1485
+ "run_id",
1486
+ "id"
1487
+ ],
1488
+ "isUnique": false
1489
+ }
1490
+ },
1491
+ "foreignKeys": {
1492
+ "run_event_run_id_run_id_fk": {
1493
+ "name": "run_event_run_id_run_id_fk",
1494
+ "tableFrom": "run_event",
1495
+ "tableTo": "run",
1496
+ "columnsFrom": [
1497
+ "run_id"
1498
+ ],
1499
+ "columnsTo": [
1500
+ "id"
1501
+ ],
1502
+ "onDelete": "cascade",
1503
+ "onUpdate": "no action"
1504
+ }
1505
+ },
1506
+ "compositePrimaryKeys": {},
1507
+ "uniqueConstraints": {},
1508
+ "checkConstraints": {}
1509
+ },
1510
+ "space_category": {
1511
+ "name": "space_category",
1512
+ "columns": {
1513
+ "id": {
1514
+ "name": "id",
1515
+ "type": "text",
1516
+ "primaryKey": true,
1517
+ "notNull": true,
1518
+ "autoincrement": false
1519
+ },
1520
+ "tenant_id": {
1521
+ "name": "tenant_id",
1522
+ "type": "text",
1523
+ "primaryKey": false,
1524
+ "notNull": true,
1525
+ "autoincrement": false
1526
+ },
1527
+ "project_id": {
1528
+ "name": "project_id",
1529
+ "type": "text",
1530
+ "primaryKey": false,
1531
+ "notNull": true,
1532
+ "autoincrement": false
1533
+ },
1534
+ "name": {
1535
+ "name": "name",
1536
+ "type": "text",
1537
+ "primaryKey": false,
1538
+ "notNull": true,
1539
+ "autoincrement": false
1540
+ },
1541
+ "type": {
1542
+ "name": "type",
1543
+ "type": "text",
1544
+ "primaryKey": false,
1545
+ "notNull": true,
1546
+ "autoincrement": false
1547
+ },
1548
+ "unit": {
1549
+ "name": "unit",
1550
+ "type": "text",
1551
+ "primaryKey": false,
1552
+ "notNull": false,
1553
+ "autoincrement": false
1554
+ },
1555
+ "multiple": {
1556
+ "name": "multiple",
1557
+ "type": "integer",
1558
+ "primaryKey": false,
1559
+ "notNull": true,
1560
+ "autoincrement": false,
1561
+ "default": false
1562
+ },
1563
+ "ordered": {
1564
+ "name": "ordered",
1565
+ "type": "integer",
1566
+ "primaryKey": false,
1567
+ "notNull": true,
1568
+ "autoincrement": false,
1569
+ "default": false
1570
+ },
1571
+ "hint": {
1572
+ "name": "hint",
1573
+ "type": "text",
1574
+ "primaryKey": false,
1575
+ "notNull": false,
1576
+ "autoincrement": false
1577
+ },
1578
+ "origin": {
1579
+ "name": "origin",
1580
+ "type": "text",
1581
+ "primaryKey": false,
1582
+ "notNull": false,
1583
+ "autoincrement": false
1584
+ },
1585
+ "proposed": {
1586
+ "name": "proposed",
1587
+ "type": "integer",
1588
+ "primaryKey": false,
1589
+ "notNull": true,
1590
+ "autoincrement": false,
1591
+ "default": false
1592
+ },
1593
+ "table_id": {
1594
+ "name": "table_id",
1595
+ "type": "text",
1596
+ "primaryKey": false,
1597
+ "notNull": false,
1598
+ "autoincrement": false
1599
+ },
1600
+ "column_id": {
1601
+ "name": "column_id",
1602
+ "type": "text",
1603
+ "primaryKey": false,
1604
+ "notNull": false,
1605
+ "autoincrement": false
1606
+ },
1607
+ "position": {
1608
+ "name": "position",
1609
+ "type": "integer",
1610
+ "primaryKey": false,
1611
+ "notNull": true,
1612
+ "autoincrement": false,
1613
+ "default": 0
1614
+ },
1615
+ "created_at": {
1616
+ "name": "created_at",
1617
+ "type": "integer",
1618
+ "primaryKey": false,
1619
+ "notNull": true,
1620
+ "autoincrement": false,
1621
+ "default": "(unixepoch() * 1000)"
1622
+ },
1623
+ "updated_at": {
1624
+ "name": "updated_at",
1625
+ "type": "integer",
1626
+ "primaryKey": false,
1627
+ "notNull": true,
1628
+ "autoincrement": false,
1629
+ "default": "(unixepoch() * 1000)"
1630
+ }
1631
+ },
1632
+ "indexes": {
1633
+ "space_category_name": {
1634
+ "name": "space_category_name",
1635
+ "columns": [
1636
+ "project_id",
1637
+ "name"
1638
+ ],
1639
+ "isUnique": true
1640
+ }
1641
+ },
1642
+ "foreignKeys": {
1643
+ "space_category_project_id_project_id_fk": {
1644
+ "name": "space_category_project_id_project_id_fk",
1645
+ "tableFrom": "space_category",
1646
+ "tableTo": "project",
1647
+ "columnsFrom": [
1648
+ "project_id"
1649
+ ],
1650
+ "columnsTo": [
1651
+ "id"
1652
+ ],
1653
+ "onDelete": "cascade",
1654
+ "onUpdate": "no action"
1655
+ },
1656
+ "space_category_table_id_space_table_id_fk": {
1657
+ "name": "space_category_table_id_space_table_id_fk",
1658
+ "tableFrom": "space_category",
1659
+ "tableTo": "space_table",
1660
+ "columnsFrom": [
1661
+ "table_id"
1662
+ ],
1663
+ "columnsTo": [
1664
+ "id"
1665
+ ],
1666
+ "onDelete": "set null",
1667
+ "onUpdate": "no action"
1668
+ }
1669
+ },
1670
+ "compositePrimaryKeys": {},
1671
+ "uniqueConstraints": {},
1672
+ "checkConstraints": {}
1673
+ },
1674
+ "space_category_value": {
1675
+ "name": "space_category_value",
1676
+ "columns": {
1677
+ "id": {
1678
+ "name": "id",
1679
+ "type": "text",
1680
+ "primaryKey": true,
1681
+ "notNull": true,
1682
+ "autoincrement": false
1683
+ },
1684
+ "category_id": {
1685
+ "name": "category_id",
1686
+ "type": "text",
1687
+ "primaryKey": false,
1688
+ "notNull": true,
1689
+ "autoincrement": false
1690
+ },
1691
+ "value": {
1692
+ "name": "value",
1693
+ "type": "text",
1694
+ "primaryKey": false,
1695
+ "notNull": true,
1696
+ "autoincrement": false
1697
+ },
1698
+ "position": {
1699
+ "name": "position",
1700
+ "type": "integer",
1701
+ "primaryKey": false,
1702
+ "notNull": true,
1703
+ "autoincrement": false,
1704
+ "default": 0
1705
+ },
1706
+ "summary": {
1707
+ "name": "summary",
1708
+ "type": "text",
1709
+ "primaryKey": false,
1710
+ "notNull": false,
1711
+ "autoincrement": false
1712
+ },
1713
+ "summary_at": {
1714
+ "name": "summary_at",
1715
+ "type": "integer",
1716
+ "primaryKey": false,
1717
+ "notNull": false,
1718
+ "autoincrement": false
1719
+ },
1720
+ "created_at": {
1721
+ "name": "created_at",
1722
+ "type": "integer",
1723
+ "primaryKey": false,
1724
+ "notNull": true,
1725
+ "autoincrement": false,
1726
+ "default": "(unixepoch() * 1000)"
1727
+ }
1728
+ },
1729
+ "indexes": {
1730
+ "space_category_value_value": {
1731
+ "name": "space_category_value_value",
1732
+ "columns": [
1733
+ "category_id",
1734
+ "value"
1735
+ ],
1736
+ "isUnique": true
1737
+ }
1738
+ },
1739
+ "foreignKeys": {
1740
+ "space_category_value_category_id_space_category_id_fk": {
1741
+ "name": "space_category_value_category_id_space_category_id_fk",
1742
+ "tableFrom": "space_category_value",
1743
+ "tableTo": "space_category",
1744
+ "columnsFrom": [
1745
+ "category_id"
1746
+ ],
1747
+ "columnsTo": [
1748
+ "id"
1749
+ ],
1750
+ "onDelete": "cascade",
1751
+ "onUpdate": "no action"
1752
+ }
1753
+ },
1754
+ "compositePrimaryKeys": {},
1755
+ "uniqueConstraints": {},
1756
+ "checkConstraints": {}
1757
+ },
1758
+ "space_item_category": {
1759
+ "name": "space_item_category",
1760
+ "columns": {
1761
+ "id": {
1762
+ "name": "id",
1763
+ "type": "integer",
1764
+ "primaryKey": true,
1765
+ "notNull": true,
1766
+ "autoincrement": true
1767
+ },
1768
+ "project_id": {
1769
+ "name": "project_id",
1770
+ "type": "text",
1771
+ "primaryKey": false,
1772
+ "notNull": true,
1773
+ "autoincrement": false
1774
+ },
1775
+ "category_id": {
1776
+ "name": "category_id",
1777
+ "type": "text",
1778
+ "primaryKey": false,
1779
+ "notNull": true,
1780
+ "autoincrement": false
1781
+ },
1782
+ "page_id": {
1783
+ "name": "page_id",
1784
+ "type": "text",
1785
+ "primaryKey": false,
1786
+ "notNull": false,
1787
+ "autoincrement": false
1788
+ },
1789
+ "row_id": {
1790
+ "name": "row_id",
1791
+ "type": "text",
1792
+ "primaryKey": false,
1793
+ "notNull": false,
1794
+ "autoincrement": false
1795
+ },
1796
+ "table_id": {
1797
+ "name": "table_id",
1798
+ "type": "text",
1799
+ "primaryKey": false,
1800
+ "notNull": false,
1801
+ "autoincrement": false
1802
+ },
1803
+ "file_id": {
1804
+ "name": "file_id",
1805
+ "type": "text",
1806
+ "primaryKey": false,
1807
+ "notNull": false,
1808
+ "autoincrement": false
1809
+ },
1810
+ "value_id": {
1811
+ "name": "value_id",
1812
+ "type": "text",
1813
+ "primaryKey": false,
1814
+ "notNull": false,
1815
+ "autoincrement": false
1816
+ },
1817
+ "text": {
1818
+ "name": "text",
1819
+ "type": "text",
1820
+ "primaryKey": false,
1821
+ "notNull": false,
1822
+ "autoincrement": false
1823
+ },
1824
+ "num": {
1825
+ "name": "num",
1826
+ "type": "real",
1827
+ "primaryKey": false,
1828
+ "notNull": false,
1829
+ "autoincrement": false
1830
+ },
1831
+ "at": {
1832
+ "name": "at",
1833
+ "type": "integer",
1834
+ "primaryKey": false,
1835
+ "notNull": false,
1836
+ "autoincrement": false
1837
+ },
1838
+ "bool": {
1839
+ "name": "bool",
1840
+ "type": "integer",
1841
+ "primaryKey": false,
1842
+ "notNull": false,
1843
+ "autoincrement": false
1844
+ },
1845
+ "by": {
1846
+ "name": "by",
1847
+ "type": "text",
1848
+ "primaryKey": false,
1849
+ "notNull": true,
1850
+ "autoincrement": false,
1851
+ "default": "'person'"
1852
+ }
1853
+ },
1854
+ "indexes": {
1855
+ "space_item_category_category": {
1856
+ "name": "space_item_category_category",
1857
+ "columns": [
1858
+ "category_id",
1859
+ "value_id"
1860
+ ],
1861
+ "isUnique": false
1862
+ },
1863
+ "space_item_category_page": {
1864
+ "name": "space_item_category_page",
1865
+ "columns": [
1866
+ "page_id"
1867
+ ],
1868
+ "isUnique": false
1869
+ },
1870
+ "space_item_category_row": {
1871
+ "name": "space_item_category_row",
1872
+ "columns": [
1873
+ "row_id"
1874
+ ],
1875
+ "isUnique": false
1876
+ },
1877
+ "space_item_category_table": {
1878
+ "name": "space_item_category_table",
1879
+ "columns": [
1880
+ "table_id"
1881
+ ],
1882
+ "isUnique": false
1883
+ },
1884
+ "space_item_category_file": {
1885
+ "name": "space_item_category_file",
1886
+ "columns": [
1887
+ "file_id"
1888
+ ],
1889
+ "isUnique": false
1890
+ }
1891
+ },
1892
+ "foreignKeys": {
1893
+ "space_item_category_project_id_project_id_fk": {
1894
+ "name": "space_item_category_project_id_project_id_fk",
1895
+ "tableFrom": "space_item_category",
1896
+ "tableTo": "project",
1897
+ "columnsFrom": [
1898
+ "project_id"
1899
+ ],
1900
+ "columnsTo": [
1901
+ "id"
1902
+ ],
1903
+ "onDelete": "cascade",
1904
+ "onUpdate": "no action"
1905
+ },
1906
+ "space_item_category_category_id_space_category_id_fk": {
1907
+ "name": "space_item_category_category_id_space_category_id_fk",
1908
+ "tableFrom": "space_item_category",
1909
+ "tableTo": "space_category",
1910
+ "columnsFrom": [
1911
+ "category_id"
1912
+ ],
1913
+ "columnsTo": [
1914
+ "id"
1915
+ ],
1916
+ "onDelete": "cascade",
1917
+ "onUpdate": "no action"
1918
+ },
1919
+ "space_item_category_page_id_space_page_id_fk": {
1920
+ "name": "space_item_category_page_id_space_page_id_fk",
1921
+ "tableFrom": "space_item_category",
1922
+ "tableTo": "space_page",
1923
+ "columnsFrom": [
1924
+ "page_id"
1925
+ ],
1926
+ "columnsTo": [
1927
+ "id"
1928
+ ],
1929
+ "onDelete": "cascade",
1930
+ "onUpdate": "no action"
1931
+ },
1932
+ "space_item_category_row_id_space_table_row_id_fk": {
1933
+ "name": "space_item_category_row_id_space_table_row_id_fk",
1934
+ "tableFrom": "space_item_category",
1935
+ "tableTo": "space_table_row",
1936
+ "columnsFrom": [
1937
+ "row_id"
1938
+ ],
1939
+ "columnsTo": [
1940
+ "id"
1941
+ ],
1942
+ "onDelete": "cascade",
1943
+ "onUpdate": "no action"
1944
+ },
1945
+ "space_item_category_table_id_space_table_id_fk": {
1946
+ "name": "space_item_category_table_id_space_table_id_fk",
1947
+ "tableFrom": "space_item_category",
1948
+ "tableTo": "space_table",
1949
+ "columnsFrom": [
1950
+ "table_id"
1951
+ ],
1952
+ "columnsTo": [
1953
+ "id"
1954
+ ],
1955
+ "onDelete": "cascade",
1956
+ "onUpdate": "no action"
1957
+ },
1958
+ "space_item_category_file_id_project_file_id_fk": {
1959
+ "name": "space_item_category_file_id_project_file_id_fk",
1960
+ "tableFrom": "space_item_category",
1961
+ "tableTo": "project_file",
1962
+ "columnsFrom": [
1963
+ "file_id"
1964
+ ],
1965
+ "columnsTo": [
1966
+ "id"
1967
+ ],
1968
+ "onDelete": "cascade",
1969
+ "onUpdate": "no action"
1970
+ },
1971
+ "space_item_category_value_id_space_category_value_id_fk": {
1972
+ "name": "space_item_category_value_id_space_category_value_id_fk",
1973
+ "tableFrom": "space_item_category",
1974
+ "tableTo": "space_category_value",
1975
+ "columnsFrom": [
1976
+ "value_id"
1977
+ ],
1978
+ "columnsTo": [
1979
+ "id"
1980
+ ],
1981
+ "onDelete": "cascade",
1982
+ "onUpdate": "no action"
1983
+ }
1984
+ },
1985
+ "compositePrimaryKeys": {},
1986
+ "uniqueConstraints": {},
1987
+ "checkConstraints": {}
1988
+ },
1989
+ "space_page": {
1990
+ "name": "space_page",
1991
+ "columns": {
1992
+ "id": {
1993
+ "name": "id",
1994
+ "type": "text",
1995
+ "primaryKey": true,
1996
+ "notNull": true,
1997
+ "autoincrement": false
1998
+ },
1999
+ "tenant_id": {
2000
+ "name": "tenant_id",
2001
+ "type": "text",
2002
+ "primaryKey": false,
2003
+ "notNull": true,
2004
+ "autoincrement": false
2005
+ },
2006
+ "project_id": {
2007
+ "name": "project_id",
2008
+ "type": "text",
2009
+ "primaryKey": false,
2010
+ "notNull": true,
2011
+ "autoincrement": false
2012
+ },
2013
+ "wizard_id": {
2014
+ "name": "wizard_id",
2015
+ "type": "text",
2016
+ "primaryKey": false,
2017
+ "notNull": false,
2018
+ "autoincrement": false
2019
+ },
2020
+ "parent_id": {
2021
+ "name": "parent_id",
2022
+ "type": "text",
2023
+ "primaryKey": false,
2024
+ "notNull": false,
2025
+ "autoincrement": false
2026
+ },
2027
+ "position": {
2028
+ "name": "position",
2029
+ "type": "integer",
2030
+ "primaryKey": false,
2031
+ "notNull": true,
2032
+ "autoincrement": false,
2033
+ "default": 0
2034
+ },
2035
+ "title": {
2036
+ "name": "title",
2037
+ "type": "text",
2038
+ "primaryKey": false,
2039
+ "notNull": true,
2040
+ "autoincrement": false
2041
+ },
2042
+ "slug": {
2043
+ "name": "slug",
2044
+ "type": "text",
2045
+ "primaryKey": false,
2046
+ "notNull": false,
2047
+ "autoincrement": false
2048
+ },
2049
+ "markdown": {
2050
+ "name": "markdown",
2051
+ "type": "text",
2052
+ "primaryKey": false,
2053
+ "notNull": true,
2054
+ "autoincrement": false,
2055
+ "default": "''"
2056
+ },
2057
+ "origin": {
2058
+ "name": "origin",
2059
+ "type": "text",
2060
+ "primaryKey": false,
2061
+ "notNull": false,
2062
+ "autoincrement": false
2063
+ },
2064
+ "origin_key": {
2065
+ "name": "origin_key",
2066
+ "type": "text",
2067
+ "primaryKey": false,
2068
+ "notNull": false,
2069
+ "autoincrement": false
2070
+ },
2071
+ "origin_label": {
2072
+ "name": "origin_label",
2073
+ "type": "text",
2074
+ "primaryKey": false,
2075
+ "notNull": false,
2076
+ "autoincrement": false
2077
+ },
2078
+ "kept": {
2079
+ "name": "kept",
2080
+ "type": "integer",
2081
+ "primaryKey": false,
2082
+ "notNull": true,
2083
+ "autoincrement": false,
2084
+ "default": false
2085
+ },
2086
+ "review": {
2087
+ "name": "review",
2088
+ "type": "text",
2089
+ "primaryKey": false,
2090
+ "notNull": false,
2091
+ "autoincrement": false
2092
+ },
2093
+ "file_id": {
2094
+ "name": "file_id",
2095
+ "type": "text",
2096
+ "primaryKey": false,
2097
+ "notNull": false,
2098
+ "autoincrement": false
2099
+ },
2100
+ "created_at": {
2101
+ "name": "created_at",
2102
+ "type": "integer",
2103
+ "primaryKey": false,
2104
+ "notNull": true,
2105
+ "autoincrement": false,
2106
+ "default": "(unixepoch() * 1000)"
2107
+ },
2108
+ "updated_at": {
2109
+ "name": "updated_at",
2110
+ "type": "integer",
2111
+ "primaryKey": false,
2112
+ "notNull": true,
2113
+ "autoincrement": false,
2114
+ "default": "(unixepoch() * 1000)"
2115
+ }
2116
+ },
2117
+ "indexes": {
2118
+ "space_page_project": {
2119
+ "name": "space_page_project",
2120
+ "columns": [
2121
+ "project_id",
2122
+ "wizard_id"
2123
+ ],
2124
+ "isUnique": false
2125
+ },
2126
+ "space_page_parent": {
2127
+ "name": "space_page_parent",
2128
+ "columns": [
2129
+ "parent_id",
2130
+ "position"
2131
+ ],
2132
+ "isUnique": false
2133
+ },
2134
+ "space_page_origin": {
2135
+ "name": "space_page_origin",
2136
+ "columns": [
2137
+ "project_id",
2138
+ "origin",
2139
+ "origin_key"
2140
+ ],
2141
+ "isUnique": true
2142
+ }
2143
+ },
2144
+ "foreignKeys": {
2145
+ "space_page_project_id_project_id_fk": {
2146
+ "name": "space_page_project_id_project_id_fk",
2147
+ "tableFrom": "space_page",
2148
+ "tableTo": "project",
2149
+ "columnsFrom": [
2150
+ "project_id"
2151
+ ],
2152
+ "columnsTo": [
2153
+ "id"
2154
+ ],
2155
+ "onDelete": "cascade",
2156
+ "onUpdate": "no action"
2157
+ },
2158
+ "space_page_wizard_id_wizard_id_fk": {
2159
+ "name": "space_page_wizard_id_wizard_id_fk",
2160
+ "tableFrom": "space_page",
2161
+ "tableTo": "wizard",
2162
+ "columnsFrom": [
2163
+ "wizard_id"
2164
+ ],
2165
+ "columnsTo": [
2166
+ "id"
2167
+ ],
2168
+ "onDelete": "cascade",
2169
+ "onUpdate": "no action"
2170
+ },
2171
+ "space_page_parent_id_space_page_id_fk": {
2172
+ "name": "space_page_parent_id_space_page_id_fk",
2173
+ "tableFrom": "space_page",
2174
+ "tableTo": "space_page",
2175
+ "columnsFrom": [
2176
+ "parent_id"
2177
+ ],
2178
+ "columnsTo": [
2179
+ "id"
2180
+ ],
2181
+ "onDelete": "cascade",
2182
+ "onUpdate": "no action"
2183
+ },
2184
+ "space_page_file_id_project_file_id_fk": {
2185
+ "name": "space_page_file_id_project_file_id_fk",
2186
+ "tableFrom": "space_page",
2187
+ "tableTo": "project_file",
2188
+ "columnsFrom": [
2189
+ "file_id"
2190
+ ],
2191
+ "columnsTo": [
2192
+ "id"
2193
+ ],
2194
+ "onDelete": "set null",
2195
+ "onUpdate": "no action"
2196
+ }
2197
+ },
2198
+ "compositePrimaryKeys": {},
2199
+ "uniqueConstraints": {},
2200
+ "checkConstraints": {}
2201
+ },
2202
+ "space_table": {
2203
+ "name": "space_table",
2204
+ "columns": {
2205
+ "id": {
2206
+ "name": "id",
2207
+ "type": "text",
2208
+ "primaryKey": true,
2209
+ "notNull": true,
2210
+ "autoincrement": false
2211
+ },
2212
+ "tenant_id": {
2213
+ "name": "tenant_id",
2214
+ "type": "text",
2215
+ "primaryKey": false,
2216
+ "notNull": true,
2217
+ "autoincrement": false
2218
+ },
2219
+ "project_id": {
2220
+ "name": "project_id",
2221
+ "type": "text",
2222
+ "primaryKey": false,
2223
+ "notNull": true,
2224
+ "autoincrement": false
2225
+ },
2226
+ "wizard_id": {
2227
+ "name": "wizard_id",
2228
+ "type": "text",
2229
+ "primaryKey": false,
2230
+ "notNull": false,
2231
+ "autoincrement": false
2232
+ },
2233
+ "list": {
2234
+ "name": "list",
2235
+ "type": "text",
2236
+ "primaryKey": false,
2237
+ "notNull": false,
2238
+ "autoincrement": false
2239
+ },
2240
+ "key_column": {
2241
+ "name": "key_column",
2242
+ "type": "text",
2243
+ "primaryKey": false,
2244
+ "notNull": false,
2245
+ "autoincrement": false
2246
+ },
2247
+ "title": {
2248
+ "name": "title",
2249
+ "type": "text",
2250
+ "primaryKey": false,
2251
+ "notNull": true,
2252
+ "autoincrement": false
2253
+ },
2254
+ "slug": {
2255
+ "name": "slug",
2256
+ "type": "text",
2257
+ "primaryKey": false,
2258
+ "notNull": false,
2259
+ "autoincrement": false
2260
+ },
2261
+ "format": {
2262
+ "name": "format",
2263
+ "type": "text",
2264
+ "primaryKey": false,
2265
+ "notNull": false,
2266
+ "autoincrement": false
2267
+ },
2268
+ "columns": {
2269
+ "name": "columns",
2270
+ "type": "text",
2271
+ "primaryKey": false,
2272
+ "notNull": true,
2273
+ "autoincrement": false
2274
+ },
2275
+ "origin": {
2276
+ "name": "origin",
2277
+ "type": "text",
2278
+ "primaryKey": false,
2279
+ "notNull": false,
2280
+ "autoincrement": false
2281
+ },
2282
+ "origin_key": {
2283
+ "name": "origin_key",
2284
+ "type": "text",
2285
+ "primaryKey": false,
2286
+ "notNull": false,
2287
+ "autoincrement": false
2288
+ },
2289
+ "origin_label": {
2290
+ "name": "origin_label",
2291
+ "type": "text",
2292
+ "primaryKey": false,
2293
+ "notNull": false,
2294
+ "autoincrement": false
2295
+ },
2296
+ "kept": {
2297
+ "name": "kept",
2298
+ "type": "integer",
2299
+ "primaryKey": false,
2300
+ "notNull": true,
2301
+ "autoincrement": false,
2302
+ "default": false
2303
+ },
2304
+ "review": {
2305
+ "name": "review",
2306
+ "type": "text",
2307
+ "primaryKey": false,
2308
+ "notNull": false,
2309
+ "autoincrement": false
2310
+ },
2311
+ "file_id": {
2312
+ "name": "file_id",
2313
+ "type": "text",
2314
+ "primaryKey": false,
2315
+ "notNull": false,
2316
+ "autoincrement": false
2317
+ },
2318
+ "created_at": {
2319
+ "name": "created_at",
2320
+ "type": "integer",
2321
+ "primaryKey": false,
2322
+ "notNull": true,
2323
+ "autoincrement": false,
2324
+ "default": "(unixepoch() * 1000)"
2325
+ },
2326
+ "updated_at": {
2327
+ "name": "updated_at",
2328
+ "type": "integer",
2329
+ "primaryKey": false,
2330
+ "notNull": true,
2331
+ "autoincrement": false,
2332
+ "default": "(unixepoch() * 1000)"
2333
+ }
2334
+ },
2335
+ "indexes": {
2336
+ "space_table_project": {
2337
+ "name": "space_table_project",
2338
+ "columns": [
2339
+ "project_id",
2340
+ "wizard_id"
2341
+ ],
2342
+ "isUnique": false
2343
+ },
2344
+ "space_table_list": {
2345
+ "name": "space_table_list",
2346
+ "columns": [
2347
+ "wizard_id",
2348
+ "list"
2349
+ ],
2350
+ "isUnique": true
2351
+ },
2352
+ "space_table_origin": {
2353
+ "name": "space_table_origin",
2354
+ "columns": [
2355
+ "project_id",
2356
+ "origin",
2357
+ "origin_key"
2358
+ ],
2359
+ "isUnique": true
2360
+ }
2361
+ },
2362
+ "foreignKeys": {
2363
+ "space_table_project_id_project_id_fk": {
2364
+ "name": "space_table_project_id_project_id_fk",
2365
+ "tableFrom": "space_table",
2366
+ "tableTo": "project",
2367
+ "columnsFrom": [
2368
+ "project_id"
2369
+ ],
2370
+ "columnsTo": [
2371
+ "id"
2372
+ ],
2373
+ "onDelete": "cascade",
2374
+ "onUpdate": "no action"
2375
+ },
2376
+ "space_table_wizard_id_wizard_id_fk": {
2377
+ "name": "space_table_wizard_id_wizard_id_fk",
2378
+ "tableFrom": "space_table",
2379
+ "tableTo": "wizard",
2380
+ "columnsFrom": [
2381
+ "wizard_id"
2382
+ ],
2383
+ "columnsTo": [
2384
+ "id"
2385
+ ],
2386
+ "onDelete": "cascade",
2387
+ "onUpdate": "no action"
2388
+ },
2389
+ "space_table_file_id_project_file_id_fk": {
2390
+ "name": "space_table_file_id_project_file_id_fk",
2391
+ "tableFrom": "space_table",
2392
+ "tableTo": "project_file",
2393
+ "columnsFrom": [
2394
+ "file_id"
2395
+ ],
2396
+ "columnsTo": [
2397
+ "id"
2398
+ ],
2399
+ "onDelete": "set null",
2400
+ "onUpdate": "no action"
2401
+ }
2402
+ },
2403
+ "compositePrimaryKeys": {},
2404
+ "uniqueConstraints": {},
2405
+ "checkConstraints": {}
2406
+ },
2407
+ "space_table_row": {
2408
+ "name": "space_table_row",
2409
+ "columns": {
2410
+ "id": {
2411
+ "name": "id",
2412
+ "type": "text",
2413
+ "primaryKey": true,
2414
+ "notNull": true,
2415
+ "autoincrement": false
2416
+ },
2417
+ "table_id": {
2418
+ "name": "table_id",
2419
+ "type": "text",
2420
+ "primaryKey": false,
2421
+ "notNull": true,
2422
+ "autoincrement": false
2423
+ },
2424
+ "key": {
2425
+ "name": "key",
2426
+ "type": "text",
2427
+ "primaryKey": false,
2428
+ "notNull": false,
2429
+ "autoincrement": false
2430
+ },
2431
+ "cells": {
2432
+ "name": "cells",
2433
+ "type": "text",
2434
+ "primaryKey": false,
2435
+ "notNull": true,
2436
+ "autoincrement": false
2437
+ },
2438
+ "created_at": {
2439
+ "name": "created_at",
2440
+ "type": "integer",
2441
+ "primaryKey": false,
2442
+ "notNull": true,
2443
+ "autoincrement": false,
2444
+ "default": "(unixepoch() * 1000)"
2445
+ },
2446
+ "updated_at": {
2447
+ "name": "updated_at",
2448
+ "type": "integer",
2449
+ "primaryKey": false,
2450
+ "notNull": true,
2451
+ "autoincrement": false,
2452
+ "default": "(unixepoch() * 1000)"
2453
+ }
2454
+ },
2455
+ "indexes": {
2456
+ "space_table_row_table": {
2457
+ "name": "space_table_row_table",
2458
+ "columns": [
2459
+ "table_id",
2460
+ "created_at"
2461
+ ],
2462
+ "isUnique": false
2463
+ },
2464
+ "space_table_row_key": {
2465
+ "name": "space_table_row_key",
2466
+ "columns": [
2467
+ "table_id",
2468
+ "key"
2469
+ ],
2470
+ "isUnique": false
2471
+ }
2472
+ },
2473
+ "foreignKeys": {
2474
+ "space_table_row_table_id_space_table_id_fk": {
2475
+ "name": "space_table_row_table_id_space_table_id_fk",
2476
+ "tableFrom": "space_table_row",
2477
+ "tableTo": "space_table",
2478
+ "columnsFrom": [
2479
+ "table_id"
2480
+ ],
2481
+ "columnsTo": [
2482
+ "id"
2483
+ ],
2484
+ "onDelete": "cascade",
2485
+ "onUpdate": "no action"
2486
+ }
2487
+ },
2488
+ "compositePrimaryKeys": {},
2489
+ "uniqueConstraints": {},
2490
+ "checkConstraints": {}
2491
+ },
2492
+ "store_file": {
2493
+ "name": "store_file",
2494
+ "columns": {
2495
+ "wizard_id": {
2496
+ "name": "wizard_id",
2497
+ "type": "text",
2498
+ "primaryKey": false,
2499
+ "notNull": true,
2500
+ "autoincrement": false
2501
+ },
2502
+ "holder": {
2503
+ "name": "holder",
2504
+ "type": "text",
2505
+ "primaryKey": false,
2506
+ "notNull": true,
2507
+ "autoincrement": false
2508
+ },
2509
+ "path": {
2510
+ "name": "path",
2511
+ "type": "text",
2512
+ "primaryKey": false,
2513
+ "notNull": true,
2514
+ "autoincrement": false
2515
+ },
2516
+ "hash": {
2517
+ "name": "hash",
2518
+ "type": "text",
2519
+ "primaryKey": false,
2520
+ "notNull": true,
2521
+ "autoincrement": false
2522
+ },
2523
+ "mime": {
2524
+ "name": "mime",
2525
+ "type": "text",
2526
+ "primaryKey": false,
2527
+ "notNull": true,
2528
+ "autoincrement": false
2529
+ },
2530
+ "size": {
2531
+ "name": "size",
2532
+ "type": "integer",
2533
+ "primaryKey": false,
2534
+ "notNull": true,
2535
+ "autoincrement": false
2536
+ },
2537
+ "source": {
2538
+ "name": "source",
2539
+ "type": "text",
2540
+ "primaryKey": false,
2541
+ "notNull": false,
2542
+ "autoincrement": false
2543
+ },
2544
+ "updated_at": {
2545
+ "name": "updated_at",
2546
+ "type": "integer",
2547
+ "primaryKey": false,
2548
+ "notNull": true,
2549
+ "autoincrement": false,
2550
+ "default": "(unixepoch() * 1000)"
2551
+ }
2552
+ },
2553
+ "indexes": {},
2554
+ "foreignKeys": {
2555
+ "store_file_wizard_id_wizard_id_fk": {
2556
+ "name": "store_file_wizard_id_wizard_id_fk",
2557
+ "tableFrom": "store_file",
2558
+ "tableTo": "wizard",
2559
+ "columnsFrom": [
2560
+ "wizard_id"
2561
+ ],
2562
+ "columnsTo": [
2563
+ "id"
2564
+ ],
2565
+ "onDelete": "cascade",
2566
+ "onUpdate": "no action"
2567
+ }
2568
+ },
2569
+ "compositePrimaryKeys": {
2570
+ "store_file_wizard_id_holder_path_pk": {
2571
+ "columns": [
2572
+ "wizard_id",
2573
+ "holder",
2574
+ "path"
2575
+ ],
2576
+ "name": "store_file_wizard_id_holder_path_pk"
2577
+ }
2578
+ },
2579
+ "uniqueConstraints": {},
2580
+ "checkConstraints": {}
2581
+ },
2582
+ "store_holder": {
2583
+ "name": "store_holder",
2584
+ "columns": {
2585
+ "wizard_id": {
2586
+ "name": "wizard_id",
2587
+ "type": "text",
2588
+ "primaryKey": false,
2589
+ "notNull": true,
2590
+ "autoincrement": false
2591
+ },
2592
+ "holder": {
2593
+ "name": "holder",
2594
+ "type": "text",
2595
+ "primaryKey": false,
2596
+ "notNull": true,
2597
+ "autoincrement": false
2598
+ },
2599
+ "used_at": {
2600
+ "name": "used_at",
2601
+ "type": "integer",
2602
+ "primaryKey": false,
2603
+ "notNull": true,
2604
+ "autoincrement": false,
2605
+ "default": "(unixepoch() * 1000)"
2606
+ }
2607
+ },
2608
+ "indexes": {
2609
+ "store_holder_used": {
2610
+ "name": "store_holder_used",
2611
+ "columns": [
2612
+ "used_at"
2613
+ ],
2614
+ "isUnique": false
2615
+ }
2616
+ },
2617
+ "foreignKeys": {
2618
+ "store_holder_wizard_id_wizard_id_fk": {
2619
+ "name": "store_holder_wizard_id_wizard_id_fk",
2620
+ "tableFrom": "store_holder",
2621
+ "tableTo": "wizard",
2622
+ "columnsFrom": [
2623
+ "wizard_id"
2624
+ ],
2625
+ "columnsTo": [
2626
+ "id"
2627
+ ],
2628
+ "onDelete": "cascade",
2629
+ "onUpdate": "no action"
2630
+ }
2631
+ },
2632
+ "compositePrimaryKeys": {
2633
+ "store_holder_wizard_id_holder_pk": {
2634
+ "columns": [
2635
+ "wizard_id",
2636
+ "holder"
2637
+ ],
2638
+ "name": "store_holder_wizard_id_holder_pk"
2639
+ }
2640
+ },
2641
+ "uniqueConstraints": {},
2642
+ "checkConstraints": {}
2643
+ },
2644
+ "store_row": {
2645
+ "name": "store_row",
2646
+ "columns": {
2647
+ "id": {
2648
+ "name": "id",
2649
+ "type": "text",
2650
+ "primaryKey": true,
2651
+ "notNull": true,
2652
+ "autoincrement": false
2653
+ },
2654
+ "wizard_id": {
2655
+ "name": "wizard_id",
2656
+ "type": "text",
2657
+ "primaryKey": false,
2658
+ "notNull": true,
2659
+ "autoincrement": false
2660
+ },
2661
+ "holder": {
2662
+ "name": "holder",
2663
+ "type": "text",
2664
+ "primaryKey": false,
2665
+ "notNull": true,
2666
+ "autoincrement": false
2667
+ },
2668
+ "list": {
2669
+ "name": "list",
2670
+ "type": "text",
2671
+ "primaryKey": false,
2672
+ "notNull": true,
2673
+ "autoincrement": false
2674
+ },
2675
+ "key": {
2676
+ "name": "key",
2677
+ "type": "text",
2678
+ "primaryKey": false,
2679
+ "notNull": false,
2680
+ "autoincrement": false
2681
+ },
2682
+ "cells": {
2683
+ "name": "cells",
2684
+ "type": "text",
2685
+ "primaryKey": false,
2686
+ "notNull": true,
2687
+ "autoincrement": false
2688
+ },
2689
+ "created_at": {
2690
+ "name": "created_at",
2691
+ "type": "integer",
2692
+ "primaryKey": false,
2693
+ "notNull": true,
2694
+ "autoincrement": false,
2695
+ "default": "(unixepoch() * 1000)"
2696
+ },
2697
+ "updated_at": {
2698
+ "name": "updated_at",
2699
+ "type": "integer",
2700
+ "primaryKey": false,
2701
+ "notNull": true,
2702
+ "autoincrement": false,
2703
+ "default": "(unixepoch() * 1000)"
2704
+ }
2705
+ },
2706
+ "indexes": {
2707
+ "store_row_key": {
2708
+ "name": "store_row_key",
2709
+ "columns": [
2710
+ "wizard_id",
2711
+ "holder",
2712
+ "list",
2713
+ "key"
2714
+ ],
2715
+ "isUnique": true
2716
+ },
2717
+ "store_row_list": {
2718
+ "name": "store_row_list",
2719
+ "columns": [
2720
+ "wizard_id",
2721
+ "holder",
2722
+ "list",
2723
+ "created_at"
2724
+ ],
2725
+ "isUnique": false
2726
+ }
2727
+ },
2728
+ "foreignKeys": {
2729
+ "store_row_wizard_id_wizard_id_fk": {
2730
+ "name": "store_row_wizard_id_wizard_id_fk",
2731
+ "tableFrom": "store_row",
2732
+ "tableTo": "wizard",
2733
+ "columnsFrom": [
2734
+ "wizard_id"
2735
+ ],
2736
+ "columnsTo": [
2737
+ "id"
2738
+ ],
2739
+ "onDelete": "cascade",
2740
+ "onUpdate": "no action"
2741
+ }
2742
+ },
2743
+ "compositePrimaryKeys": {},
2744
+ "uniqueConstraints": {},
2745
+ "checkConstraints": {}
2746
+ },
2747
+ "store_secret": {
2748
+ "name": "store_secret",
2749
+ "columns": {
2750
+ "id": {
2751
+ "name": "id",
2752
+ "type": "text",
2753
+ "primaryKey": true,
2754
+ "notNull": true,
2755
+ "autoincrement": false
2756
+ },
2757
+ "wizard_id": {
2758
+ "name": "wizard_id",
2759
+ "type": "text",
2760
+ "primaryKey": false,
2761
+ "notNull": true,
2762
+ "autoincrement": false
2763
+ },
2764
+ "holder": {
2765
+ "name": "holder",
2766
+ "type": "text",
2767
+ "primaryKey": false,
2768
+ "notNull": true,
2769
+ "autoincrement": false
2770
+ },
2771
+ "slot": {
2772
+ "name": "slot",
2773
+ "type": "text",
2774
+ "primaryKey": false,
2775
+ "notNull": true,
2776
+ "autoincrement": false
2777
+ },
2778
+ "provider": {
2779
+ "name": "provider",
2780
+ "type": "text",
2781
+ "primaryKey": false,
2782
+ "notNull": true,
2783
+ "autoincrement": false
2784
+ },
2785
+ "label": {
2786
+ "name": "label",
2787
+ "type": "text",
2788
+ "primaryKey": false,
2789
+ "notNull": true,
2790
+ "autoincrement": false
2791
+ },
2792
+ "data": {
2793
+ "name": "data",
2794
+ "type": "text",
2795
+ "primaryKey": false,
2796
+ "notNull": true,
2797
+ "autoincrement": false
2798
+ },
2799
+ "created_at": {
2800
+ "name": "created_at",
2801
+ "type": "integer",
2802
+ "primaryKey": false,
2803
+ "notNull": true,
2804
+ "autoincrement": false,
2805
+ "default": "(unixepoch() * 1000)"
2806
+ },
2807
+ "updated_at": {
2808
+ "name": "updated_at",
2809
+ "type": "integer",
2810
+ "primaryKey": false,
2811
+ "notNull": true,
2812
+ "autoincrement": false,
2813
+ "default": "(unixepoch() * 1000)"
2814
+ }
2815
+ },
2816
+ "indexes": {
2817
+ "store_secret_slot": {
2818
+ "name": "store_secret_slot",
2819
+ "columns": [
2820
+ "wizard_id",
2821
+ "holder",
2822
+ "slot"
2823
+ ],
2824
+ "isUnique": true
2825
+ }
2826
+ },
2827
+ "foreignKeys": {
2828
+ "store_secret_wizard_id_wizard_id_fk": {
2829
+ "name": "store_secret_wizard_id_wizard_id_fk",
2830
+ "tableFrom": "store_secret",
2831
+ "tableTo": "wizard",
2832
+ "columnsFrom": [
2833
+ "wizard_id"
2834
+ ],
2835
+ "columnsTo": [
2836
+ "id"
2837
+ ],
2838
+ "onDelete": "cascade",
2839
+ "onUpdate": "no action"
2840
+ }
2841
+ },
2842
+ "compositePrimaryKeys": {},
2843
+ "uniqueConstraints": {},
2844
+ "checkConstraints": {}
2845
+ },
2846
+ "wizard": {
2847
+ "name": "wizard",
2848
+ "columns": {
2849
+ "id": {
2850
+ "name": "id",
2851
+ "type": "text",
2852
+ "primaryKey": true,
2853
+ "notNull": true,
2854
+ "autoincrement": false
2855
+ },
2856
+ "project_id": {
2857
+ "name": "project_id",
2858
+ "type": "text",
2859
+ "primaryKey": false,
2860
+ "notNull": true,
2861
+ "autoincrement": false
2862
+ },
2863
+ "tenant_id": {
2864
+ "name": "tenant_id",
2865
+ "type": "text",
2866
+ "primaryKey": false,
2867
+ "notNull": true,
2868
+ "autoincrement": false
2869
+ },
2870
+ "title": {
2871
+ "name": "title",
2872
+ "type": "text",
2873
+ "primaryKey": false,
2874
+ "notNull": true,
2875
+ "autoincrement": false
2876
+ },
2877
+ "draft": {
2878
+ "name": "draft",
2879
+ "type": "text",
2880
+ "primaryKey": false,
2881
+ "notNull": true,
2882
+ "autoincrement": false
2883
+ },
2884
+ "published_version": {
2885
+ "name": "published_version",
2886
+ "type": "integer",
2887
+ "primaryKey": false,
2888
+ "notNull": false,
2889
+ "autoincrement": false
2890
+ },
2891
+ "share_token": {
2892
+ "name": "share_token",
2893
+ "type": "text",
2894
+ "primaryKey": false,
2895
+ "notNull": true,
2896
+ "autoincrement": false
2897
+ },
2898
+ "share_enabled": {
2899
+ "name": "share_enabled",
2900
+ "type": "integer",
2901
+ "primaryKey": false,
2902
+ "notNull": true,
2903
+ "autoincrement": false,
2904
+ "default": true
2905
+ },
2906
+ "daily_run_limit": {
2907
+ "name": "daily_run_limit",
2908
+ "type": "integer",
2909
+ "primaryKey": false,
2910
+ "notNull": true,
2911
+ "autoincrement": false,
2912
+ "default": 50
2913
+ },
2914
+ "starter": {
2915
+ "name": "starter",
2916
+ "type": "text",
2917
+ "primaryKey": false,
2918
+ "notNull": false,
2919
+ "autoincrement": false
2920
+ },
2921
+ "starter_revision": {
2922
+ "name": "starter_revision",
2923
+ "type": "integer",
2924
+ "primaryKey": false,
2925
+ "notNull": false,
2926
+ "autoincrement": false
2927
+ },
2928
+ "revision": {
2929
+ "name": "revision",
2930
+ "type": "integer",
2931
+ "primaryKey": false,
2932
+ "notNull": true,
2933
+ "autoincrement": false,
2934
+ "default": 0
2935
+ },
2936
+ "runners": {
2937
+ "name": "runners",
2938
+ "type": "text",
2939
+ "primaryKey": false,
2940
+ "notNull": false,
2941
+ "autoincrement": false
2942
+ },
2943
+ "translate": {
2944
+ "name": "translate",
2945
+ "type": "integer",
2946
+ "primaryKey": false,
2947
+ "notNull": true,
2948
+ "autoincrement": false,
2949
+ "default": true
2950
+ },
2951
+ "created_at": {
2952
+ "name": "created_at",
2953
+ "type": "integer",
2954
+ "primaryKey": false,
2955
+ "notNull": true,
2956
+ "autoincrement": false,
2957
+ "default": "(unixepoch() * 1000)"
2958
+ },
2959
+ "updated_at": {
2960
+ "name": "updated_at",
2961
+ "type": "integer",
2962
+ "primaryKey": false,
2963
+ "notNull": true,
2964
+ "autoincrement": false,
2965
+ "default": "(unixepoch() * 1000)"
2966
+ }
2967
+ },
2968
+ "indexes": {
2969
+ "wizard_share_token": {
2970
+ "name": "wizard_share_token",
2971
+ "columns": [
2972
+ "share_token"
2973
+ ],
2974
+ "isUnique": true
2975
+ },
2976
+ "wizard_project": {
2977
+ "name": "wizard_project",
2978
+ "columns": [
2979
+ "project_id"
2980
+ ],
2981
+ "isUnique": false
2982
+ }
2983
+ },
2984
+ "foreignKeys": {
2985
+ "wizard_project_id_project_id_fk": {
2986
+ "name": "wizard_project_id_project_id_fk",
2987
+ "tableFrom": "wizard",
2988
+ "tableTo": "project",
2989
+ "columnsFrom": [
2990
+ "project_id"
2991
+ ],
2992
+ "columnsTo": [
2993
+ "id"
2994
+ ],
2995
+ "onDelete": "cascade",
2996
+ "onUpdate": "no action"
2997
+ }
2998
+ },
2999
+ "compositePrimaryKeys": {},
3000
+ "uniqueConstraints": {},
3001
+ "checkConstraints": {}
3002
+ },
3003
+ "wizard_file": {
3004
+ "name": "wizard_file",
3005
+ "columns": {
3006
+ "wizard_id": {
3007
+ "name": "wizard_id",
3008
+ "type": "text",
3009
+ "primaryKey": false,
3010
+ "notNull": true,
3011
+ "autoincrement": false
3012
+ },
3013
+ "path": {
3014
+ "name": "path",
3015
+ "type": "text",
3016
+ "primaryKey": false,
3017
+ "notNull": true,
3018
+ "autoincrement": false
3019
+ },
3020
+ "hash": {
3021
+ "name": "hash",
3022
+ "type": "text",
3023
+ "primaryKey": false,
3024
+ "notNull": true,
3025
+ "autoincrement": false
3026
+ },
3027
+ "mime": {
3028
+ "name": "mime",
3029
+ "type": "text",
3030
+ "primaryKey": false,
3031
+ "notNull": true,
3032
+ "autoincrement": false
3033
+ },
3034
+ "size": {
3035
+ "name": "size",
3036
+ "type": "integer",
3037
+ "primaryKey": false,
3038
+ "notNull": true,
3039
+ "autoincrement": false
3040
+ },
3041
+ "updated_at": {
3042
+ "name": "updated_at",
3043
+ "type": "integer",
3044
+ "primaryKey": false,
3045
+ "notNull": true,
3046
+ "autoincrement": false,
3047
+ "default": "(unixepoch() * 1000)"
3048
+ }
3049
+ },
3050
+ "indexes": {},
3051
+ "foreignKeys": {
3052
+ "wizard_file_wizard_id_wizard_id_fk": {
3053
+ "name": "wizard_file_wizard_id_wizard_id_fk",
3054
+ "tableFrom": "wizard_file",
3055
+ "tableTo": "wizard",
3056
+ "columnsFrom": [
3057
+ "wizard_id"
3058
+ ],
3059
+ "columnsTo": [
3060
+ "id"
3061
+ ],
3062
+ "onDelete": "cascade",
3063
+ "onUpdate": "no action"
3064
+ }
3065
+ },
3066
+ "compositePrimaryKeys": {
3067
+ "wizard_file_wizard_id_path_pk": {
3068
+ "columns": [
3069
+ "wizard_id",
3070
+ "path"
3071
+ ],
3072
+ "name": "wizard_file_wizard_id_path_pk"
3073
+ }
3074
+ },
3075
+ "uniqueConstraints": {},
3076
+ "checkConstraints": {}
3077
+ },
3078
+ "wizard_message": {
3079
+ "name": "wizard_message",
3080
+ "columns": {
3081
+ "id": {
3082
+ "name": "id",
3083
+ "type": "text",
3084
+ "primaryKey": true,
3085
+ "notNull": true,
3086
+ "autoincrement": false
3087
+ },
3088
+ "wizard_id": {
3089
+ "name": "wizard_id",
3090
+ "type": "text",
3091
+ "primaryKey": false,
3092
+ "notNull": true,
3093
+ "autoincrement": false
3094
+ },
3095
+ "role": {
3096
+ "name": "role",
3097
+ "type": "text",
3098
+ "primaryKey": false,
3099
+ "notNull": true,
3100
+ "autoincrement": false
3101
+ },
3102
+ "content": {
3103
+ "name": "content",
3104
+ "type": "text",
3105
+ "primaryKey": false,
3106
+ "notNull": true,
3107
+ "autoincrement": false
3108
+ },
3109
+ "changed": {
3110
+ "name": "changed",
3111
+ "type": "integer",
3112
+ "primaryKey": false,
3113
+ "notNull": true,
3114
+ "autoincrement": false,
3115
+ "default": false
3116
+ },
3117
+ "source": {
3118
+ "name": "source",
3119
+ "type": "text",
3120
+ "primaryKey": false,
3121
+ "notNull": true,
3122
+ "autoincrement": false,
3123
+ "default": "'studio'"
3124
+ },
3125
+ "client": {
3126
+ "name": "client",
3127
+ "type": "text",
3128
+ "primaryKey": false,
3129
+ "notNull": false,
3130
+ "autoincrement": false
3131
+ },
3132
+ "created_at": {
3133
+ "name": "created_at",
3134
+ "type": "integer",
3135
+ "primaryKey": false,
3136
+ "notNull": true,
3137
+ "autoincrement": false,
3138
+ "default": "(unixepoch() * 1000)"
3139
+ }
3140
+ },
3141
+ "indexes": {
3142
+ "wizard_message_wizard": {
3143
+ "name": "wizard_message_wizard",
3144
+ "columns": [
3145
+ "wizard_id",
3146
+ "created_at"
3147
+ ],
3148
+ "isUnique": false
3149
+ }
3150
+ },
3151
+ "foreignKeys": {
3152
+ "wizard_message_wizard_id_wizard_id_fk": {
3153
+ "name": "wizard_message_wizard_id_wizard_id_fk",
3154
+ "tableFrom": "wizard_message",
3155
+ "tableTo": "wizard",
3156
+ "columnsFrom": [
3157
+ "wizard_id"
3158
+ ],
3159
+ "columnsTo": [
3160
+ "id"
3161
+ ],
3162
+ "onDelete": "cascade",
3163
+ "onUpdate": "no action"
3164
+ }
3165
+ },
3166
+ "compositePrimaryKeys": {},
3167
+ "uniqueConstraints": {},
3168
+ "checkConstraints": {}
3169
+ },
3170
+ "wizard_translation": {
3171
+ "name": "wizard_translation",
3172
+ "columns": {
3173
+ "wizard_id": {
3174
+ "name": "wizard_id",
3175
+ "type": "text",
3176
+ "primaryKey": false,
3177
+ "notNull": true,
3178
+ "autoincrement": false
3179
+ },
3180
+ "lang": {
3181
+ "name": "lang",
3182
+ "type": "text",
3183
+ "primaryKey": false,
3184
+ "notNull": true,
3185
+ "autoincrement": false
3186
+ },
3187
+ "texts": {
3188
+ "name": "texts",
3189
+ "type": "text",
3190
+ "primaryKey": false,
3191
+ "notNull": true,
3192
+ "autoincrement": false
3193
+ },
3194
+ "version": {
3195
+ "name": "version",
3196
+ "type": "integer",
3197
+ "primaryKey": false,
3198
+ "notNull": false,
3199
+ "autoincrement": false
3200
+ },
3201
+ "updated_at": {
3202
+ "name": "updated_at",
3203
+ "type": "integer",
3204
+ "primaryKey": false,
3205
+ "notNull": true,
3206
+ "autoincrement": false,
3207
+ "default": "(unixepoch() * 1000)"
3208
+ }
3209
+ },
3210
+ "indexes": {},
3211
+ "foreignKeys": {
3212
+ "wizard_translation_wizard_id_wizard_id_fk": {
3213
+ "name": "wizard_translation_wizard_id_wizard_id_fk",
3214
+ "tableFrom": "wizard_translation",
3215
+ "tableTo": "wizard",
3216
+ "columnsFrom": [
3217
+ "wizard_id"
3218
+ ],
3219
+ "columnsTo": [
3220
+ "id"
3221
+ ],
3222
+ "onDelete": "cascade",
3223
+ "onUpdate": "no action"
3224
+ }
3225
+ },
3226
+ "compositePrimaryKeys": {
3227
+ "wizard_translation_wizard_id_lang_pk": {
3228
+ "columns": [
3229
+ "wizard_id",
3230
+ "lang"
3231
+ ],
3232
+ "name": "wizard_translation_wizard_id_lang_pk"
3233
+ }
3234
+ },
3235
+ "uniqueConstraints": {},
3236
+ "checkConstraints": {}
3237
+ },
3238
+ "wizard_version": {
3239
+ "name": "wizard_version",
3240
+ "columns": {
3241
+ "id": {
3242
+ "name": "id",
3243
+ "type": "text",
3244
+ "primaryKey": true,
3245
+ "notNull": true,
3246
+ "autoincrement": false
3247
+ },
3248
+ "wizard_id": {
3249
+ "name": "wizard_id",
3250
+ "type": "text",
3251
+ "primaryKey": false,
3252
+ "notNull": true,
3253
+ "autoincrement": false
3254
+ },
3255
+ "version": {
3256
+ "name": "version",
3257
+ "type": "integer",
3258
+ "primaryKey": false,
3259
+ "notNull": true,
3260
+ "autoincrement": false
3261
+ },
3262
+ "definition": {
3263
+ "name": "definition",
3264
+ "type": "text",
3265
+ "primaryKey": false,
3266
+ "notNull": true,
3267
+ "autoincrement": false
3268
+ },
3269
+ "files": {
3270
+ "name": "files",
3271
+ "type": "text",
3272
+ "primaryKey": false,
3273
+ "notNull": true,
3274
+ "autoincrement": false,
3275
+ "default": "'[]'"
3276
+ },
3277
+ "created_at": {
3278
+ "name": "created_at",
3279
+ "type": "integer",
3280
+ "primaryKey": false,
3281
+ "notNull": true,
3282
+ "autoincrement": false,
3283
+ "default": "(unixepoch() * 1000)"
3284
+ }
3285
+ },
3286
+ "indexes": {
3287
+ "wizard_version_n": {
3288
+ "name": "wizard_version_n",
3289
+ "columns": [
3290
+ "wizard_id",
3291
+ "version"
3292
+ ],
3293
+ "isUnique": true
3294
+ }
3295
+ },
3296
+ "foreignKeys": {
3297
+ "wizard_version_wizard_id_wizard_id_fk": {
3298
+ "name": "wizard_version_wizard_id_wizard_id_fk",
3299
+ "tableFrom": "wizard_version",
3300
+ "tableTo": "wizard",
3301
+ "columnsFrom": [
3302
+ "wizard_id"
3303
+ ],
3304
+ "columnsTo": [
3305
+ "id"
3306
+ ],
3307
+ "onDelete": "cascade",
3308
+ "onUpdate": "no action"
3309
+ }
3310
+ },
3311
+ "compositePrimaryKeys": {},
3312
+ "uniqueConstraints": {},
3313
+ "checkConstraints": {}
3314
+ }
3315
+ },
3316
+ "views": {},
3317
+ "enums": {},
3318
+ "_meta": {
3319
+ "schemas": {},
3320
+ "tables": {},
3321
+ "columns": {}
3322
+ },
3323
+ "internal": {
3324
+ "indexes": {}
3325
+ }
3326
+ }