@engenty/wizards-runtime 0.11.11 → 0.11.12

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 (58) hide show
  1. package/apps/runtime/dist/app.js +2 -1
  2. package/apps/runtime/dist/auth/impersonation.js +33 -0
  3. package/apps/runtime/dist/auth/index.js +30 -5
  4. package/apps/runtime/dist/db/control-schema.js +3 -0
  5. package/apps/runtime/dist/db/migrations/control/0013_session_impersonated_by.sql +2 -0
  6. package/apps/runtime/dist/db/migrations/control/meta/0013_snapshot.json +621 -0
  7. package/apps/runtime/dist/db/migrations/control/meta/_journal.json +7 -0
  8. package/apps/runtime/dist/db/migrations/tenant/0026_run_impersonated_by.sql +1 -0
  9. package/apps/runtime/dist/db/migrations/tenant/meta/0026_snapshot.json +3966 -0
  10. package/apps/runtime/dist/db/migrations/tenant/meta/_journal.json +7 -0
  11. package/apps/runtime/dist/db/schema.js +2 -0
  12. package/apps/runtime/dist/engine/runner.js +2 -0
  13. package/apps/runtime/dist/manage.js +14 -0
  14. package/apps/runtime/dist/routes/runs.js +18 -7
  15. package/apps/runtime/dist/routes/studio.js +4 -0
  16. package/apps/runtime/dist/services/runs.js +1 -0
  17. package/apps/runtime/dist/sharing/index.js +1 -0
  18. package/apps/runtime/dist/texts.js +2 -0
  19. package/apps/web/dist/assets/{AboutDialog-BxPhyBQC.js → AboutDialog-DKGBCS3o.js} +1 -1
  20. package/apps/web/dist/assets/{ChangelogDialog-BLst4UYt.js → ChangelogDialog-Dc66LqBg.js} +1 -1
  21. package/apps/web/dist/assets/{CodeEditor-ydfkafOX.js → CodeEditor-BijLsoJX.js} +1 -1
  22. package/apps/web/dist/assets/{EditorPage-tBrPWV2R.js → EditorPage-CWtOGKs7.js} +3 -3
  23. package/apps/web/dist/assets/{FlowPreview-CPEK110v.js → FlowPreview-Wjt28MdG.js} +1 -1
  24. package/apps/web/dist/assets/{Harness-Cm1i8s2W.js → Harness-CdmCoeEZ.js} +1 -1
  25. package/apps/web/dist/assets/{Marketplace-_IfcAgYO.js → Marketplace-CpjRqTvn.js} +2 -2
  26. package/apps/web/dist/assets/{NewWizardChannels-45GyOXYL.js → NewWizardChannels-g3CJzwr5.js} +1 -1
  27. package/apps/web/dist/assets/{NewWizardPage-XFt4YtU3.js → NewWizardPage-DGHwvXLf.js} +1 -1
  28. package/apps/web/dist/assets/{OnboardingPage-Mko1anYV.js → OnboardingPage-CoCBYKvL.js} +1 -1
  29. package/apps/web/dist/assets/{PreviewPane-Dw9WG3lP.js → PreviewPane-BgIEsVjy.js} +5 -5
  30. package/apps/web/dist/assets/{ProjectPage-DRnVIWQs.js → ProjectPage-Cmhm9qh1.js} +1 -1
  31. package/apps/web/dist/assets/PublicRunner-C7i0QdlT.js +1 -0
  32. package/apps/web/dist/assets/{ReadOnly-CBNxkYUt.js → ReadOnly-C3SYrBNk.js} +1 -1
  33. package/apps/web/dist/assets/SettingsPage-Ctul7RLy.js +2 -0
  34. package/apps/web/dist/assets/SetupPage-CuuQVDH2.js +1 -0
  35. package/apps/web/dist/assets/{SharePage-gjQQ0CtP.js → SharePage-BDeYhYRB.js} +1 -1
  36. package/apps/web/dist/assets/changelog-BXyvVCpB.js +1 -0
  37. package/apps/web/dist/assets/{i18n-BX8GnEZT.js → i18n-BYeH2Dmi.js} +1 -1
  38. package/apps/web/dist/assets/index-C0yASttP.js +34 -0
  39. package/apps/web/dist/assets/{phone-Dd7IVbpJ.js → phone-JGS60FQU.js} +1 -1
  40. package/apps/web/dist/assets/{runners-XifDCQG3.js → runners-CwTP03YR.js} +1 -1
  41. package/apps/web/dist/assets/{session-BwtsznZF.js → session-CngLvd02.js} +1 -1
  42. package/apps/web/dist/assets/{settings-menu-CS-fXrFW.js → settings-menu-C0yo5q3t.js} +1 -1
  43. package/apps/web/dist/assets/{theme-DFKNqmEY.js → theme-DftQJmEW.js} +2 -2
  44. package/apps/web/dist/assets/{ui-D719V_Yj.js → ui-Bhp_a_44.js} +1 -1
  45. package/apps/web/dist/assets/{upload-CYTDCrYd.js → upload-DPLDQsRT.js} +1 -1
  46. package/apps/web/dist/assets/{useMutation-CVVmJvyz.js → useMutation-Cmn8b7tT.js} +1 -1
  47. package/apps/web/dist/assets/{volume-2-Do0dsjv2.js → volume-2-DGqbhyPO.js} +1 -1
  48. package/apps/web/dist/assets/{wrench-C5syJD9J.js → wrench-Dr19y-10.js} +1 -1
  49. package/apps/web/dist/index.html +7 -7
  50. package/apps/web/dist/mcp/flow.html +1 -1
  51. package/package.json +1 -1
  52. package/plugin/.claude-plugin/plugin.json +1 -1
  53. package/plugin/plugin.json +1 -1
  54. package/apps/web/dist/assets/PublicRunner-C3NwpZKh.js +0 -1
  55. package/apps/web/dist/assets/SettingsPage-DBckGRCS.js +0 -2
  56. package/apps/web/dist/assets/SetupPage-BJxbmS68.js +0 -1
  57. package/apps/web/dist/assets/changelog-C67l3TZ1.js +0 -1
  58. package/apps/web/dist/assets/index-BtNnNYyZ.js +0 -34
@@ -0,0 +1,3966 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "b21b05ff-f306-4b7b-b7bf-425e106e96bc",
5
+ "prevId": "eaec8a65-8b3e-4acf-966b-881bdda9d4f5",
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
+ "impersonated_by": {
1374
+ "name": "impersonated_by",
1375
+ "type": "text",
1376
+ "primaryKey": false,
1377
+ "notNull": false,
1378
+ "autoincrement": false
1379
+ },
1380
+ "ip_hash": {
1381
+ "name": "ip_hash",
1382
+ "type": "text",
1383
+ "primaryKey": false,
1384
+ "notNull": false,
1385
+ "autoincrement": false
1386
+ },
1387
+ "origin": {
1388
+ "name": "origin",
1389
+ "type": "text",
1390
+ "primaryKey": false,
1391
+ "notNull": false,
1392
+ "autoincrement": false
1393
+ },
1394
+ "client": {
1395
+ "name": "client",
1396
+ "type": "text",
1397
+ "primaryKey": false,
1398
+ "notNull": false,
1399
+ "autoincrement": false
1400
+ },
1401
+ "status": {
1402
+ "name": "status",
1403
+ "type": "text",
1404
+ "primaryKey": false,
1405
+ "notNull": true,
1406
+ "autoincrement": false
1407
+ },
1408
+ "cursor": {
1409
+ "name": "cursor",
1410
+ "type": "text",
1411
+ "primaryKey": false,
1412
+ "notNull": false,
1413
+ "autoincrement": false
1414
+ },
1415
+ "state": {
1416
+ "name": "state",
1417
+ "type": "text",
1418
+ "primaryKey": false,
1419
+ "notNull": true,
1420
+ "autoincrement": false
1421
+ },
1422
+ "error": {
1423
+ "name": "error",
1424
+ "type": "text",
1425
+ "primaryKey": false,
1426
+ "notNull": false,
1427
+ "autoincrement": false
1428
+ },
1429
+ "ask": {
1430
+ "name": "ask",
1431
+ "type": "text",
1432
+ "primaryKey": false,
1433
+ "notNull": false,
1434
+ "autoincrement": false
1435
+ },
1436
+ "answer": {
1437
+ "name": "answer",
1438
+ "type": "text",
1439
+ "primaryKey": false,
1440
+ "notNull": false,
1441
+ "autoincrement": false
1442
+ },
1443
+ "unattended": {
1444
+ "name": "unattended",
1445
+ "type": "integer",
1446
+ "primaryKey": false,
1447
+ "notNull": true,
1448
+ "autoincrement": false,
1449
+ "default": false
1450
+ },
1451
+ "device_offer": {
1452
+ "name": "device_offer",
1453
+ "type": "text",
1454
+ "primaryKey": false,
1455
+ "notNull": false,
1456
+ "autoincrement": false
1457
+ },
1458
+ "cost_micros": {
1459
+ "name": "cost_micros",
1460
+ "type": "integer",
1461
+ "primaryKey": false,
1462
+ "notNull": true,
1463
+ "autoincrement": false,
1464
+ "default": 0
1465
+ },
1466
+ "share_token": {
1467
+ "name": "share_token",
1468
+ "type": "text",
1469
+ "primaryKey": false,
1470
+ "notNull": false,
1471
+ "autoincrement": false
1472
+ },
1473
+ "shared_at": {
1474
+ "name": "shared_at",
1475
+ "type": "integer",
1476
+ "primaryKey": false,
1477
+ "notNull": false,
1478
+ "autoincrement": false
1479
+ },
1480
+ "expires_at": {
1481
+ "name": "expires_at",
1482
+ "type": "integer",
1483
+ "primaryKey": false,
1484
+ "notNull": false,
1485
+ "autoincrement": false
1486
+ },
1487
+ "created_at": {
1488
+ "name": "created_at",
1489
+ "type": "integer",
1490
+ "primaryKey": false,
1491
+ "notNull": true,
1492
+ "autoincrement": false,
1493
+ "default": "(unixepoch() * 1000)"
1494
+ },
1495
+ "updated_at": {
1496
+ "name": "updated_at",
1497
+ "type": "integer",
1498
+ "primaryKey": false,
1499
+ "notNull": true,
1500
+ "autoincrement": false,
1501
+ "default": "(unixepoch() * 1000)"
1502
+ }
1503
+ },
1504
+ "indexes": {
1505
+ "run_share_token": {
1506
+ "name": "run_share_token",
1507
+ "columns": [
1508
+ "share_token"
1509
+ ],
1510
+ "isUnique": true
1511
+ },
1512
+ "run_expires": {
1513
+ "name": "run_expires",
1514
+ "columns": [
1515
+ "expires_at"
1516
+ ],
1517
+ "isUnique": false
1518
+ },
1519
+ "run_wizard": {
1520
+ "name": "run_wizard",
1521
+ "columns": [
1522
+ "wizard_id",
1523
+ "created_at"
1524
+ ],
1525
+ "isUnique": false
1526
+ },
1527
+ "run_visitor": {
1528
+ "name": "run_visitor",
1529
+ "columns": [
1530
+ "visitor_id",
1531
+ "created_at"
1532
+ ],
1533
+ "isUnique": false
1534
+ },
1535
+ "run_status": {
1536
+ "name": "run_status",
1537
+ "columns": [
1538
+ "status"
1539
+ ],
1540
+ "isUnique": false
1541
+ }
1542
+ },
1543
+ "foreignKeys": {
1544
+ "run_wizard_id_wizard_id_fk": {
1545
+ "name": "run_wizard_id_wizard_id_fk",
1546
+ "tableFrom": "run",
1547
+ "tableTo": "wizard",
1548
+ "columnsFrom": [
1549
+ "wizard_id"
1550
+ ],
1551
+ "columnsTo": [
1552
+ "id"
1553
+ ],
1554
+ "onDelete": "cascade",
1555
+ "onUpdate": "no action"
1556
+ }
1557
+ },
1558
+ "compositePrimaryKeys": {},
1559
+ "uniqueConstraints": {},
1560
+ "checkConstraints": {}
1561
+ },
1562
+ "run_cost": {
1563
+ "name": "run_cost",
1564
+ "columns": {
1565
+ "run_id": {
1566
+ "name": "run_id",
1567
+ "type": "text",
1568
+ "primaryKey": false,
1569
+ "notNull": true,
1570
+ "autoincrement": false
1571
+ },
1572
+ "step_id": {
1573
+ "name": "step_id",
1574
+ "type": "text",
1575
+ "primaryKey": false,
1576
+ "notNull": true,
1577
+ "autoincrement": false
1578
+ },
1579
+ "micros": {
1580
+ "name": "micros",
1581
+ "type": "integer",
1582
+ "primaryKey": false,
1583
+ "notNull": true,
1584
+ "autoincrement": false,
1585
+ "default": 0
1586
+ }
1587
+ },
1588
+ "indexes": {},
1589
+ "foreignKeys": {
1590
+ "run_cost_run_id_run_id_fk": {
1591
+ "name": "run_cost_run_id_run_id_fk",
1592
+ "tableFrom": "run_cost",
1593
+ "tableTo": "run",
1594
+ "columnsFrom": [
1595
+ "run_id"
1596
+ ],
1597
+ "columnsTo": [
1598
+ "id"
1599
+ ],
1600
+ "onDelete": "cascade",
1601
+ "onUpdate": "no action"
1602
+ }
1603
+ },
1604
+ "compositePrimaryKeys": {
1605
+ "run_cost_run_id_step_id_pk": {
1606
+ "columns": [
1607
+ "run_id",
1608
+ "step_id"
1609
+ ],
1610
+ "name": "run_cost_run_id_step_id_pk"
1611
+ }
1612
+ },
1613
+ "uniqueConstraints": {},
1614
+ "checkConstraints": {}
1615
+ },
1616
+ "run_event": {
1617
+ "name": "run_event",
1618
+ "columns": {
1619
+ "id": {
1620
+ "name": "id",
1621
+ "type": "integer",
1622
+ "primaryKey": true,
1623
+ "notNull": true,
1624
+ "autoincrement": true
1625
+ },
1626
+ "run_id": {
1627
+ "name": "run_id",
1628
+ "type": "text",
1629
+ "primaryKey": false,
1630
+ "notNull": true,
1631
+ "autoincrement": false
1632
+ },
1633
+ "step_id": {
1634
+ "name": "step_id",
1635
+ "type": "text",
1636
+ "primaryKey": false,
1637
+ "notNull": false,
1638
+ "autoincrement": false
1639
+ },
1640
+ "type": {
1641
+ "name": "type",
1642
+ "type": "text",
1643
+ "primaryKey": false,
1644
+ "notNull": true,
1645
+ "autoincrement": false
1646
+ },
1647
+ "message": {
1648
+ "name": "message",
1649
+ "type": "text",
1650
+ "primaryKey": false,
1651
+ "notNull": true,
1652
+ "autoincrement": false
1653
+ },
1654
+ "note": {
1655
+ "name": "note",
1656
+ "type": "text",
1657
+ "primaryKey": false,
1658
+ "notNull": false,
1659
+ "autoincrement": false
1660
+ },
1661
+ "asset_id": {
1662
+ "name": "asset_id",
1663
+ "type": "text",
1664
+ "primaryKey": false,
1665
+ "notNull": false,
1666
+ "autoincrement": false
1667
+ },
1668
+ "created_at": {
1669
+ "name": "created_at",
1670
+ "type": "integer",
1671
+ "primaryKey": false,
1672
+ "notNull": true,
1673
+ "autoincrement": false,
1674
+ "default": "(unixepoch() * 1000)"
1675
+ }
1676
+ },
1677
+ "indexes": {
1678
+ "run_event_run": {
1679
+ "name": "run_event_run",
1680
+ "columns": [
1681
+ "run_id",
1682
+ "id"
1683
+ ],
1684
+ "isUnique": false
1685
+ }
1686
+ },
1687
+ "foreignKeys": {
1688
+ "run_event_run_id_run_id_fk": {
1689
+ "name": "run_event_run_id_run_id_fk",
1690
+ "tableFrom": "run_event",
1691
+ "tableTo": "run",
1692
+ "columnsFrom": [
1693
+ "run_id"
1694
+ ],
1695
+ "columnsTo": [
1696
+ "id"
1697
+ ],
1698
+ "onDelete": "cascade",
1699
+ "onUpdate": "no action"
1700
+ }
1701
+ },
1702
+ "compositePrimaryKeys": {},
1703
+ "uniqueConstraints": {},
1704
+ "checkConstraints": {}
1705
+ },
1706
+ "share_job": {
1707
+ "name": "share_job",
1708
+ "columns": {
1709
+ "id": {
1710
+ "name": "id",
1711
+ "type": "text",
1712
+ "primaryKey": true,
1713
+ "notNull": true,
1714
+ "autoincrement": false
1715
+ },
1716
+ "run_id": {
1717
+ "name": "run_id",
1718
+ "type": "text",
1719
+ "primaryKey": false,
1720
+ "notNull": true,
1721
+ "autoincrement": false
1722
+ },
1723
+ "tenant_id": {
1724
+ "name": "tenant_id",
1725
+ "type": "text",
1726
+ "primaryKey": false,
1727
+ "notNull": true,
1728
+ "autoincrement": false
1729
+ },
1730
+ "target": {
1731
+ "name": "target",
1732
+ "type": "text",
1733
+ "primaryKey": false,
1734
+ "notNull": true,
1735
+ "autoincrement": false
1736
+ },
1737
+ "name": {
1738
+ "name": "name",
1739
+ "type": "text",
1740
+ "primaryKey": false,
1741
+ "notNull": true,
1742
+ "autoincrement": false
1743
+ },
1744
+ "icon": {
1745
+ "name": "icon",
1746
+ "type": "text",
1747
+ "primaryKey": false,
1748
+ "notNull": true,
1749
+ "autoincrement": false
1750
+ },
1751
+ "status": {
1752
+ "name": "status",
1753
+ "type": "text",
1754
+ "primaryKey": false,
1755
+ "notNull": true,
1756
+ "autoincrement": false
1757
+ },
1758
+ "request": {
1759
+ "name": "request",
1760
+ "type": "text",
1761
+ "primaryKey": false,
1762
+ "notNull": true,
1763
+ "autoincrement": false
1764
+ },
1765
+ "events": {
1766
+ "name": "events",
1767
+ "type": "text",
1768
+ "primaryKey": false,
1769
+ "notNull": true,
1770
+ "autoincrement": false,
1771
+ "default": "'[]'"
1772
+ },
1773
+ "result": {
1774
+ "name": "result",
1775
+ "type": "text",
1776
+ "primaryKey": false,
1777
+ "notNull": false,
1778
+ "autoincrement": false
1779
+ },
1780
+ "error": {
1781
+ "name": "error",
1782
+ "type": "text",
1783
+ "primaryKey": false,
1784
+ "notNull": false,
1785
+ "autoincrement": false
1786
+ },
1787
+ "created_at": {
1788
+ "name": "created_at",
1789
+ "type": "integer",
1790
+ "primaryKey": false,
1791
+ "notNull": true,
1792
+ "autoincrement": false,
1793
+ "default": "(unixepoch() * 1000)"
1794
+ },
1795
+ "updated_at": {
1796
+ "name": "updated_at",
1797
+ "type": "integer",
1798
+ "primaryKey": false,
1799
+ "notNull": true,
1800
+ "autoincrement": false,
1801
+ "default": "(unixepoch() * 1000)"
1802
+ }
1803
+ },
1804
+ "indexes": {
1805
+ "share_job_run": {
1806
+ "name": "share_job_run",
1807
+ "columns": [
1808
+ "run_id",
1809
+ "created_at"
1810
+ ],
1811
+ "isUnique": false
1812
+ }
1813
+ },
1814
+ "foreignKeys": {
1815
+ "share_job_run_id_run_id_fk": {
1816
+ "name": "share_job_run_id_run_id_fk",
1817
+ "tableFrom": "share_job",
1818
+ "tableTo": "run",
1819
+ "columnsFrom": [
1820
+ "run_id"
1821
+ ],
1822
+ "columnsTo": [
1823
+ "id"
1824
+ ],
1825
+ "onDelete": "cascade",
1826
+ "onUpdate": "no action"
1827
+ }
1828
+ },
1829
+ "compositePrimaryKeys": {},
1830
+ "uniqueConstraints": {},
1831
+ "checkConstraints": {}
1832
+ },
1833
+ "space_category": {
1834
+ "name": "space_category",
1835
+ "columns": {
1836
+ "id": {
1837
+ "name": "id",
1838
+ "type": "text",
1839
+ "primaryKey": true,
1840
+ "notNull": true,
1841
+ "autoincrement": false
1842
+ },
1843
+ "tenant_id": {
1844
+ "name": "tenant_id",
1845
+ "type": "text",
1846
+ "primaryKey": false,
1847
+ "notNull": true,
1848
+ "autoincrement": false
1849
+ },
1850
+ "project_id": {
1851
+ "name": "project_id",
1852
+ "type": "text",
1853
+ "primaryKey": false,
1854
+ "notNull": true,
1855
+ "autoincrement": false
1856
+ },
1857
+ "name": {
1858
+ "name": "name",
1859
+ "type": "text",
1860
+ "primaryKey": false,
1861
+ "notNull": true,
1862
+ "autoincrement": false
1863
+ },
1864
+ "type": {
1865
+ "name": "type",
1866
+ "type": "text",
1867
+ "primaryKey": false,
1868
+ "notNull": true,
1869
+ "autoincrement": false
1870
+ },
1871
+ "unit": {
1872
+ "name": "unit",
1873
+ "type": "text",
1874
+ "primaryKey": false,
1875
+ "notNull": false,
1876
+ "autoincrement": false
1877
+ },
1878
+ "multiple": {
1879
+ "name": "multiple",
1880
+ "type": "integer",
1881
+ "primaryKey": false,
1882
+ "notNull": true,
1883
+ "autoincrement": false,
1884
+ "default": false
1885
+ },
1886
+ "ordered": {
1887
+ "name": "ordered",
1888
+ "type": "integer",
1889
+ "primaryKey": false,
1890
+ "notNull": true,
1891
+ "autoincrement": false,
1892
+ "default": false
1893
+ },
1894
+ "hint": {
1895
+ "name": "hint",
1896
+ "type": "text",
1897
+ "primaryKey": false,
1898
+ "notNull": false,
1899
+ "autoincrement": false
1900
+ },
1901
+ "origin": {
1902
+ "name": "origin",
1903
+ "type": "text",
1904
+ "primaryKey": false,
1905
+ "notNull": false,
1906
+ "autoincrement": false
1907
+ },
1908
+ "proposed": {
1909
+ "name": "proposed",
1910
+ "type": "integer",
1911
+ "primaryKey": false,
1912
+ "notNull": true,
1913
+ "autoincrement": false,
1914
+ "default": false
1915
+ },
1916
+ "table_id": {
1917
+ "name": "table_id",
1918
+ "type": "text",
1919
+ "primaryKey": false,
1920
+ "notNull": false,
1921
+ "autoincrement": false
1922
+ },
1923
+ "column_id": {
1924
+ "name": "column_id",
1925
+ "type": "text",
1926
+ "primaryKey": false,
1927
+ "notNull": false,
1928
+ "autoincrement": false
1929
+ },
1930
+ "position": {
1931
+ "name": "position",
1932
+ "type": "integer",
1933
+ "primaryKey": false,
1934
+ "notNull": true,
1935
+ "autoincrement": false,
1936
+ "default": 0
1937
+ },
1938
+ "created_at": {
1939
+ "name": "created_at",
1940
+ "type": "integer",
1941
+ "primaryKey": false,
1942
+ "notNull": true,
1943
+ "autoincrement": false,
1944
+ "default": "(unixepoch() * 1000)"
1945
+ },
1946
+ "updated_at": {
1947
+ "name": "updated_at",
1948
+ "type": "integer",
1949
+ "primaryKey": false,
1950
+ "notNull": true,
1951
+ "autoincrement": false,
1952
+ "default": "(unixepoch() * 1000)"
1953
+ }
1954
+ },
1955
+ "indexes": {
1956
+ "space_category_name": {
1957
+ "name": "space_category_name",
1958
+ "columns": [
1959
+ "project_id",
1960
+ "name"
1961
+ ],
1962
+ "isUnique": true
1963
+ }
1964
+ },
1965
+ "foreignKeys": {
1966
+ "space_category_project_id_project_id_fk": {
1967
+ "name": "space_category_project_id_project_id_fk",
1968
+ "tableFrom": "space_category",
1969
+ "tableTo": "project",
1970
+ "columnsFrom": [
1971
+ "project_id"
1972
+ ],
1973
+ "columnsTo": [
1974
+ "id"
1975
+ ],
1976
+ "onDelete": "cascade",
1977
+ "onUpdate": "no action"
1978
+ },
1979
+ "space_category_table_id_space_table_id_fk": {
1980
+ "name": "space_category_table_id_space_table_id_fk",
1981
+ "tableFrom": "space_category",
1982
+ "tableTo": "space_table",
1983
+ "columnsFrom": [
1984
+ "table_id"
1985
+ ],
1986
+ "columnsTo": [
1987
+ "id"
1988
+ ],
1989
+ "onDelete": "set null",
1990
+ "onUpdate": "no action"
1991
+ }
1992
+ },
1993
+ "compositePrimaryKeys": {},
1994
+ "uniqueConstraints": {},
1995
+ "checkConstraints": {}
1996
+ },
1997
+ "space_category_value": {
1998
+ "name": "space_category_value",
1999
+ "columns": {
2000
+ "id": {
2001
+ "name": "id",
2002
+ "type": "text",
2003
+ "primaryKey": true,
2004
+ "notNull": true,
2005
+ "autoincrement": false
2006
+ },
2007
+ "category_id": {
2008
+ "name": "category_id",
2009
+ "type": "text",
2010
+ "primaryKey": false,
2011
+ "notNull": true,
2012
+ "autoincrement": false
2013
+ },
2014
+ "value": {
2015
+ "name": "value",
2016
+ "type": "text",
2017
+ "primaryKey": false,
2018
+ "notNull": true,
2019
+ "autoincrement": false
2020
+ },
2021
+ "position": {
2022
+ "name": "position",
2023
+ "type": "integer",
2024
+ "primaryKey": false,
2025
+ "notNull": true,
2026
+ "autoincrement": false,
2027
+ "default": 0
2028
+ },
2029
+ "summary": {
2030
+ "name": "summary",
2031
+ "type": "text",
2032
+ "primaryKey": false,
2033
+ "notNull": false,
2034
+ "autoincrement": false
2035
+ },
2036
+ "summary_at": {
2037
+ "name": "summary_at",
2038
+ "type": "integer",
2039
+ "primaryKey": false,
2040
+ "notNull": false,
2041
+ "autoincrement": false
2042
+ },
2043
+ "created_at": {
2044
+ "name": "created_at",
2045
+ "type": "integer",
2046
+ "primaryKey": false,
2047
+ "notNull": true,
2048
+ "autoincrement": false,
2049
+ "default": "(unixepoch() * 1000)"
2050
+ }
2051
+ },
2052
+ "indexes": {
2053
+ "space_category_value_value": {
2054
+ "name": "space_category_value_value",
2055
+ "columns": [
2056
+ "category_id",
2057
+ "value"
2058
+ ],
2059
+ "isUnique": true
2060
+ }
2061
+ },
2062
+ "foreignKeys": {
2063
+ "space_category_value_category_id_space_category_id_fk": {
2064
+ "name": "space_category_value_category_id_space_category_id_fk",
2065
+ "tableFrom": "space_category_value",
2066
+ "tableTo": "space_category",
2067
+ "columnsFrom": [
2068
+ "category_id"
2069
+ ],
2070
+ "columnsTo": [
2071
+ "id"
2072
+ ],
2073
+ "onDelete": "cascade",
2074
+ "onUpdate": "no action"
2075
+ }
2076
+ },
2077
+ "compositePrimaryKeys": {},
2078
+ "uniqueConstraints": {},
2079
+ "checkConstraints": {}
2080
+ },
2081
+ "space_item_category": {
2082
+ "name": "space_item_category",
2083
+ "columns": {
2084
+ "id": {
2085
+ "name": "id",
2086
+ "type": "integer",
2087
+ "primaryKey": true,
2088
+ "notNull": true,
2089
+ "autoincrement": true
2090
+ },
2091
+ "project_id": {
2092
+ "name": "project_id",
2093
+ "type": "text",
2094
+ "primaryKey": false,
2095
+ "notNull": true,
2096
+ "autoincrement": false
2097
+ },
2098
+ "category_id": {
2099
+ "name": "category_id",
2100
+ "type": "text",
2101
+ "primaryKey": false,
2102
+ "notNull": true,
2103
+ "autoincrement": false
2104
+ },
2105
+ "page_id": {
2106
+ "name": "page_id",
2107
+ "type": "text",
2108
+ "primaryKey": false,
2109
+ "notNull": false,
2110
+ "autoincrement": false
2111
+ },
2112
+ "row_id": {
2113
+ "name": "row_id",
2114
+ "type": "text",
2115
+ "primaryKey": false,
2116
+ "notNull": false,
2117
+ "autoincrement": false
2118
+ },
2119
+ "table_id": {
2120
+ "name": "table_id",
2121
+ "type": "text",
2122
+ "primaryKey": false,
2123
+ "notNull": false,
2124
+ "autoincrement": false
2125
+ },
2126
+ "file_id": {
2127
+ "name": "file_id",
2128
+ "type": "text",
2129
+ "primaryKey": false,
2130
+ "notNull": false,
2131
+ "autoincrement": false
2132
+ },
2133
+ "value_id": {
2134
+ "name": "value_id",
2135
+ "type": "text",
2136
+ "primaryKey": false,
2137
+ "notNull": false,
2138
+ "autoincrement": false
2139
+ },
2140
+ "text": {
2141
+ "name": "text",
2142
+ "type": "text",
2143
+ "primaryKey": false,
2144
+ "notNull": false,
2145
+ "autoincrement": false
2146
+ },
2147
+ "num": {
2148
+ "name": "num",
2149
+ "type": "real",
2150
+ "primaryKey": false,
2151
+ "notNull": false,
2152
+ "autoincrement": false
2153
+ },
2154
+ "at": {
2155
+ "name": "at",
2156
+ "type": "integer",
2157
+ "primaryKey": false,
2158
+ "notNull": false,
2159
+ "autoincrement": false
2160
+ },
2161
+ "bool": {
2162
+ "name": "bool",
2163
+ "type": "integer",
2164
+ "primaryKey": false,
2165
+ "notNull": false,
2166
+ "autoincrement": false
2167
+ },
2168
+ "by": {
2169
+ "name": "by",
2170
+ "type": "text",
2171
+ "primaryKey": false,
2172
+ "notNull": true,
2173
+ "autoincrement": false,
2174
+ "default": "'person'"
2175
+ }
2176
+ },
2177
+ "indexes": {
2178
+ "space_item_category_category": {
2179
+ "name": "space_item_category_category",
2180
+ "columns": [
2181
+ "category_id",
2182
+ "value_id"
2183
+ ],
2184
+ "isUnique": false
2185
+ },
2186
+ "space_item_category_page": {
2187
+ "name": "space_item_category_page",
2188
+ "columns": [
2189
+ "page_id"
2190
+ ],
2191
+ "isUnique": false
2192
+ },
2193
+ "space_item_category_row": {
2194
+ "name": "space_item_category_row",
2195
+ "columns": [
2196
+ "row_id"
2197
+ ],
2198
+ "isUnique": false
2199
+ },
2200
+ "space_item_category_table": {
2201
+ "name": "space_item_category_table",
2202
+ "columns": [
2203
+ "table_id"
2204
+ ],
2205
+ "isUnique": false
2206
+ },
2207
+ "space_item_category_file": {
2208
+ "name": "space_item_category_file",
2209
+ "columns": [
2210
+ "file_id"
2211
+ ],
2212
+ "isUnique": false
2213
+ }
2214
+ },
2215
+ "foreignKeys": {
2216
+ "space_item_category_project_id_project_id_fk": {
2217
+ "name": "space_item_category_project_id_project_id_fk",
2218
+ "tableFrom": "space_item_category",
2219
+ "tableTo": "project",
2220
+ "columnsFrom": [
2221
+ "project_id"
2222
+ ],
2223
+ "columnsTo": [
2224
+ "id"
2225
+ ],
2226
+ "onDelete": "cascade",
2227
+ "onUpdate": "no action"
2228
+ },
2229
+ "space_item_category_category_id_space_category_id_fk": {
2230
+ "name": "space_item_category_category_id_space_category_id_fk",
2231
+ "tableFrom": "space_item_category",
2232
+ "tableTo": "space_category",
2233
+ "columnsFrom": [
2234
+ "category_id"
2235
+ ],
2236
+ "columnsTo": [
2237
+ "id"
2238
+ ],
2239
+ "onDelete": "cascade",
2240
+ "onUpdate": "no action"
2241
+ },
2242
+ "space_item_category_page_id_space_page_id_fk": {
2243
+ "name": "space_item_category_page_id_space_page_id_fk",
2244
+ "tableFrom": "space_item_category",
2245
+ "tableTo": "space_page",
2246
+ "columnsFrom": [
2247
+ "page_id"
2248
+ ],
2249
+ "columnsTo": [
2250
+ "id"
2251
+ ],
2252
+ "onDelete": "cascade",
2253
+ "onUpdate": "no action"
2254
+ },
2255
+ "space_item_category_row_id_space_table_row_id_fk": {
2256
+ "name": "space_item_category_row_id_space_table_row_id_fk",
2257
+ "tableFrom": "space_item_category",
2258
+ "tableTo": "space_table_row",
2259
+ "columnsFrom": [
2260
+ "row_id"
2261
+ ],
2262
+ "columnsTo": [
2263
+ "id"
2264
+ ],
2265
+ "onDelete": "cascade",
2266
+ "onUpdate": "no action"
2267
+ },
2268
+ "space_item_category_table_id_space_table_id_fk": {
2269
+ "name": "space_item_category_table_id_space_table_id_fk",
2270
+ "tableFrom": "space_item_category",
2271
+ "tableTo": "space_table",
2272
+ "columnsFrom": [
2273
+ "table_id"
2274
+ ],
2275
+ "columnsTo": [
2276
+ "id"
2277
+ ],
2278
+ "onDelete": "cascade",
2279
+ "onUpdate": "no action"
2280
+ },
2281
+ "space_item_category_file_id_project_file_id_fk": {
2282
+ "name": "space_item_category_file_id_project_file_id_fk",
2283
+ "tableFrom": "space_item_category",
2284
+ "tableTo": "project_file",
2285
+ "columnsFrom": [
2286
+ "file_id"
2287
+ ],
2288
+ "columnsTo": [
2289
+ "id"
2290
+ ],
2291
+ "onDelete": "cascade",
2292
+ "onUpdate": "no action"
2293
+ },
2294
+ "space_item_category_value_id_space_category_value_id_fk": {
2295
+ "name": "space_item_category_value_id_space_category_value_id_fk",
2296
+ "tableFrom": "space_item_category",
2297
+ "tableTo": "space_category_value",
2298
+ "columnsFrom": [
2299
+ "value_id"
2300
+ ],
2301
+ "columnsTo": [
2302
+ "id"
2303
+ ],
2304
+ "onDelete": "cascade",
2305
+ "onUpdate": "no action"
2306
+ }
2307
+ },
2308
+ "compositePrimaryKeys": {},
2309
+ "uniqueConstraints": {},
2310
+ "checkConstraints": {}
2311
+ },
2312
+ "space_page": {
2313
+ "name": "space_page",
2314
+ "columns": {
2315
+ "id": {
2316
+ "name": "id",
2317
+ "type": "text",
2318
+ "primaryKey": true,
2319
+ "notNull": true,
2320
+ "autoincrement": false
2321
+ },
2322
+ "tenant_id": {
2323
+ "name": "tenant_id",
2324
+ "type": "text",
2325
+ "primaryKey": false,
2326
+ "notNull": true,
2327
+ "autoincrement": false
2328
+ },
2329
+ "project_id": {
2330
+ "name": "project_id",
2331
+ "type": "text",
2332
+ "primaryKey": false,
2333
+ "notNull": true,
2334
+ "autoincrement": false
2335
+ },
2336
+ "wizard_id": {
2337
+ "name": "wizard_id",
2338
+ "type": "text",
2339
+ "primaryKey": false,
2340
+ "notNull": false,
2341
+ "autoincrement": false
2342
+ },
2343
+ "parent_id": {
2344
+ "name": "parent_id",
2345
+ "type": "text",
2346
+ "primaryKey": false,
2347
+ "notNull": false,
2348
+ "autoincrement": false
2349
+ },
2350
+ "position": {
2351
+ "name": "position",
2352
+ "type": "integer",
2353
+ "primaryKey": false,
2354
+ "notNull": true,
2355
+ "autoincrement": false,
2356
+ "default": 0
2357
+ },
2358
+ "title": {
2359
+ "name": "title",
2360
+ "type": "text",
2361
+ "primaryKey": false,
2362
+ "notNull": true,
2363
+ "autoincrement": false
2364
+ },
2365
+ "slug": {
2366
+ "name": "slug",
2367
+ "type": "text",
2368
+ "primaryKey": false,
2369
+ "notNull": false,
2370
+ "autoincrement": false
2371
+ },
2372
+ "markdown": {
2373
+ "name": "markdown",
2374
+ "type": "text",
2375
+ "primaryKey": false,
2376
+ "notNull": true,
2377
+ "autoincrement": false,
2378
+ "default": "''"
2379
+ },
2380
+ "origin": {
2381
+ "name": "origin",
2382
+ "type": "text",
2383
+ "primaryKey": false,
2384
+ "notNull": false,
2385
+ "autoincrement": false
2386
+ },
2387
+ "origin_key": {
2388
+ "name": "origin_key",
2389
+ "type": "text",
2390
+ "primaryKey": false,
2391
+ "notNull": false,
2392
+ "autoincrement": false
2393
+ },
2394
+ "origin_label": {
2395
+ "name": "origin_label",
2396
+ "type": "text",
2397
+ "primaryKey": false,
2398
+ "notNull": false,
2399
+ "autoincrement": false
2400
+ },
2401
+ "kept": {
2402
+ "name": "kept",
2403
+ "type": "integer",
2404
+ "primaryKey": false,
2405
+ "notNull": true,
2406
+ "autoincrement": false,
2407
+ "default": false
2408
+ },
2409
+ "review": {
2410
+ "name": "review",
2411
+ "type": "text",
2412
+ "primaryKey": false,
2413
+ "notNull": false,
2414
+ "autoincrement": false
2415
+ },
2416
+ "file_id": {
2417
+ "name": "file_id",
2418
+ "type": "text",
2419
+ "primaryKey": false,
2420
+ "notNull": false,
2421
+ "autoincrement": false
2422
+ },
2423
+ "created_at": {
2424
+ "name": "created_at",
2425
+ "type": "integer",
2426
+ "primaryKey": false,
2427
+ "notNull": true,
2428
+ "autoincrement": false,
2429
+ "default": "(unixepoch() * 1000)"
2430
+ },
2431
+ "updated_at": {
2432
+ "name": "updated_at",
2433
+ "type": "integer",
2434
+ "primaryKey": false,
2435
+ "notNull": true,
2436
+ "autoincrement": false,
2437
+ "default": "(unixepoch() * 1000)"
2438
+ }
2439
+ },
2440
+ "indexes": {
2441
+ "space_page_project": {
2442
+ "name": "space_page_project",
2443
+ "columns": [
2444
+ "project_id",
2445
+ "wizard_id"
2446
+ ],
2447
+ "isUnique": false
2448
+ },
2449
+ "space_page_parent": {
2450
+ "name": "space_page_parent",
2451
+ "columns": [
2452
+ "parent_id",
2453
+ "position"
2454
+ ],
2455
+ "isUnique": false
2456
+ },
2457
+ "space_page_origin": {
2458
+ "name": "space_page_origin",
2459
+ "columns": [
2460
+ "project_id",
2461
+ "origin",
2462
+ "origin_key"
2463
+ ],
2464
+ "isUnique": true
2465
+ }
2466
+ },
2467
+ "foreignKeys": {
2468
+ "space_page_project_id_project_id_fk": {
2469
+ "name": "space_page_project_id_project_id_fk",
2470
+ "tableFrom": "space_page",
2471
+ "tableTo": "project",
2472
+ "columnsFrom": [
2473
+ "project_id"
2474
+ ],
2475
+ "columnsTo": [
2476
+ "id"
2477
+ ],
2478
+ "onDelete": "cascade",
2479
+ "onUpdate": "no action"
2480
+ },
2481
+ "space_page_wizard_id_wizard_id_fk": {
2482
+ "name": "space_page_wizard_id_wizard_id_fk",
2483
+ "tableFrom": "space_page",
2484
+ "tableTo": "wizard",
2485
+ "columnsFrom": [
2486
+ "wizard_id"
2487
+ ],
2488
+ "columnsTo": [
2489
+ "id"
2490
+ ],
2491
+ "onDelete": "cascade",
2492
+ "onUpdate": "no action"
2493
+ },
2494
+ "space_page_parent_id_space_page_id_fk": {
2495
+ "name": "space_page_parent_id_space_page_id_fk",
2496
+ "tableFrom": "space_page",
2497
+ "tableTo": "space_page",
2498
+ "columnsFrom": [
2499
+ "parent_id"
2500
+ ],
2501
+ "columnsTo": [
2502
+ "id"
2503
+ ],
2504
+ "onDelete": "cascade",
2505
+ "onUpdate": "no action"
2506
+ },
2507
+ "space_page_file_id_project_file_id_fk": {
2508
+ "name": "space_page_file_id_project_file_id_fk",
2509
+ "tableFrom": "space_page",
2510
+ "tableTo": "project_file",
2511
+ "columnsFrom": [
2512
+ "file_id"
2513
+ ],
2514
+ "columnsTo": [
2515
+ "id"
2516
+ ],
2517
+ "onDelete": "set null",
2518
+ "onUpdate": "no action"
2519
+ }
2520
+ },
2521
+ "compositePrimaryKeys": {},
2522
+ "uniqueConstraints": {},
2523
+ "checkConstraints": {}
2524
+ },
2525
+ "space_table": {
2526
+ "name": "space_table",
2527
+ "columns": {
2528
+ "id": {
2529
+ "name": "id",
2530
+ "type": "text",
2531
+ "primaryKey": true,
2532
+ "notNull": true,
2533
+ "autoincrement": false
2534
+ },
2535
+ "tenant_id": {
2536
+ "name": "tenant_id",
2537
+ "type": "text",
2538
+ "primaryKey": false,
2539
+ "notNull": true,
2540
+ "autoincrement": false
2541
+ },
2542
+ "project_id": {
2543
+ "name": "project_id",
2544
+ "type": "text",
2545
+ "primaryKey": false,
2546
+ "notNull": true,
2547
+ "autoincrement": false
2548
+ },
2549
+ "wizard_id": {
2550
+ "name": "wizard_id",
2551
+ "type": "text",
2552
+ "primaryKey": false,
2553
+ "notNull": false,
2554
+ "autoincrement": false
2555
+ },
2556
+ "list": {
2557
+ "name": "list",
2558
+ "type": "text",
2559
+ "primaryKey": false,
2560
+ "notNull": false,
2561
+ "autoincrement": false
2562
+ },
2563
+ "key_column": {
2564
+ "name": "key_column",
2565
+ "type": "text",
2566
+ "primaryKey": false,
2567
+ "notNull": false,
2568
+ "autoincrement": false
2569
+ },
2570
+ "title": {
2571
+ "name": "title",
2572
+ "type": "text",
2573
+ "primaryKey": false,
2574
+ "notNull": true,
2575
+ "autoincrement": false
2576
+ },
2577
+ "slug": {
2578
+ "name": "slug",
2579
+ "type": "text",
2580
+ "primaryKey": false,
2581
+ "notNull": false,
2582
+ "autoincrement": false
2583
+ },
2584
+ "format": {
2585
+ "name": "format",
2586
+ "type": "text",
2587
+ "primaryKey": false,
2588
+ "notNull": false,
2589
+ "autoincrement": false
2590
+ },
2591
+ "columns": {
2592
+ "name": "columns",
2593
+ "type": "text",
2594
+ "primaryKey": false,
2595
+ "notNull": true,
2596
+ "autoincrement": false
2597
+ },
2598
+ "origin": {
2599
+ "name": "origin",
2600
+ "type": "text",
2601
+ "primaryKey": false,
2602
+ "notNull": false,
2603
+ "autoincrement": false
2604
+ },
2605
+ "origin_key": {
2606
+ "name": "origin_key",
2607
+ "type": "text",
2608
+ "primaryKey": false,
2609
+ "notNull": false,
2610
+ "autoincrement": false
2611
+ },
2612
+ "origin_label": {
2613
+ "name": "origin_label",
2614
+ "type": "text",
2615
+ "primaryKey": false,
2616
+ "notNull": false,
2617
+ "autoincrement": false
2618
+ },
2619
+ "kept": {
2620
+ "name": "kept",
2621
+ "type": "integer",
2622
+ "primaryKey": false,
2623
+ "notNull": true,
2624
+ "autoincrement": false,
2625
+ "default": false
2626
+ },
2627
+ "review": {
2628
+ "name": "review",
2629
+ "type": "text",
2630
+ "primaryKey": false,
2631
+ "notNull": false,
2632
+ "autoincrement": false
2633
+ },
2634
+ "file_id": {
2635
+ "name": "file_id",
2636
+ "type": "text",
2637
+ "primaryKey": false,
2638
+ "notNull": false,
2639
+ "autoincrement": false
2640
+ },
2641
+ "created_at": {
2642
+ "name": "created_at",
2643
+ "type": "integer",
2644
+ "primaryKey": false,
2645
+ "notNull": true,
2646
+ "autoincrement": false,
2647
+ "default": "(unixepoch() * 1000)"
2648
+ },
2649
+ "updated_at": {
2650
+ "name": "updated_at",
2651
+ "type": "integer",
2652
+ "primaryKey": false,
2653
+ "notNull": true,
2654
+ "autoincrement": false,
2655
+ "default": "(unixepoch() * 1000)"
2656
+ }
2657
+ },
2658
+ "indexes": {
2659
+ "space_table_project": {
2660
+ "name": "space_table_project",
2661
+ "columns": [
2662
+ "project_id",
2663
+ "wizard_id"
2664
+ ],
2665
+ "isUnique": false
2666
+ },
2667
+ "space_table_list": {
2668
+ "name": "space_table_list",
2669
+ "columns": [
2670
+ "wizard_id",
2671
+ "list"
2672
+ ],
2673
+ "isUnique": true
2674
+ },
2675
+ "space_table_origin": {
2676
+ "name": "space_table_origin",
2677
+ "columns": [
2678
+ "project_id",
2679
+ "origin",
2680
+ "origin_key"
2681
+ ],
2682
+ "isUnique": true
2683
+ }
2684
+ },
2685
+ "foreignKeys": {
2686
+ "space_table_project_id_project_id_fk": {
2687
+ "name": "space_table_project_id_project_id_fk",
2688
+ "tableFrom": "space_table",
2689
+ "tableTo": "project",
2690
+ "columnsFrom": [
2691
+ "project_id"
2692
+ ],
2693
+ "columnsTo": [
2694
+ "id"
2695
+ ],
2696
+ "onDelete": "cascade",
2697
+ "onUpdate": "no action"
2698
+ },
2699
+ "space_table_wizard_id_wizard_id_fk": {
2700
+ "name": "space_table_wizard_id_wizard_id_fk",
2701
+ "tableFrom": "space_table",
2702
+ "tableTo": "wizard",
2703
+ "columnsFrom": [
2704
+ "wizard_id"
2705
+ ],
2706
+ "columnsTo": [
2707
+ "id"
2708
+ ],
2709
+ "onDelete": "cascade",
2710
+ "onUpdate": "no action"
2711
+ },
2712
+ "space_table_file_id_project_file_id_fk": {
2713
+ "name": "space_table_file_id_project_file_id_fk",
2714
+ "tableFrom": "space_table",
2715
+ "tableTo": "project_file",
2716
+ "columnsFrom": [
2717
+ "file_id"
2718
+ ],
2719
+ "columnsTo": [
2720
+ "id"
2721
+ ],
2722
+ "onDelete": "set null",
2723
+ "onUpdate": "no action"
2724
+ }
2725
+ },
2726
+ "compositePrimaryKeys": {},
2727
+ "uniqueConstraints": {},
2728
+ "checkConstraints": {}
2729
+ },
2730
+ "space_table_row": {
2731
+ "name": "space_table_row",
2732
+ "columns": {
2733
+ "id": {
2734
+ "name": "id",
2735
+ "type": "text",
2736
+ "primaryKey": true,
2737
+ "notNull": true,
2738
+ "autoincrement": false
2739
+ },
2740
+ "table_id": {
2741
+ "name": "table_id",
2742
+ "type": "text",
2743
+ "primaryKey": false,
2744
+ "notNull": true,
2745
+ "autoincrement": false
2746
+ },
2747
+ "key": {
2748
+ "name": "key",
2749
+ "type": "text",
2750
+ "primaryKey": false,
2751
+ "notNull": false,
2752
+ "autoincrement": false
2753
+ },
2754
+ "cells": {
2755
+ "name": "cells",
2756
+ "type": "text",
2757
+ "primaryKey": false,
2758
+ "notNull": true,
2759
+ "autoincrement": false
2760
+ },
2761
+ "created_at": {
2762
+ "name": "created_at",
2763
+ "type": "integer",
2764
+ "primaryKey": false,
2765
+ "notNull": true,
2766
+ "autoincrement": false,
2767
+ "default": "(unixepoch() * 1000)"
2768
+ },
2769
+ "updated_at": {
2770
+ "name": "updated_at",
2771
+ "type": "integer",
2772
+ "primaryKey": false,
2773
+ "notNull": true,
2774
+ "autoincrement": false,
2775
+ "default": "(unixepoch() * 1000)"
2776
+ }
2777
+ },
2778
+ "indexes": {
2779
+ "space_table_row_table": {
2780
+ "name": "space_table_row_table",
2781
+ "columns": [
2782
+ "table_id",
2783
+ "created_at"
2784
+ ],
2785
+ "isUnique": false
2786
+ },
2787
+ "space_table_row_key": {
2788
+ "name": "space_table_row_key",
2789
+ "columns": [
2790
+ "table_id",
2791
+ "key"
2792
+ ],
2793
+ "isUnique": false
2794
+ }
2795
+ },
2796
+ "foreignKeys": {
2797
+ "space_table_row_table_id_space_table_id_fk": {
2798
+ "name": "space_table_row_table_id_space_table_id_fk",
2799
+ "tableFrom": "space_table_row",
2800
+ "tableTo": "space_table",
2801
+ "columnsFrom": [
2802
+ "table_id"
2803
+ ],
2804
+ "columnsTo": [
2805
+ "id"
2806
+ ],
2807
+ "onDelete": "cascade",
2808
+ "onUpdate": "no action"
2809
+ }
2810
+ },
2811
+ "compositePrimaryKeys": {},
2812
+ "uniqueConstraints": {},
2813
+ "checkConstraints": {}
2814
+ },
2815
+ "store_file": {
2816
+ "name": "store_file",
2817
+ "columns": {
2818
+ "wizard_id": {
2819
+ "name": "wizard_id",
2820
+ "type": "text",
2821
+ "primaryKey": false,
2822
+ "notNull": true,
2823
+ "autoincrement": false
2824
+ },
2825
+ "holder": {
2826
+ "name": "holder",
2827
+ "type": "text",
2828
+ "primaryKey": false,
2829
+ "notNull": true,
2830
+ "autoincrement": false
2831
+ },
2832
+ "path": {
2833
+ "name": "path",
2834
+ "type": "text",
2835
+ "primaryKey": false,
2836
+ "notNull": true,
2837
+ "autoincrement": false
2838
+ },
2839
+ "hash": {
2840
+ "name": "hash",
2841
+ "type": "text",
2842
+ "primaryKey": false,
2843
+ "notNull": true,
2844
+ "autoincrement": false
2845
+ },
2846
+ "mime": {
2847
+ "name": "mime",
2848
+ "type": "text",
2849
+ "primaryKey": false,
2850
+ "notNull": true,
2851
+ "autoincrement": false
2852
+ },
2853
+ "size": {
2854
+ "name": "size",
2855
+ "type": "integer",
2856
+ "primaryKey": false,
2857
+ "notNull": true,
2858
+ "autoincrement": false
2859
+ },
2860
+ "source": {
2861
+ "name": "source",
2862
+ "type": "text",
2863
+ "primaryKey": false,
2864
+ "notNull": false,
2865
+ "autoincrement": false
2866
+ },
2867
+ "updated_at": {
2868
+ "name": "updated_at",
2869
+ "type": "integer",
2870
+ "primaryKey": false,
2871
+ "notNull": true,
2872
+ "autoincrement": false,
2873
+ "default": "(unixepoch() * 1000)"
2874
+ }
2875
+ },
2876
+ "indexes": {},
2877
+ "foreignKeys": {
2878
+ "store_file_wizard_id_wizard_id_fk": {
2879
+ "name": "store_file_wizard_id_wizard_id_fk",
2880
+ "tableFrom": "store_file",
2881
+ "tableTo": "wizard",
2882
+ "columnsFrom": [
2883
+ "wizard_id"
2884
+ ],
2885
+ "columnsTo": [
2886
+ "id"
2887
+ ],
2888
+ "onDelete": "cascade",
2889
+ "onUpdate": "no action"
2890
+ }
2891
+ },
2892
+ "compositePrimaryKeys": {
2893
+ "store_file_wizard_id_holder_path_pk": {
2894
+ "columns": [
2895
+ "wizard_id",
2896
+ "holder",
2897
+ "path"
2898
+ ],
2899
+ "name": "store_file_wizard_id_holder_path_pk"
2900
+ }
2901
+ },
2902
+ "uniqueConstraints": {},
2903
+ "checkConstraints": {}
2904
+ },
2905
+ "store_holder": {
2906
+ "name": "store_holder",
2907
+ "columns": {
2908
+ "wizard_id": {
2909
+ "name": "wizard_id",
2910
+ "type": "text",
2911
+ "primaryKey": false,
2912
+ "notNull": true,
2913
+ "autoincrement": false
2914
+ },
2915
+ "holder": {
2916
+ "name": "holder",
2917
+ "type": "text",
2918
+ "primaryKey": false,
2919
+ "notNull": true,
2920
+ "autoincrement": false
2921
+ },
2922
+ "used_at": {
2923
+ "name": "used_at",
2924
+ "type": "integer",
2925
+ "primaryKey": false,
2926
+ "notNull": true,
2927
+ "autoincrement": false,
2928
+ "default": "(unixepoch() * 1000)"
2929
+ }
2930
+ },
2931
+ "indexes": {
2932
+ "store_holder_used": {
2933
+ "name": "store_holder_used",
2934
+ "columns": [
2935
+ "used_at"
2936
+ ],
2937
+ "isUnique": false
2938
+ }
2939
+ },
2940
+ "foreignKeys": {
2941
+ "store_holder_wizard_id_wizard_id_fk": {
2942
+ "name": "store_holder_wizard_id_wizard_id_fk",
2943
+ "tableFrom": "store_holder",
2944
+ "tableTo": "wizard",
2945
+ "columnsFrom": [
2946
+ "wizard_id"
2947
+ ],
2948
+ "columnsTo": [
2949
+ "id"
2950
+ ],
2951
+ "onDelete": "cascade",
2952
+ "onUpdate": "no action"
2953
+ }
2954
+ },
2955
+ "compositePrimaryKeys": {
2956
+ "store_holder_wizard_id_holder_pk": {
2957
+ "columns": [
2958
+ "wizard_id",
2959
+ "holder"
2960
+ ],
2961
+ "name": "store_holder_wizard_id_holder_pk"
2962
+ }
2963
+ },
2964
+ "uniqueConstraints": {},
2965
+ "checkConstraints": {}
2966
+ },
2967
+ "store_row": {
2968
+ "name": "store_row",
2969
+ "columns": {
2970
+ "id": {
2971
+ "name": "id",
2972
+ "type": "text",
2973
+ "primaryKey": true,
2974
+ "notNull": true,
2975
+ "autoincrement": false
2976
+ },
2977
+ "wizard_id": {
2978
+ "name": "wizard_id",
2979
+ "type": "text",
2980
+ "primaryKey": false,
2981
+ "notNull": true,
2982
+ "autoincrement": false
2983
+ },
2984
+ "holder": {
2985
+ "name": "holder",
2986
+ "type": "text",
2987
+ "primaryKey": false,
2988
+ "notNull": true,
2989
+ "autoincrement": false
2990
+ },
2991
+ "list": {
2992
+ "name": "list",
2993
+ "type": "text",
2994
+ "primaryKey": false,
2995
+ "notNull": true,
2996
+ "autoincrement": false
2997
+ },
2998
+ "key": {
2999
+ "name": "key",
3000
+ "type": "text",
3001
+ "primaryKey": false,
3002
+ "notNull": false,
3003
+ "autoincrement": false
3004
+ },
3005
+ "cells": {
3006
+ "name": "cells",
3007
+ "type": "text",
3008
+ "primaryKey": false,
3009
+ "notNull": true,
3010
+ "autoincrement": false
3011
+ },
3012
+ "created_at": {
3013
+ "name": "created_at",
3014
+ "type": "integer",
3015
+ "primaryKey": false,
3016
+ "notNull": true,
3017
+ "autoincrement": false,
3018
+ "default": "(unixepoch() * 1000)"
3019
+ },
3020
+ "updated_at": {
3021
+ "name": "updated_at",
3022
+ "type": "integer",
3023
+ "primaryKey": false,
3024
+ "notNull": true,
3025
+ "autoincrement": false,
3026
+ "default": "(unixepoch() * 1000)"
3027
+ }
3028
+ },
3029
+ "indexes": {
3030
+ "store_row_key": {
3031
+ "name": "store_row_key",
3032
+ "columns": [
3033
+ "wizard_id",
3034
+ "holder",
3035
+ "list",
3036
+ "key"
3037
+ ],
3038
+ "isUnique": true
3039
+ },
3040
+ "store_row_list": {
3041
+ "name": "store_row_list",
3042
+ "columns": [
3043
+ "wizard_id",
3044
+ "holder",
3045
+ "list",
3046
+ "created_at"
3047
+ ],
3048
+ "isUnique": false
3049
+ }
3050
+ },
3051
+ "foreignKeys": {
3052
+ "store_row_wizard_id_wizard_id_fk": {
3053
+ "name": "store_row_wizard_id_wizard_id_fk",
3054
+ "tableFrom": "store_row",
3055
+ "tableTo": "wizard",
3056
+ "columnsFrom": [
3057
+ "wizard_id"
3058
+ ],
3059
+ "columnsTo": [
3060
+ "id"
3061
+ ],
3062
+ "onDelete": "cascade",
3063
+ "onUpdate": "no action"
3064
+ }
3065
+ },
3066
+ "compositePrimaryKeys": {},
3067
+ "uniqueConstraints": {},
3068
+ "checkConstraints": {}
3069
+ },
3070
+ "store_secret": {
3071
+ "name": "store_secret",
3072
+ "columns": {
3073
+ "id": {
3074
+ "name": "id",
3075
+ "type": "text",
3076
+ "primaryKey": true,
3077
+ "notNull": true,
3078
+ "autoincrement": false
3079
+ },
3080
+ "wizard_id": {
3081
+ "name": "wizard_id",
3082
+ "type": "text",
3083
+ "primaryKey": false,
3084
+ "notNull": true,
3085
+ "autoincrement": false
3086
+ },
3087
+ "holder": {
3088
+ "name": "holder",
3089
+ "type": "text",
3090
+ "primaryKey": false,
3091
+ "notNull": true,
3092
+ "autoincrement": false
3093
+ },
3094
+ "slot": {
3095
+ "name": "slot",
3096
+ "type": "text",
3097
+ "primaryKey": false,
3098
+ "notNull": true,
3099
+ "autoincrement": false
3100
+ },
3101
+ "provider": {
3102
+ "name": "provider",
3103
+ "type": "text",
3104
+ "primaryKey": false,
3105
+ "notNull": true,
3106
+ "autoincrement": false
3107
+ },
3108
+ "label": {
3109
+ "name": "label",
3110
+ "type": "text",
3111
+ "primaryKey": false,
3112
+ "notNull": true,
3113
+ "autoincrement": false
3114
+ },
3115
+ "data": {
3116
+ "name": "data",
3117
+ "type": "text",
3118
+ "primaryKey": false,
3119
+ "notNull": true,
3120
+ "autoincrement": false
3121
+ },
3122
+ "created_at": {
3123
+ "name": "created_at",
3124
+ "type": "integer",
3125
+ "primaryKey": false,
3126
+ "notNull": true,
3127
+ "autoincrement": false,
3128
+ "default": "(unixepoch() * 1000)"
3129
+ },
3130
+ "updated_at": {
3131
+ "name": "updated_at",
3132
+ "type": "integer",
3133
+ "primaryKey": false,
3134
+ "notNull": true,
3135
+ "autoincrement": false,
3136
+ "default": "(unixepoch() * 1000)"
3137
+ }
3138
+ },
3139
+ "indexes": {
3140
+ "store_secret_slot": {
3141
+ "name": "store_secret_slot",
3142
+ "columns": [
3143
+ "wizard_id",
3144
+ "holder",
3145
+ "slot"
3146
+ ],
3147
+ "isUnique": true
3148
+ }
3149
+ },
3150
+ "foreignKeys": {
3151
+ "store_secret_wizard_id_wizard_id_fk": {
3152
+ "name": "store_secret_wizard_id_wizard_id_fk",
3153
+ "tableFrom": "store_secret",
3154
+ "tableTo": "wizard",
3155
+ "columnsFrom": [
3156
+ "wizard_id"
3157
+ ],
3158
+ "columnsTo": [
3159
+ "id"
3160
+ ],
3161
+ "onDelete": "cascade",
3162
+ "onUpdate": "no action"
3163
+ }
3164
+ },
3165
+ "compositePrimaryKeys": {},
3166
+ "uniqueConstraints": {},
3167
+ "checkConstraints": {}
3168
+ },
3169
+ "sync_base": {
3170
+ "name": "sync_base",
3171
+ "columns": {
3172
+ "kind": {
3173
+ "name": "kind",
3174
+ "type": "text",
3175
+ "primaryKey": false,
3176
+ "notNull": true,
3177
+ "autoincrement": false
3178
+ },
3179
+ "item": {
3180
+ "name": "item",
3181
+ "type": "text",
3182
+ "primaryKey": false,
3183
+ "notNull": true,
3184
+ "autoincrement": false
3185
+ },
3186
+ "project_id": {
3187
+ "name": "project_id",
3188
+ "type": "text",
3189
+ "primaryKey": false,
3190
+ "notNull": true,
3191
+ "autoincrement": false
3192
+ },
3193
+ "seq": {
3194
+ "name": "seq",
3195
+ "type": "integer",
3196
+ "primaryKey": false,
3197
+ "notNull": true,
3198
+ "autoincrement": false
3199
+ },
3200
+ "record": {
3201
+ "name": "record",
3202
+ "type": "text",
3203
+ "primaryKey": false,
3204
+ "notNull": false,
3205
+ "autoincrement": false
3206
+ }
3207
+ },
3208
+ "indexes": {
3209
+ "sync_base_project": {
3210
+ "name": "sync_base_project",
3211
+ "columns": [
3212
+ "project_id"
3213
+ ],
3214
+ "isUnique": false
3215
+ }
3216
+ },
3217
+ "foreignKeys": {},
3218
+ "compositePrimaryKeys": {
3219
+ "sync_base_kind_item_pk": {
3220
+ "columns": [
3221
+ "kind",
3222
+ "item"
3223
+ ],
3224
+ "name": "sync_base_kind_item_pk"
3225
+ }
3226
+ },
3227
+ "uniqueConstraints": {},
3228
+ "checkConstraints": {}
3229
+ },
3230
+ "sync_change": {
3231
+ "name": "sync_change",
3232
+ "columns": {
3233
+ "seq": {
3234
+ "name": "seq",
3235
+ "type": "integer",
3236
+ "primaryKey": true,
3237
+ "notNull": true,
3238
+ "autoincrement": true
3239
+ },
3240
+ "project_id": {
3241
+ "name": "project_id",
3242
+ "type": "text",
3243
+ "primaryKey": false,
3244
+ "notNull": true,
3245
+ "autoincrement": false
3246
+ },
3247
+ "kind": {
3248
+ "name": "kind",
3249
+ "type": "text",
3250
+ "primaryKey": false,
3251
+ "notNull": true,
3252
+ "autoincrement": false
3253
+ },
3254
+ "item": {
3255
+ "name": "item",
3256
+ "type": "text",
3257
+ "primaryKey": false,
3258
+ "notNull": true,
3259
+ "autoincrement": false
3260
+ },
3261
+ "at": {
3262
+ "name": "at",
3263
+ "type": "integer",
3264
+ "primaryKey": false,
3265
+ "notNull": true,
3266
+ "autoincrement": false,
3267
+ "default": "(unixepoch() * 1000)"
3268
+ }
3269
+ },
3270
+ "indexes": {
3271
+ "sync_change_item": {
3272
+ "name": "sync_change_item",
3273
+ "columns": [
3274
+ "kind",
3275
+ "item"
3276
+ ],
3277
+ "isUnique": false
3278
+ },
3279
+ "sync_change_project": {
3280
+ "name": "sync_change_project",
3281
+ "columns": [
3282
+ "project_id",
3283
+ "seq"
3284
+ ],
3285
+ "isUnique": false
3286
+ }
3287
+ },
3288
+ "foreignKeys": {},
3289
+ "compositePrimaryKeys": {},
3290
+ "uniqueConstraints": {},
3291
+ "checkConstraints": {}
3292
+ },
3293
+ "sync_conflict": {
3294
+ "name": "sync_conflict",
3295
+ "columns": {
3296
+ "id": {
3297
+ "name": "id",
3298
+ "type": "text",
3299
+ "primaryKey": true,
3300
+ "notNull": true,
3301
+ "autoincrement": false
3302
+ },
3303
+ "project_id": {
3304
+ "name": "project_id",
3305
+ "type": "text",
3306
+ "primaryKey": false,
3307
+ "notNull": true,
3308
+ "autoincrement": false
3309
+ },
3310
+ "kind": {
3311
+ "name": "kind",
3312
+ "type": "text",
3313
+ "primaryKey": false,
3314
+ "notNull": true,
3315
+ "autoincrement": false
3316
+ },
3317
+ "item": {
3318
+ "name": "item",
3319
+ "type": "text",
3320
+ "primaryKey": false,
3321
+ "notNull": true,
3322
+ "autoincrement": false
3323
+ },
3324
+ "seq": {
3325
+ "name": "seq",
3326
+ "type": "integer",
3327
+ "primaryKey": false,
3328
+ "notNull": true,
3329
+ "autoincrement": false
3330
+ },
3331
+ "base": {
3332
+ "name": "base",
3333
+ "type": "text",
3334
+ "primaryKey": false,
3335
+ "notNull": false,
3336
+ "autoincrement": false
3337
+ },
3338
+ "local": {
3339
+ "name": "local",
3340
+ "type": "text",
3341
+ "primaryKey": false,
3342
+ "notNull": false,
3343
+ "autoincrement": false
3344
+ },
3345
+ "remote": {
3346
+ "name": "remote",
3347
+ "type": "text",
3348
+ "primaryKey": false,
3349
+ "notNull": false,
3350
+ "autoincrement": false
3351
+ },
3352
+ "created_at": {
3353
+ "name": "created_at",
3354
+ "type": "integer",
3355
+ "primaryKey": false,
3356
+ "notNull": true,
3357
+ "autoincrement": false,
3358
+ "default": "(unixepoch() * 1000)"
3359
+ }
3360
+ },
3361
+ "indexes": {
3362
+ "sync_conflict_item": {
3363
+ "name": "sync_conflict_item",
3364
+ "columns": [
3365
+ "kind",
3366
+ "item"
3367
+ ],
3368
+ "isUnique": true
3369
+ }
3370
+ },
3371
+ "foreignKeys": {},
3372
+ "compositePrimaryKeys": {},
3373
+ "uniqueConstraints": {},
3374
+ "checkConstraints": {}
3375
+ },
3376
+ "sync_guard": {
3377
+ "name": "sync_guard",
3378
+ "columns": {
3379
+ "id": {
3380
+ "name": "id",
3381
+ "type": "integer",
3382
+ "primaryKey": true,
3383
+ "notNull": true,
3384
+ "autoincrement": false
3385
+ },
3386
+ "applying": {
3387
+ "name": "applying",
3388
+ "type": "integer",
3389
+ "primaryKey": false,
3390
+ "notNull": true,
3391
+ "autoincrement": false,
3392
+ "default": 0
3393
+ }
3394
+ },
3395
+ "indexes": {},
3396
+ "foreignKeys": {},
3397
+ "compositePrimaryKeys": {},
3398
+ "uniqueConstraints": {},
3399
+ "checkConstraints": {}
3400
+ },
3401
+ "sync_merge": {
3402
+ "name": "sync_merge",
3403
+ "columns": {
3404
+ "id": {
3405
+ "name": "id",
3406
+ "type": "text",
3407
+ "primaryKey": true,
3408
+ "notNull": true,
3409
+ "autoincrement": false
3410
+ },
3411
+ "project_id": {
3412
+ "name": "project_id",
3413
+ "type": "text",
3414
+ "primaryKey": false,
3415
+ "notNull": true,
3416
+ "autoincrement": false
3417
+ },
3418
+ "kind": {
3419
+ "name": "kind",
3420
+ "type": "text",
3421
+ "primaryKey": false,
3422
+ "notNull": true,
3423
+ "autoincrement": false
3424
+ },
3425
+ "item": {
3426
+ "name": "item",
3427
+ "type": "text",
3428
+ "primaryKey": false,
3429
+ "notNull": true,
3430
+ "autoincrement": false
3431
+ },
3432
+ "local": {
3433
+ "name": "local",
3434
+ "type": "text",
3435
+ "primaryKey": false,
3436
+ "notNull": true,
3437
+ "autoincrement": false
3438
+ },
3439
+ "remote": {
3440
+ "name": "remote",
3441
+ "type": "text",
3442
+ "primaryKey": false,
3443
+ "notNull": true,
3444
+ "autoincrement": false
3445
+ },
3446
+ "before": {
3447
+ "name": "before",
3448
+ "type": "text",
3449
+ "primaryKey": false,
3450
+ "notNull": true,
3451
+ "autoincrement": false
3452
+ },
3453
+ "seen": {
3454
+ "name": "seen",
3455
+ "type": "integer",
3456
+ "primaryKey": false,
3457
+ "notNull": true,
3458
+ "autoincrement": false,
3459
+ "default": false
3460
+ },
3461
+ "created_at": {
3462
+ "name": "created_at",
3463
+ "type": "integer",
3464
+ "primaryKey": false,
3465
+ "notNull": true,
3466
+ "autoincrement": false,
3467
+ "default": "(unixepoch() * 1000)"
3468
+ }
3469
+ },
3470
+ "indexes": {
3471
+ "sync_merge_item": {
3472
+ "name": "sync_merge_item",
3473
+ "columns": [
3474
+ "kind",
3475
+ "item",
3476
+ "created_at"
3477
+ ],
3478
+ "isUnique": false
3479
+ }
3480
+ },
3481
+ "foreignKeys": {},
3482
+ "compositePrimaryKeys": {},
3483
+ "uniqueConstraints": {},
3484
+ "checkConstraints": {}
3485
+ },
3486
+ "wizard": {
3487
+ "name": "wizard",
3488
+ "columns": {
3489
+ "id": {
3490
+ "name": "id",
3491
+ "type": "text",
3492
+ "primaryKey": true,
3493
+ "notNull": true,
3494
+ "autoincrement": false
3495
+ },
3496
+ "project_id": {
3497
+ "name": "project_id",
3498
+ "type": "text",
3499
+ "primaryKey": false,
3500
+ "notNull": true,
3501
+ "autoincrement": false
3502
+ },
3503
+ "tenant_id": {
3504
+ "name": "tenant_id",
3505
+ "type": "text",
3506
+ "primaryKey": false,
3507
+ "notNull": true,
3508
+ "autoincrement": false
3509
+ },
3510
+ "title": {
3511
+ "name": "title",
3512
+ "type": "text",
3513
+ "primaryKey": false,
3514
+ "notNull": true,
3515
+ "autoincrement": false
3516
+ },
3517
+ "draft": {
3518
+ "name": "draft",
3519
+ "type": "text",
3520
+ "primaryKey": false,
3521
+ "notNull": true,
3522
+ "autoincrement": false
3523
+ },
3524
+ "published_version": {
3525
+ "name": "published_version",
3526
+ "type": "integer",
3527
+ "primaryKey": false,
3528
+ "notNull": false,
3529
+ "autoincrement": false
3530
+ },
3531
+ "share_token": {
3532
+ "name": "share_token",
3533
+ "type": "text",
3534
+ "primaryKey": false,
3535
+ "notNull": true,
3536
+ "autoincrement": false
3537
+ },
3538
+ "share_enabled": {
3539
+ "name": "share_enabled",
3540
+ "type": "integer",
3541
+ "primaryKey": false,
3542
+ "notNull": true,
3543
+ "autoincrement": false,
3544
+ "default": true
3545
+ },
3546
+ "daily_run_limit": {
3547
+ "name": "daily_run_limit",
3548
+ "type": "integer",
3549
+ "primaryKey": false,
3550
+ "notNull": true,
3551
+ "autoincrement": false,
3552
+ "default": 50
3553
+ },
3554
+ "starter": {
3555
+ "name": "starter",
3556
+ "type": "text",
3557
+ "primaryKey": false,
3558
+ "notNull": false,
3559
+ "autoincrement": false
3560
+ },
3561
+ "starter_revision": {
3562
+ "name": "starter_revision",
3563
+ "type": "integer",
3564
+ "primaryKey": false,
3565
+ "notNull": false,
3566
+ "autoincrement": false
3567
+ },
3568
+ "revision": {
3569
+ "name": "revision",
3570
+ "type": "integer",
3571
+ "primaryKey": false,
3572
+ "notNull": true,
3573
+ "autoincrement": false,
3574
+ "default": 0
3575
+ },
3576
+ "runners": {
3577
+ "name": "runners",
3578
+ "type": "text",
3579
+ "primaryKey": false,
3580
+ "notNull": false,
3581
+ "autoincrement": false
3582
+ },
3583
+ "translate": {
3584
+ "name": "translate",
3585
+ "type": "integer",
3586
+ "primaryKey": false,
3587
+ "notNull": true,
3588
+ "autoincrement": false,
3589
+ "default": true
3590
+ },
3591
+ "created_at": {
3592
+ "name": "created_at",
3593
+ "type": "integer",
3594
+ "primaryKey": false,
3595
+ "notNull": true,
3596
+ "autoincrement": false,
3597
+ "default": "(unixepoch() * 1000)"
3598
+ },
3599
+ "updated_at": {
3600
+ "name": "updated_at",
3601
+ "type": "integer",
3602
+ "primaryKey": false,
3603
+ "notNull": true,
3604
+ "autoincrement": false,
3605
+ "default": "(unixepoch() * 1000)"
3606
+ }
3607
+ },
3608
+ "indexes": {
3609
+ "wizard_share_token": {
3610
+ "name": "wizard_share_token",
3611
+ "columns": [
3612
+ "share_token"
3613
+ ],
3614
+ "isUnique": true
3615
+ },
3616
+ "wizard_project": {
3617
+ "name": "wizard_project",
3618
+ "columns": [
3619
+ "project_id"
3620
+ ],
3621
+ "isUnique": false
3622
+ }
3623
+ },
3624
+ "foreignKeys": {
3625
+ "wizard_project_id_project_id_fk": {
3626
+ "name": "wizard_project_id_project_id_fk",
3627
+ "tableFrom": "wizard",
3628
+ "tableTo": "project",
3629
+ "columnsFrom": [
3630
+ "project_id"
3631
+ ],
3632
+ "columnsTo": [
3633
+ "id"
3634
+ ],
3635
+ "onDelete": "cascade",
3636
+ "onUpdate": "no action"
3637
+ }
3638
+ },
3639
+ "compositePrimaryKeys": {},
3640
+ "uniqueConstraints": {},
3641
+ "checkConstraints": {}
3642
+ },
3643
+ "wizard_file": {
3644
+ "name": "wizard_file",
3645
+ "columns": {
3646
+ "wizard_id": {
3647
+ "name": "wizard_id",
3648
+ "type": "text",
3649
+ "primaryKey": false,
3650
+ "notNull": true,
3651
+ "autoincrement": false
3652
+ },
3653
+ "path": {
3654
+ "name": "path",
3655
+ "type": "text",
3656
+ "primaryKey": false,
3657
+ "notNull": true,
3658
+ "autoincrement": false
3659
+ },
3660
+ "hash": {
3661
+ "name": "hash",
3662
+ "type": "text",
3663
+ "primaryKey": false,
3664
+ "notNull": true,
3665
+ "autoincrement": false
3666
+ },
3667
+ "mime": {
3668
+ "name": "mime",
3669
+ "type": "text",
3670
+ "primaryKey": false,
3671
+ "notNull": true,
3672
+ "autoincrement": false
3673
+ },
3674
+ "size": {
3675
+ "name": "size",
3676
+ "type": "integer",
3677
+ "primaryKey": false,
3678
+ "notNull": true,
3679
+ "autoincrement": false
3680
+ },
3681
+ "updated_at": {
3682
+ "name": "updated_at",
3683
+ "type": "integer",
3684
+ "primaryKey": false,
3685
+ "notNull": true,
3686
+ "autoincrement": false,
3687
+ "default": "(unixepoch() * 1000)"
3688
+ }
3689
+ },
3690
+ "indexes": {},
3691
+ "foreignKeys": {
3692
+ "wizard_file_wizard_id_wizard_id_fk": {
3693
+ "name": "wizard_file_wizard_id_wizard_id_fk",
3694
+ "tableFrom": "wizard_file",
3695
+ "tableTo": "wizard",
3696
+ "columnsFrom": [
3697
+ "wizard_id"
3698
+ ],
3699
+ "columnsTo": [
3700
+ "id"
3701
+ ],
3702
+ "onDelete": "cascade",
3703
+ "onUpdate": "no action"
3704
+ }
3705
+ },
3706
+ "compositePrimaryKeys": {
3707
+ "wizard_file_wizard_id_path_pk": {
3708
+ "columns": [
3709
+ "wizard_id",
3710
+ "path"
3711
+ ],
3712
+ "name": "wizard_file_wizard_id_path_pk"
3713
+ }
3714
+ },
3715
+ "uniqueConstraints": {},
3716
+ "checkConstraints": {}
3717
+ },
3718
+ "wizard_message": {
3719
+ "name": "wizard_message",
3720
+ "columns": {
3721
+ "id": {
3722
+ "name": "id",
3723
+ "type": "text",
3724
+ "primaryKey": true,
3725
+ "notNull": true,
3726
+ "autoincrement": false
3727
+ },
3728
+ "wizard_id": {
3729
+ "name": "wizard_id",
3730
+ "type": "text",
3731
+ "primaryKey": false,
3732
+ "notNull": true,
3733
+ "autoincrement": false
3734
+ },
3735
+ "role": {
3736
+ "name": "role",
3737
+ "type": "text",
3738
+ "primaryKey": false,
3739
+ "notNull": true,
3740
+ "autoincrement": false
3741
+ },
3742
+ "content": {
3743
+ "name": "content",
3744
+ "type": "text",
3745
+ "primaryKey": false,
3746
+ "notNull": true,
3747
+ "autoincrement": false
3748
+ },
3749
+ "changed": {
3750
+ "name": "changed",
3751
+ "type": "integer",
3752
+ "primaryKey": false,
3753
+ "notNull": true,
3754
+ "autoincrement": false,
3755
+ "default": false
3756
+ },
3757
+ "source": {
3758
+ "name": "source",
3759
+ "type": "text",
3760
+ "primaryKey": false,
3761
+ "notNull": true,
3762
+ "autoincrement": false,
3763
+ "default": "'studio'"
3764
+ },
3765
+ "client": {
3766
+ "name": "client",
3767
+ "type": "text",
3768
+ "primaryKey": false,
3769
+ "notNull": false,
3770
+ "autoincrement": false
3771
+ },
3772
+ "created_at": {
3773
+ "name": "created_at",
3774
+ "type": "integer",
3775
+ "primaryKey": false,
3776
+ "notNull": true,
3777
+ "autoincrement": false,
3778
+ "default": "(unixepoch() * 1000)"
3779
+ }
3780
+ },
3781
+ "indexes": {
3782
+ "wizard_message_wizard": {
3783
+ "name": "wizard_message_wizard",
3784
+ "columns": [
3785
+ "wizard_id",
3786
+ "created_at"
3787
+ ],
3788
+ "isUnique": false
3789
+ }
3790
+ },
3791
+ "foreignKeys": {
3792
+ "wizard_message_wizard_id_wizard_id_fk": {
3793
+ "name": "wizard_message_wizard_id_wizard_id_fk",
3794
+ "tableFrom": "wizard_message",
3795
+ "tableTo": "wizard",
3796
+ "columnsFrom": [
3797
+ "wizard_id"
3798
+ ],
3799
+ "columnsTo": [
3800
+ "id"
3801
+ ],
3802
+ "onDelete": "cascade",
3803
+ "onUpdate": "no action"
3804
+ }
3805
+ },
3806
+ "compositePrimaryKeys": {},
3807
+ "uniqueConstraints": {},
3808
+ "checkConstraints": {}
3809
+ },
3810
+ "wizard_translation": {
3811
+ "name": "wizard_translation",
3812
+ "columns": {
3813
+ "wizard_id": {
3814
+ "name": "wizard_id",
3815
+ "type": "text",
3816
+ "primaryKey": false,
3817
+ "notNull": true,
3818
+ "autoincrement": false
3819
+ },
3820
+ "lang": {
3821
+ "name": "lang",
3822
+ "type": "text",
3823
+ "primaryKey": false,
3824
+ "notNull": true,
3825
+ "autoincrement": false
3826
+ },
3827
+ "texts": {
3828
+ "name": "texts",
3829
+ "type": "text",
3830
+ "primaryKey": false,
3831
+ "notNull": true,
3832
+ "autoincrement": false
3833
+ },
3834
+ "version": {
3835
+ "name": "version",
3836
+ "type": "integer",
3837
+ "primaryKey": false,
3838
+ "notNull": false,
3839
+ "autoincrement": false
3840
+ },
3841
+ "updated_at": {
3842
+ "name": "updated_at",
3843
+ "type": "integer",
3844
+ "primaryKey": false,
3845
+ "notNull": true,
3846
+ "autoincrement": false,
3847
+ "default": "(unixepoch() * 1000)"
3848
+ }
3849
+ },
3850
+ "indexes": {},
3851
+ "foreignKeys": {
3852
+ "wizard_translation_wizard_id_wizard_id_fk": {
3853
+ "name": "wizard_translation_wizard_id_wizard_id_fk",
3854
+ "tableFrom": "wizard_translation",
3855
+ "tableTo": "wizard",
3856
+ "columnsFrom": [
3857
+ "wizard_id"
3858
+ ],
3859
+ "columnsTo": [
3860
+ "id"
3861
+ ],
3862
+ "onDelete": "cascade",
3863
+ "onUpdate": "no action"
3864
+ }
3865
+ },
3866
+ "compositePrimaryKeys": {
3867
+ "wizard_translation_wizard_id_lang_pk": {
3868
+ "columns": [
3869
+ "wizard_id",
3870
+ "lang"
3871
+ ],
3872
+ "name": "wizard_translation_wizard_id_lang_pk"
3873
+ }
3874
+ },
3875
+ "uniqueConstraints": {},
3876
+ "checkConstraints": {}
3877
+ },
3878
+ "wizard_version": {
3879
+ "name": "wizard_version",
3880
+ "columns": {
3881
+ "id": {
3882
+ "name": "id",
3883
+ "type": "text",
3884
+ "primaryKey": true,
3885
+ "notNull": true,
3886
+ "autoincrement": false
3887
+ },
3888
+ "wizard_id": {
3889
+ "name": "wizard_id",
3890
+ "type": "text",
3891
+ "primaryKey": false,
3892
+ "notNull": true,
3893
+ "autoincrement": false
3894
+ },
3895
+ "version": {
3896
+ "name": "version",
3897
+ "type": "integer",
3898
+ "primaryKey": false,
3899
+ "notNull": true,
3900
+ "autoincrement": false
3901
+ },
3902
+ "definition": {
3903
+ "name": "definition",
3904
+ "type": "text",
3905
+ "primaryKey": false,
3906
+ "notNull": true,
3907
+ "autoincrement": false
3908
+ },
3909
+ "files": {
3910
+ "name": "files",
3911
+ "type": "text",
3912
+ "primaryKey": false,
3913
+ "notNull": true,
3914
+ "autoincrement": false,
3915
+ "default": "'[]'"
3916
+ },
3917
+ "created_at": {
3918
+ "name": "created_at",
3919
+ "type": "integer",
3920
+ "primaryKey": false,
3921
+ "notNull": true,
3922
+ "autoincrement": false,
3923
+ "default": "(unixepoch() * 1000)"
3924
+ }
3925
+ },
3926
+ "indexes": {
3927
+ "wizard_version_n": {
3928
+ "name": "wizard_version_n",
3929
+ "columns": [
3930
+ "wizard_id",
3931
+ "version"
3932
+ ],
3933
+ "isUnique": true
3934
+ }
3935
+ },
3936
+ "foreignKeys": {
3937
+ "wizard_version_wizard_id_wizard_id_fk": {
3938
+ "name": "wizard_version_wizard_id_wizard_id_fk",
3939
+ "tableFrom": "wizard_version",
3940
+ "tableTo": "wizard",
3941
+ "columnsFrom": [
3942
+ "wizard_id"
3943
+ ],
3944
+ "columnsTo": [
3945
+ "id"
3946
+ ],
3947
+ "onDelete": "cascade",
3948
+ "onUpdate": "no action"
3949
+ }
3950
+ },
3951
+ "compositePrimaryKeys": {},
3952
+ "uniqueConstraints": {},
3953
+ "checkConstraints": {}
3954
+ }
3955
+ },
3956
+ "views": {},
3957
+ "enums": {},
3958
+ "_meta": {
3959
+ "schemas": {},
3960
+ "tables": {},
3961
+ "columns": {}
3962
+ },
3963
+ "internal": {
3964
+ "indexes": {}
3965
+ }
3966
+ }