@engenty/wizards-runtime 0.9.8 → 0.10.0

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