@engenty/wizards-runtime 0.11.3 → 0.11.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/apps/runtime/dist/agents/architect.js +3 -5
  2. package/apps/runtime/dist/agents/studio-assistant.js +1 -3
  3. package/apps/runtime/dist/assistant/knows.js +1 -1
  4. package/apps/runtime/dist/authoring/guide.js +2 -8
  5. package/apps/runtime/dist/credits/estimate.js +1 -1
  6. package/apps/runtime/dist/db/migrations/tenant/0025_drop_mcp_servers.sql +1 -0
  7. package/apps/runtime/dist/db/migrations/tenant/meta/0025_snapshot.json +3959 -0
  8. package/apps/runtime/dist/db/migrations/tenant/meta/_journal.json +7 -0
  9. package/apps/runtime/dist/db/schema.js +0 -4
  10. package/apps/runtime/dist/docs/dev/plugins/events.md +2 -2
  11. package/apps/runtime/dist/docs/dev/wizard-format/agent-steps.md +1 -2
  12. package/apps/runtime/dist/docs/dev/wizard-format/wizard-file.md +6 -8
  13. package/apps/runtime/dist/docs/user-guide/cloud-sync.md +2 -2
  14. package/apps/runtime/dist/docs/user-guide/connectors.md +1 -10
  15. package/apps/runtime/dist/docs/user-guide/steps.md +2 -3
  16. package/apps/runtime/dist/engine/steps.js +126 -131
  17. package/apps/runtime/dist/live/views.js +1 -3
  18. package/apps/runtime/dist/mcp/tools.js +1 -1
  19. package/apps/runtime/dist/services/architect.js +0 -1
  20. package/apps/runtime/dist/services/package-file.js +0 -1
  21. package/apps/runtime/dist/services/package.js +0 -10
  22. package/apps/runtime/dist/services/projects.js +1 -31
  23. package/apps/runtime/dist/services/spaces.js +5 -23
  24. package/apps/runtime/dist/sync/records.js +0 -9
  25. package/apps/runtime/dist/tools/index.js +0 -28
  26. package/apps/web/dist/assets/{AboutDialog-DlbfynVv.js → AboutDialog-B525L37O.js} +1 -1
  27. package/apps/web/dist/assets/{ChangelogDialog-DciD55wO.js → ChangelogDialog-gInSm1Xe.js} +1 -1
  28. package/apps/web/dist/assets/{CodeEditor-9kXX-juf.js → CodeEditor-C0TmdCrb.js} +1 -1
  29. package/apps/web/dist/assets/EditorPage-7t3vhZi6.js +3 -0
  30. package/apps/web/dist/assets/{FlowPreview-BY3kJO9l.js → FlowPreview-BBN-APkG.js} +1 -1
  31. package/apps/web/dist/assets/{Harness-BqcSaPmJ.js → Harness-fAoC908y.js} +1 -1
  32. package/apps/web/dist/assets/Marketplace-CotMMcJ-.js +2 -0
  33. package/apps/web/dist/assets/{NewWizardChannels-CmeAOy0q.js → NewWizardChannels-X32lBGMf.js} +1 -1
  34. package/apps/web/dist/assets/{NewWizardPage-C2Ne-QFZ.js → NewWizardPage-DMoqDhsh.js} +1 -1
  35. package/apps/web/dist/assets/{OnboardingPage-CGEgLpx0.js → OnboardingPage-BjZy-bhI.js} +1 -1
  36. package/apps/web/dist/assets/{PreviewPane-VnxYvrbF.js → PreviewPane-Bt-ForJG.js} +2 -2
  37. package/apps/web/dist/assets/{ProjectPage-CGpsFPJ4.js → ProjectPage-B5a-nod-.js} +1 -1
  38. package/apps/web/dist/assets/{PublicRunner-b4vSNmVB.js → PublicRunner-Cq_XzX54.js} +1 -1
  39. package/apps/web/dist/assets/{ReadOnly-C7Kk-1Vg.js → ReadOnly-DX3beZJz.js} +1 -1
  40. package/apps/web/dist/assets/SettingsPage-DPuwA3QL.js +2 -0
  41. package/apps/web/dist/assets/{SetupPage-DmYnhiMq.js → SetupPage-BI9bgEkI.js} +1 -1
  42. package/apps/web/dist/assets/{SharePage-DMgm31Y_.js → SharePage-Ch-1oLBs.js} +1 -1
  43. package/apps/web/dist/assets/changelog-BlJc9UFS.js +1 -0
  44. package/apps/web/dist/assets/{coins-Dd9IUAaR.js → coins-D_yN56kT.js} +1 -1
  45. package/apps/web/dist/assets/i18n-Dy3fTQM3.js +55 -0
  46. package/apps/web/dist/assets/{index-Cfn8Jnfl.js → index-Dt1Ps3ge.js} +5 -5
  47. package/apps/web/dist/assets/{index-DQc1EITf.css → index-rX7eCvWh.css} +1 -1
  48. package/apps/web/dist/assets/oss-credits-CZT1KRIp.js +1 -0
  49. package/apps/web/dist/assets/{phone-DKeaGjd9.js → phone-DxC6eM6O.js} +1 -1
  50. package/apps/web/dist/assets/{runners-D2_oJdgS.js → runners-SQHfvvNQ.js} +1 -1
  51. package/apps/web/dist/assets/{session-DBNhp6sF.js → session-4CTNIlai.js} +1 -1
  52. package/apps/web/dist/assets/{settings-menu-B09fSEin.js → settings-menu-B0af5EBE.js} +1 -1
  53. package/apps/web/dist/assets/{theme-CdWeSjNs.js → theme-mtamawa_.js} +1 -1
  54. package/apps/web/dist/assets/{ui-BPfapiMz.js → ui-CL8v8Goa.js} +1 -1
  55. package/apps/web/dist/assets/{upload-DCYRRi4d.js → upload-DXJQU2lL.js} +1 -1
  56. package/apps/web/dist/assets/{useMutation-BGqWiJkl.js → useMutation-DwRYrG3V.js} +1 -1
  57. package/apps/web/dist/assets/{volume-2-D_FTVDPk.js → volume-2-CYbbBiXP.js} +1 -1
  58. package/apps/web/dist/assets/{wrench-BYwez0dN.js → wrench-D8lG2BH7.js} +1 -1
  59. package/apps/web/dist/index.html +9 -9
  60. package/apps/web/dist/mcp/flow.html +3 -3
  61. package/node_modules/@engenty/wizards-shared/dist/definition.d.ts +0 -4
  62. package/node_modules/@engenty/wizards-shared/dist/definition.js +0 -3
  63. package/node_modules/@engenty/wizards-shared/dist/fit.d.ts +1 -1
  64. package/node_modules/@engenty/wizards-shared/dist/fit.js +0 -4
  65. package/node_modules/@engenty/wizards-shared/dist/marketplace.js +2 -2
  66. package/node_modules/@engenty/wizards-shared/dist/run.d.ts +0 -2
  67. package/node_modules/@engenty/wizards-shared/dist/run.js +0 -4
  68. package/node_modules/@engenty/wizards-shared/dist/wizard-package.d.ts +0 -4
  69. package/node_modules/@engenty/wizards-shared/dist/wizard-package.js +0 -5
  70. package/package.json +1 -2
  71. package/plugin/.claude-plugin/plugin.json +1 -1
  72. package/plugin/plugin.json +1 -1
  73. package/apps/web/dist/assets/EditorPage-ovstPrvJ.js +0 -3
  74. package/apps/web/dist/assets/Marketplace-DxcNtFdJ.js +0 -2
  75. package/apps/web/dist/assets/SettingsPage-Cgt3zVu5.js +0 -2
  76. package/apps/web/dist/assets/changelog-CJYpF3Mx.js +0 -1
  77. package/apps/web/dist/assets/i18n-QZC6TtrB.js +0 -55
  78. package/apps/web/dist/assets/oss-credits-C6bPkfSE.js +0 -1
@@ -0,0 +1,3959 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "eaec8a65-8b3e-4acf-966b-881bdda9d4f5",
5
+ "prevId": "79ff42b0-2a09-441e-82ba-1d4087b43fe2",
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
+ "live_change": {
355
+ "name": "live_change",
356
+ "columns": {
357
+ "seq": {
358
+ "name": "seq",
359
+ "type": "integer",
360
+ "primaryKey": true,
361
+ "notNull": true,
362
+ "autoincrement": true
363
+ },
364
+ "project_id": {
365
+ "name": "project_id",
366
+ "type": "text",
367
+ "primaryKey": false,
368
+ "notNull": false,
369
+ "autoincrement": false
370
+ },
371
+ "kind": {
372
+ "name": "kind",
373
+ "type": "text",
374
+ "primaryKey": false,
375
+ "notNull": true,
376
+ "autoincrement": false
377
+ },
378
+ "op": {
379
+ "name": "op",
380
+ "type": "text",
381
+ "primaryKey": false,
382
+ "notNull": true,
383
+ "autoincrement": false
384
+ },
385
+ "item": {
386
+ "name": "item",
387
+ "type": "text",
388
+ "primaryKey": false,
389
+ "notNull": true,
390
+ "autoincrement": false
391
+ },
392
+ "parent": {
393
+ "name": "parent",
394
+ "type": "text",
395
+ "primaryKey": false,
396
+ "notNull": false,
397
+ "autoincrement": false
398
+ },
399
+ "at": {
400
+ "name": "at",
401
+ "type": "integer",
402
+ "primaryKey": false,
403
+ "notNull": true,
404
+ "autoincrement": false,
405
+ "default": "(unixepoch() * 1000)"
406
+ }
407
+ },
408
+ "indexes": {
409
+ "live_change_at": {
410
+ "name": "live_change_at",
411
+ "columns": [
412
+ "at"
413
+ ],
414
+ "isUnique": false
415
+ }
416
+ },
417
+ "foreignKeys": {},
418
+ "compositePrimaryKeys": {},
419
+ "uniqueConstraints": {},
420
+ "checkConstraints": {}
421
+ },
422
+ "live_presence": {
423
+ "name": "live_presence",
424
+ "columns": {
425
+ "kind": {
426
+ "name": "kind",
427
+ "type": "text",
428
+ "primaryKey": false,
429
+ "notNull": true,
430
+ "autoincrement": false
431
+ },
432
+ "item": {
433
+ "name": "item",
434
+ "type": "text",
435
+ "primaryKey": false,
436
+ "notNull": true,
437
+ "autoincrement": false
438
+ },
439
+ "who": {
440
+ "name": "who",
441
+ "type": "text",
442
+ "primaryKey": false,
443
+ "notNull": true,
444
+ "autoincrement": false
445
+ },
446
+ "tab": {
447
+ "name": "tab",
448
+ "type": "text",
449
+ "primaryKey": false,
450
+ "notNull": true,
451
+ "autoincrement": false,
452
+ "default": "''"
453
+ },
454
+ "who_kind": {
455
+ "name": "who_kind",
456
+ "type": "text",
457
+ "primaryKey": false,
458
+ "notNull": true,
459
+ "autoincrement": false
460
+ },
461
+ "name": {
462
+ "name": "name",
463
+ "type": "text",
464
+ "primaryKey": false,
465
+ "notNull": true,
466
+ "autoincrement": false
467
+ },
468
+ "client": {
469
+ "name": "client",
470
+ "type": "text",
471
+ "primaryKey": false,
472
+ "notNull": false,
473
+ "autoincrement": false
474
+ },
475
+ "place": {
476
+ "name": "place",
477
+ "type": "text",
478
+ "primaryKey": false,
479
+ "notNull": false,
480
+ "autoincrement": false
481
+ },
482
+ "place_label": {
483
+ "name": "place_label",
484
+ "type": "text",
485
+ "primaryKey": false,
486
+ "notNull": false,
487
+ "autoincrement": false
488
+ },
489
+ "state": {
490
+ "name": "state",
491
+ "type": "text",
492
+ "primaryKey": false,
493
+ "notNull": true,
494
+ "autoincrement": false
495
+ },
496
+ "seen_at": {
497
+ "name": "seen_at",
498
+ "type": "integer",
499
+ "primaryKey": false,
500
+ "notNull": true,
501
+ "autoincrement": false,
502
+ "default": "(unixepoch() * 1000)"
503
+ }
504
+ },
505
+ "indexes": {
506
+ "live_presence_seen": {
507
+ "name": "live_presence_seen",
508
+ "columns": [
509
+ "seen_at"
510
+ ],
511
+ "isUnique": false
512
+ }
513
+ },
514
+ "foreignKeys": {},
515
+ "compositePrimaryKeys": {
516
+ "live_presence_kind_item_who_tab_pk": {
517
+ "columns": [
518
+ "kind",
519
+ "item",
520
+ "who",
521
+ "tab"
522
+ ],
523
+ "name": "live_presence_kind_item_who_tab_pk"
524
+ }
525
+ },
526
+ "uniqueConstraints": {},
527
+ "checkConstraints": {}
528
+ },
529
+ "marketplace_star": {
530
+ "name": "marketplace_star",
531
+ "columns": {
532
+ "tenant_id": {
533
+ "name": "tenant_id",
534
+ "type": "text",
535
+ "primaryKey": false,
536
+ "notNull": true,
537
+ "autoincrement": false
538
+ },
539
+ "entry_id": {
540
+ "name": "entry_id",
541
+ "type": "text",
542
+ "primaryKey": false,
543
+ "notNull": true,
544
+ "autoincrement": false
545
+ },
546
+ "created_at": {
547
+ "name": "created_at",
548
+ "type": "integer",
549
+ "primaryKey": false,
550
+ "notNull": true,
551
+ "autoincrement": false,
552
+ "default": "(unixepoch() * 1000)"
553
+ }
554
+ },
555
+ "indexes": {},
556
+ "foreignKeys": {},
557
+ "compositePrimaryKeys": {
558
+ "marketplace_star_tenant_id_entry_id_pk": {
559
+ "columns": [
560
+ "tenant_id",
561
+ "entry_id"
562
+ ],
563
+ "name": "marketplace_star_tenant_id_entry_id_pk"
564
+ }
565
+ },
566
+ "uniqueConstraints": {},
567
+ "checkConstraints": {}
568
+ },
569
+ "plugin_connection": {
570
+ "name": "plugin_connection",
571
+ "columns": {
572
+ "id": {
573
+ "name": "id",
574
+ "type": "text",
575
+ "primaryKey": true,
576
+ "notNull": true,
577
+ "autoincrement": false
578
+ },
579
+ "plugin": {
580
+ "name": "plugin",
581
+ "type": "text",
582
+ "primaryKey": false,
583
+ "notNull": true,
584
+ "autoincrement": false
585
+ },
586
+ "project_id": {
587
+ "name": "project_id",
588
+ "type": "text",
589
+ "primaryKey": false,
590
+ "notNull": true,
591
+ "autoincrement": false
592
+ },
593
+ "connector": {
594
+ "name": "connector",
595
+ "type": "text",
596
+ "primaryKey": false,
597
+ "notNull": true,
598
+ "autoincrement": false
599
+ },
600
+ "label": {
601
+ "name": "label",
602
+ "type": "text",
603
+ "primaryKey": false,
604
+ "notNull": true,
605
+ "autoincrement": false
606
+ },
607
+ "actions": {
608
+ "name": "actions",
609
+ "type": "text",
610
+ "primaryKey": false,
611
+ "notNull": true,
612
+ "autoincrement": false
613
+ },
614
+ "data": {
615
+ "name": "data",
616
+ "type": "text",
617
+ "primaryKey": false,
618
+ "notNull": true,
619
+ "autoincrement": false
620
+ },
621
+ "created_by": {
622
+ "name": "created_by",
623
+ "type": "text",
624
+ "primaryKey": false,
625
+ "notNull": false,
626
+ "autoincrement": false
627
+ },
628
+ "created_at": {
629
+ "name": "created_at",
630
+ "type": "integer",
631
+ "primaryKey": false,
632
+ "notNull": true,
633
+ "autoincrement": false,
634
+ "default": "(unixepoch() * 1000)"
635
+ },
636
+ "updated_at": {
637
+ "name": "updated_at",
638
+ "type": "integer",
639
+ "primaryKey": false,
640
+ "notNull": true,
641
+ "autoincrement": false,
642
+ "default": "(unixepoch() * 1000)"
643
+ }
644
+ },
645
+ "indexes": {
646
+ "plugin_connection_space": {
647
+ "name": "plugin_connection_space",
648
+ "columns": [
649
+ "plugin",
650
+ "project_id"
651
+ ],
652
+ "isUnique": false
653
+ }
654
+ },
655
+ "foreignKeys": {
656
+ "plugin_connection_project_id_project_id_fk": {
657
+ "name": "plugin_connection_project_id_project_id_fk",
658
+ "tableFrom": "plugin_connection",
659
+ "tableTo": "project",
660
+ "columnsFrom": [
661
+ "project_id"
662
+ ],
663
+ "columnsTo": [
664
+ "id"
665
+ ],
666
+ "onDelete": "cascade",
667
+ "onUpdate": "no action"
668
+ }
669
+ },
670
+ "compositePrimaryKeys": {},
671
+ "uniqueConstraints": {},
672
+ "checkConstraints": {}
673
+ },
674
+ "project": {
675
+ "name": "project",
676
+ "columns": {
677
+ "id": {
678
+ "name": "id",
679
+ "type": "text",
680
+ "primaryKey": true,
681
+ "notNull": true,
682
+ "autoincrement": false
683
+ },
684
+ "tenant_id": {
685
+ "name": "tenant_id",
686
+ "type": "text",
687
+ "primaryKey": false,
688
+ "notNull": true,
689
+ "autoincrement": false
690
+ },
691
+ "name": {
692
+ "name": "name",
693
+ "type": "text",
694
+ "primaryKey": false,
695
+ "notNull": true,
696
+ "autoincrement": false
697
+ },
698
+ "brand": {
699
+ "name": "brand",
700
+ "type": "text",
701
+ "primaryKey": false,
702
+ "notNull": true,
703
+ "autoincrement": false,
704
+ "default": "'{}'"
705
+ },
706
+ "facts": {
707
+ "name": "facts",
708
+ "type": "text",
709
+ "primaryKey": false,
710
+ "notNull": true,
711
+ "autoincrement": false,
712
+ "default": "'[]'"
713
+ },
714
+ "themes": {
715
+ "name": "themes",
716
+ "type": "text",
717
+ "primaryKey": false,
718
+ "notNull": true,
719
+ "autoincrement": false,
720
+ "default": "'[]'"
721
+ },
722
+ "page": {
723
+ "name": "page",
724
+ "type": "text",
725
+ "primaryKey": false,
726
+ "notNull": false,
727
+ "autoincrement": false
728
+ },
729
+ "origin": {
730
+ "name": "origin",
731
+ "type": "text",
732
+ "primaryKey": false,
733
+ "notNull": false,
734
+ "autoincrement": false
735
+ },
736
+ "synced_at": {
737
+ "name": "synced_at",
738
+ "type": "integer",
739
+ "primaryKey": false,
740
+ "notNull": false,
741
+ "autoincrement": false
742
+ },
743
+ "created_at": {
744
+ "name": "created_at",
745
+ "type": "integer",
746
+ "primaryKey": false,
747
+ "notNull": true,
748
+ "autoincrement": false,
749
+ "default": "(unixepoch() * 1000)"
750
+ },
751
+ "updated_at": {
752
+ "name": "updated_at",
753
+ "type": "integer",
754
+ "primaryKey": false,
755
+ "notNull": true,
756
+ "autoincrement": false,
757
+ "default": "(unixepoch() * 1000)"
758
+ }
759
+ },
760
+ "indexes": {
761
+ "project_tenant": {
762
+ "name": "project_tenant",
763
+ "columns": [
764
+ "tenant_id"
765
+ ],
766
+ "isUnique": false
767
+ }
768
+ },
769
+ "foreignKeys": {},
770
+ "compositePrimaryKeys": {},
771
+ "uniqueConstraints": {},
772
+ "checkConstraints": {}
773
+ },
774
+ "project_chunk": {
775
+ "name": "project_chunk",
776
+ "columns": {
777
+ "id": {
778
+ "name": "id",
779
+ "type": "integer",
780
+ "primaryKey": true,
781
+ "notNull": true,
782
+ "autoincrement": true
783
+ },
784
+ "project_id": {
785
+ "name": "project_id",
786
+ "type": "text",
787
+ "primaryKey": false,
788
+ "notNull": true,
789
+ "autoincrement": false
790
+ },
791
+ "file_id": {
792
+ "name": "file_id",
793
+ "type": "text",
794
+ "primaryKey": false,
795
+ "notNull": false,
796
+ "autoincrement": false
797
+ },
798
+ "page_id": {
799
+ "name": "page_id",
800
+ "type": "text",
801
+ "primaryKey": false,
802
+ "notNull": false,
803
+ "autoincrement": false
804
+ },
805
+ "row_id": {
806
+ "name": "row_id",
807
+ "type": "text",
808
+ "primaryKey": false,
809
+ "notNull": false,
810
+ "autoincrement": false
811
+ },
812
+ "table_id": {
813
+ "name": "table_id",
814
+ "type": "text",
815
+ "primaryKey": false,
816
+ "notNull": false,
817
+ "autoincrement": false
818
+ },
819
+ "value_id": {
820
+ "name": "value_id",
821
+ "type": "text",
822
+ "primaryKey": false,
823
+ "notNull": false,
824
+ "autoincrement": false
825
+ },
826
+ "heading": {
827
+ "name": "heading",
828
+ "type": "text",
829
+ "primaryKey": false,
830
+ "notNull": false,
831
+ "autoincrement": false
832
+ },
833
+ "sheet": {
834
+ "name": "sheet",
835
+ "type": "integer",
836
+ "primaryKey": false,
837
+ "notNull": false,
838
+ "autoincrement": false
839
+ },
840
+ "plugin": {
841
+ "name": "plugin",
842
+ "type": "text",
843
+ "primaryKey": false,
844
+ "notNull": false,
845
+ "autoincrement": false
846
+ },
847
+ "ref": {
848
+ "name": "ref",
849
+ "type": "text",
850
+ "primaryKey": false,
851
+ "notNull": false,
852
+ "autoincrement": false
853
+ },
854
+ "title": {
855
+ "name": "title",
856
+ "type": "text",
857
+ "primaryKey": false,
858
+ "notNull": false,
859
+ "autoincrement": false
860
+ },
861
+ "link": {
862
+ "name": "link",
863
+ "type": "text",
864
+ "primaryKey": false,
865
+ "notNull": false,
866
+ "autoincrement": false
867
+ },
868
+ "idx": {
869
+ "name": "idx",
870
+ "type": "integer",
871
+ "primaryKey": false,
872
+ "notNull": true,
873
+ "autoincrement": false
874
+ },
875
+ "text": {
876
+ "name": "text",
877
+ "type": "text",
878
+ "primaryKey": false,
879
+ "notNull": true,
880
+ "autoincrement": false
881
+ },
882
+ "embedding": {
883
+ "name": "embedding",
884
+ "type": "blob",
885
+ "primaryKey": false,
886
+ "notNull": false,
887
+ "autoincrement": false
888
+ },
889
+ "model": {
890
+ "name": "model",
891
+ "type": "text",
892
+ "primaryKey": false,
893
+ "notNull": false,
894
+ "autoincrement": false
895
+ }
896
+ },
897
+ "indexes": {
898
+ "project_chunk_project": {
899
+ "name": "project_chunk_project",
900
+ "columns": [
901
+ "project_id",
902
+ "model"
903
+ ],
904
+ "isUnique": false
905
+ },
906
+ "project_chunk_file": {
907
+ "name": "project_chunk_file",
908
+ "columns": [
909
+ "file_id"
910
+ ],
911
+ "isUnique": false
912
+ },
913
+ "project_chunk_ref": {
914
+ "name": "project_chunk_ref",
915
+ "columns": [
916
+ "project_id",
917
+ "plugin",
918
+ "ref"
919
+ ],
920
+ "isUnique": false
921
+ },
922
+ "project_chunk_page": {
923
+ "name": "project_chunk_page",
924
+ "columns": [
925
+ "page_id"
926
+ ],
927
+ "isUnique": false
928
+ },
929
+ "project_chunk_row": {
930
+ "name": "project_chunk_row",
931
+ "columns": [
932
+ "row_id"
933
+ ],
934
+ "isUnique": false
935
+ },
936
+ "project_chunk_table": {
937
+ "name": "project_chunk_table",
938
+ "columns": [
939
+ "table_id"
940
+ ],
941
+ "isUnique": false
942
+ },
943
+ "project_chunk_value": {
944
+ "name": "project_chunk_value",
945
+ "columns": [
946
+ "value_id"
947
+ ],
948
+ "isUnique": false
949
+ }
950
+ },
951
+ "foreignKeys": {
952
+ "project_chunk_project_id_project_id_fk": {
953
+ "name": "project_chunk_project_id_project_id_fk",
954
+ "tableFrom": "project_chunk",
955
+ "tableTo": "project",
956
+ "columnsFrom": [
957
+ "project_id"
958
+ ],
959
+ "columnsTo": [
960
+ "id"
961
+ ],
962
+ "onDelete": "cascade",
963
+ "onUpdate": "no action"
964
+ },
965
+ "project_chunk_file_id_project_file_id_fk": {
966
+ "name": "project_chunk_file_id_project_file_id_fk",
967
+ "tableFrom": "project_chunk",
968
+ "tableTo": "project_file",
969
+ "columnsFrom": [
970
+ "file_id"
971
+ ],
972
+ "columnsTo": [
973
+ "id"
974
+ ],
975
+ "onDelete": "cascade",
976
+ "onUpdate": "no action"
977
+ },
978
+ "project_chunk_page_id_space_page_id_fk": {
979
+ "name": "project_chunk_page_id_space_page_id_fk",
980
+ "tableFrom": "project_chunk",
981
+ "tableTo": "space_page",
982
+ "columnsFrom": [
983
+ "page_id"
984
+ ],
985
+ "columnsTo": [
986
+ "id"
987
+ ],
988
+ "onDelete": "cascade",
989
+ "onUpdate": "no action"
990
+ },
991
+ "project_chunk_row_id_space_table_row_id_fk": {
992
+ "name": "project_chunk_row_id_space_table_row_id_fk",
993
+ "tableFrom": "project_chunk",
994
+ "tableTo": "space_table_row",
995
+ "columnsFrom": [
996
+ "row_id"
997
+ ],
998
+ "columnsTo": [
999
+ "id"
1000
+ ],
1001
+ "onDelete": "cascade",
1002
+ "onUpdate": "no action"
1003
+ },
1004
+ "project_chunk_table_id_space_table_id_fk": {
1005
+ "name": "project_chunk_table_id_space_table_id_fk",
1006
+ "tableFrom": "project_chunk",
1007
+ "tableTo": "space_table",
1008
+ "columnsFrom": [
1009
+ "table_id"
1010
+ ],
1011
+ "columnsTo": [
1012
+ "id"
1013
+ ],
1014
+ "onDelete": "cascade",
1015
+ "onUpdate": "no action"
1016
+ },
1017
+ "project_chunk_value_id_space_category_value_id_fk": {
1018
+ "name": "project_chunk_value_id_space_category_value_id_fk",
1019
+ "tableFrom": "project_chunk",
1020
+ "tableTo": "space_category_value",
1021
+ "columnsFrom": [
1022
+ "value_id"
1023
+ ],
1024
+ "columnsTo": [
1025
+ "id"
1026
+ ],
1027
+ "onDelete": "cascade",
1028
+ "onUpdate": "no action"
1029
+ }
1030
+ },
1031
+ "compositePrimaryKeys": {},
1032
+ "uniqueConstraints": {},
1033
+ "checkConstraints": {}
1034
+ },
1035
+ "project_connector": {
1036
+ "name": "project_connector",
1037
+ "columns": {
1038
+ "project_id": {
1039
+ "name": "project_id",
1040
+ "type": "text",
1041
+ "primaryKey": false,
1042
+ "notNull": true,
1043
+ "autoincrement": false
1044
+ },
1045
+ "id": {
1046
+ "name": "id",
1047
+ "type": "text",
1048
+ "primaryKey": false,
1049
+ "notNull": true,
1050
+ "autoincrement": false
1051
+ },
1052
+ "record": {
1053
+ "name": "record",
1054
+ "type": "text",
1055
+ "primaryKey": false,
1056
+ "notNull": true,
1057
+ "autoincrement": false
1058
+ },
1059
+ "created_at": {
1060
+ "name": "created_at",
1061
+ "type": "integer",
1062
+ "primaryKey": false,
1063
+ "notNull": true,
1064
+ "autoincrement": false,
1065
+ "default": "(unixepoch() * 1000)"
1066
+ },
1067
+ "updated_at": {
1068
+ "name": "updated_at",
1069
+ "type": "integer",
1070
+ "primaryKey": false,
1071
+ "notNull": true,
1072
+ "autoincrement": false,
1073
+ "default": "(unixepoch() * 1000)"
1074
+ }
1075
+ },
1076
+ "indexes": {},
1077
+ "foreignKeys": {
1078
+ "project_connector_project_id_project_id_fk": {
1079
+ "name": "project_connector_project_id_project_id_fk",
1080
+ "tableFrom": "project_connector",
1081
+ "tableTo": "project",
1082
+ "columnsFrom": [
1083
+ "project_id"
1084
+ ],
1085
+ "columnsTo": [
1086
+ "id"
1087
+ ],
1088
+ "onDelete": "cascade",
1089
+ "onUpdate": "no action"
1090
+ }
1091
+ },
1092
+ "compositePrimaryKeys": {
1093
+ "project_connector_project_id_id_pk": {
1094
+ "columns": [
1095
+ "project_id",
1096
+ "id"
1097
+ ],
1098
+ "name": "project_connector_project_id_id_pk"
1099
+ }
1100
+ },
1101
+ "uniqueConstraints": {},
1102
+ "checkConstraints": {}
1103
+ },
1104
+ "project_file": {
1105
+ "name": "project_file",
1106
+ "columns": {
1107
+ "id": {
1108
+ "name": "id",
1109
+ "type": "text",
1110
+ "primaryKey": true,
1111
+ "notNull": true,
1112
+ "autoincrement": false
1113
+ },
1114
+ "project_id": {
1115
+ "name": "project_id",
1116
+ "type": "text",
1117
+ "primaryKey": false,
1118
+ "notNull": true,
1119
+ "autoincrement": false
1120
+ },
1121
+ "kind": {
1122
+ "name": "kind",
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
+ "mime": {
1136
+ "name": "mime",
1137
+ "type": "text",
1138
+ "primaryKey": false,
1139
+ "notNull": true,
1140
+ "autoincrement": false
1141
+ },
1142
+ "size": {
1143
+ "name": "size",
1144
+ "type": "integer",
1145
+ "primaryKey": false,
1146
+ "notNull": true,
1147
+ "autoincrement": false
1148
+ },
1149
+ "description": {
1150
+ "name": "description",
1151
+ "type": "text",
1152
+ "primaryKey": false,
1153
+ "notNull": true,
1154
+ "autoincrement": false,
1155
+ "default": "''"
1156
+ },
1157
+ "source": {
1158
+ "name": "source",
1159
+ "type": "text",
1160
+ "primaryKey": false,
1161
+ "notNull": false,
1162
+ "autoincrement": false
1163
+ },
1164
+ "position": {
1165
+ "name": "position",
1166
+ "type": "integer",
1167
+ "primaryKey": false,
1168
+ "notNull": true,
1169
+ "autoincrement": false,
1170
+ "default": 0
1171
+ },
1172
+ "status": {
1173
+ "name": "status",
1174
+ "type": "text",
1175
+ "primaryKey": false,
1176
+ "notNull": true,
1177
+ "autoincrement": false,
1178
+ "default": "'ready'"
1179
+ },
1180
+ "error": {
1181
+ "name": "error",
1182
+ "type": "text",
1183
+ "primaryKey": false,
1184
+ "notNull": false,
1185
+ "autoincrement": false
1186
+ },
1187
+ "text_hash": {
1188
+ "name": "text_hash",
1189
+ "type": "text",
1190
+ "primaryKey": false,
1191
+ "notNull": false,
1192
+ "autoincrement": false
1193
+ },
1194
+ "pages": {
1195
+ "name": "pages",
1196
+ "type": "integer",
1197
+ "primaryKey": false,
1198
+ "notNull": false,
1199
+ "autoincrement": false
1200
+ },
1201
+ "chars": {
1202
+ "name": "chars",
1203
+ "type": "integer",
1204
+ "primaryKey": false,
1205
+ "notNull": false,
1206
+ "autoincrement": false
1207
+ },
1208
+ "indexed": {
1209
+ "name": "indexed",
1210
+ "type": "text",
1211
+ "primaryKey": false,
1212
+ "notNull": false,
1213
+ "autoincrement": false
1214
+ },
1215
+ "origin": {
1216
+ "name": "origin",
1217
+ "type": "text",
1218
+ "primaryKey": false,
1219
+ "notNull": false,
1220
+ "autoincrement": false
1221
+ },
1222
+ "origin_key": {
1223
+ "name": "origin_key",
1224
+ "type": "text",
1225
+ "primaryKey": false,
1226
+ "notNull": false,
1227
+ "autoincrement": false
1228
+ },
1229
+ "origin_label": {
1230
+ "name": "origin_label",
1231
+ "type": "text",
1232
+ "primaryKey": false,
1233
+ "notNull": false,
1234
+ "autoincrement": false
1235
+ },
1236
+ "created_at": {
1237
+ "name": "created_at",
1238
+ "type": "integer",
1239
+ "primaryKey": false,
1240
+ "notNull": true,
1241
+ "autoincrement": false,
1242
+ "default": "(unixepoch() * 1000)"
1243
+ },
1244
+ "updated_at": {
1245
+ "name": "updated_at",
1246
+ "type": "integer",
1247
+ "primaryKey": false,
1248
+ "notNull": true,
1249
+ "autoincrement": false,
1250
+ "default": "(unixepoch() * 1000)"
1251
+ }
1252
+ },
1253
+ "indexes": {
1254
+ "project_file_project": {
1255
+ "name": "project_file_project",
1256
+ "columns": [
1257
+ "project_id",
1258
+ "kind",
1259
+ "position"
1260
+ ],
1261
+ "isUnique": false
1262
+ },
1263
+ "project_file_origin": {
1264
+ "name": "project_file_origin",
1265
+ "columns": [
1266
+ "project_id",
1267
+ "origin",
1268
+ "origin_key"
1269
+ ],
1270
+ "isUnique": true
1271
+ }
1272
+ },
1273
+ "foreignKeys": {
1274
+ "project_file_project_id_project_id_fk": {
1275
+ "name": "project_file_project_id_project_id_fk",
1276
+ "tableFrom": "project_file",
1277
+ "tableTo": "project",
1278
+ "columnsFrom": [
1279
+ "project_id"
1280
+ ],
1281
+ "columnsTo": [
1282
+ "id"
1283
+ ],
1284
+ "onDelete": "cascade",
1285
+ "onUpdate": "no action"
1286
+ }
1287
+ },
1288
+ "compositePrimaryKeys": {},
1289
+ "uniqueConstraints": {},
1290
+ "checkConstraints": {}
1291
+ },
1292
+ "run": {
1293
+ "name": "run",
1294
+ "columns": {
1295
+ "id": {
1296
+ "name": "id",
1297
+ "type": "text",
1298
+ "primaryKey": true,
1299
+ "notNull": true,
1300
+ "autoincrement": false
1301
+ },
1302
+ "wizard_id": {
1303
+ "name": "wizard_id",
1304
+ "type": "text",
1305
+ "primaryKey": false,
1306
+ "notNull": true,
1307
+ "autoincrement": false
1308
+ },
1309
+ "tenant_id": {
1310
+ "name": "tenant_id",
1311
+ "type": "text",
1312
+ "primaryKey": false,
1313
+ "notNull": true,
1314
+ "autoincrement": false
1315
+ },
1316
+ "definition": {
1317
+ "name": "definition",
1318
+ "type": "text",
1319
+ "primaryKey": false,
1320
+ "notNull": true,
1321
+ "autoincrement": false
1322
+ },
1323
+ "files": {
1324
+ "name": "files",
1325
+ "type": "text",
1326
+ "primaryKey": false,
1327
+ "notNull": true,
1328
+ "autoincrement": false,
1329
+ "default": "'[]'"
1330
+ },
1331
+ "version": {
1332
+ "name": "version",
1333
+ "type": "integer",
1334
+ "primaryKey": false,
1335
+ "notNull": false,
1336
+ "autoincrement": false
1337
+ },
1338
+ "mode": {
1339
+ "name": "mode",
1340
+ "type": "text",
1341
+ "primaryKey": false,
1342
+ "notNull": true,
1343
+ "autoincrement": false
1344
+ },
1345
+ "runner": {
1346
+ "name": "runner",
1347
+ "type": "text",
1348
+ "primaryKey": false,
1349
+ "notNull": false,
1350
+ "autoincrement": false
1351
+ },
1352
+ "lang": {
1353
+ "name": "lang",
1354
+ "type": "text",
1355
+ "primaryKey": false,
1356
+ "notNull": false,
1357
+ "autoincrement": false
1358
+ },
1359
+ "visitor_id": {
1360
+ "name": "visitor_id",
1361
+ "type": "text",
1362
+ "primaryKey": false,
1363
+ "notNull": false,
1364
+ "autoincrement": false
1365
+ },
1366
+ "user_id": {
1367
+ "name": "user_id",
1368
+ "type": "text",
1369
+ "primaryKey": false,
1370
+ "notNull": false,
1371
+ "autoincrement": false
1372
+ },
1373
+ "ip_hash": {
1374
+ "name": "ip_hash",
1375
+ "type": "text",
1376
+ "primaryKey": false,
1377
+ "notNull": false,
1378
+ "autoincrement": false
1379
+ },
1380
+ "origin": {
1381
+ "name": "origin",
1382
+ "type": "text",
1383
+ "primaryKey": false,
1384
+ "notNull": false,
1385
+ "autoincrement": false
1386
+ },
1387
+ "client": {
1388
+ "name": "client",
1389
+ "type": "text",
1390
+ "primaryKey": false,
1391
+ "notNull": false,
1392
+ "autoincrement": false
1393
+ },
1394
+ "status": {
1395
+ "name": "status",
1396
+ "type": "text",
1397
+ "primaryKey": false,
1398
+ "notNull": true,
1399
+ "autoincrement": false
1400
+ },
1401
+ "cursor": {
1402
+ "name": "cursor",
1403
+ "type": "text",
1404
+ "primaryKey": false,
1405
+ "notNull": false,
1406
+ "autoincrement": false
1407
+ },
1408
+ "state": {
1409
+ "name": "state",
1410
+ "type": "text",
1411
+ "primaryKey": false,
1412
+ "notNull": true,
1413
+ "autoincrement": false
1414
+ },
1415
+ "error": {
1416
+ "name": "error",
1417
+ "type": "text",
1418
+ "primaryKey": false,
1419
+ "notNull": false,
1420
+ "autoincrement": false
1421
+ },
1422
+ "ask": {
1423
+ "name": "ask",
1424
+ "type": "text",
1425
+ "primaryKey": false,
1426
+ "notNull": false,
1427
+ "autoincrement": false
1428
+ },
1429
+ "answer": {
1430
+ "name": "answer",
1431
+ "type": "text",
1432
+ "primaryKey": false,
1433
+ "notNull": false,
1434
+ "autoincrement": false
1435
+ },
1436
+ "unattended": {
1437
+ "name": "unattended",
1438
+ "type": "integer",
1439
+ "primaryKey": false,
1440
+ "notNull": true,
1441
+ "autoincrement": false,
1442
+ "default": false
1443
+ },
1444
+ "device_offer": {
1445
+ "name": "device_offer",
1446
+ "type": "text",
1447
+ "primaryKey": false,
1448
+ "notNull": false,
1449
+ "autoincrement": false
1450
+ },
1451
+ "cost_micros": {
1452
+ "name": "cost_micros",
1453
+ "type": "integer",
1454
+ "primaryKey": false,
1455
+ "notNull": true,
1456
+ "autoincrement": false,
1457
+ "default": 0
1458
+ },
1459
+ "share_token": {
1460
+ "name": "share_token",
1461
+ "type": "text",
1462
+ "primaryKey": false,
1463
+ "notNull": false,
1464
+ "autoincrement": false
1465
+ },
1466
+ "shared_at": {
1467
+ "name": "shared_at",
1468
+ "type": "integer",
1469
+ "primaryKey": false,
1470
+ "notNull": false,
1471
+ "autoincrement": false
1472
+ },
1473
+ "expires_at": {
1474
+ "name": "expires_at",
1475
+ "type": "integer",
1476
+ "primaryKey": false,
1477
+ "notNull": false,
1478
+ "autoincrement": false
1479
+ },
1480
+ "created_at": {
1481
+ "name": "created_at",
1482
+ "type": "integer",
1483
+ "primaryKey": false,
1484
+ "notNull": true,
1485
+ "autoincrement": false,
1486
+ "default": "(unixepoch() * 1000)"
1487
+ },
1488
+ "updated_at": {
1489
+ "name": "updated_at",
1490
+ "type": "integer",
1491
+ "primaryKey": false,
1492
+ "notNull": true,
1493
+ "autoincrement": false,
1494
+ "default": "(unixepoch() * 1000)"
1495
+ }
1496
+ },
1497
+ "indexes": {
1498
+ "run_share_token": {
1499
+ "name": "run_share_token",
1500
+ "columns": [
1501
+ "share_token"
1502
+ ],
1503
+ "isUnique": true
1504
+ },
1505
+ "run_expires": {
1506
+ "name": "run_expires",
1507
+ "columns": [
1508
+ "expires_at"
1509
+ ],
1510
+ "isUnique": false
1511
+ },
1512
+ "run_wizard": {
1513
+ "name": "run_wizard",
1514
+ "columns": [
1515
+ "wizard_id",
1516
+ "created_at"
1517
+ ],
1518
+ "isUnique": false
1519
+ },
1520
+ "run_visitor": {
1521
+ "name": "run_visitor",
1522
+ "columns": [
1523
+ "visitor_id",
1524
+ "created_at"
1525
+ ],
1526
+ "isUnique": false
1527
+ },
1528
+ "run_status": {
1529
+ "name": "run_status",
1530
+ "columns": [
1531
+ "status"
1532
+ ],
1533
+ "isUnique": false
1534
+ }
1535
+ },
1536
+ "foreignKeys": {
1537
+ "run_wizard_id_wizard_id_fk": {
1538
+ "name": "run_wizard_id_wizard_id_fk",
1539
+ "tableFrom": "run",
1540
+ "tableTo": "wizard",
1541
+ "columnsFrom": [
1542
+ "wizard_id"
1543
+ ],
1544
+ "columnsTo": [
1545
+ "id"
1546
+ ],
1547
+ "onDelete": "cascade",
1548
+ "onUpdate": "no action"
1549
+ }
1550
+ },
1551
+ "compositePrimaryKeys": {},
1552
+ "uniqueConstraints": {},
1553
+ "checkConstraints": {}
1554
+ },
1555
+ "run_cost": {
1556
+ "name": "run_cost",
1557
+ "columns": {
1558
+ "run_id": {
1559
+ "name": "run_id",
1560
+ "type": "text",
1561
+ "primaryKey": false,
1562
+ "notNull": true,
1563
+ "autoincrement": false
1564
+ },
1565
+ "step_id": {
1566
+ "name": "step_id",
1567
+ "type": "text",
1568
+ "primaryKey": false,
1569
+ "notNull": true,
1570
+ "autoincrement": false
1571
+ },
1572
+ "micros": {
1573
+ "name": "micros",
1574
+ "type": "integer",
1575
+ "primaryKey": false,
1576
+ "notNull": true,
1577
+ "autoincrement": false,
1578
+ "default": 0
1579
+ }
1580
+ },
1581
+ "indexes": {},
1582
+ "foreignKeys": {
1583
+ "run_cost_run_id_run_id_fk": {
1584
+ "name": "run_cost_run_id_run_id_fk",
1585
+ "tableFrom": "run_cost",
1586
+ "tableTo": "run",
1587
+ "columnsFrom": [
1588
+ "run_id"
1589
+ ],
1590
+ "columnsTo": [
1591
+ "id"
1592
+ ],
1593
+ "onDelete": "cascade",
1594
+ "onUpdate": "no action"
1595
+ }
1596
+ },
1597
+ "compositePrimaryKeys": {
1598
+ "run_cost_run_id_step_id_pk": {
1599
+ "columns": [
1600
+ "run_id",
1601
+ "step_id"
1602
+ ],
1603
+ "name": "run_cost_run_id_step_id_pk"
1604
+ }
1605
+ },
1606
+ "uniqueConstraints": {},
1607
+ "checkConstraints": {}
1608
+ },
1609
+ "run_event": {
1610
+ "name": "run_event",
1611
+ "columns": {
1612
+ "id": {
1613
+ "name": "id",
1614
+ "type": "integer",
1615
+ "primaryKey": true,
1616
+ "notNull": true,
1617
+ "autoincrement": true
1618
+ },
1619
+ "run_id": {
1620
+ "name": "run_id",
1621
+ "type": "text",
1622
+ "primaryKey": false,
1623
+ "notNull": true,
1624
+ "autoincrement": false
1625
+ },
1626
+ "step_id": {
1627
+ "name": "step_id",
1628
+ "type": "text",
1629
+ "primaryKey": false,
1630
+ "notNull": false,
1631
+ "autoincrement": false
1632
+ },
1633
+ "type": {
1634
+ "name": "type",
1635
+ "type": "text",
1636
+ "primaryKey": false,
1637
+ "notNull": true,
1638
+ "autoincrement": false
1639
+ },
1640
+ "message": {
1641
+ "name": "message",
1642
+ "type": "text",
1643
+ "primaryKey": false,
1644
+ "notNull": true,
1645
+ "autoincrement": false
1646
+ },
1647
+ "note": {
1648
+ "name": "note",
1649
+ "type": "text",
1650
+ "primaryKey": false,
1651
+ "notNull": false,
1652
+ "autoincrement": false
1653
+ },
1654
+ "asset_id": {
1655
+ "name": "asset_id",
1656
+ "type": "text",
1657
+ "primaryKey": false,
1658
+ "notNull": false,
1659
+ "autoincrement": false
1660
+ },
1661
+ "created_at": {
1662
+ "name": "created_at",
1663
+ "type": "integer",
1664
+ "primaryKey": false,
1665
+ "notNull": true,
1666
+ "autoincrement": false,
1667
+ "default": "(unixepoch() * 1000)"
1668
+ }
1669
+ },
1670
+ "indexes": {
1671
+ "run_event_run": {
1672
+ "name": "run_event_run",
1673
+ "columns": [
1674
+ "run_id",
1675
+ "id"
1676
+ ],
1677
+ "isUnique": false
1678
+ }
1679
+ },
1680
+ "foreignKeys": {
1681
+ "run_event_run_id_run_id_fk": {
1682
+ "name": "run_event_run_id_run_id_fk",
1683
+ "tableFrom": "run_event",
1684
+ "tableTo": "run",
1685
+ "columnsFrom": [
1686
+ "run_id"
1687
+ ],
1688
+ "columnsTo": [
1689
+ "id"
1690
+ ],
1691
+ "onDelete": "cascade",
1692
+ "onUpdate": "no action"
1693
+ }
1694
+ },
1695
+ "compositePrimaryKeys": {},
1696
+ "uniqueConstraints": {},
1697
+ "checkConstraints": {}
1698
+ },
1699
+ "share_job": {
1700
+ "name": "share_job",
1701
+ "columns": {
1702
+ "id": {
1703
+ "name": "id",
1704
+ "type": "text",
1705
+ "primaryKey": true,
1706
+ "notNull": true,
1707
+ "autoincrement": false
1708
+ },
1709
+ "run_id": {
1710
+ "name": "run_id",
1711
+ "type": "text",
1712
+ "primaryKey": false,
1713
+ "notNull": true,
1714
+ "autoincrement": false
1715
+ },
1716
+ "tenant_id": {
1717
+ "name": "tenant_id",
1718
+ "type": "text",
1719
+ "primaryKey": false,
1720
+ "notNull": true,
1721
+ "autoincrement": false
1722
+ },
1723
+ "target": {
1724
+ "name": "target",
1725
+ "type": "text",
1726
+ "primaryKey": false,
1727
+ "notNull": true,
1728
+ "autoincrement": false
1729
+ },
1730
+ "name": {
1731
+ "name": "name",
1732
+ "type": "text",
1733
+ "primaryKey": false,
1734
+ "notNull": true,
1735
+ "autoincrement": false
1736
+ },
1737
+ "icon": {
1738
+ "name": "icon",
1739
+ "type": "text",
1740
+ "primaryKey": false,
1741
+ "notNull": true,
1742
+ "autoincrement": false
1743
+ },
1744
+ "status": {
1745
+ "name": "status",
1746
+ "type": "text",
1747
+ "primaryKey": false,
1748
+ "notNull": true,
1749
+ "autoincrement": false
1750
+ },
1751
+ "request": {
1752
+ "name": "request",
1753
+ "type": "text",
1754
+ "primaryKey": false,
1755
+ "notNull": true,
1756
+ "autoincrement": false
1757
+ },
1758
+ "events": {
1759
+ "name": "events",
1760
+ "type": "text",
1761
+ "primaryKey": false,
1762
+ "notNull": true,
1763
+ "autoincrement": false,
1764
+ "default": "'[]'"
1765
+ },
1766
+ "result": {
1767
+ "name": "result",
1768
+ "type": "text",
1769
+ "primaryKey": false,
1770
+ "notNull": false,
1771
+ "autoincrement": false
1772
+ },
1773
+ "error": {
1774
+ "name": "error",
1775
+ "type": "text",
1776
+ "primaryKey": false,
1777
+ "notNull": false,
1778
+ "autoincrement": false
1779
+ },
1780
+ "created_at": {
1781
+ "name": "created_at",
1782
+ "type": "integer",
1783
+ "primaryKey": false,
1784
+ "notNull": true,
1785
+ "autoincrement": false,
1786
+ "default": "(unixepoch() * 1000)"
1787
+ },
1788
+ "updated_at": {
1789
+ "name": "updated_at",
1790
+ "type": "integer",
1791
+ "primaryKey": false,
1792
+ "notNull": true,
1793
+ "autoincrement": false,
1794
+ "default": "(unixepoch() * 1000)"
1795
+ }
1796
+ },
1797
+ "indexes": {
1798
+ "share_job_run": {
1799
+ "name": "share_job_run",
1800
+ "columns": [
1801
+ "run_id",
1802
+ "created_at"
1803
+ ],
1804
+ "isUnique": false
1805
+ }
1806
+ },
1807
+ "foreignKeys": {
1808
+ "share_job_run_id_run_id_fk": {
1809
+ "name": "share_job_run_id_run_id_fk",
1810
+ "tableFrom": "share_job",
1811
+ "tableTo": "run",
1812
+ "columnsFrom": [
1813
+ "run_id"
1814
+ ],
1815
+ "columnsTo": [
1816
+ "id"
1817
+ ],
1818
+ "onDelete": "cascade",
1819
+ "onUpdate": "no action"
1820
+ }
1821
+ },
1822
+ "compositePrimaryKeys": {},
1823
+ "uniqueConstraints": {},
1824
+ "checkConstraints": {}
1825
+ },
1826
+ "space_category": {
1827
+ "name": "space_category",
1828
+ "columns": {
1829
+ "id": {
1830
+ "name": "id",
1831
+ "type": "text",
1832
+ "primaryKey": true,
1833
+ "notNull": true,
1834
+ "autoincrement": false
1835
+ },
1836
+ "tenant_id": {
1837
+ "name": "tenant_id",
1838
+ "type": "text",
1839
+ "primaryKey": false,
1840
+ "notNull": true,
1841
+ "autoincrement": false
1842
+ },
1843
+ "project_id": {
1844
+ "name": "project_id",
1845
+ "type": "text",
1846
+ "primaryKey": false,
1847
+ "notNull": true,
1848
+ "autoincrement": false
1849
+ },
1850
+ "name": {
1851
+ "name": "name",
1852
+ "type": "text",
1853
+ "primaryKey": false,
1854
+ "notNull": true,
1855
+ "autoincrement": false
1856
+ },
1857
+ "type": {
1858
+ "name": "type",
1859
+ "type": "text",
1860
+ "primaryKey": false,
1861
+ "notNull": true,
1862
+ "autoincrement": false
1863
+ },
1864
+ "unit": {
1865
+ "name": "unit",
1866
+ "type": "text",
1867
+ "primaryKey": false,
1868
+ "notNull": false,
1869
+ "autoincrement": false
1870
+ },
1871
+ "multiple": {
1872
+ "name": "multiple",
1873
+ "type": "integer",
1874
+ "primaryKey": false,
1875
+ "notNull": true,
1876
+ "autoincrement": false,
1877
+ "default": false
1878
+ },
1879
+ "ordered": {
1880
+ "name": "ordered",
1881
+ "type": "integer",
1882
+ "primaryKey": false,
1883
+ "notNull": true,
1884
+ "autoincrement": false,
1885
+ "default": false
1886
+ },
1887
+ "hint": {
1888
+ "name": "hint",
1889
+ "type": "text",
1890
+ "primaryKey": false,
1891
+ "notNull": false,
1892
+ "autoincrement": false
1893
+ },
1894
+ "origin": {
1895
+ "name": "origin",
1896
+ "type": "text",
1897
+ "primaryKey": false,
1898
+ "notNull": false,
1899
+ "autoincrement": false
1900
+ },
1901
+ "proposed": {
1902
+ "name": "proposed",
1903
+ "type": "integer",
1904
+ "primaryKey": false,
1905
+ "notNull": true,
1906
+ "autoincrement": false,
1907
+ "default": false
1908
+ },
1909
+ "table_id": {
1910
+ "name": "table_id",
1911
+ "type": "text",
1912
+ "primaryKey": false,
1913
+ "notNull": false,
1914
+ "autoincrement": false
1915
+ },
1916
+ "column_id": {
1917
+ "name": "column_id",
1918
+ "type": "text",
1919
+ "primaryKey": false,
1920
+ "notNull": false,
1921
+ "autoincrement": false
1922
+ },
1923
+ "position": {
1924
+ "name": "position",
1925
+ "type": "integer",
1926
+ "primaryKey": false,
1927
+ "notNull": true,
1928
+ "autoincrement": false,
1929
+ "default": 0
1930
+ },
1931
+ "created_at": {
1932
+ "name": "created_at",
1933
+ "type": "integer",
1934
+ "primaryKey": false,
1935
+ "notNull": true,
1936
+ "autoincrement": false,
1937
+ "default": "(unixepoch() * 1000)"
1938
+ },
1939
+ "updated_at": {
1940
+ "name": "updated_at",
1941
+ "type": "integer",
1942
+ "primaryKey": false,
1943
+ "notNull": true,
1944
+ "autoincrement": false,
1945
+ "default": "(unixepoch() * 1000)"
1946
+ }
1947
+ },
1948
+ "indexes": {
1949
+ "space_category_name": {
1950
+ "name": "space_category_name",
1951
+ "columns": [
1952
+ "project_id",
1953
+ "name"
1954
+ ],
1955
+ "isUnique": true
1956
+ }
1957
+ },
1958
+ "foreignKeys": {
1959
+ "space_category_project_id_project_id_fk": {
1960
+ "name": "space_category_project_id_project_id_fk",
1961
+ "tableFrom": "space_category",
1962
+ "tableTo": "project",
1963
+ "columnsFrom": [
1964
+ "project_id"
1965
+ ],
1966
+ "columnsTo": [
1967
+ "id"
1968
+ ],
1969
+ "onDelete": "cascade",
1970
+ "onUpdate": "no action"
1971
+ },
1972
+ "space_category_table_id_space_table_id_fk": {
1973
+ "name": "space_category_table_id_space_table_id_fk",
1974
+ "tableFrom": "space_category",
1975
+ "tableTo": "space_table",
1976
+ "columnsFrom": [
1977
+ "table_id"
1978
+ ],
1979
+ "columnsTo": [
1980
+ "id"
1981
+ ],
1982
+ "onDelete": "set null",
1983
+ "onUpdate": "no action"
1984
+ }
1985
+ },
1986
+ "compositePrimaryKeys": {},
1987
+ "uniqueConstraints": {},
1988
+ "checkConstraints": {}
1989
+ },
1990
+ "space_category_value": {
1991
+ "name": "space_category_value",
1992
+ "columns": {
1993
+ "id": {
1994
+ "name": "id",
1995
+ "type": "text",
1996
+ "primaryKey": true,
1997
+ "notNull": true,
1998
+ "autoincrement": false
1999
+ },
2000
+ "category_id": {
2001
+ "name": "category_id",
2002
+ "type": "text",
2003
+ "primaryKey": false,
2004
+ "notNull": true,
2005
+ "autoincrement": false
2006
+ },
2007
+ "value": {
2008
+ "name": "value",
2009
+ "type": "text",
2010
+ "primaryKey": false,
2011
+ "notNull": true,
2012
+ "autoincrement": false
2013
+ },
2014
+ "position": {
2015
+ "name": "position",
2016
+ "type": "integer",
2017
+ "primaryKey": false,
2018
+ "notNull": true,
2019
+ "autoincrement": false,
2020
+ "default": 0
2021
+ },
2022
+ "summary": {
2023
+ "name": "summary",
2024
+ "type": "text",
2025
+ "primaryKey": false,
2026
+ "notNull": false,
2027
+ "autoincrement": false
2028
+ },
2029
+ "summary_at": {
2030
+ "name": "summary_at",
2031
+ "type": "integer",
2032
+ "primaryKey": false,
2033
+ "notNull": false,
2034
+ "autoincrement": false
2035
+ },
2036
+ "created_at": {
2037
+ "name": "created_at",
2038
+ "type": "integer",
2039
+ "primaryKey": false,
2040
+ "notNull": true,
2041
+ "autoincrement": false,
2042
+ "default": "(unixepoch() * 1000)"
2043
+ }
2044
+ },
2045
+ "indexes": {
2046
+ "space_category_value_value": {
2047
+ "name": "space_category_value_value",
2048
+ "columns": [
2049
+ "category_id",
2050
+ "value"
2051
+ ],
2052
+ "isUnique": true
2053
+ }
2054
+ },
2055
+ "foreignKeys": {
2056
+ "space_category_value_category_id_space_category_id_fk": {
2057
+ "name": "space_category_value_category_id_space_category_id_fk",
2058
+ "tableFrom": "space_category_value",
2059
+ "tableTo": "space_category",
2060
+ "columnsFrom": [
2061
+ "category_id"
2062
+ ],
2063
+ "columnsTo": [
2064
+ "id"
2065
+ ],
2066
+ "onDelete": "cascade",
2067
+ "onUpdate": "no action"
2068
+ }
2069
+ },
2070
+ "compositePrimaryKeys": {},
2071
+ "uniqueConstraints": {},
2072
+ "checkConstraints": {}
2073
+ },
2074
+ "space_item_category": {
2075
+ "name": "space_item_category",
2076
+ "columns": {
2077
+ "id": {
2078
+ "name": "id",
2079
+ "type": "integer",
2080
+ "primaryKey": true,
2081
+ "notNull": true,
2082
+ "autoincrement": true
2083
+ },
2084
+ "project_id": {
2085
+ "name": "project_id",
2086
+ "type": "text",
2087
+ "primaryKey": false,
2088
+ "notNull": true,
2089
+ "autoincrement": false
2090
+ },
2091
+ "category_id": {
2092
+ "name": "category_id",
2093
+ "type": "text",
2094
+ "primaryKey": false,
2095
+ "notNull": true,
2096
+ "autoincrement": false
2097
+ },
2098
+ "page_id": {
2099
+ "name": "page_id",
2100
+ "type": "text",
2101
+ "primaryKey": false,
2102
+ "notNull": false,
2103
+ "autoincrement": false
2104
+ },
2105
+ "row_id": {
2106
+ "name": "row_id",
2107
+ "type": "text",
2108
+ "primaryKey": false,
2109
+ "notNull": false,
2110
+ "autoincrement": false
2111
+ },
2112
+ "table_id": {
2113
+ "name": "table_id",
2114
+ "type": "text",
2115
+ "primaryKey": false,
2116
+ "notNull": false,
2117
+ "autoincrement": false
2118
+ },
2119
+ "file_id": {
2120
+ "name": "file_id",
2121
+ "type": "text",
2122
+ "primaryKey": false,
2123
+ "notNull": false,
2124
+ "autoincrement": false
2125
+ },
2126
+ "value_id": {
2127
+ "name": "value_id",
2128
+ "type": "text",
2129
+ "primaryKey": false,
2130
+ "notNull": false,
2131
+ "autoincrement": false
2132
+ },
2133
+ "text": {
2134
+ "name": "text",
2135
+ "type": "text",
2136
+ "primaryKey": false,
2137
+ "notNull": false,
2138
+ "autoincrement": false
2139
+ },
2140
+ "num": {
2141
+ "name": "num",
2142
+ "type": "real",
2143
+ "primaryKey": false,
2144
+ "notNull": false,
2145
+ "autoincrement": false
2146
+ },
2147
+ "at": {
2148
+ "name": "at",
2149
+ "type": "integer",
2150
+ "primaryKey": false,
2151
+ "notNull": false,
2152
+ "autoincrement": false
2153
+ },
2154
+ "bool": {
2155
+ "name": "bool",
2156
+ "type": "integer",
2157
+ "primaryKey": false,
2158
+ "notNull": false,
2159
+ "autoincrement": false
2160
+ },
2161
+ "by": {
2162
+ "name": "by",
2163
+ "type": "text",
2164
+ "primaryKey": false,
2165
+ "notNull": true,
2166
+ "autoincrement": false,
2167
+ "default": "'person'"
2168
+ }
2169
+ },
2170
+ "indexes": {
2171
+ "space_item_category_category": {
2172
+ "name": "space_item_category_category",
2173
+ "columns": [
2174
+ "category_id",
2175
+ "value_id"
2176
+ ],
2177
+ "isUnique": false
2178
+ },
2179
+ "space_item_category_page": {
2180
+ "name": "space_item_category_page",
2181
+ "columns": [
2182
+ "page_id"
2183
+ ],
2184
+ "isUnique": false
2185
+ },
2186
+ "space_item_category_row": {
2187
+ "name": "space_item_category_row",
2188
+ "columns": [
2189
+ "row_id"
2190
+ ],
2191
+ "isUnique": false
2192
+ },
2193
+ "space_item_category_table": {
2194
+ "name": "space_item_category_table",
2195
+ "columns": [
2196
+ "table_id"
2197
+ ],
2198
+ "isUnique": false
2199
+ },
2200
+ "space_item_category_file": {
2201
+ "name": "space_item_category_file",
2202
+ "columns": [
2203
+ "file_id"
2204
+ ],
2205
+ "isUnique": false
2206
+ }
2207
+ },
2208
+ "foreignKeys": {
2209
+ "space_item_category_project_id_project_id_fk": {
2210
+ "name": "space_item_category_project_id_project_id_fk",
2211
+ "tableFrom": "space_item_category",
2212
+ "tableTo": "project",
2213
+ "columnsFrom": [
2214
+ "project_id"
2215
+ ],
2216
+ "columnsTo": [
2217
+ "id"
2218
+ ],
2219
+ "onDelete": "cascade",
2220
+ "onUpdate": "no action"
2221
+ },
2222
+ "space_item_category_category_id_space_category_id_fk": {
2223
+ "name": "space_item_category_category_id_space_category_id_fk",
2224
+ "tableFrom": "space_item_category",
2225
+ "tableTo": "space_category",
2226
+ "columnsFrom": [
2227
+ "category_id"
2228
+ ],
2229
+ "columnsTo": [
2230
+ "id"
2231
+ ],
2232
+ "onDelete": "cascade",
2233
+ "onUpdate": "no action"
2234
+ },
2235
+ "space_item_category_page_id_space_page_id_fk": {
2236
+ "name": "space_item_category_page_id_space_page_id_fk",
2237
+ "tableFrom": "space_item_category",
2238
+ "tableTo": "space_page",
2239
+ "columnsFrom": [
2240
+ "page_id"
2241
+ ],
2242
+ "columnsTo": [
2243
+ "id"
2244
+ ],
2245
+ "onDelete": "cascade",
2246
+ "onUpdate": "no action"
2247
+ },
2248
+ "space_item_category_row_id_space_table_row_id_fk": {
2249
+ "name": "space_item_category_row_id_space_table_row_id_fk",
2250
+ "tableFrom": "space_item_category",
2251
+ "tableTo": "space_table_row",
2252
+ "columnsFrom": [
2253
+ "row_id"
2254
+ ],
2255
+ "columnsTo": [
2256
+ "id"
2257
+ ],
2258
+ "onDelete": "cascade",
2259
+ "onUpdate": "no action"
2260
+ },
2261
+ "space_item_category_table_id_space_table_id_fk": {
2262
+ "name": "space_item_category_table_id_space_table_id_fk",
2263
+ "tableFrom": "space_item_category",
2264
+ "tableTo": "space_table",
2265
+ "columnsFrom": [
2266
+ "table_id"
2267
+ ],
2268
+ "columnsTo": [
2269
+ "id"
2270
+ ],
2271
+ "onDelete": "cascade",
2272
+ "onUpdate": "no action"
2273
+ },
2274
+ "space_item_category_file_id_project_file_id_fk": {
2275
+ "name": "space_item_category_file_id_project_file_id_fk",
2276
+ "tableFrom": "space_item_category",
2277
+ "tableTo": "project_file",
2278
+ "columnsFrom": [
2279
+ "file_id"
2280
+ ],
2281
+ "columnsTo": [
2282
+ "id"
2283
+ ],
2284
+ "onDelete": "cascade",
2285
+ "onUpdate": "no action"
2286
+ },
2287
+ "space_item_category_value_id_space_category_value_id_fk": {
2288
+ "name": "space_item_category_value_id_space_category_value_id_fk",
2289
+ "tableFrom": "space_item_category",
2290
+ "tableTo": "space_category_value",
2291
+ "columnsFrom": [
2292
+ "value_id"
2293
+ ],
2294
+ "columnsTo": [
2295
+ "id"
2296
+ ],
2297
+ "onDelete": "cascade",
2298
+ "onUpdate": "no action"
2299
+ }
2300
+ },
2301
+ "compositePrimaryKeys": {},
2302
+ "uniqueConstraints": {},
2303
+ "checkConstraints": {}
2304
+ },
2305
+ "space_page": {
2306
+ "name": "space_page",
2307
+ "columns": {
2308
+ "id": {
2309
+ "name": "id",
2310
+ "type": "text",
2311
+ "primaryKey": true,
2312
+ "notNull": true,
2313
+ "autoincrement": false
2314
+ },
2315
+ "tenant_id": {
2316
+ "name": "tenant_id",
2317
+ "type": "text",
2318
+ "primaryKey": false,
2319
+ "notNull": true,
2320
+ "autoincrement": false
2321
+ },
2322
+ "project_id": {
2323
+ "name": "project_id",
2324
+ "type": "text",
2325
+ "primaryKey": false,
2326
+ "notNull": true,
2327
+ "autoincrement": false
2328
+ },
2329
+ "wizard_id": {
2330
+ "name": "wizard_id",
2331
+ "type": "text",
2332
+ "primaryKey": false,
2333
+ "notNull": false,
2334
+ "autoincrement": false
2335
+ },
2336
+ "parent_id": {
2337
+ "name": "parent_id",
2338
+ "type": "text",
2339
+ "primaryKey": false,
2340
+ "notNull": false,
2341
+ "autoincrement": false
2342
+ },
2343
+ "position": {
2344
+ "name": "position",
2345
+ "type": "integer",
2346
+ "primaryKey": false,
2347
+ "notNull": true,
2348
+ "autoincrement": false,
2349
+ "default": 0
2350
+ },
2351
+ "title": {
2352
+ "name": "title",
2353
+ "type": "text",
2354
+ "primaryKey": false,
2355
+ "notNull": true,
2356
+ "autoincrement": false
2357
+ },
2358
+ "slug": {
2359
+ "name": "slug",
2360
+ "type": "text",
2361
+ "primaryKey": false,
2362
+ "notNull": false,
2363
+ "autoincrement": false
2364
+ },
2365
+ "markdown": {
2366
+ "name": "markdown",
2367
+ "type": "text",
2368
+ "primaryKey": false,
2369
+ "notNull": true,
2370
+ "autoincrement": false,
2371
+ "default": "''"
2372
+ },
2373
+ "origin": {
2374
+ "name": "origin",
2375
+ "type": "text",
2376
+ "primaryKey": false,
2377
+ "notNull": false,
2378
+ "autoincrement": false
2379
+ },
2380
+ "origin_key": {
2381
+ "name": "origin_key",
2382
+ "type": "text",
2383
+ "primaryKey": false,
2384
+ "notNull": false,
2385
+ "autoincrement": false
2386
+ },
2387
+ "origin_label": {
2388
+ "name": "origin_label",
2389
+ "type": "text",
2390
+ "primaryKey": false,
2391
+ "notNull": false,
2392
+ "autoincrement": false
2393
+ },
2394
+ "kept": {
2395
+ "name": "kept",
2396
+ "type": "integer",
2397
+ "primaryKey": false,
2398
+ "notNull": true,
2399
+ "autoincrement": false,
2400
+ "default": false
2401
+ },
2402
+ "review": {
2403
+ "name": "review",
2404
+ "type": "text",
2405
+ "primaryKey": false,
2406
+ "notNull": false,
2407
+ "autoincrement": false
2408
+ },
2409
+ "file_id": {
2410
+ "name": "file_id",
2411
+ "type": "text",
2412
+ "primaryKey": false,
2413
+ "notNull": false,
2414
+ "autoincrement": false
2415
+ },
2416
+ "created_at": {
2417
+ "name": "created_at",
2418
+ "type": "integer",
2419
+ "primaryKey": false,
2420
+ "notNull": true,
2421
+ "autoincrement": false,
2422
+ "default": "(unixepoch() * 1000)"
2423
+ },
2424
+ "updated_at": {
2425
+ "name": "updated_at",
2426
+ "type": "integer",
2427
+ "primaryKey": false,
2428
+ "notNull": true,
2429
+ "autoincrement": false,
2430
+ "default": "(unixepoch() * 1000)"
2431
+ }
2432
+ },
2433
+ "indexes": {
2434
+ "space_page_project": {
2435
+ "name": "space_page_project",
2436
+ "columns": [
2437
+ "project_id",
2438
+ "wizard_id"
2439
+ ],
2440
+ "isUnique": false
2441
+ },
2442
+ "space_page_parent": {
2443
+ "name": "space_page_parent",
2444
+ "columns": [
2445
+ "parent_id",
2446
+ "position"
2447
+ ],
2448
+ "isUnique": false
2449
+ },
2450
+ "space_page_origin": {
2451
+ "name": "space_page_origin",
2452
+ "columns": [
2453
+ "project_id",
2454
+ "origin",
2455
+ "origin_key"
2456
+ ],
2457
+ "isUnique": true
2458
+ }
2459
+ },
2460
+ "foreignKeys": {
2461
+ "space_page_project_id_project_id_fk": {
2462
+ "name": "space_page_project_id_project_id_fk",
2463
+ "tableFrom": "space_page",
2464
+ "tableTo": "project",
2465
+ "columnsFrom": [
2466
+ "project_id"
2467
+ ],
2468
+ "columnsTo": [
2469
+ "id"
2470
+ ],
2471
+ "onDelete": "cascade",
2472
+ "onUpdate": "no action"
2473
+ },
2474
+ "space_page_wizard_id_wizard_id_fk": {
2475
+ "name": "space_page_wizard_id_wizard_id_fk",
2476
+ "tableFrom": "space_page",
2477
+ "tableTo": "wizard",
2478
+ "columnsFrom": [
2479
+ "wizard_id"
2480
+ ],
2481
+ "columnsTo": [
2482
+ "id"
2483
+ ],
2484
+ "onDelete": "cascade",
2485
+ "onUpdate": "no action"
2486
+ },
2487
+ "space_page_parent_id_space_page_id_fk": {
2488
+ "name": "space_page_parent_id_space_page_id_fk",
2489
+ "tableFrom": "space_page",
2490
+ "tableTo": "space_page",
2491
+ "columnsFrom": [
2492
+ "parent_id"
2493
+ ],
2494
+ "columnsTo": [
2495
+ "id"
2496
+ ],
2497
+ "onDelete": "cascade",
2498
+ "onUpdate": "no action"
2499
+ },
2500
+ "space_page_file_id_project_file_id_fk": {
2501
+ "name": "space_page_file_id_project_file_id_fk",
2502
+ "tableFrom": "space_page",
2503
+ "tableTo": "project_file",
2504
+ "columnsFrom": [
2505
+ "file_id"
2506
+ ],
2507
+ "columnsTo": [
2508
+ "id"
2509
+ ],
2510
+ "onDelete": "set null",
2511
+ "onUpdate": "no action"
2512
+ }
2513
+ },
2514
+ "compositePrimaryKeys": {},
2515
+ "uniqueConstraints": {},
2516
+ "checkConstraints": {}
2517
+ },
2518
+ "space_table": {
2519
+ "name": "space_table",
2520
+ "columns": {
2521
+ "id": {
2522
+ "name": "id",
2523
+ "type": "text",
2524
+ "primaryKey": true,
2525
+ "notNull": true,
2526
+ "autoincrement": false
2527
+ },
2528
+ "tenant_id": {
2529
+ "name": "tenant_id",
2530
+ "type": "text",
2531
+ "primaryKey": false,
2532
+ "notNull": true,
2533
+ "autoincrement": false
2534
+ },
2535
+ "project_id": {
2536
+ "name": "project_id",
2537
+ "type": "text",
2538
+ "primaryKey": false,
2539
+ "notNull": true,
2540
+ "autoincrement": false
2541
+ },
2542
+ "wizard_id": {
2543
+ "name": "wizard_id",
2544
+ "type": "text",
2545
+ "primaryKey": false,
2546
+ "notNull": false,
2547
+ "autoincrement": false
2548
+ },
2549
+ "list": {
2550
+ "name": "list",
2551
+ "type": "text",
2552
+ "primaryKey": false,
2553
+ "notNull": false,
2554
+ "autoincrement": false
2555
+ },
2556
+ "key_column": {
2557
+ "name": "key_column",
2558
+ "type": "text",
2559
+ "primaryKey": false,
2560
+ "notNull": false,
2561
+ "autoincrement": false
2562
+ },
2563
+ "title": {
2564
+ "name": "title",
2565
+ "type": "text",
2566
+ "primaryKey": false,
2567
+ "notNull": true,
2568
+ "autoincrement": false
2569
+ },
2570
+ "slug": {
2571
+ "name": "slug",
2572
+ "type": "text",
2573
+ "primaryKey": false,
2574
+ "notNull": false,
2575
+ "autoincrement": false
2576
+ },
2577
+ "format": {
2578
+ "name": "format",
2579
+ "type": "text",
2580
+ "primaryKey": false,
2581
+ "notNull": false,
2582
+ "autoincrement": false
2583
+ },
2584
+ "columns": {
2585
+ "name": "columns",
2586
+ "type": "text",
2587
+ "primaryKey": false,
2588
+ "notNull": true,
2589
+ "autoincrement": false
2590
+ },
2591
+ "origin": {
2592
+ "name": "origin",
2593
+ "type": "text",
2594
+ "primaryKey": false,
2595
+ "notNull": false,
2596
+ "autoincrement": false
2597
+ },
2598
+ "origin_key": {
2599
+ "name": "origin_key",
2600
+ "type": "text",
2601
+ "primaryKey": false,
2602
+ "notNull": false,
2603
+ "autoincrement": false
2604
+ },
2605
+ "origin_label": {
2606
+ "name": "origin_label",
2607
+ "type": "text",
2608
+ "primaryKey": false,
2609
+ "notNull": false,
2610
+ "autoincrement": false
2611
+ },
2612
+ "kept": {
2613
+ "name": "kept",
2614
+ "type": "integer",
2615
+ "primaryKey": false,
2616
+ "notNull": true,
2617
+ "autoincrement": false,
2618
+ "default": false
2619
+ },
2620
+ "review": {
2621
+ "name": "review",
2622
+ "type": "text",
2623
+ "primaryKey": false,
2624
+ "notNull": false,
2625
+ "autoincrement": false
2626
+ },
2627
+ "file_id": {
2628
+ "name": "file_id",
2629
+ "type": "text",
2630
+ "primaryKey": false,
2631
+ "notNull": false,
2632
+ "autoincrement": false
2633
+ },
2634
+ "created_at": {
2635
+ "name": "created_at",
2636
+ "type": "integer",
2637
+ "primaryKey": false,
2638
+ "notNull": true,
2639
+ "autoincrement": false,
2640
+ "default": "(unixepoch() * 1000)"
2641
+ },
2642
+ "updated_at": {
2643
+ "name": "updated_at",
2644
+ "type": "integer",
2645
+ "primaryKey": false,
2646
+ "notNull": true,
2647
+ "autoincrement": false,
2648
+ "default": "(unixepoch() * 1000)"
2649
+ }
2650
+ },
2651
+ "indexes": {
2652
+ "space_table_project": {
2653
+ "name": "space_table_project",
2654
+ "columns": [
2655
+ "project_id",
2656
+ "wizard_id"
2657
+ ],
2658
+ "isUnique": false
2659
+ },
2660
+ "space_table_list": {
2661
+ "name": "space_table_list",
2662
+ "columns": [
2663
+ "wizard_id",
2664
+ "list"
2665
+ ],
2666
+ "isUnique": true
2667
+ },
2668
+ "space_table_origin": {
2669
+ "name": "space_table_origin",
2670
+ "columns": [
2671
+ "project_id",
2672
+ "origin",
2673
+ "origin_key"
2674
+ ],
2675
+ "isUnique": true
2676
+ }
2677
+ },
2678
+ "foreignKeys": {
2679
+ "space_table_project_id_project_id_fk": {
2680
+ "name": "space_table_project_id_project_id_fk",
2681
+ "tableFrom": "space_table",
2682
+ "tableTo": "project",
2683
+ "columnsFrom": [
2684
+ "project_id"
2685
+ ],
2686
+ "columnsTo": [
2687
+ "id"
2688
+ ],
2689
+ "onDelete": "cascade",
2690
+ "onUpdate": "no action"
2691
+ },
2692
+ "space_table_wizard_id_wizard_id_fk": {
2693
+ "name": "space_table_wizard_id_wizard_id_fk",
2694
+ "tableFrom": "space_table",
2695
+ "tableTo": "wizard",
2696
+ "columnsFrom": [
2697
+ "wizard_id"
2698
+ ],
2699
+ "columnsTo": [
2700
+ "id"
2701
+ ],
2702
+ "onDelete": "cascade",
2703
+ "onUpdate": "no action"
2704
+ },
2705
+ "space_table_file_id_project_file_id_fk": {
2706
+ "name": "space_table_file_id_project_file_id_fk",
2707
+ "tableFrom": "space_table",
2708
+ "tableTo": "project_file",
2709
+ "columnsFrom": [
2710
+ "file_id"
2711
+ ],
2712
+ "columnsTo": [
2713
+ "id"
2714
+ ],
2715
+ "onDelete": "set null",
2716
+ "onUpdate": "no action"
2717
+ }
2718
+ },
2719
+ "compositePrimaryKeys": {},
2720
+ "uniqueConstraints": {},
2721
+ "checkConstraints": {}
2722
+ },
2723
+ "space_table_row": {
2724
+ "name": "space_table_row",
2725
+ "columns": {
2726
+ "id": {
2727
+ "name": "id",
2728
+ "type": "text",
2729
+ "primaryKey": true,
2730
+ "notNull": true,
2731
+ "autoincrement": false
2732
+ },
2733
+ "table_id": {
2734
+ "name": "table_id",
2735
+ "type": "text",
2736
+ "primaryKey": false,
2737
+ "notNull": true,
2738
+ "autoincrement": false
2739
+ },
2740
+ "key": {
2741
+ "name": "key",
2742
+ "type": "text",
2743
+ "primaryKey": false,
2744
+ "notNull": false,
2745
+ "autoincrement": false
2746
+ },
2747
+ "cells": {
2748
+ "name": "cells",
2749
+ "type": "text",
2750
+ "primaryKey": false,
2751
+ "notNull": true,
2752
+ "autoincrement": false
2753
+ },
2754
+ "created_at": {
2755
+ "name": "created_at",
2756
+ "type": "integer",
2757
+ "primaryKey": false,
2758
+ "notNull": true,
2759
+ "autoincrement": false,
2760
+ "default": "(unixepoch() * 1000)"
2761
+ },
2762
+ "updated_at": {
2763
+ "name": "updated_at",
2764
+ "type": "integer",
2765
+ "primaryKey": false,
2766
+ "notNull": true,
2767
+ "autoincrement": false,
2768
+ "default": "(unixepoch() * 1000)"
2769
+ }
2770
+ },
2771
+ "indexes": {
2772
+ "space_table_row_table": {
2773
+ "name": "space_table_row_table",
2774
+ "columns": [
2775
+ "table_id",
2776
+ "created_at"
2777
+ ],
2778
+ "isUnique": false
2779
+ },
2780
+ "space_table_row_key": {
2781
+ "name": "space_table_row_key",
2782
+ "columns": [
2783
+ "table_id",
2784
+ "key"
2785
+ ],
2786
+ "isUnique": false
2787
+ }
2788
+ },
2789
+ "foreignKeys": {
2790
+ "space_table_row_table_id_space_table_id_fk": {
2791
+ "name": "space_table_row_table_id_space_table_id_fk",
2792
+ "tableFrom": "space_table_row",
2793
+ "tableTo": "space_table",
2794
+ "columnsFrom": [
2795
+ "table_id"
2796
+ ],
2797
+ "columnsTo": [
2798
+ "id"
2799
+ ],
2800
+ "onDelete": "cascade",
2801
+ "onUpdate": "no action"
2802
+ }
2803
+ },
2804
+ "compositePrimaryKeys": {},
2805
+ "uniqueConstraints": {},
2806
+ "checkConstraints": {}
2807
+ },
2808
+ "store_file": {
2809
+ "name": "store_file",
2810
+ "columns": {
2811
+ "wizard_id": {
2812
+ "name": "wizard_id",
2813
+ "type": "text",
2814
+ "primaryKey": false,
2815
+ "notNull": true,
2816
+ "autoincrement": false
2817
+ },
2818
+ "holder": {
2819
+ "name": "holder",
2820
+ "type": "text",
2821
+ "primaryKey": false,
2822
+ "notNull": true,
2823
+ "autoincrement": false
2824
+ },
2825
+ "path": {
2826
+ "name": "path",
2827
+ "type": "text",
2828
+ "primaryKey": false,
2829
+ "notNull": true,
2830
+ "autoincrement": false
2831
+ },
2832
+ "hash": {
2833
+ "name": "hash",
2834
+ "type": "text",
2835
+ "primaryKey": false,
2836
+ "notNull": true,
2837
+ "autoincrement": false
2838
+ },
2839
+ "mime": {
2840
+ "name": "mime",
2841
+ "type": "text",
2842
+ "primaryKey": false,
2843
+ "notNull": true,
2844
+ "autoincrement": false
2845
+ },
2846
+ "size": {
2847
+ "name": "size",
2848
+ "type": "integer",
2849
+ "primaryKey": false,
2850
+ "notNull": true,
2851
+ "autoincrement": false
2852
+ },
2853
+ "source": {
2854
+ "name": "source",
2855
+ "type": "text",
2856
+ "primaryKey": false,
2857
+ "notNull": false,
2858
+ "autoincrement": false
2859
+ },
2860
+ "updated_at": {
2861
+ "name": "updated_at",
2862
+ "type": "integer",
2863
+ "primaryKey": false,
2864
+ "notNull": true,
2865
+ "autoincrement": false,
2866
+ "default": "(unixepoch() * 1000)"
2867
+ }
2868
+ },
2869
+ "indexes": {},
2870
+ "foreignKeys": {
2871
+ "store_file_wizard_id_wizard_id_fk": {
2872
+ "name": "store_file_wizard_id_wizard_id_fk",
2873
+ "tableFrom": "store_file",
2874
+ "tableTo": "wizard",
2875
+ "columnsFrom": [
2876
+ "wizard_id"
2877
+ ],
2878
+ "columnsTo": [
2879
+ "id"
2880
+ ],
2881
+ "onDelete": "cascade",
2882
+ "onUpdate": "no action"
2883
+ }
2884
+ },
2885
+ "compositePrimaryKeys": {
2886
+ "store_file_wizard_id_holder_path_pk": {
2887
+ "columns": [
2888
+ "wizard_id",
2889
+ "holder",
2890
+ "path"
2891
+ ],
2892
+ "name": "store_file_wizard_id_holder_path_pk"
2893
+ }
2894
+ },
2895
+ "uniqueConstraints": {},
2896
+ "checkConstraints": {}
2897
+ },
2898
+ "store_holder": {
2899
+ "name": "store_holder",
2900
+ "columns": {
2901
+ "wizard_id": {
2902
+ "name": "wizard_id",
2903
+ "type": "text",
2904
+ "primaryKey": false,
2905
+ "notNull": true,
2906
+ "autoincrement": false
2907
+ },
2908
+ "holder": {
2909
+ "name": "holder",
2910
+ "type": "text",
2911
+ "primaryKey": false,
2912
+ "notNull": true,
2913
+ "autoincrement": false
2914
+ },
2915
+ "used_at": {
2916
+ "name": "used_at",
2917
+ "type": "integer",
2918
+ "primaryKey": false,
2919
+ "notNull": true,
2920
+ "autoincrement": false,
2921
+ "default": "(unixepoch() * 1000)"
2922
+ }
2923
+ },
2924
+ "indexes": {
2925
+ "store_holder_used": {
2926
+ "name": "store_holder_used",
2927
+ "columns": [
2928
+ "used_at"
2929
+ ],
2930
+ "isUnique": false
2931
+ }
2932
+ },
2933
+ "foreignKeys": {
2934
+ "store_holder_wizard_id_wizard_id_fk": {
2935
+ "name": "store_holder_wizard_id_wizard_id_fk",
2936
+ "tableFrom": "store_holder",
2937
+ "tableTo": "wizard",
2938
+ "columnsFrom": [
2939
+ "wizard_id"
2940
+ ],
2941
+ "columnsTo": [
2942
+ "id"
2943
+ ],
2944
+ "onDelete": "cascade",
2945
+ "onUpdate": "no action"
2946
+ }
2947
+ },
2948
+ "compositePrimaryKeys": {
2949
+ "store_holder_wizard_id_holder_pk": {
2950
+ "columns": [
2951
+ "wizard_id",
2952
+ "holder"
2953
+ ],
2954
+ "name": "store_holder_wizard_id_holder_pk"
2955
+ }
2956
+ },
2957
+ "uniqueConstraints": {},
2958
+ "checkConstraints": {}
2959
+ },
2960
+ "store_row": {
2961
+ "name": "store_row",
2962
+ "columns": {
2963
+ "id": {
2964
+ "name": "id",
2965
+ "type": "text",
2966
+ "primaryKey": true,
2967
+ "notNull": true,
2968
+ "autoincrement": false
2969
+ },
2970
+ "wizard_id": {
2971
+ "name": "wizard_id",
2972
+ "type": "text",
2973
+ "primaryKey": false,
2974
+ "notNull": true,
2975
+ "autoincrement": false
2976
+ },
2977
+ "holder": {
2978
+ "name": "holder",
2979
+ "type": "text",
2980
+ "primaryKey": false,
2981
+ "notNull": true,
2982
+ "autoincrement": false
2983
+ },
2984
+ "list": {
2985
+ "name": "list",
2986
+ "type": "text",
2987
+ "primaryKey": false,
2988
+ "notNull": true,
2989
+ "autoincrement": false
2990
+ },
2991
+ "key": {
2992
+ "name": "key",
2993
+ "type": "text",
2994
+ "primaryKey": false,
2995
+ "notNull": false,
2996
+ "autoincrement": false
2997
+ },
2998
+ "cells": {
2999
+ "name": "cells",
3000
+ "type": "text",
3001
+ "primaryKey": false,
3002
+ "notNull": true,
3003
+ "autoincrement": false
3004
+ },
3005
+ "created_at": {
3006
+ "name": "created_at",
3007
+ "type": "integer",
3008
+ "primaryKey": false,
3009
+ "notNull": true,
3010
+ "autoincrement": false,
3011
+ "default": "(unixepoch() * 1000)"
3012
+ },
3013
+ "updated_at": {
3014
+ "name": "updated_at",
3015
+ "type": "integer",
3016
+ "primaryKey": false,
3017
+ "notNull": true,
3018
+ "autoincrement": false,
3019
+ "default": "(unixepoch() * 1000)"
3020
+ }
3021
+ },
3022
+ "indexes": {
3023
+ "store_row_key": {
3024
+ "name": "store_row_key",
3025
+ "columns": [
3026
+ "wizard_id",
3027
+ "holder",
3028
+ "list",
3029
+ "key"
3030
+ ],
3031
+ "isUnique": true
3032
+ },
3033
+ "store_row_list": {
3034
+ "name": "store_row_list",
3035
+ "columns": [
3036
+ "wizard_id",
3037
+ "holder",
3038
+ "list",
3039
+ "created_at"
3040
+ ],
3041
+ "isUnique": false
3042
+ }
3043
+ },
3044
+ "foreignKeys": {
3045
+ "store_row_wizard_id_wizard_id_fk": {
3046
+ "name": "store_row_wizard_id_wizard_id_fk",
3047
+ "tableFrom": "store_row",
3048
+ "tableTo": "wizard",
3049
+ "columnsFrom": [
3050
+ "wizard_id"
3051
+ ],
3052
+ "columnsTo": [
3053
+ "id"
3054
+ ],
3055
+ "onDelete": "cascade",
3056
+ "onUpdate": "no action"
3057
+ }
3058
+ },
3059
+ "compositePrimaryKeys": {},
3060
+ "uniqueConstraints": {},
3061
+ "checkConstraints": {}
3062
+ },
3063
+ "store_secret": {
3064
+ "name": "store_secret",
3065
+ "columns": {
3066
+ "id": {
3067
+ "name": "id",
3068
+ "type": "text",
3069
+ "primaryKey": true,
3070
+ "notNull": true,
3071
+ "autoincrement": false
3072
+ },
3073
+ "wizard_id": {
3074
+ "name": "wizard_id",
3075
+ "type": "text",
3076
+ "primaryKey": false,
3077
+ "notNull": true,
3078
+ "autoincrement": false
3079
+ },
3080
+ "holder": {
3081
+ "name": "holder",
3082
+ "type": "text",
3083
+ "primaryKey": false,
3084
+ "notNull": true,
3085
+ "autoincrement": false
3086
+ },
3087
+ "slot": {
3088
+ "name": "slot",
3089
+ "type": "text",
3090
+ "primaryKey": false,
3091
+ "notNull": true,
3092
+ "autoincrement": false
3093
+ },
3094
+ "provider": {
3095
+ "name": "provider",
3096
+ "type": "text",
3097
+ "primaryKey": false,
3098
+ "notNull": true,
3099
+ "autoincrement": false
3100
+ },
3101
+ "label": {
3102
+ "name": "label",
3103
+ "type": "text",
3104
+ "primaryKey": false,
3105
+ "notNull": true,
3106
+ "autoincrement": false
3107
+ },
3108
+ "data": {
3109
+ "name": "data",
3110
+ "type": "text",
3111
+ "primaryKey": false,
3112
+ "notNull": true,
3113
+ "autoincrement": false
3114
+ },
3115
+ "created_at": {
3116
+ "name": "created_at",
3117
+ "type": "integer",
3118
+ "primaryKey": false,
3119
+ "notNull": true,
3120
+ "autoincrement": false,
3121
+ "default": "(unixepoch() * 1000)"
3122
+ },
3123
+ "updated_at": {
3124
+ "name": "updated_at",
3125
+ "type": "integer",
3126
+ "primaryKey": false,
3127
+ "notNull": true,
3128
+ "autoincrement": false,
3129
+ "default": "(unixepoch() * 1000)"
3130
+ }
3131
+ },
3132
+ "indexes": {
3133
+ "store_secret_slot": {
3134
+ "name": "store_secret_slot",
3135
+ "columns": [
3136
+ "wizard_id",
3137
+ "holder",
3138
+ "slot"
3139
+ ],
3140
+ "isUnique": true
3141
+ }
3142
+ },
3143
+ "foreignKeys": {
3144
+ "store_secret_wizard_id_wizard_id_fk": {
3145
+ "name": "store_secret_wizard_id_wizard_id_fk",
3146
+ "tableFrom": "store_secret",
3147
+ "tableTo": "wizard",
3148
+ "columnsFrom": [
3149
+ "wizard_id"
3150
+ ],
3151
+ "columnsTo": [
3152
+ "id"
3153
+ ],
3154
+ "onDelete": "cascade",
3155
+ "onUpdate": "no action"
3156
+ }
3157
+ },
3158
+ "compositePrimaryKeys": {},
3159
+ "uniqueConstraints": {},
3160
+ "checkConstraints": {}
3161
+ },
3162
+ "sync_base": {
3163
+ "name": "sync_base",
3164
+ "columns": {
3165
+ "kind": {
3166
+ "name": "kind",
3167
+ "type": "text",
3168
+ "primaryKey": false,
3169
+ "notNull": true,
3170
+ "autoincrement": false
3171
+ },
3172
+ "item": {
3173
+ "name": "item",
3174
+ "type": "text",
3175
+ "primaryKey": false,
3176
+ "notNull": true,
3177
+ "autoincrement": false
3178
+ },
3179
+ "project_id": {
3180
+ "name": "project_id",
3181
+ "type": "text",
3182
+ "primaryKey": false,
3183
+ "notNull": true,
3184
+ "autoincrement": false
3185
+ },
3186
+ "seq": {
3187
+ "name": "seq",
3188
+ "type": "integer",
3189
+ "primaryKey": false,
3190
+ "notNull": true,
3191
+ "autoincrement": false
3192
+ },
3193
+ "record": {
3194
+ "name": "record",
3195
+ "type": "text",
3196
+ "primaryKey": false,
3197
+ "notNull": false,
3198
+ "autoincrement": false
3199
+ }
3200
+ },
3201
+ "indexes": {
3202
+ "sync_base_project": {
3203
+ "name": "sync_base_project",
3204
+ "columns": [
3205
+ "project_id"
3206
+ ],
3207
+ "isUnique": false
3208
+ }
3209
+ },
3210
+ "foreignKeys": {},
3211
+ "compositePrimaryKeys": {
3212
+ "sync_base_kind_item_pk": {
3213
+ "columns": [
3214
+ "kind",
3215
+ "item"
3216
+ ],
3217
+ "name": "sync_base_kind_item_pk"
3218
+ }
3219
+ },
3220
+ "uniqueConstraints": {},
3221
+ "checkConstraints": {}
3222
+ },
3223
+ "sync_change": {
3224
+ "name": "sync_change",
3225
+ "columns": {
3226
+ "seq": {
3227
+ "name": "seq",
3228
+ "type": "integer",
3229
+ "primaryKey": true,
3230
+ "notNull": true,
3231
+ "autoincrement": true
3232
+ },
3233
+ "project_id": {
3234
+ "name": "project_id",
3235
+ "type": "text",
3236
+ "primaryKey": false,
3237
+ "notNull": true,
3238
+ "autoincrement": false
3239
+ },
3240
+ "kind": {
3241
+ "name": "kind",
3242
+ "type": "text",
3243
+ "primaryKey": false,
3244
+ "notNull": true,
3245
+ "autoincrement": false
3246
+ },
3247
+ "item": {
3248
+ "name": "item",
3249
+ "type": "text",
3250
+ "primaryKey": false,
3251
+ "notNull": true,
3252
+ "autoincrement": false
3253
+ },
3254
+ "at": {
3255
+ "name": "at",
3256
+ "type": "integer",
3257
+ "primaryKey": false,
3258
+ "notNull": true,
3259
+ "autoincrement": false,
3260
+ "default": "(unixepoch() * 1000)"
3261
+ }
3262
+ },
3263
+ "indexes": {
3264
+ "sync_change_item": {
3265
+ "name": "sync_change_item",
3266
+ "columns": [
3267
+ "kind",
3268
+ "item"
3269
+ ],
3270
+ "isUnique": false
3271
+ },
3272
+ "sync_change_project": {
3273
+ "name": "sync_change_project",
3274
+ "columns": [
3275
+ "project_id",
3276
+ "seq"
3277
+ ],
3278
+ "isUnique": false
3279
+ }
3280
+ },
3281
+ "foreignKeys": {},
3282
+ "compositePrimaryKeys": {},
3283
+ "uniqueConstraints": {},
3284
+ "checkConstraints": {}
3285
+ },
3286
+ "sync_conflict": {
3287
+ "name": "sync_conflict",
3288
+ "columns": {
3289
+ "id": {
3290
+ "name": "id",
3291
+ "type": "text",
3292
+ "primaryKey": true,
3293
+ "notNull": true,
3294
+ "autoincrement": false
3295
+ },
3296
+ "project_id": {
3297
+ "name": "project_id",
3298
+ "type": "text",
3299
+ "primaryKey": false,
3300
+ "notNull": true,
3301
+ "autoincrement": false
3302
+ },
3303
+ "kind": {
3304
+ "name": "kind",
3305
+ "type": "text",
3306
+ "primaryKey": false,
3307
+ "notNull": true,
3308
+ "autoincrement": false
3309
+ },
3310
+ "item": {
3311
+ "name": "item",
3312
+ "type": "text",
3313
+ "primaryKey": false,
3314
+ "notNull": true,
3315
+ "autoincrement": false
3316
+ },
3317
+ "seq": {
3318
+ "name": "seq",
3319
+ "type": "integer",
3320
+ "primaryKey": false,
3321
+ "notNull": true,
3322
+ "autoincrement": false
3323
+ },
3324
+ "base": {
3325
+ "name": "base",
3326
+ "type": "text",
3327
+ "primaryKey": false,
3328
+ "notNull": false,
3329
+ "autoincrement": false
3330
+ },
3331
+ "local": {
3332
+ "name": "local",
3333
+ "type": "text",
3334
+ "primaryKey": false,
3335
+ "notNull": false,
3336
+ "autoincrement": false
3337
+ },
3338
+ "remote": {
3339
+ "name": "remote",
3340
+ "type": "text",
3341
+ "primaryKey": false,
3342
+ "notNull": false,
3343
+ "autoincrement": false
3344
+ },
3345
+ "created_at": {
3346
+ "name": "created_at",
3347
+ "type": "integer",
3348
+ "primaryKey": false,
3349
+ "notNull": true,
3350
+ "autoincrement": false,
3351
+ "default": "(unixepoch() * 1000)"
3352
+ }
3353
+ },
3354
+ "indexes": {
3355
+ "sync_conflict_item": {
3356
+ "name": "sync_conflict_item",
3357
+ "columns": [
3358
+ "kind",
3359
+ "item"
3360
+ ],
3361
+ "isUnique": true
3362
+ }
3363
+ },
3364
+ "foreignKeys": {},
3365
+ "compositePrimaryKeys": {},
3366
+ "uniqueConstraints": {},
3367
+ "checkConstraints": {}
3368
+ },
3369
+ "sync_guard": {
3370
+ "name": "sync_guard",
3371
+ "columns": {
3372
+ "id": {
3373
+ "name": "id",
3374
+ "type": "integer",
3375
+ "primaryKey": true,
3376
+ "notNull": true,
3377
+ "autoincrement": false
3378
+ },
3379
+ "applying": {
3380
+ "name": "applying",
3381
+ "type": "integer",
3382
+ "primaryKey": false,
3383
+ "notNull": true,
3384
+ "autoincrement": false,
3385
+ "default": 0
3386
+ }
3387
+ },
3388
+ "indexes": {},
3389
+ "foreignKeys": {},
3390
+ "compositePrimaryKeys": {},
3391
+ "uniqueConstraints": {},
3392
+ "checkConstraints": {}
3393
+ },
3394
+ "sync_merge": {
3395
+ "name": "sync_merge",
3396
+ "columns": {
3397
+ "id": {
3398
+ "name": "id",
3399
+ "type": "text",
3400
+ "primaryKey": true,
3401
+ "notNull": true,
3402
+ "autoincrement": false
3403
+ },
3404
+ "project_id": {
3405
+ "name": "project_id",
3406
+ "type": "text",
3407
+ "primaryKey": false,
3408
+ "notNull": true,
3409
+ "autoincrement": false
3410
+ },
3411
+ "kind": {
3412
+ "name": "kind",
3413
+ "type": "text",
3414
+ "primaryKey": false,
3415
+ "notNull": true,
3416
+ "autoincrement": false
3417
+ },
3418
+ "item": {
3419
+ "name": "item",
3420
+ "type": "text",
3421
+ "primaryKey": false,
3422
+ "notNull": true,
3423
+ "autoincrement": false
3424
+ },
3425
+ "local": {
3426
+ "name": "local",
3427
+ "type": "text",
3428
+ "primaryKey": false,
3429
+ "notNull": true,
3430
+ "autoincrement": false
3431
+ },
3432
+ "remote": {
3433
+ "name": "remote",
3434
+ "type": "text",
3435
+ "primaryKey": false,
3436
+ "notNull": true,
3437
+ "autoincrement": false
3438
+ },
3439
+ "before": {
3440
+ "name": "before",
3441
+ "type": "text",
3442
+ "primaryKey": false,
3443
+ "notNull": true,
3444
+ "autoincrement": false
3445
+ },
3446
+ "seen": {
3447
+ "name": "seen",
3448
+ "type": "integer",
3449
+ "primaryKey": false,
3450
+ "notNull": true,
3451
+ "autoincrement": false,
3452
+ "default": false
3453
+ },
3454
+ "created_at": {
3455
+ "name": "created_at",
3456
+ "type": "integer",
3457
+ "primaryKey": false,
3458
+ "notNull": true,
3459
+ "autoincrement": false,
3460
+ "default": "(unixepoch() * 1000)"
3461
+ }
3462
+ },
3463
+ "indexes": {
3464
+ "sync_merge_item": {
3465
+ "name": "sync_merge_item",
3466
+ "columns": [
3467
+ "kind",
3468
+ "item",
3469
+ "created_at"
3470
+ ],
3471
+ "isUnique": false
3472
+ }
3473
+ },
3474
+ "foreignKeys": {},
3475
+ "compositePrimaryKeys": {},
3476
+ "uniqueConstraints": {},
3477
+ "checkConstraints": {}
3478
+ },
3479
+ "wizard": {
3480
+ "name": "wizard",
3481
+ "columns": {
3482
+ "id": {
3483
+ "name": "id",
3484
+ "type": "text",
3485
+ "primaryKey": true,
3486
+ "notNull": true,
3487
+ "autoincrement": false
3488
+ },
3489
+ "project_id": {
3490
+ "name": "project_id",
3491
+ "type": "text",
3492
+ "primaryKey": false,
3493
+ "notNull": true,
3494
+ "autoincrement": false
3495
+ },
3496
+ "tenant_id": {
3497
+ "name": "tenant_id",
3498
+ "type": "text",
3499
+ "primaryKey": false,
3500
+ "notNull": true,
3501
+ "autoincrement": false
3502
+ },
3503
+ "title": {
3504
+ "name": "title",
3505
+ "type": "text",
3506
+ "primaryKey": false,
3507
+ "notNull": true,
3508
+ "autoincrement": false
3509
+ },
3510
+ "draft": {
3511
+ "name": "draft",
3512
+ "type": "text",
3513
+ "primaryKey": false,
3514
+ "notNull": true,
3515
+ "autoincrement": false
3516
+ },
3517
+ "published_version": {
3518
+ "name": "published_version",
3519
+ "type": "integer",
3520
+ "primaryKey": false,
3521
+ "notNull": false,
3522
+ "autoincrement": false
3523
+ },
3524
+ "share_token": {
3525
+ "name": "share_token",
3526
+ "type": "text",
3527
+ "primaryKey": false,
3528
+ "notNull": true,
3529
+ "autoincrement": false
3530
+ },
3531
+ "share_enabled": {
3532
+ "name": "share_enabled",
3533
+ "type": "integer",
3534
+ "primaryKey": false,
3535
+ "notNull": true,
3536
+ "autoincrement": false,
3537
+ "default": true
3538
+ },
3539
+ "daily_run_limit": {
3540
+ "name": "daily_run_limit",
3541
+ "type": "integer",
3542
+ "primaryKey": false,
3543
+ "notNull": true,
3544
+ "autoincrement": false,
3545
+ "default": 50
3546
+ },
3547
+ "starter": {
3548
+ "name": "starter",
3549
+ "type": "text",
3550
+ "primaryKey": false,
3551
+ "notNull": false,
3552
+ "autoincrement": false
3553
+ },
3554
+ "starter_revision": {
3555
+ "name": "starter_revision",
3556
+ "type": "integer",
3557
+ "primaryKey": false,
3558
+ "notNull": false,
3559
+ "autoincrement": false
3560
+ },
3561
+ "revision": {
3562
+ "name": "revision",
3563
+ "type": "integer",
3564
+ "primaryKey": false,
3565
+ "notNull": true,
3566
+ "autoincrement": false,
3567
+ "default": 0
3568
+ },
3569
+ "runners": {
3570
+ "name": "runners",
3571
+ "type": "text",
3572
+ "primaryKey": false,
3573
+ "notNull": false,
3574
+ "autoincrement": false
3575
+ },
3576
+ "translate": {
3577
+ "name": "translate",
3578
+ "type": "integer",
3579
+ "primaryKey": false,
3580
+ "notNull": true,
3581
+ "autoincrement": false,
3582
+ "default": true
3583
+ },
3584
+ "created_at": {
3585
+ "name": "created_at",
3586
+ "type": "integer",
3587
+ "primaryKey": false,
3588
+ "notNull": true,
3589
+ "autoincrement": false,
3590
+ "default": "(unixepoch() * 1000)"
3591
+ },
3592
+ "updated_at": {
3593
+ "name": "updated_at",
3594
+ "type": "integer",
3595
+ "primaryKey": false,
3596
+ "notNull": true,
3597
+ "autoincrement": false,
3598
+ "default": "(unixepoch() * 1000)"
3599
+ }
3600
+ },
3601
+ "indexes": {
3602
+ "wizard_share_token": {
3603
+ "name": "wizard_share_token",
3604
+ "columns": [
3605
+ "share_token"
3606
+ ],
3607
+ "isUnique": true
3608
+ },
3609
+ "wizard_project": {
3610
+ "name": "wizard_project",
3611
+ "columns": [
3612
+ "project_id"
3613
+ ],
3614
+ "isUnique": false
3615
+ }
3616
+ },
3617
+ "foreignKeys": {
3618
+ "wizard_project_id_project_id_fk": {
3619
+ "name": "wizard_project_id_project_id_fk",
3620
+ "tableFrom": "wizard",
3621
+ "tableTo": "project",
3622
+ "columnsFrom": [
3623
+ "project_id"
3624
+ ],
3625
+ "columnsTo": [
3626
+ "id"
3627
+ ],
3628
+ "onDelete": "cascade",
3629
+ "onUpdate": "no action"
3630
+ }
3631
+ },
3632
+ "compositePrimaryKeys": {},
3633
+ "uniqueConstraints": {},
3634
+ "checkConstraints": {}
3635
+ },
3636
+ "wizard_file": {
3637
+ "name": "wizard_file",
3638
+ "columns": {
3639
+ "wizard_id": {
3640
+ "name": "wizard_id",
3641
+ "type": "text",
3642
+ "primaryKey": false,
3643
+ "notNull": true,
3644
+ "autoincrement": false
3645
+ },
3646
+ "path": {
3647
+ "name": "path",
3648
+ "type": "text",
3649
+ "primaryKey": false,
3650
+ "notNull": true,
3651
+ "autoincrement": false
3652
+ },
3653
+ "hash": {
3654
+ "name": "hash",
3655
+ "type": "text",
3656
+ "primaryKey": false,
3657
+ "notNull": true,
3658
+ "autoincrement": false
3659
+ },
3660
+ "mime": {
3661
+ "name": "mime",
3662
+ "type": "text",
3663
+ "primaryKey": false,
3664
+ "notNull": true,
3665
+ "autoincrement": false
3666
+ },
3667
+ "size": {
3668
+ "name": "size",
3669
+ "type": "integer",
3670
+ "primaryKey": false,
3671
+ "notNull": true,
3672
+ "autoincrement": false
3673
+ },
3674
+ "updated_at": {
3675
+ "name": "updated_at",
3676
+ "type": "integer",
3677
+ "primaryKey": false,
3678
+ "notNull": true,
3679
+ "autoincrement": false,
3680
+ "default": "(unixepoch() * 1000)"
3681
+ }
3682
+ },
3683
+ "indexes": {},
3684
+ "foreignKeys": {
3685
+ "wizard_file_wizard_id_wizard_id_fk": {
3686
+ "name": "wizard_file_wizard_id_wizard_id_fk",
3687
+ "tableFrom": "wizard_file",
3688
+ "tableTo": "wizard",
3689
+ "columnsFrom": [
3690
+ "wizard_id"
3691
+ ],
3692
+ "columnsTo": [
3693
+ "id"
3694
+ ],
3695
+ "onDelete": "cascade",
3696
+ "onUpdate": "no action"
3697
+ }
3698
+ },
3699
+ "compositePrimaryKeys": {
3700
+ "wizard_file_wizard_id_path_pk": {
3701
+ "columns": [
3702
+ "wizard_id",
3703
+ "path"
3704
+ ],
3705
+ "name": "wizard_file_wizard_id_path_pk"
3706
+ }
3707
+ },
3708
+ "uniqueConstraints": {},
3709
+ "checkConstraints": {}
3710
+ },
3711
+ "wizard_message": {
3712
+ "name": "wizard_message",
3713
+ "columns": {
3714
+ "id": {
3715
+ "name": "id",
3716
+ "type": "text",
3717
+ "primaryKey": true,
3718
+ "notNull": true,
3719
+ "autoincrement": false
3720
+ },
3721
+ "wizard_id": {
3722
+ "name": "wizard_id",
3723
+ "type": "text",
3724
+ "primaryKey": false,
3725
+ "notNull": true,
3726
+ "autoincrement": false
3727
+ },
3728
+ "role": {
3729
+ "name": "role",
3730
+ "type": "text",
3731
+ "primaryKey": false,
3732
+ "notNull": true,
3733
+ "autoincrement": false
3734
+ },
3735
+ "content": {
3736
+ "name": "content",
3737
+ "type": "text",
3738
+ "primaryKey": false,
3739
+ "notNull": true,
3740
+ "autoincrement": false
3741
+ },
3742
+ "changed": {
3743
+ "name": "changed",
3744
+ "type": "integer",
3745
+ "primaryKey": false,
3746
+ "notNull": true,
3747
+ "autoincrement": false,
3748
+ "default": false
3749
+ },
3750
+ "source": {
3751
+ "name": "source",
3752
+ "type": "text",
3753
+ "primaryKey": false,
3754
+ "notNull": true,
3755
+ "autoincrement": false,
3756
+ "default": "'studio'"
3757
+ },
3758
+ "client": {
3759
+ "name": "client",
3760
+ "type": "text",
3761
+ "primaryKey": false,
3762
+ "notNull": false,
3763
+ "autoincrement": false
3764
+ },
3765
+ "created_at": {
3766
+ "name": "created_at",
3767
+ "type": "integer",
3768
+ "primaryKey": false,
3769
+ "notNull": true,
3770
+ "autoincrement": false,
3771
+ "default": "(unixepoch() * 1000)"
3772
+ }
3773
+ },
3774
+ "indexes": {
3775
+ "wizard_message_wizard": {
3776
+ "name": "wizard_message_wizard",
3777
+ "columns": [
3778
+ "wizard_id",
3779
+ "created_at"
3780
+ ],
3781
+ "isUnique": false
3782
+ }
3783
+ },
3784
+ "foreignKeys": {
3785
+ "wizard_message_wizard_id_wizard_id_fk": {
3786
+ "name": "wizard_message_wizard_id_wizard_id_fk",
3787
+ "tableFrom": "wizard_message",
3788
+ "tableTo": "wizard",
3789
+ "columnsFrom": [
3790
+ "wizard_id"
3791
+ ],
3792
+ "columnsTo": [
3793
+ "id"
3794
+ ],
3795
+ "onDelete": "cascade",
3796
+ "onUpdate": "no action"
3797
+ }
3798
+ },
3799
+ "compositePrimaryKeys": {},
3800
+ "uniqueConstraints": {},
3801
+ "checkConstraints": {}
3802
+ },
3803
+ "wizard_translation": {
3804
+ "name": "wizard_translation",
3805
+ "columns": {
3806
+ "wizard_id": {
3807
+ "name": "wizard_id",
3808
+ "type": "text",
3809
+ "primaryKey": false,
3810
+ "notNull": true,
3811
+ "autoincrement": false
3812
+ },
3813
+ "lang": {
3814
+ "name": "lang",
3815
+ "type": "text",
3816
+ "primaryKey": false,
3817
+ "notNull": true,
3818
+ "autoincrement": false
3819
+ },
3820
+ "texts": {
3821
+ "name": "texts",
3822
+ "type": "text",
3823
+ "primaryKey": false,
3824
+ "notNull": true,
3825
+ "autoincrement": false
3826
+ },
3827
+ "version": {
3828
+ "name": "version",
3829
+ "type": "integer",
3830
+ "primaryKey": false,
3831
+ "notNull": false,
3832
+ "autoincrement": false
3833
+ },
3834
+ "updated_at": {
3835
+ "name": "updated_at",
3836
+ "type": "integer",
3837
+ "primaryKey": false,
3838
+ "notNull": true,
3839
+ "autoincrement": false,
3840
+ "default": "(unixepoch() * 1000)"
3841
+ }
3842
+ },
3843
+ "indexes": {},
3844
+ "foreignKeys": {
3845
+ "wizard_translation_wizard_id_wizard_id_fk": {
3846
+ "name": "wizard_translation_wizard_id_wizard_id_fk",
3847
+ "tableFrom": "wizard_translation",
3848
+ "tableTo": "wizard",
3849
+ "columnsFrom": [
3850
+ "wizard_id"
3851
+ ],
3852
+ "columnsTo": [
3853
+ "id"
3854
+ ],
3855
+ "onDelete": "cascade",
3856
+ "onUpdate": "no action"
3857
+ }
3858
+ },
3859
+ "compositePrimaryKeys": {
3860
+ "wizard_translation_wizard_id_lang_pk": {
3861
+ "columns": [
3862
+ "wizard_id",
3863
+ "lang"
3864
+ ],
3865
+ "name": "wizard_translation_wizard_id_lang_pk"
3866
+ }
3867
+ },
3868
+ "uniqueConstraints": {},
3869
+ "checkConstraints": {}
3870
+ },
3871
+ "wizard_version": {
3872
+ "name": "wizard_version",
3873
+ "columns": {
3874
+ "id": {
3875
+ "name": "id",
3876
+ "type": "text",
3877
+ "primaryKey": true,
3878
+ "notNull": true,
3879
+ "autoincrement": false
3880
+ },
3881
+ "wizard_id": {
3882
+ "name": "wizard_id",
3883
+ "type": "text",
3884
+ "primaryKey": false,
3885
+ "notNull": true,
3886
+ "autoincrement": false
3887
+ },
3888
+ "version": {
3889
+ "name": "version",
3890
+ "type": "integer",
3891
+ "primaryKey": false,
3892
+ "notNull": true,
3893
+ "autoincrement": false
3894
+ },
3895
+ "definition": {
3896
+ "name": "definition",
3897
+ "type": "text",
3898
+ "primaryKey": false,
3899
+ "notNull": true,
3900
+ "autoincrement": false
3901
+ },
3902
+ "files": {
3903
+ "name": "files",
3904
+ "type": "text",
3905
+ "primaryKey": false,
3906
+ "notNull": true,
3907
+ "autoincrement": false,
3908
+ "default": "'[]'"
3909
+ },
3910
+ "created_at": {
3911
+ "name": "created_at",
3912
+ "type": "integer",
3913
+ "primaryKey": false,
3914
+ "notNull": true,
3915
+ "autoincrement": false,
3916
+ "default": "(unixepoch() * 1000)"
3917
+ }
3918
+ },
3919
+ "indexes": {
3920
+ "wizard_version_n": {
3921
+ "name": "wizard_version_n",
3922
+ "columns": [
3923
+ "wizard_id",
3924
+ "version"
3925
+ ],
3926
+ "isUnique": true
3927
+ }
3928
+ },
3929
+ "foreignKeys": {
3930
+ "wizard_version_wizard_id_wizard_id_fk": {
3931
+ "name": "wizard_version_wizard_id_wizard_id_fk",
3932
+ "tableFrom": "wizard_version",
3933
+ "tableTo": "wizard",
3934
+ "columnsFrom": [
3935
+ "wizard_id"
3936
+ ],
3937
+ "columnsTo": [
3938
+ "id"
3939
+ ],
3940
+ "onDelete": "cascade",
3941
+ "onUpdate": "no action"
3942
+ }
3943
+ },
3944
+ "compositePrimaryKeys": {},
3945
+ "uniqueConstraints": {},
3946
+ "checkConstraints": {}
3947
+ }
3948
+ },
3949
+ "views": {},
3950
+ "enums": {},
3951
+ "_meta": {
3952
+ "schemas": {},
3953
+ "tables": {},
3954
+ "columns": {}
3955
+ },
3956
+ "internal": {
3957
+ "indexes": {}
3958
+ }
3959
+ }