@becomeopc/trendpublish 4.0.0-alpha.4 → 4.0.0-beta.2

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 (95) hide show
  1. package/dashboard/assets/{-association-list-CpJphL0B.js → -association-list-BCgF9OJ5.js} +1 -1
  2. package/dashboard/assets/-channel-templates-TSR8kCHV.js +6 -0
  3. package/dashboard/assets/-content-package-preview-WEf6gP0Z.js +1 -0
  4. package/dashboard/assets/-editor-page-BKralop5.js +1 -0
  5. package/dashboard/assets/-run-detail-view-Ct-CFBHw.js +12 -0
  6. package/dashboard/assets/{-run-presentation-Dhp1MLMP.js → -run-presentation-YaGz8Mmh.js} +1 -1
  7. package/dashboard/assets/AnimatePresence-B54uy4uL.js +9 -0
  8. package/dashboard/assets/_app-BWreYBOO.js +1 -0
  9. package/dashboard/assets/arrow-left-BNY_Z0Z5.js +1 -0
  10. package/dashboard/assets/arrow-right-C0jNZ8V5.js +1 -0
  11. package/dashboard/assets/articles-DbWTuxIi.js +1 -0
  12. package/dashboard/assets/automations-DwCc1vrP.js +2 -0
  13. package/dashboard/assets/book-open-du7Gj22W.js +1 -0
  14. package/dashboard/assets/{connections-Dfyth9tv.js → connections-BTXTwVZi.js} +1 -1
  15. package/dashboard/assets/content-plans-D6yuDh9V.js +1 -0
  16. package/dashboard/assets/content-plans_._planId.edit-C8shQP9y.js +1 -0
  17. package/dashboard/assets/content-plans_.new-C8shQP9y.js +1 -0
  18. package/dashboard/assets/dropdown-menu-DTA5frsM.js +1 -0
  19. package/dashboard/assets/{eye-BSHReAUR.js → eye-DMK6MTEX.js} +1 -1
  20. package/dashboard/assets/{file-text-CfJolIKb.js → file-text-Dk3RSPpD.js} +1 -1
  21. package/dashboard/assets/{fingerprint-pattern-ISviPnO_.js → fingerprint-pattern-Cks8v6lo.js} +1 -1
  22. package/dashboard/assets/history-D3HAlwJG.js +1 -0
  23. package/dashboard/assets/identities-QxZaI_E_.js +3 -0
  24. package/dashboard/assets/index-BOzzoHMf.css +2 -0
  25. package/dashboard/assets/{index-DhKRJHPQ.js → index-D0I6_F8W.js} +2 -2
  26. package/dashboard/assets/jobs-ChEmSaQx.js +1 -0
  27. package/dashboard/assets/jobs_._runId-CfjxSQt9.js +1 -0
  28. package/dashboard/assets/knowledge-CRTKmAlZ.js +1 -0
  29. package/dashboard/assets/{layers-CWm3FyHG.js → layers-CljIhILo.js} +1 -1
  30. package/dashboard/assets/{layout-template-yIjk7F-q.js → layout-template-DPTpa7SQ.js} +1 -1
  31. package/dashboard/assets/library-D9UGRwnB.js +1 -0
  32. package/dashboard/assets/{newspaper-DPOzKLbY.js → newspaper-Cg846KNZ.js} +1 -1
  33. package/dashboard/assets/play-yWTFijkx.js +1 -0
  34. package/dashboard/assets/publication-destination-picker-D2jwBhXQ.js +1 -0
  35. package/dashboard/assets/publishing-B-ep_uLv.js +1 -0
  36. package/dashboard/assets/publishing_.styles-BvhTRB2V.js +1 -0
  37. package/dashboard/assets/publishing_.templates-DxInNuCT.js +1 -0
  38. package/dashboard/assets/{publishing_.templates_.sessions._sessionId-C32Beg6R.js → publishing_.templates_.sessions._sessionId-Cp76DzJU.js} +1 -1
  39. package/dashboard/assets/radio-DfCCCOl6.js +1 -0
  40. package/dashboard/assets/{radio-tower-lWqWRAVm.js → radio-tower-C_0U-HML.js} +1 -1
  41. package/dashboard/assets/rotate-ccw-Zuvqn_AI.js +1 -0
  42. package/dashboard/assets/{routes-BnBNI1ke.js → routes-qtUdBWvm.js} +1 -1
  43. package/dashboard/assets/{runs-CKnSOKv4.js → runs-DqZN97cd.js} +1 -1
  44. package/dashboard/assets/send-C23FtqUb.js +1 -0
  45. package/dashboard/assets/settings-ClPaRCaX.js +1 -0
  46. package/dashboard/assets/{shield-check-BssN3Hif.js → shield-check-B7Yvlur7.js} +1 -1
  47. package/dashboard/assets/sources-GeyaDXk5.js +1 -0
  48. package/dashboard/assets/{sse-pzRA-f9J.js → sse-jXGgzf_z.js} +2 -2
  49. package/dashboard/assets/tabs-CrjUBr8m.js +1 -0
  50. package/dashboard/assets/{trash-2-CURppE4-.js → trash-2-BTZ4IDG9.js} +1 -1
  51. package/dashboard/assets/use-onboarding-qU_hZdm6.js +1 -0
  52. package/dashboard/assets/use-workspace-snapshot-BHt8EEHC.js +1 -0
  53. package/dashboard/assets/workspace-DGrhaBe1.js +1 -0
  54. package/dashboard/assets/wrench-BoK9QQr-.js +1 -0
  55. package/dashboard/index.html +2 -2
  56. package/dist/app.js +80102 -33228
  57. package/drizzle/0004_stale_starbolt.sql +28 -0
  58. package/drizzle/0005_pale_doctor_spectrum.sql +48 -0
  59. package/drizzle/meta/0004_snapshot.json +2687 -0
  60. package/drizzle/meta/0005_snapshot.json +2805 -0
  61. package/drizzle/meta/_journal.json +14 -0
  62. package/package.json +1 -1
  63. package/dashboard/assets/-channel-templates-COQosj8a.js +0 -6
  64. package/dashboard/assets/-content-package-preview-DeF-8PPH.js +0 -1
  65. package/dashboard/assets/-editor-page-BISl-fTZ.js +0 -1
  66. package/dashboard/assets/-run-detail-view-DMxo9b8x.js +0 -12
  67. package/dashboard/assets/AnimatePresence-DzUloIx0.js +0 -9
  68. package/dashboard/assets/_app-rmP4sHWt.js +0 -1
  69. package/dashboard/assets/arrow-left-D5-ez4tP.js +0 -1
  70. package/dashboard/assets/arrow-right-BUTx8i5Q.js +0 -1
  71. package/dashboard/assets/articles-Bn3Z1siU.js +0 -1
  72. package/dashboard/assets/automations-DMZkw8g6.js +0 -2
  73. package/dashboard/assets/content-plans-me2sZDLU.js +0 -1
  74. package/dashboard/assets/content-plans_._planId.edit-7BHuv528.js +0 -1
  75. package/dashboard/assets/content-plans_.new-7BHuv528.js +0 -1
  76. package/dashboard/assets/copy-B-eZtbzt.js +0 -1
  77. package/dashboard/assets/dropdown-menu-DAjCMI6K.js +0 -1
  78. package/dashboard/assets/identities-CIy7Q2wP.js +0 -3
  79. package/dashboard/assets/index-BoLpab45.css +0 -2
  80. package/dashboard/assets/jobs-CMViOJeL.js +0 -1
  81. package/dashboard/assets/jobs_._runId-CA8TTEqw.js +0 -1
  82. package/dashboard/assets/knowledge-DQcgNI2r.js +0 -1
  83. package/dashboard/assets/library-BUCfApCB.js +0 -1
  84. package/dashboard/assets/play-BstQsP-v.js +0 -1
  85. package/dashboard/assets/publication-destination-picker-CJuQVZ8Z.js +0 -1
  86. package/dashboard/assets/publishing-PmNqeFKZ.js +0 -1
  87. package/dashboard/assets/publishing_.styles-B3gViZHT.js +0 -1
  88. package/dashboard/assets/publishing_.templates-DyfaO52q.js +0 -1
  89. package/dashboard/assets/settings-COO33aq9.js +0 -1
  90. package/dashboard/assets/sources-IjjBA3jh.js +0 -1
  91. package/dashboard/assets/tabs-BoQLEzMe.js +0 -1
  92. package/dashboard/assets/use-onboarding-CGXnn74b.js +0 -1
  93. package/dashboard/assets/use-workspace-snapshot-CQHMnuFv.js +0 -1
  94. package/dashboard/assets/workspace-BpJcl3Mc.js +0 -1
  95. package/dashboard/assets/wrench-DEPBG9g2.js +0 -1
@@ -0,0 +1,2687 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "f494a887-29d9-4dc8-b678-d0d845354fe6",
5
+ "prevId": "bc14f681-1067-4c2c-ab0c-728a21a31795",
6
+ "tables": {
7
+ "automations": {
8
+ "name": "automations",
9
+ "columns": {
10
+ "id": {
11
+ "name": "id",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "name": {
18
+ "name": "name",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "enabled": {
25
+ "name": "enabled",
26
+ "type": "integer",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false,
30
+ "default": true
31
+ },
32
+ "content_plan_id": {
33
+ "name": "content_plan_id",
34
+ "type": "text",
35
+ "primaryKey": false,
36
+ "notNull": true,
37
+ "autoincrement": false
38
+ },
39
+ "instructions": {
40
+ "name": "instructions",
41
+ "type": "text",
42
+ "primaryKey": false,
43
+ "notNull": false,
44
+ "autoincrement": false
45
+ },
46
+ "keywords": {
47
+ "name": "keywords",
48
+ "type": "text",
49
+ "primaryKey": false,
50
+ "notNull": true,
51
+ "autoincrement": false
52
+ },
53
+ "trigger": {
54
+ "name": "trigger",
55
+ "type": "text",
56
+ "primaryKey": false,
57
+ "notNull": true,
58
+ "autoincrement": false
59
+ },
60
+ "revision": {
61
+ "name": "revision",
62
+ "type": "integer",
63
+ "primaryKey": false,
64
+ "notNull": true,
65
+ "autoincrement": false
66
+ },
67
+ "created_at": {
68
+ "name": "created_at",
69
+ "type": "text",
70
+ "primaryKey": false,
71
+ "notNull": true,
72
+ "autoincrement": false
73
+ },
74
+ "updated_at": {
75
+ "name": "updated_at",
76
+ "type": "text",
77
+ "primaryKey": false,
78
+ "notNull": true,
79
+ "autoincrement": false
80
+ }
81
+ },
82
+ "indexes": {
83
+ "idx_automations_updated": {
84
+ "name": "idx_automations_updated",
85
+ "columns": ["updated_at"],
86
+ "isUnique": false
87
+ },
88
+ "idx_automations_plan": {
89
+ "name": "idx_automations_plan",
90
+ "columns": ["content_plan_id"],
91
+ "isUnique": false
92
+ }
93
+ },
94
+ "foreignKeys": {},
95
+ "compositePrimaryKeys": {},
96
+ "uniqueConstraints": {},
97
+ "checkConstraints": {}
98
+ },
99
+ "channel_accounts": {
100
+ "name": "channel_accounts",
101
+ "columns": {
102
+ "id": {
103
+ "name": "id",
104
+ "type": "text",
105
+ "primaryKey": true,
106
+ "notNull": true,
107
+ "autoincrement": false
108
+ },
109
+ "name": {
110
+ "name": "name",
111
+ "type": "text",
112
+ "primaryKey": false,
113
+ "notNull": true,
114
+ "autoincrement": false
115
+ },
116
+ "enabled": {
117
+ "name": "enabled",
118
+ "type": "integer",
119
+ "primaryKey": false,
120
+ "notNull": true,
121
+ "autoincrement": false,
122
+ "default": true
123
+ },
124
+ "channel": {
125
+ "name": "channel",
126
+ "type": "text",
127
+ "primaryKey": false,
128
+ "notNull": true,
129
+ "autoincrement": false
130
+ },
131
+ "connection_id": {
132
+ "name": "connection_id",
133
+ "type": "text",
134
+ "primaryKey": false,
135
+ "notNull": true,
136
+ "autoincrement": false
137
+ },
138
+ "connector_id": {
139
+ "name": "connector_id",
140
+ "type": "text",
141
+ "primaryKey": false,
142
+ "notNull": false,
143
+ "autoincrement": false
144
+ },
145
+ "settings": {
146
+ "name": "settings",
147
+ "type": "text",
148
+ "primaryKey": false,
149
+ "notNull": true,
150
+ "autoincrement": false
151
+ },
152
+ "credential_state": {
153
+ "name": "credential_state",
154
+ "type": "text",
155
+ "primaryKey": false,
156
+ "notNull": false,
157
+ "autoincrement": false
158
+ },
159
+ "publisher": {
160
+ "name": "publisher",
161
+ "type": "text",
162
+ "primaryKey": false,
163
+ "notNull": false,
164
+ "autoincrement": false
165
+ },
166
+ "revision": {
167
+ "name": "revision",
168
+ "type": "integer",
169
+ "primaryKey": false,
170
+ "notNull": true,
171
+ "autoincrement": false
172
+ },
173
+ "created_at": {
174
+ "name": "created_at",
175
+ "type": "text",
176
+ "primaryKey": false,
177
+ "notNull": true,
178
+ "autoincrement": false
179
+ },
180
+ "updated_at": {
181
+ "name": "updated_at",
182
+ "type": "text",
183
+ "primaryKey": false,
184
+ "notNull": true,
185
+ "autoincrement": false
186
+ }
187
+ },
188
+ "indexes": {
189
+ "idx_channel_accounts_updated": {
190
+ "name": "idx_channel_accounts_updated",
191
+ "columns": ["updated_at"],
192
+ "isUnique": false
193
+ },
194
+ "idx_channel_accounts_channel": {
195
+ "name": "idx_channel_accounts_channel",
196
+ "columns": ["channel"],
197
+ "isUnique": false
198
+ }
199
+ },
200
+ "foreignKeys": {},
201
+ "compositePrimaryKeys": {},
202
+ "uniqueConstraints": {},
203
+ "checkConstraints": {}
204
+ },
205
+ "channel_template_builds": {
206
+ "name": "channel_template_builds",
207
+ "columns": {
208
+ "id": {
209
+ "name": "id",
210
+ "type": "text",
211
+ "primaryKey": true,
212
+ "notNull": true,
213
+ "autoincrement": false
214
+ },
215
+ "channel": {
216
+ "name": "channel",
217
+ "type": "text",
218
+ "primaryKey": false,
219
+ "notNull": true,
220
+ "autoincrement": false
221
+ },
222
+ "publication_type": {
223
+ "name": "publication_type",
224
+ "type": "text",
225
+ "primaryKey": false,
226
+ "notNull": true,
227
+ "autoincrement": false
228
+ },
229
+ "template_kind": {
230
+ "name": "template_kind",
231
+ "type": "text",
232
+ "primaryKey": false,
233
+ "notNull": true,
234
+ "autoincrement": false
235
+ },
236
+ "status": {
237
+ "name": "status",
238
+ "type": "text",
239
+ "primaryKey": false,
240
+ "notNull": true,
241
+ "autoincrement": false
242
+ },
243
+ "source": {
244
+ "name": "source",
245
+ "type": "text",
246
+ "primaryKey": false,
247
+ "notNull": true,
248
+ "autoincrement": false
249
+ },
250
+ "content_package_id": {
251
+ "name": "content_package_id",
252
+ "type": "text",
253
+ "primaryKey": false,
254
+ "notNull": false,
255
+ "autoincrement": false
256
+ },
257
+ "diagnostics": {
258
+ "name": "diagnostics",
259
+ "type": "text",
260
+ "primaryKey": false,
261
+ "notNull": true,
262
+ "autoincrement": false
263
+ },
264
+ "template_id": {
265
+ "name": "template_id",
266
+ "type": "text",
267
+ "primaryKey": false,
268
+ "notNull": false,
269
+ "autoincrement": false
270
+ },
271
+ "template_version_id": {
272
+ "name": "template_version_id",
273
+ "type": "text",
274
+ "primaryKey": false,
275
+ "notNull": false,
276
+ "autoincrement": false
277
+ },
278
+ "revision": {
279
+ "name": "revision",
280
+ "type": "integer",
281
+ "primaryKey": false,
282
+ "notNull": true,
283
+ "autoincrement": false
284
+ },
285
+ "created_at": {
286
+ "name": "created_at",
287
+ "type": "text",
288
+ "primaryKey": false,
289
+ "notNull": true,
290
+ "autoincrement": false
291
+ },
292
+ "updated_at": {
293
+ "name": "updated_at",
294
+ "type": "text",
295
+ "primaryKey": false,
296
+ "notNull": true,
297
+ "autoincrement": false
298
+ }
299
+ },
300
+ "indexes": {
301
+ "idx_channel_template_builds_updated": {
302
+ "name": "idx_channel_template_builds_updated",
303
+ "columns": ["updated_at"],
304
+ "isUnique": false
305
+ }
306
+ },
307
+ "foreignKeys": {},
308
+ "compositePrimaryKeys": {},
309
+ "uniqueConstraints": {},
310
+ "checkConstraints": {}
311
+ },
312
+ "channel_template_versions": {
313
+ "name": "channel_template_versions",
314
+ "columns": {
315
+ "id": {
316
+ "name": "id",
317
+ "type": "text",
318
+ "primaryKey": true,
319
+ "notNull": true,
320
+ "autoincrement": false
321
+ },
322
+ "template_id": {
323
+ "name": "template_id",
324
+ "type": "text",
325
+ "primaryKey": false,
326
+ "notNull": true,
327
+ "autoincrement": false
328
+ },
329
+ "version": {
330
+ "name": "version",
331
+ "type": "integer",
332
+ "primaryKey": false,
333
+ "notNull": true,
334
+ "autoincrement": false
335
+ },
336
+ "schema_version": {
337
+ "name": "schema_version",
338
+ "type": "text",
339
+ "primaryKey": false,
340
+ "notNull": true,
341
+ "autoincrement": false
342
+ },
343
+ "checksum": {
344
+ "name": "checksum",
345
+ "type": "text",
346
+ "primaryKey": false,
347
+ "notNull": true,
348
+ "autoincrement": false
349
+ },
350
+ "compiler_version": {
351
+ "name": "compiler_version",
352
+ "type": "text",
353
+ "primaryKey": false,
354
+ "notNull": true,
355
+ "autoincrement": false
356
+ },
357
+ "artifact": {
358
+ "name": "artifact",
359
+ "type": "text",
360
+ "primaryKey": false,
361
+ "notNull": false,
362
+ "autoincrement": false
363
+ },
364
+ "artifact_schema_version": {
365
+ "name": "artifact_schema_version",
366
+ "type": "text",
367
+ "primaryKey": false,
368
+ "notNull": false,
369
+ "autoincrement": false
370
+ },
371
+ "profile_id": {
372
+ "name": "profile_id",
373
+ "type": "text",
374
+ "primaryKey": false,
375
+ "notNull": false,
376
+ "autoincrement": false
377
+ },
378
+ "profile_version": {
379
+ "name": "profile_version",
380
+ "type": "text",
381
+ "primaryKey": false,
382
+ "notNull": false,
383
+ "autoincrement": false
384
+ },
385
+ "artifact_checksum": {
386
+ "name": "artifact_checksum",
387
+ "type": "text",
388
+ "primaryKey": false,
389
+ "notNull": false,
390
+ "autoincrement": false
391
+ },
392
+ "source": {
393
+ "name": "source",
394
+ "type": "text",
395
+ "primaryKey": false,
396
+ "notNull": true,
397
+ "autoincrement": false
398
+ },
399
+ "created_at": {
400
+ "name": "created_at",
401
+ "type": "text",
402
+ "primaryKey": false,
403
+ "notNull": true,
404
+ "autoincrement": false
405
+ }
406
+ },
407
+ "indexes": {
408
+ "idx_channel_template_versions_template": {
409
+ "name": "idx_channel_template_versions_template",
410
+ "columns": ["template_id", "version"],
411
+ "isUnique": false
412
+ }
413
+ },
414
+ "foreignKeys": {
415
+ "channel_template_versions_template_id_channel_templates_id_fk": {
416
+ "name": "channel_template_versions_template_id_channel_templates_id_fk",
417
+ "tableFrom": "channel_template_versions",
418
+ "tableTo": "channel_templates",
419
+ "columnsFrom": ["template_id"],
420
+ "columnsTo": ["id"],
421
+ "onDelete": "cascade",
422
+ "onUpdate": "no action"
423
+ }
424
+ },
425
+ "compositePrimaryKeys": {},
426
+ "uniqueConstraints": {},
427
+ "checkConstraints": {}
428
+ },
429
+ "channel_templates": {
430
+ "name": "channel_templates",
431
+ "columns": {
432
+ "id": {
433
+ "name": "id",
434
+ "type": "text",
435
+ "primaryKey": true,
436
+ "notNull": true,
437
+ "autoincrement": false
438
+ },
439
+ "name": {
440
+ "name": "name",
441
+ "type": "text",
442
+ "primaryKey": false,
443
+ "notNull": true,
444
+ "autoincrement": false
445
+ },
446
+ "description": {
447
+ "name": "description",
448
+ "type": "text",
449
+ "primaryKey": false,
450
+ "notNull": false,
451
+ "autoincrement": false
452
+ },
453
+ "enabled": {
454
+ "name": "enabled",
455
+ "type": "integer",
456
+ "primaryKey": false,
457
+ "notNull": true,
458
+ "autoincrement": false,
459
+ "default": true
460
+ },
461
+ "channel": {
462
+ "name": "channel",
463
+ "type": "text",
464
+ "primaryKey": false,
465
+ "notNull": true,
466
+ "autoincrement": false
467
+ },
468
+ "publication_type": {
469
+ "name": "publication_type",
470
+ "type": "text",
471
+ "primaryKey": false,
472
+ "notNull": true,
473
+ "autoincrement": false
474
+ },
475
+ "template_kind": {
476
+ "name": "template_kind",
477
+ "type": "text",
478
+ "primaryKey": false,
479
+ "notNull": true,
480
+ "autoincrement": false
481
+ },
482
+ "active_version_id": {
483
+ "name": "active_version_id",
484
+ "type": "text",
485
+ "primaryKey": false,
486
+ "notNull": false,
487
+ "autoincrement": false
488
+ },
489
+ "revision": {
490
+ "name": "revision",
491
+ "type": "integer",
492
+ "primaryKey": false,
493
+ "notNull": true,
494
+ "autoincrement": false
495
+ },
496
+ "created_at": {
497
+ "name": "created_at",
498
+ "type": "text",
499
+ "primaryKey": false,
500
+ "notNull": true,
501
+ "autoincrement": false
502
+ },
503
+ "updated_at": {
504
+ "name": "updated_at",
505
+ "type": "text",
506
+ "primaryKey": false,
507
+ "notNull": true,
508
+ "autoincrement": false
509
+ }
510
+ },
511
+ "indexes": {
512
+ "idx_channel_templates_updated": {
513
+ "name": "idx_channel_templates_updated",
514
+ "columns": ["updated_at"],
515
+ "isUnique": false
516
+ },
517
+ "idx_channel_templates_channel_type": {
518
+ "name": "idx_channel_templates_channel_type",
519
+ "columns": ["channel", "publication_type"],
520
+ "isUnique": false
521
+ }
522
+ },
523
+ "foreignKeys": {},
524
+ "compositePrimaryKeys": {},
525
+ "uniqueConstraints": {},
526
+ "checkConstraints": {}
527
+ },
528
+ "chat_artifacts": {
529
+ "name": "chat_artifacts",
530
+ "columns": {
531
+ "id": {
532
+ "name": "id",
533
+ "type": "text",
534
+ "primaryKey": true,
535
+ "notNull": true,
536
+ "autoincrement": false
537
+ },
538
+ "session_id": {
539
+ "name": "session_id",
540
+ "type": "text",
541
+ "primaryKey": false,
542
+ "notNull": true,
543
+ "autoincrement": false
544
+ },
545
+ "ordinal": {
546
+ "name": "ordinal",
547
+ "type": "integer",
548
+ "primaryKey": false,
549
+ "notNull": true,
550
+ "autoincrement": false
551
+ },
552
+ "checksum": {
553
+ "name": "checksum",
554
+ "type": "text",
555
+ "primaryKey": false,
556
+ "notNull": true,
557
+ "autoincrement": false
558
+ },
559
+ "status": {
560
+ "name": "status",
561
+ "type": "text",
562
+ "primaryKey": false,
563
+ "notNull": true,
564
+ "autoincrement": false
565
+ },
566
+ "data": {
567
+ "name": "data",
568
+ "type": "text",
569
+ "primaryKey": false,
570
+ "notNull": true,
571
+ "autoincrement": false
572
+ },
573
+ "created_at": {
574
+ "name": "created_at",
575
+ "type": "text",
576
+ "primaryKey": false,
577
+ "notNull": true,
578
+ "autoincrement": false
579
+ },
580
+ "updated_at": {
581
+ "name": "updated_at",
582
+ "type": "text",
583
+ "primaryKey": false,
584
+ "notNull": true,
585
+ "autoincrement": false
586
+ }
587
+ },
588
+ "indexes": {
589
+ "uq_chat_artifacts_session_ordinal": {
590
+ "name": "uq_chat_artifacts_session_ordinal",
591
+ "columns": ["session_id", "ordinal"],
592
+ "isUnique": true
593
+ },
594
+ "uq_chat_artifacts_session_checksum": {
595
+ "name": "uq_chat_artifacts_session_checksum",
596
+ "columns": ["session_id", "checksum"],
597
+ "isUnique": true
598
+ },
599
+ "idx_chat_artifacts_session_ordinal": {
600
+ "name": "idx_chat_artifacts_session_ordinal",
601
+ "columns": ["session_id", "ordinal"],
602
+ "isUnique": false
603
+ }
604
+ },
605
+ "foreignKeys": {
606
+ "chat_artifacts_session_id_chat_sessions_id_fk": {
607
+ "name": "chat_artifacts_session_id_chat_sessions_id_fk",
608
+ "tableFrom": "chat_artifacts",
609
+ "tableTo": "chat_sessions",
610
+ "columnsFrom": ["session_id"],
611
+ "columnsTo": ["id"],
612
+ "onDelete": "cascade",
613
+ "onUpdate": "no action"
614
+ }
615
+ },
616
+ "compositePrimaryKeys": {},
617
+ "uniqueConstraints": {},
618
+ "checkConstraints": {}
619
+ },
620
+ "chat_context_checkpoints": {
621
+ "name": "chat_context_checkpoints",
622
+ "columns": {
623
+ "session_id": {
624
+ "name": "session_id",
625
+ "type": "text",
626
+ "primaryKey": true,
627
+ "notNull": true,
628
+ "autoincrement": false
629
+ },
630
+ "through_sequence": {
631
+ "name": "through_sequence",
632
+ "type": "integer",
633
+ "primaryKey": false,
634
+ "notNull": true,
635
+ "autoincrement": false
636
+ },
637
+ "data": {
638
+ "name": "data",
639
+ "type": "text",
640
+ "primaryKey": false,
641
+ "notNull": true,
642
+ "autoincrement": false
643
+ },
644
+ "created_at": {
645
+ "name": "created_at",
646
+ "type": "text",
647
+ "primaryKey": false,
648
+ "notNull": true,
649
+ "autoincrement": false
650
+ }
651
+ },
652
+ "indexes": {},
653
+ "foreignKeys": {
654
+ "chat_context_checkpoints_session_id_chat_sessions_id_fk": {
655
+ "name": "chat_context_checkpoints_session_id_chat_sessions_id_fk",
656
+ "tableFrom": "chat_context_checkpoints",
657
+ "tableTo": "chat_sessions",
658
+ "columnsFrom": ["session_id"],
659
+ "columnsTo": ["id"],
660
+ "onDelete": "cascade",
661
+ "onUpdate": "no action"
662
+ }
663
+ },
664
+ "compositePrimaryKeys": {},
665
+ "uniqueConstraints": {},
666
+ "checkConstraints": {}
667
+ },
668
+ "chat_event_sequences": {
669
+ "name": "chat_event_sequences",
670
+ "columns": {
671
+ "session_id": {
672
+ "name": "session_id",
673
+ "type": "text",
674
+ "primaryKey": true,
675
+ "notNull": true,
676
+ "autoincrement": false
677
+ },
678
+ "last_sequence": {
679
+ "name": "last_sequence",
680
+ "type": "integer",
681
+ "primaryKey": false,
682
+ "notNull": true,
683
+ "autoincrement": false
684
+ }
685
+ },
686
+ "indexes": {},
687
+ "foreignKeys": {
688
+ "chat_event_sequences_session_id_chat_sessions_id_fk": {
689
+ "name": "chat_event_sequences_session_id_chat_sessions_id_fk",
690
+ "tableFrom": "chat_event_sequences",
691
+ "tableTo": "chat_sessions",
692
+ "columnsFrom": ["session_id"],
693
+ "columnsTo": ["id"],
694
+ "onDelete": "cascade",
695
+ "onUpdate": "no action"
696
+ }
697
+ },
698
+ "compositePrimaryKeys": {},
699
+ "uniqueConstraints": {},
700
+ "checkConstraints": {}
701
+ },
702
+ "chat_events": {
703
+ "name": "chat_events",
704
+ "columns": {
705
+ "id": {
706
+ "name": "id",
707
+ "type": "text",
708
+ "primaryKey": true,
709
+ "notNull": true,
710
+ "autoincrement": false
711
+ },
712
+ "session_id": {
713
+ "name": "session_id",
714
+ "type": "text",
715
+ "primaryKey": false,
716
+ "notNull": true,
717
+ "autoincrement": false
718
+ },
719
+ "sequence": {
720
+ "name": "sequence",
721
+ "type": "integer",
722
+ "primaryKey": false,
723
+ "notNull": true,
724
+ "autoincrement": false
725
+ },
726
+ "type": {
727
+ "name": "type",
728
+ "type": "text",
729
+ "primaryKey": false,
730
+ "notNull": true,
731
+ "autoincrement": false
732
+ },
733
+ "data": {
734
+ "name": "data",
735
+ "type": "text",
736
+ "primaryKey": false,
737
+ "notNull": true,
738
+ "autoincrement": false
739
+ },
740
+ "occurred_at": {
741
+ "name": "occurred_at",
742
+ "type": "text",
743
+ "primaryKey": false,
744
+ "notNull": true,
745
+ "autoincrement": false
746
+ }
747
+ },
748
+ "indexes": {
749
+ "uq_chat_events_session_seq": {
750
+ "name": "uq_chat_events_session_seq",
751
+ "columns": ["session_id", "sequence"],
752
+ "isUnique": true
753
+ },
754
+ "idx_chat_events_session_sequence": {
755
+ "name": "idx_chat_events_session_sequence",
756
+ "columns": ["session_id", "sequence"],
757
+ "isUnique": false
758
+ }
759
+ },
760
+ "foreignKeys": {
761
+ "chat_events_session_id_chat_sessions_id_fk": {
762
+ "name": "chat_events_session_id_chat_sessions_id_fk",
763
+ "tableFrom": "chat_events",
764
+ "tableTo": "chat_sessions",
765
+ "columnsFrom": ["session_id"],
766
+ "columnsTo": ["id"],
767
+ "onDelete": "cascade",
768
+ "onUpdate": "no action"
769
+ }
770
+ },
771
+ "compositePrimaryKeys": {},
772
+ "uniqueConstraints": {},
773
+ "checkConstraints": {}
774
+ },
775
+ "chat_sessions": {
776
+ "name": "chat_sessions",
777
+ "columns": {
778
+ "id": {
779
+ "name": "id",
780
+ "type": "text",
781
+ "primaryKey": true,
782
+ "notNull": true,
783
+ "autoincrement": false
784
+ },
785
+ "profile_id": {
786
+ "name": "profile_id",
787
+ "type": "text",
788
+ "primaryKey": false,
789
+ "notNull": true,
790
+ "autoincrement": false
791
+ },
792
+ "status": {
793
+ "name": "status",
794
+ "type": "text",
795
+ "primaryKey": false,
796
+ "notNull": true,
797
+ "autoincrement": false
798
+ },
799
+ "subject_kind": {
800
+ "name": "subject_kind",
801
+ "type": "text",
802
+ "primaryKey": false,
803
+ "notNull": true,
804
+ "autoincrement": false
805
+ },
806
+ "subject_id": {
807
+ "name": "subject_id",
808
+ "type": "text",
809
+ "primaryKey": false,
810
+ "notNull": false,
811
+ "autoincrement": false
812
+ },
813
+ "revision": {
814
+ "name": "revision",
815
+ "type": "integer",
816
+ "primaryKey": false,
817
+ "notNull": true,
818
+ "autoincrement": false
819
+ },
820
+ "data": {
821
+ "name": "data",
822
+ "type": "text",
823
+ "primaryKey": false,
824
+ "notNull": true,
825
+ "autoincrement": false
826
+ },
827
+ "created_at": {
828
+ "name": "created_at",
829
+ "type": "text",
830
+ "primaryKey": false,
831
+ "notNull": true,
832
+ "autoincrement": false
833
+ },
834
+ "updated_at": {
835
+ "name": "updated_at",
836
+ "type": "text",
837
+ "primaryKey": false,
838
+ "notNull": true,
839
+ "autoincrement": false
840
+ }
841
+ },
842
+ "indexes": {
843
+ "idx_chat_sessions_profile_updated": {
844
+ "name": "idx_chat_sessions_profile_updated",
845
+ "columns": ["profile_id", "updated_at"],
846
+ "isUnique": false
847
+ },
848
+ "idx_chat_sessions_subject_updated": {
849
+ "name": "idx_chat_sessions_subject_updated",
850
+ "columns": ["subject_kind", "subject_id", "updated_at"],
851
+ "isUnique": false
852
+ }
853
+ },
854
+ "foreignKeys": {},
855
+ "compositePrimaryKeys": {},
856
+ "uniqueConstraints": {},
857
+ "checkConstraints": {}
858
+ },
859
+ "chat_turns": {
860
+ "name": "chat_turns",
861
+ "columns": {
862
+ "id": {
863
+ "name": "id",
864
+ "type": "text",
865
+ "primaryKey": true,
866
+ "notNull": true,
867
+ "autoincrement": false
868
+ },
869
+ "session_id": {
870
+ "name": "session_id",
871
+ "type": "text",
872
+ "primaryKey": false,
873
+ "notNull": true,
874
+ "autoincrement": false
875
+ },
876
+ "client_turn_id": {
877
+ "name": "client_turn_id",
878
+ "type": "text",
879
+ "primaryKey": false,
880
+ "notNull": true,
881
+ "autoincrement": false
882
+ },
883
+ "status": {
884
+ "name": "status",
885
+ "type": "text",
886
+ "primaryKey": false,
887
+ "notNull": true,
888
+ "autoincrement": false
889
+ },
890
+ "data": {
891
+ "name": "data",
892
+ "type": "text",
893
+ "primaryKey": false,
894
+ "notNull": true,
895
+ "autoincrement": false
896
+ },
897
+ "created_at": {
898
+ "name": "created_at",
899
+ "type": "text",
900
+ "primaryKey": false,
901
+ "notNull": true,
902
+ "autoincrement": false
903
+ },
904
+ "updated_at": {
905
+ "name": "updated_at",
906
+ "type": "text",
907
+ "primaryKey": false,
908
+ "notNull": true,
909
+ "autoincrement": false
910
+ }
911
+ },
912
+ "indexes": {
913
+ "uq_chat_turns_session_client": {
914
+ "name": "uq_chat_turns_session_client",
915
+ "columns": ["session_id", "client_turn_id"],
916
+ "isUnique": true
917
+ }
918
+ },
919
+ "foreignKeys": {
920
+ "chat_turns_session_id_chat_sessions_id_fk": {
921
+ "name": "chat_turns_session_id_chat_sessions_id_fk",
922
+ "tableFrom": "chat_turns",
923
+ "tableTo": "chat_sessions",
924
+ "columnsFrom": ["session_id"],
925
+ "columnsTo": ["id"],
926
+ "onDelete": "cascade",
927
+ "onUpdate": "no action"
928
+ }
929
+ },
930
+ "compositePrimaryKeys": {},
931
+ "uniqueConstraints": {},
932
+ "checkConstraints": {}
933
+ },
934
+ "connection_credentials": {
935
+ "name": "connection_credentials",
936
+ "columns": {
937
+ "credential_ref": {
938
+ "name": "credential_ref",
939
+ "type": "text",
940
+ "primaryKey": true,
941
+ "notNull": true,
942
+ "autoincrement": false
943
+ },
944
+ "credentials": {
945
+ "name": "credentials",
946
+ "type": "text",
947
+ "primaryKey": false,
948
+ "notNull": true,
949
+ "autoincrement": false
950
+ },
951
+ "updated_at": {
952
+ "name": "updated_at",
953
+ "type": "text",
954
+ "primaryKey": false,
955
+ "notNull": true,
956
+ "autoincrement": false
957
+ }
958
+ },
959
+ "indexes": {},
960
+ "foreignKeys": {},
961
+ "compositePrimaryKeys": {},
962
+ "uniqueConstraints": {},
963
+ "checkConstraints": {}
964
+ },
965
+ "connections": {
966
+ "name": "connections",
967
+ "columns": {
968
+ "id": {
969
+ "name": "id",
970
+ "type": "text",
971
+ "primaryKey": true,
972
+ "notNull": true,
973
+ "autoincrement": false
974
+ },
975
+ "connector_id": {
976
+ "name": "connector_id",
977
+ "type": "text",
978
+ "primaryKey": false,
979
+ "notNull": true,
980
+ "autoincrement": false
981
+ },
982
+ "connector_version": {
983
+ "name": "connector_version",
984
+ "type": "integer",
985
+ "primaryKey": false,
986
+ "notNull": true,
987
+ "autoincrement": false,
988
+ "default": 1
989
+ },
990
+ "name": {
991
+ "name": "name",
992
+ "type": "text",
993
+ "primaryKey": false,
994
+ "notNull": true,
995
+ "autoincrement": false
996
+ },
997
+ "enabled": {
998
+ "name": "enabled",
999
+ "type": "integer",
1000
+ "primaryKey": false,
1001
+ "notNull": true,
1002
+ "autoincrement": false,
1003
+ "default": true
1004
+ },
1005
+ "settings": {
1006
+ "name": "settings",
1007
+ "type": "text",
1008
+ "primaryKey": false,
1009
+ "notNull": true,
1010
+ "autoincrement": false
1011
+ },
1012
+ "credential_ref": {
1013
+ "name": "credential_ref",
1014
+ "type": "text",
1015
+ "primaryKey": false,
1016
+ "notNull": true,
1017
+ "autoincrement": false
1018
+ },
1019
+ "overrides": {
1020
+ "name": "overrides",
1021
+ "type": "text",
1022
+ "primaryKey": false,
1023
+ "notNull": false,
1024
+ "autoincrement": false
1025
+ },
1026
+ "metadata": {
1027
+ "name": "metadata",
1028
+ "type": "text",
1029
+ "primaryKey": false,
1030
+ "notNull": true,
1031
+ "autoincrement": false
1032
+ },
1033
+ "revision": {
1034
+ "name": "revision",
1035
+ "type": "integer",
1036
+ "primaryKey": false,
1037
+ "notNull": true,
1038
+ "autoincrement": false
1039
+ },
1040
+ "created_at": {
1041
+ "name": "created_at",
1042
+ "type": "text",
1043
+ "primaryKey": false,
1044
+ "notNull": true,
1045
+ "autoincrement": false
1046
+ },
1047
+ "updated_at": {
1048
+ "name": "updated_at",
1049
+ "type": "text",
1050
+ "primaryKey": false,
1051
+ "notNull": true,
1052
+ "autoincrement": false
1053
+ }
1054
+ },
1055
+ "indexes": {
1056
+ "idx_connections_updated": {
1057
+ "name": "idx_connections_updated",
1058
+ "columns": ["updated_at"],
1059
+ "isUnique": false
1060
+ }
1061
+ },
1062
+ "foreignKeys": {},
1063
+ "compositePrimaryKeys": {},
1064
+ "uniqueConstraints": {},
1065
+ "checkConstraints": {}
1066
+ },
1067
+ "consumed_sources": {
1068
+ "name": "consumed_sources",
1069
+ "columns": {
1070
+ "id": {
1071
+ "name": "id",
1072
+ "type": "text",
1073
+ "primaryKey": true,
1074
+ "notNull": true,
1075
+ "autoincrement": false
1076
+ },
1077
+ "scope_kind": {
1078
+ "name": "scope_kind",
1079
+ "type": "text",
1080
+ "primaryKey": false,
1081
+ "notNull": true,
1082
+ "autoincrement": false
1083
+ },
1084
+ "scope_id": {
1085
+ "name": "scope_id",
1086
+ "type": "text",
1087
+ "primaryKey": false,
1088
+ "notNull": true,
1089
+ "autoincrement": false
1090
+ },
1091
+ "url_hash": {
1092
+ "name": "url_hash",
1093
+ "type": "text",
1094
+ "primaryKey": false,
1095
+ "notNull": true,
1096
+ "autoincrement": false
1097
+ },
1098
+ "canonical_url": {
1099
+ "name": "canonical_url",
1100
+ "type": "text",
1101
+ "primaryKey": false,
1102
+ "notNull": true,
1103
+ "autoincrement": false
1104
+ },
1105
+ "title": {
1106
+ "name": "title",
1107
+ "type": "text",
1108
+ "primaryKey": false,
1109
+ "notNull": false,
1110
+ "autoincrement": false
1111
+ },
1112
+ "job_id": {
1113
+ "name": "job_id",
1114
+ "type": "text",
1115
+ "primaryKey": false,
1116
+ "notNull": true,
1117
+ "autoincrement": false
1118
+ },
1119
+ "package_id": {
1120
+ "name": "package_id",
1121
+ "type": "text",
1122
+ "primaryKey": false,
1123
+ "notNull": true,
1124
+ "autoincrement": false
1125
+ },
1126
+ "consumed_at": {
1127
+ "name": "consumed_at",
1128
+ "type": "text",
1129
+ "primaryKey": false,
1130
+ "notNull": true,
1131
+ "autoincrement": false
1132
+ }
1133
+ },
1134
+ "indexes": {
1135
+ "uq_consumed_sources_scope_url": {
1136
+ "name": "uq_consumed_sources_scope_url",
1137
+ "columns": ["scope_kind", "scope_id", "url_hash"],
1138
+ "isUnique": true
1139
+ },
1140
+ "idx_consumed_sources_scope_time": {
1141
+ "name": "idx_consumed_sources_scope_time",
1142
+ "columns": ["scope_kind", "scope_id", "consumed_at"],
1143
+ "isUnique": false
1144
+ }
1145
+ },
1146
+ "foreignKeys": {},
1147
+ "compositePrimaryKeys": {},
1148
+ "uniqueConstraints": {},
1149
+ "checkConstraints": {}
1150
+ },
1151
+ "content_packages": {
1152
+ "name": "content_packages",
1153
+ "columns": {
1154
+ "id": {
1155
+ "name": "id",
1156
+ "type": "text",
1157
+ "primaryKey": true,
1158
+ "notNull": true,
1159
+ "autoincrement": false
1160
+ },
1161
+ "job_id": {
1162
+ "name": "job_id",
1163
+ "type": "text",
1164
+ "primaryKey": false,
1165
+ "notNull": true,
1166
+ "autoincrement": false
1167
+ },
1168
+ "plan_id": {
1169
+ "name": "plan_id",
1170
+ "type": "text",
1171
+ "primaryKey": false,
1172
+ "notNull": true,
1173
+ "autoincrement": false
1174
+ },
1175
+ "content_package": {
1176
+ "name": "content_package",
1177
+ "type": "text",
1178
+ "primaryKey": false,
1179
+ "notNull": true,
1180
+ "autoincrement": false
1181
+ },
1182
+ "revision": {
1183
+ "name": "revision",
1184
+ "type": "integer",
1185
+ "primaryKey": false,
1186
+ "notNull": true,
1187
+ "autoincrement": false
1188
+ },
1189
+ "created_at": {
1190
+ "name": "created_at",
1191
+ "type": "text",
1192
+ "primaryKey": false,
1193
+ "notNull": true,
1194
+ "autoincrement": false
1195
+ },
1196
+ "updated_at": {
1197
+ "name": "updated_at",
1198
+ "type": "text",
1199
+ "primaryKey": false,
1200
+ "notNull": true,
1201
+ "autoincrement": false
1202
+ }
1203
+ },
1204
+ "indexes": {
1205
+ "idx_content_packages_updated": {
1206
+ "name": "idx_content_packages_updated",
1207
+ "columns": ["updated_at"],
1208
+ "isUnique": false
1209
+ },
1210
+ "idx_content_packages_plan": {
1211
+ "name": "idx_content_packages_plan",
1212
+ "columns": ["plan_id"],
1213
+ "isUnique": false
1214
+ },
1215
+ "idx_content_packages_job": {
1216
+ "name": "idx_content_packages_job",
1217
+ "columns": ["job_id"],
1218
+ "isUnique": false
1219
+ }
1220
+ },
1221
+ "foreignKeys": {},
1222
+ "compositePrimaryKeys": {},
1223
+ "uniqueConstraints": {},
1224
+ "checkConstraints": {}
1225
+ },
1226
+ "content_plans": {
1227
+ "name": "content_plans",
1228
+ "columns": {
1229
+ "id": {
1230
+ "name": "id",
1231
+ "type": "text",
1232
+ "primaryKey": true,
1233
+ "notNull": true,
1234
+ "autoincrement": false
1235
+ },
1236
+ "name": {
1237
+ "name": "name",
1238
+ "type": "text",
1239
+ "primaryKey": false,
1240
+ "notNull": true,
1241
+ "autoincrement": false
1242
+ },
1243
+ "enabled": {
1244
+ "name": "enabled",
1245
+ "type": "integer",
1246
+ "primaryKey": false,
1247
+ "notNull": true,
1248
+ "autoincrement": false,
1249
+ "default": true
1250
+ },
1251
+ "identity_id": {
1252
+ "name": "identity_id",
1253
+ "type": "text",
1254
+ "primaryKey": false,
1255
+ "notNull": true,
1256
+ "autoincrement": false
1257
+ },
1258
+ "knowledge_base_ids": {
1259
+ "name": "knowledge_base_ids",
1260
+ "type": "text",
1261
+ "primaryKey": false,
1262
+ "notNull": true,
1263
+ "autoincrement": false
1264
+ },
1265
+ "source_collection_ids": {
1266
+ "name": "source_collection_ids",
1267
+ "type": "text",
1268
+ "primaryKey": false,
1269
+ "notNull": true,
1270
+ "autoincrement": false
1271
+ },
1272
+ "connections": {
1273
+ "name": "connections",
1274
+ "type": "text",
1275
+ "primaryKey": false,
1276
+ "notNull": true,
1277
+ "autoincrement": false
1278
+ },
1279
+ "research_connections": {
1280
+ "name": "research_connections",
1281
+ "type": "text",
1282
+ "primaryKey": false,
1283
+ "notNull": false,
1284
+ "autoincrement": false
1285
+ },
1286
+ "agent": {
1287
+ "name": "agent",
1288
+ "type": "text",
1289
+ "primaryKey": false,
1290
+ "notNull": false,
1291
+ "autoincrement": false
1292
+ },
1293
+ "publishing": {
1294
+ "name": "publishing",
1295
+ "type": "text",
1296
+ "primaryKey": false,
1297
+ "notNull": true,
1298
+ "autoincrement": false
1299
+ },
1300
+ "revision": {
1301
+ "name": "revision",
1302
+ "type": "integer",
1303
+ "primaryKey": false,
1304
+ "notNull": true,
1305
+ "autoincrement": false
1306
+ },
1307
+ "created_at": {
1308
+ "name": "created_at",
1309
+ "type": "text",
1310
+ "primaryKey": false,
1311
+ "notNull": true,
1312
+ "autoincrement": false
1313
+ },
1314
+ "updated_at": {
1315
+ "name": "updated_at",
1316
+ "type": "text",
1317
+ "primaryKey": false,
1318
+ "notNull": true,
1319
+ "autoincrement": false
1320
+ }
1321
+ },
1322
+ "indexes": {
1323
+ "idx_content_plans_updated": {
1324
+ "name": "idx_content_plans_updated",
1325
+ "columns": ["updated_at"],
1326
+ "isUnique": false
1327
+ },
1328
+ "idx_content_plans_identity": {
1329
+ "name": "idx_content_plans_identity",
1330
+ "columns": ["identity_id"],
1331
+ "isUnique": false
1332
+ }
1333
+ },
1334
+ "foreignKeys": {},
1335
+ "compositePrimaryKeys": {},
1336
+ "uniqueConstraints": {},
1337
+ "checkConstraints": {}
1338
+ },
1339
+ "extension_captures": {
1340
+ "name": "extension_captures",
1341
+ "columns": {
1342
+ "id": {
1343
+ "name": "id",
1344
+ "type": "text",
1345
+ "primaryKey": true,
1346
+ "notNull": true,
1347
+ "autoincrement": false
1348
+ },
1349
+ "executor_connection_id": {
1350
+ "name": "executor_connection_id",
1351
+ "type": "text",
1352
+ "primaryKey": false,
1353
+ "notNull": true,
1354
+ "autoincrement": false
1355
+ },
1356
+ "job_id": {
1357
+ "name": "job_id",
1358
+ "type": "text",
1359
+ "primaryKey": false,
1360
+ "notNull": false,
1361
+ "autoincrement": false
1362
+ },
1363
+ "url": {
1364
+ "name": "url",
1365
+ "type": "text",
1366
+ "primaryKey": false,
1367
+ "notNull": true,
1368
+ "autoincrement": false
1369
+ },
1370
+ "status": {
1371
+ "name": "status",
1372
+ "type": "text",
1373
+ "primaryKey": false,
1374
+ "notNull": true,
1375
+ "autoincrement": false
1376
+ },
1377
+ "result": {
1378
+ "name": "result",
1379
+ "type": "text",
1380
+ "primaryKey": false,
1381
+ "notNull": false,
1382
+ "autoincrement": false
1383
+ },
1384
+ "error": {
1385
+ "name": "error",
1386
+ "type": "text",
1387
+ "primaryKey": false,
1388
+ "notNull": false,
1389
+ "autoincrement": false
1390
+ },
1391
+ "created_at": {
1392
+ "name": "created_at",
1393
+ "type": "text",
1394
+ "primaryKey": false,
1395
+ "notNull": true,
1396
+ "autoincrement": false
1397
+ },
1398
+ "updated_at": {
1399
+ "name": "updated_at",
1400
+ "type": "text",
1401
+ "primaryKey": false,
1402
+ "notNull": true,
1403
+ "autoincrement": false
1404
+ }
1405
+ },
1406
+ "indexes": {
1407
+ "idx_extension_captures_executor_status": {
1408
+ "name": "idx_extension_captures_executor_status",
1409
+ "columns": ["executor_connection_id", "status", "updated_at"],
1410
+ "isUnique": false
1411
+ }
1412
+ },
1413
+ "foreignKeys": {},
1414
+ "compositePrimaryKeys": {},
1415
+ "uniqueConstraints": {},
1416
+ "checkConstraints": {}
1417
+ },
1418
+ "identities": {
1419
+ "name": "identities",
1420
+ "columns": {
1421
+ "id": {
1422
+ "name": "id",
1423
+ "type": "text",
1424
+ "primaryKey": true,
1425
+ "notNull": true,
1426
+ "autoincrement": false
1427
+ },
1428
+ "name": {
1429
+ "name": "name",
1430
+ "type": "text",
1431
+ "primaryKey": false,
1432
+ "notNull": true,
1433
+ "autoincrement": false
1434
+ },
1435
+ "enabled": {
1436
+ "name": "enabled",
1437
+ "type": "integer",
1438
+ "primaryKey": false,
1439
+ "notNull": true,
1440
+ "autoincrement": false,
1441
+ "default": true
1442
+ },
1443
+ "positioning": {
1444
+ "name": "positioning",
1445
+ "type": "text",
1446
+ "primaryKey": false,
1447
+ "notNull": true,
1448
+ "autoincrement": false
1449
+ },
1450
+ "audience": {
1451
+ "name": "audience",
1452
+ "type": "text",
1453
+ "primaryKey": false,
1454
+ "notNull": true,
1455
+ "autoincrement": false
1456
+ },
1457
+ "tone": {
1458
+ "name": "tone",
1459
+ "type": "text",
1460
+ "primaryKey": false,
1461
+ "notNull": true,
1462
+ "autoincrement": false
1463
+ },
1464
+ "forbidden_topics": {
1465
+ "name": "forbidden_topics",
1466
+ "type": "text",
1467
+ "primaryKey": false,
1468
+ "notNull": true,
1469
+ "autoincrement": false
1470
+ },
1471
+ "revision": {
1472
+ "name": "revision",
1473
+ "type": "integer",
1474
+ "primaryKey": false,
1475
+ "notNull": true,
1476
+ "autoincrement": false
1477
+ },
1478
+ "created_at": {
1479
+ "name": "created_at",
1480
+ "type": "text",
1481
+ "primaryKey": false,
1482
+ "notNull": true,
1483
+ "autoincrement": false
1484
+ },
1485
+ "updated_at": {
1486
+ "name": "updated_at",
1487
+ "type": "text",
1488
+ "primaryKey": false,
1489
+ "notNull": true,
1490
+ "autoincrement": false
1491
+ }
1492
+ },
1493
+ "indexes": {
1494
+ "idx_identities_updated": {
1495
+ "name": "idx_identities_updated",
1496
+ "columns": ["updated_at"],
1497
+ "isUnique": false
1498
+ }
1499
+ },
1500
+ "foreignKeys": {},
1501
+ "compositePrimaryKeys": {},
1502
+ "uniqueConstraints": {},
1503
+ "checkConstraints": {}
1504
+ },
1505
+ "internal_schema_versions": {
1506
+ "name": "internal_schema_versions",
1507
+ "columns": {
1508
+ "name": {
1509
+ "name": "name",
1510
+ "type": "text",
1511
+ "primaryKey": true,
1512
+ "notNull": true,
1513
+ "autoincrement": false
1514
+ },
1515
+ "version": {
1516
+ "name": "version",
1517
+ "type": "text",
1518
+ "primaryKey": false,
1519
+ "notNull": true,
1520
+ "autoincrement": false
1521
+ },
1522
+ "updated_at": {
1523
+ "name": "updated_at",
1524
+ "type": "text",
1525
+ "primaryKey": false,
1526
+ "notNull": true,
1527
+ "autoincrement": false
1528
+ }
1529
+ },
1530
+ "indexes": {},
1531
+ "foreignKeys": {},
1532
+ "compositePrimaryKeys": {},
1533
+ "uniqueConstraints": {},
1534
+ "checkConstraints": {}
1535
+ },
1536
+ "knowledge_bases": {
1537
+ "name": "knowledge_bases",
1538
+ "columns": {
1539
+ "id": {
1540
+ "name": "id",
1541
+ "type": "text",
1542
+ "primaryKey": true,
1543
+ "notNull": true,
1544
+ "autoincrement": false
1545
+ },
1546
+ "name": {
1547
+ "name": "name",
1548
+ "type": "text",
1549
+ "primaryKey": false,
1550
+ "notNull": true,
1551
+ "autoincrement": false
1552
+ },
1553
+ "enabled": {
1554
+ "name": "enabled",
1555
+ "type": "integer",
1556
+ "primaryKey": false,
1557
+ "notNull": true,
1558
+ "autoincrement": false,
1559
+ "default": true
1560
+ },
1561
+ "revision": {
1562
+ "name": "revision",
1563
+ "type": "integer",
1564
+ "primaryKey": false,
1565
+ "notNull": true,
1566
+ "autoincrement": false
1567
+ },
1568
+ "created_at": {
1569
+ "name": "created_at",
1570
+ "type": "text",
1571
+ "primaryKey": false,
1572
+ "notNull": true,
1573
+ "autoincrement": false
1574
+ },
1575
+ "updated_at": {
1576
+ "name": "updated_at",
1577
+ "type": "text",
1578
+ "primaryKey": false,
1579
+ "notNull": true,
1580
+ "autoincrement": false
1581
+ }
1582
+ },
1583
+ "indexes": {
1584
+ "idx_knowledge_bases_updated": {
1585
+ "name": "idx_knowledge_bases_updated",
1586
+ "columns": ["updated_at"],
1587
+ "isUnique": false
1588
+ }
1589
+ },
1590
+ "foreignKeys": {},
1591
+ "compositePrimaryKeys": {},
1592
+ "uniqueConstraints": {},
1593
+ "checkConstraints": {}
1594
+ },
1595
+ "knowledge_documents": {
1596
+ "name": "knowledge_documents",
1597
+ "columns": {
1598
+ "id": {
1599
+ "name": "id",
1600
+ "type": "text",
1601
+ "primaryKey": false,
1602
+ "notNull": true,
1603
+ "autoincrement": false
1604
+ },
1605
+ "knowledge_base_id": {
1606
+ "name": "knowledge_base_id",
1607
+ "type": "text",
1608
+ "primaryKey": false,
1609
+ "notNull": true,
1610
+ "autoincrement": false
1611
+ },
1612
+ "position": {
1613
+ "name": "position",
1614
+ "type": "integer",
1615
+ "primaryKey": false,
1616
+ "notNull": true,
1617
+ "autoincrement": false
1618
+ },
1619
+ "title": {
1620
+ "name": "title",
1621
+ "type": "text",
1622
+ "primaryKey": false,
1623
+ "notNull": true,
1624
+ "autoincrement": false
1625
+ },
1626
+ "content": {
1627
+ "name": "content",
1628
+ "type": "text",
1629
+ "primaryKey": false,
1630
+ "notNull": true,
1631
+ "autoincrement": false
1632
+ },
1633
+ "file_name": {
1634
+ "name": "file_name",
1635
+ "type": "text",
1636
+ "primaryKey": false,
1637
+ "notNull": false,
1638
+ "autoincrement": false
1639
+ },
1640
+ "media_type": {
1641
+ "name": "media_type",
1642
+ "type": "text",
1643
+ "primaryKey": false,
1644
+ "notNull": false,
1645
+ "autoincrement": false
1646
+ }
1647
+ },
1648
+ "indexes": {
1649
+ "idx_knowledge_documents_kb": {
1650
+ "name": "idx_knowledge_documents_kb",
1651
+ "columns": ["knowledge_base_id", "position"],
1652
+ "isUnique": false
1653
+ }
1654
+ },
1655
+ "foreignKeys": {
1656
+ "knowledge_documents_knowledge_base_id_knowledge_bases_id_fk": {
1657
+ "name": "knowledge_documents_knowledge_base_id_knowledge_bases_id_fk",
1658
+ "tableFrom": "knowledge_documents",
1659
+ "tableTo": "knowledge_bases",
1660
+ "columnsFrom": ["knowledge_base_id"],
1661
+ "columnsTo": ["id"],
1662
+ "onDelete": "cascade",
1663
+ "onUpdate": "no action"
1664
+ }
1665
+ },
1666
+ "compositePrimaryKeys": {
1667
+ "knowledge_documents_knowledge_base_id_id_pk": {
1668
+ "columns": ["knowledge_base_id", "id"],
1669
+ "name": "knowledge_documents_knowledge_base_id_id_pk"
1670
+ }
1671
+ },
1672
+ "uniqueConstraints": {},
1673
+ "checkConstraints": {}
1674
+ },
1675
+ "publications": {
1676
+ "name": "publications",
1677
+ "columns": {
1678
+ "id": {
1679
+ "name": "id",
1680
+ "type": "text",
1681
+ "primaryKey": true,
1682
+ "notNull": true,
1683
+ "autoincrement": false
1684
+ },
1685
+ "job_id": {
1686
+ "name": "job_id",
1687
+ "type": "text",
1688
+ "primaryKey": false,
1689
+ "notNull": true,
1690
+ "autoincrement": false
1691
+ },
1692
+ "package_id": {
1693
+ "name": "package_id",
1694
+ "type": "text",
1695
+ "primaryKey": false,
1696
+ "notNull": true,
1697
+ "autoincrement": false
1698
+ },
1699
+ "status": {
1700
+ "name": "status",
1701
+ "type": "text",
1702
+ "primaryKey": false,
1703
+ "notNull": true,
1704
+ "autoincrement": false
1705
+ },
1706
+ "batch": {
1707
+ "name": "batch",
1708
+ "type": "text",
1709
+ "primaryKey": false,
1710
+ "notNull": true,
1711
+ "autoincrement": false
1712
+ },
1713
+ "revision": {
1714
+ "name": "revision",
1715
+ "type": "integer",
1716
+ "primaryKey": false,
1717
+ "notNull": true,
1718
+ "autoincrement": false
1719
+ },
1720
+ "created_at": {
1721
+ "name": "created_at",
1722
+ "type": "text",
1723
+ "primaryKey": false,
1724
+ "notNull": true,
1725
+ "autoincrement": false
1726
+ },
1727
+ "updated_at": {
1728
+ "name": "updated_at",
1729
+ "type": "text",
1730
+ "primaryKey": false,
1731
+ "notNull": true,
1732
+ "autoincrement": false
1733
+ }
1734
+ },
1735
+ "indexes": {
1736
+ "idx_publications_updated": {
1737
+ "name": "idx_publications_updated",
1738
+ "columns": ["updated_at"],
1739
+ "isUnique": false
1740
+ },
1741
+ "idx_publications_package": {
1742
+ "name": "idx_publications_package",
1743
+ "columns": ["package_id"],
1744
+ "isUnique": false
1745
+ }
1746
+ },
1747
+ "foreignKeys": {},
1748
+ "compositePrimaryKeys": {},
1749
+ "uniqueConstraints": {},
1750
+ "checkConstraints": {}
1751
+ },
1752
+ "publish_deliveries": {
1753
+ "name": "publish_deliveries",
1754
+ "columns": {
1755
+ "id": {
1756
+ "name": "id",
1757
+ "type": "text",
1758
+ "primaryKey": true,
1759
+ "notNull": true,
1760
+ "autoincrement": false
1761
+ },
1762
+ "job_id": {
1763
+ "name": "job_id",
1764
+ "type": "text",
1765
+ "primaryKey": false,
1766
+ "notNull": true,
1767
+ "autoincrement": false
1768
+ },
1769
+ "package_id": {
1770
+ "name": "package_id",
1771
+ "type": "text",
1772
+ "primaryKey": false,
1773
+ "notNull": true,
1774
+ "autoincrement": false
1775
+ },
1776
+ "destination_id": {
1777
+ "name": "destination_id",
1778
+ "type": "text",
1779
+ "primaryKey": false,
1780
+ "notNull": true,
1781
+ "autoincrement": false
1782
+ },
1783
+ "account_id": {
1784
+ "name": "account_id",
1785
+ "type": "text",
1786
+ "primaryKey": false,
1787
+ "notNull": true,
1788
+ "autoincrement": false
1789
+ },
1790
+ "account_name": {
1791
+ "name": "account_name",
1792
+ "type": "text",
1793
+ "primaryKey": false,
1794
+ "notNull": false,
1795
+ "autoincrement": false
1796
+ },
1797
+ "executor_connection_id": {
1798
+ "name": "executor_connection_id",
1799
+ "type": "text",
1800
+ "primaryKey": false,
1801
+ "notNull": true,
1802
+ "autoincrement": false
1803
+ },
1804
+ "channel": {
1805
+ "name": "channel",
1806
+ "type": "text",
1807
+ "primaryKey": false,
1808
+ "notNull": true,
1809
+ "autoincrement": false
1810
+ },
1811
+ "publication_type": {
1812
+ "name": "publication_type",
1813
+ "type": "text",
1814
+ "primaryKey": false,
1815
+ "notNull": true,
1816
+ "autoincrement": false
1817
+ },
1818
+ "idempotency_key": {
1819
+ "name": "idempotency_key",
1820
+ "type": "text",
1821
+ "primaryKey": false,
1822
+ "notNull": true,
1823
+ "autoincrement": false
1824
+ },
1825
+ "status": {
1826
+ "name": "status",
1827
+ "type": "text",
1828
+ "primaryKey": false,
1829
+ "notNull": true,
1830
+ "autoincrement": false
1831
+ },
1832
+ "lease_until": {
1833
+ "name": "lease_until",
1834
+ "type": "text",
1835
+ "primaryKey": false,
1836
+ "notNull": false,
1837
+ "autoincrement": false
1838
+ },
1839
+ "payload": {
1840
+ "name": "payload",
1841
+ "type": "text",
1842
+ "primaryKey": false,
1843
+ "notNull": true,
1844
+ "autoincrement": false
1845
+ },
1846
+ "prepared": {
1847
+ "name": "prepared",
1848
+ "type": "text",
1849
+ "primaryKey": false,
1850
+ "notNull": true,
1851
+ "autoincrement": false
1852
+ },
1853
+ "receipt": {
1854
+ "name": "receipt",
1855
+ "type": "text",
1856
+ "primaryKey": false,
1857
+ "notNull": false,
1858
+ "autoincrement": false
1859
+ },
1860
+ "error": {
1861
+ "name": "error",
1862
+ "type": "text",
1863
+ "primaryKey": false,
1864
+ "notNull": false,
1865
+ "autoincrement": false
1866
+ },
1867
+ "created_at": {
1868
+ "name": "created_at",
1869
+ "type": "text",
1870
+ "primaryKey": false,
1871
+ "notNull": true,
1872
+ "autoincrement": false
1873
+ },
1874
+ "updated_at": {
1875
+ "name": "updated_at",
1876
+ "type": "text",
1877
+ "primaryKey": false,
1878
+ "notNull": true,
1879
+ "autoincrement": false
1880
+ }
1881
+ },
1882
+ "indexes": {
1883
+ "uq_publish_deliveries_idempotency": {
1884
+ "name": "uq_publish_deliveries_idempotency",
1885
+ "columns": ["idempotency_key"],
1886
+ "isUnique": true
1887
+ },
1888
+ "idx_publish_deliveries_executor_status": {
1889
+ "name": "idx_publish_deliveries_executor_status",
1890
+ "columns": ["executor_connection_id", "status", "updated_at"],
1891
+ "isUnique": false
1892
+ },
1893
+ "idx_publish_deliveries_package_dest": {
1894
+ "name": "idx_publish_deliveries_package_dest",
1895
+ "columns": ["package_id", "destination_id"],
1896
+ "isUnique": false
1897
+ }
1898
+ },
1899
+ "foreignKeys": {},
1900
+ "compositePrimaryKeys": {},
1901
+ "uniqueConstraints": {},
1902
+ "checkConstraints": {}
1903
+ },
1904
+ "publish_executors": {
1905
+ "name": "publish_executors",
1906
+ "columns": {
1907
+ "connection_id": {
1908
+ "name": "connection_id",
1909
+ "type": "text",
1910
+ "primaryKey": true,
1911
+ "notNull": true,
1912
+ "autoincrement": false
1913
+ },
1914
+ "node_name": {
1915
+ "name": "node_name",
1916
+ "type": "text",
1917
+ "primaryKey": false,
1918
+ "notNull": true,
1919
+ "autoincrement": false
1920
+ },
1921
+ "extension_version": {
1922
+ "name": "extension_version",
1923
+ "type": "text",
1924
+ "primaryKey": false,
1925
+ "notNull": false,
1926
+ "autoincrement": false
1927
+ },
1928
+ "platforms": {
1929
+ "name": "platforms",
1930
+ "type": "text",
1931
+ "primaryKey": false,
1932
+ "notNull": true,
1933
+ "autoincrement": false
1934
+ },
1935
+ "accounts": {
1936
+ "name": "accounts",
1937
+ "type": "text",
1938
+ "primaryKey": false,
1939
+ "notNull": false,
1940
+ "autoincrement": false
1941
+ },
1942
+ "last_seen_at": {
1943
+ "name": "last_seen_at",
1944
+ "type": "text",
1945
+ "primaryKey": false,
1946
+ "notNull": true,
1947
+ "autoincrement": false
1948
+ },
1949
+ "created_at": {
1950
+ "name": "created_at",
1951
+ "type": "text",
1952
+ "primaryKey": false,
1953
+ "notNull": true,
1954
+ "autoincrement": false
1955
+ },
1956
+ "updated_at": {
1957
+ "name": "updated_at",
1958
+ "type": "text",
1959
+ "primaryKey": false,
1960
+ "notNull": true,
1961
+ "autoincrement": false
1962
+ }
1963
+ },
1964
+ "indexes": {},
1965
+ "foreignKeys": {},
1966
+ "compositePrimaryKeys": {},
1967
+ "uniqueConstraints": {},
1968
+ "checkConstraints": {}
1969
+ },
1970
+ "review_requests": {
1971
+ "name": "review_requests",
1972
+ "columns": {
1973
+ "id": {
1974
+ "name": "id",
1975
+ "type": "text",
1976
+ "primaryKey": true,
1977
+ "notNull": true,
1978
+ "autoincrement": false
1979
+ },
1980
+ "job_id": {
1981
+ "name": "job_id",
1982
+ "type": "text",
1983
+ "primaryKey": false,
1984
+ "notNull": true,
1985
+ "autoincrement": false
1986
+ },
1987
+ "plan_id": {
1988
+ "name": "plan_id",
1989
+ "type": "text",
1990
+ "primaryKey": false,
1991
+ "notNull": true,
1992
+ "autoincrement": false
1993
+ },
1994
+ "status": {
1995
+ "name": "status",
1996
+ "type": "text",
1997
+ "primaryKey": false,
1998
+ "notNull": true,
1999
+ "autoincrement": false
2000
+ },
2001
+ "request": {
2002
+ "name": "request",
2003
+ "type": "text",
2004
+ "primaryKey": false,
2005
+ "notNull": true,
2006
+ "autoincrement": false
2007
+ },
2008
+ "resolved_package_id": {
2009
+ "name": "resolved_package_id",
2010
+ "type": "text",
2011
+ "primaryKey": false,
2012
+ "notNull": false,
2013
+ "autoincrement": false
2014
+ },
2015
+ "revision": {
2016
+ "name": "revision",
2017
+ "type": "integer",
2018
+ "primaryKey": false,
2019
+ "notNull": true,
2020
+ "autoincrement": false
2021
+ },
2022
+ "created_at": {
2023
+ "name": "created_at",
2024
+ "type": "text",
2025
+ "primaryKey": false,
2026
+ "notNull": true,
2027
+ "autoincrement": false
2028
+ },
2029
+ "updated_at": {
2030
+ "name": "updated_at",
2031
+ "type": "text",
2032
+ "primaryKey": false,
2033
+ "notNull": true,
2034
+ "autoincrement": false
2035
+ }
2036
+ },
2037
+ "indexes": {
2038
+ "idx_review_requests_updated": {
2039
+ "name": "idx_review_requests_updated",
2040
+ "columns": ["updated_at"],
2041
+ "isUnique": false
2042
+ }
2043
+ },
2044
+ "foreignKeys": {},
2045
+ "compositePrimaryKeys": {},
2046
+ "uniqueConstraints": {},
2047
+ "checkConstraints": {}
2048
+ },
2049
+ "runtime_jobs": {
2050
+ "name": "runtime_jobs",
2051
+ "columns": {
2052
+ "id": {
2053
+ "name": "id",
2054
+ "type": "text",
2055
+ "primaryKey": true,
2056
+ "notNull": true,
2057
+ "autoincrement": false
2058
+ },
2059
+ "type": {
2060
+ "name": "type",
2061
+ "type": "text",
2062
+ "primaryKey": false,
2063
+ "notNull": true,
2064
+ "autoincrement": false
2065
+ },
2066
+ "status": {
2067
+ "name": "status",
2068
+ "type": "text",
2069
+ "primaryKey": false,
2070
+ "notNull": true,
2071
+ "autoincrement": false
2072
+ },
2073
+ "data": {
2074
+ "name": "data",
2075
+ "type": "text",
2076
+ "primaryKey": false,
2077
+ "notNull": true,
2078
+ "autoincrement": false
2079
+ },
2080
+ "created_at": {
2081
+ "name": "created_at",
2082
+ "type": "text",
2083
+ "primaryKey": false,
2084
+ "notNull": true,
2085
+ "autoincrement": false
2086
+ },
2087
+ "updated_at": {
2088
+ "name": "updated_at",
2089
+ "type": "text",
2090
+ "primaryKey": false,
2091
+ "notNull": true,
2092
+ "autoincrement": false
2093
+ }
2094
+ },
2095
+ "indexes": {
2096
+ "idx_runtime_jobs_type_created": {
2097
+ "name": "idx_runtime_jobs_type_created",
2098
+ "columns": ["type", "created_at"],
2099
+ "isUnique": false
2100
+ }
2101
+ },
2102
+ "foreignKeys": {},
2103
+ "compositePrimaryKeys": {},
2104
+ "uniqueConstraints": {},
2105
+ "checkConstraints": {}
2106
+ },
2107
+ "runtime_run_activities": {
2108
+ "name": "runtime_run_activities",
2109
+ "columns": {
2110
+ "id": {
2111
+ "name": "id",
2112
+ "type": "text",
2113
+ "primaryKey": true,
2114
+ "notNull": true,
2115
+ "autoincrement": false
2116
+ },
2117
+ "run_id": {
2118
+ "name": "run_id",
2119
+ "type": "text",
2120
+ "primaryKey": false,
2121
+ "notNull": true,
2122
+ "autoincrement": false
2123
+ },
2124
+ "session_id": {
2125
+ "name": "session_id",
2126
+ "type": "text",
2127
+ "primaryKey": false,
2128
+ "notNull": true,
2129
+ "autoincrement": false
2130
+ },
2131
+ "sequence": {
2132
+ "name": "sequence",
2133
+ "type": "integer",
2134
+ "primaryKey": false,
2135
+ "notNull": true,
2136
+ "autoincrement": false
2137
+ },
2138
+ "activity_key": {
2139
+ "name": "activity_key",
2140
+ "type": "text",
2141
+ "primaryKey": false,
2142
+ "notNull": true,
2143
+ "autoincrement": false
2144
+ },
2145
+ "kind": {
2146
+ "name": "kind",
2147
+ "type": "text",
2148
+ "primaryKey": false,
2149
+ "notNull": true,
2150
+ "autoincrement": false
2151
+ },
2152
+ "status": {
2153
+ "name": "status",
2154
+ "type": "text",
2155
+ "primaryKey": false,
2156
+ "notNull": true,
2157
+ "autoincrement": false
2158
+ },
2159
+ "data": {
2160
+ "name": "data",
2161
+ "type": "text",
2162
+ "primaryKey": false,
2163
+ "notNull": true,
2164
+ "autoincrement": false
2165
+ },
2166
+ "updated_at": {
2167
+ "name": "updated_at",
2168
+ "type": "text",
2169
+ "primaryKey": false,
2170
+ "notNull": true,
2171
+ "autoincrement": false
2172
+ }
2173
+ },
2174
+ "indexes": {
2175
+ "uq_runtime_run_activities_seq": {
2176
+ "name": "uq_runtime_run_activities_seq",
2177
+ "columns": ["run_id", "sequence"],
2178
+ "isUnique": true
2179
+ },
2180
+ "uq_runtime_run_activities_key": {
2181
+ "name": "uq_runtime_run_activities_key",
2182
+ "columns": ["run_id", "activity_key"],
2183
+ "isUnique": true
2184
+ },
2185
+ "idx_runtime_run_activities_session": {
2186
+ "name": "idx_runtime_run_activities_session",
2187
+ "columns": ["run_id", "session_id", "sequence"],
2188
+ "isUnique": false
2189
+ }
2190
+ },
2191
+ "foreignKeys": {
2192
+ "runtime_run_activities_run_id_runtime_runs_id_fk": {
2193
+ "name": "runtime_run_activities_run_id_runtime_runs_id_fk",
2194
+ "tableFrom": "runtime_run_activities",
2195
+ "tableTo": "runtime_runs",
2196
+ "columnsFrom": ["run_id"],
2197
+ "columnsTo": ["id"],
2198
+ "onDelete": "cascade",
2199
+ "onUpdate": "no action"
2200
+ },
2201
+ "runtime_run_activities_session_id_runtime_run_sessions_id_fk": {
2202
+ "name": "runtime_run_activities_session_id_runtime_run_sessions_id_fk",
2203
+ "tableFrom": "runtime_run_activities",
2204
+ "tableTo": "runtime_run_sessions",
2205
+ "columnsFrom": ["session_id"],
2206
+ "columnsTo": ["id"],
2207
+ "onDelete": "cascade",
2208
+ "onUpdate": "no action"
2209
+ }
2210
+ },
2211
+ "compositePrimaryKeys": {},
2212
+ "uniqueConstraints": {},
2213
+ "checkConstraints": {}
2214
+ },
2215
+ "runtime_run_sessions": {
2216
+ "name": "runtime_run_sessions",
2217
+ "columns": {
2218
+ "id": {
2219
+ "name": "id",
2220
+ "type": "text",
2221
+ "primaryKey": true,
2222
+ "notNull": true,
2223
+ "autoincrement": false
2224
+ },
2225
+ "run_id": {
2226
+ "name": "run_id",
2227
+ "type": "text",
2228
+ "primaryKey": false,
2229
+ "notNull": true,
2230
+ "autoincrement": false
2231
+ },
2232
+ "kind": {
2233
+ "name": "kind",
2234
+ "type": "text",
2235
+ "primaryKey": false,
2236
+ "notNull": true,
2237
+ "autoincrement": false
2238
+ },
2239
+ "status": {
2240
+ "name": "status",
2241
+ "type": "text",
2242
+ "primaryKey": false,
2243
+ "notNull": true,
2244
+ "autoincrement": false
2245
+ },
2246
+ "destination_id": {
2247
+ "name": "destination_id",
2248
+ "type": "text",
2249
+ "primaryKey": false,
2250
+ "notNull": false,
2251
+ "autoincrement": false
2252
+ },
2253
+ "data": {
2254
+ "name": "data",
2255
+ "type": "text",
2256
+ "primaryKey": false,
2257
+ "notNull": true,
2258
+ "autoincrement": false
2259
+ },
2260
+ "created_at": {
2261
+ "name": "created_at",
2262
+ "type": "text",
2263
+ "primaryKey": false,
2264
+ "notNull": true,
2265
+ "autoincrement": false
2266
+ },
2267
+ "updated_at": {
2268
+ "name": "updated_at",
2269
+ "type": "text",
2270
+ "primaryKey": false,
2271
+ "notNull": true,
2272
+ "autoincrement": false
2273
+ }
2274
+ },
2275
+ "indexes": {
2276
+ "idx_runtime_run_sessions_run": {
2277
+ "name": "idx_runtime_run_sessions_run",
2278
+ "columns": ["run_id", "created_at"],
2279
+ "isUnique": false
2280
+ }
2281
+ },
2282
+ "foreignKeys": {
2283
+ "runtime_run_sessions_run_id_runtime_runs_id_fk": {
2284
+ "name": "runtime_run_sessions_run_id_runtime_runs_id_fk",
2285
+ "tableFrom": "runtime_run_sessions",
2286
+ "tableTo": "runtime_runs",
2287
+ "columnsFrom": ["run_id"],
2288
+ "columnsTo": ["id"],
2289
+ "onDelete": "cascade",
2290
+ "onUpdate": "no action"
2291
+ }
2292
+ },
2293
+ "compositePrimaryKeys": {},
2294
+ "uniqueConstraints": {},
2295
+ "checkConstraints": {}
2296
+ },
2297
+ "runtime_runs": {
2298
+ "name": "runtime_runs",
2299
+ "columns": {
2300
+ "id": {
2301
+ "name": "id",
2302
+ "type": "text",
2303
+ "primaryKey": true,
2304
+ "notNull": true,
2305
+ "autoincrement": false
2306
+ },
2307
+ "kind": {
2308
+ "name": "kind",
2309
+ "type": "text",
2310
+ "primaryKey": false,
2311
+ "notNull": true,
2312
+ "autoincrement": false
2313
+ },
2314
+ "status": {
2315
+ "name": "status",
2316
+ "type": "text",
2317
+ "primaryKey": false,
2318
+ "notNull": true,
2319
+ "autoincrement": false
2320
+ },
2321
+ "plan_id": {
2322
+ "name": "plan_id",
2323
+ "type": "text",
2324
+ "primaryKey": false,
2325
+ "notNull": false,
2326
+ "autoincrement": false
2327
+ },
2328
+ "package_id": {
2329
+ "name": "package_id",
2330
+ "type": "text",
2331
+ "primaryKey": false,
2332
+ "notNull": false,
2333
+ "autoincrement": false
2334
+ },
2335
+ "data": {
2336
+ "name": "data",
2337
+ "type": "text",
2338
+ "primaryKey": false,
2339
+ "notNull": true,
2340
+ "autoincrement": false
2341
+ },
2342
+ "created_at": {
2343
+ "name": "created_at",
2344
+ "type": "text",
2345
+ "primaryKey": false,
2346
+ "notNull": true,
2347
+ "autoincrement": false
2348
+ },
2349
+ "updated_at": {
2350
+ "name": "updated_at",
2351
+ "type": "text",
2352
+ "primaryKey": false,
2353
+ "notNull": true,
2354
+ "autoincrement": false
2355
+ }
2356
+ },
2357
+ "indexes": {
2358
+ "idx_runtime_runs_created": {
2359
+ "name": "idx_runtime_runs_created",
2360
+ "columns": ["created_at"],
2361
+ "isUnique": false
2362
+ },
2363
+ "idx_runtime_runs_plan_created": {
2364
+ "name": "idx_runtime_runs_plan_created",
2365
+ "columns": ["plan_id", "created_at"],
2366
+ "isUnique": false
2367
+ }
2368
+ },
2369
+ "foreignKeys": {},
2370
+ "compositePrimaryKeys": {},
2371
+ "uniqueConstraints": {},
2372
+ "checkConstraints": {}
2373
+ },
2374
+ "runtime_tasks": {
2375
+ "name": "runtime_tasks",
2376
+ "columns": {
2377
+ "job_id": {
2378
+ "name": "job_id",
2379
+ "type": "text",
2380
+ "primaryKey": false,
2381
+ "notNull": true,
2382
+ "autoincrement": false
2383
+ },
2384
+ "task_id": {
2385
+ "name": "task_id",
2386
+ "type": "text",
2387
+ "primaryKey": false,
2388
+ "notNull": true,
2389
+ "autoincrement": false
2390
+ },
2391
+ "status": {
2392
+ "name": "status",
2393
+ "type": "text",
2394
+ "primaryKey": false,
2395
+ "notNull": true,
2396
+ "autoincrement": false
2397
+ },
2398
+ "fingerprint": {
2399
+ "name": "fingerprint",
2400
+ "type": "text",
2401
+ "primaryKey": false,
2402
+ "notNull": true,
2403
+ "autoincrement": false
2404
+ },
2405
+ "data": {
2406
+ "name": "data",
2407
+ "type": "text",
2408
+ "primaryKey": false,
2409
+ "notNull": true,
2410
+ "autoincrement": false
2411
+ },
2412
+ "updated_at": {
2413
+ "name": "updated_at",
2414
+ "type": "text",
2415
+ "primaryKey": false,
2416
+ "notNull": true,
2417
+ "autoincrement": false
2418
+ }
2419
+ },
2420
+ "indexes": {
2421
+ "idx_runtime_tasks_job": {
2422
+ "name": "idx_runtime_tasks_job",
2423
+ "columns": ["job_id", "updated_at"],
2424
+ "isUnique": false
2425
+ }
2426
+ },
2427
+ "foreignKeys": {},
2428
+ "compositePrimaryKeys": {
2429
+ "runtime_tasks_job_id_task_id_pk": {
2430
+ "columns": ["job_id", "task_id"],
2431
+ "name": "runtime_tasks_job_id_task_id_pk"
2432
+ }
2433
+ },
2434
+ "uniqueConstraints": {},
2435
+ "checkConstraints": {}
2436
+ },
2437
+ "source_collections": {
2438
+ "name": "source_collections",
2439
+ "columns": {
2440
+ "id": {
2441
+ "name": "id",
2442
+ "type": "text",
2443
+ "primaryKey": true,
2444
+ "notNull": true,
2445
+ "autoincrement": false
2446
+ },
2447
+ "name": {
2448
+ "name": "name",
2449
+ "type": "text",
2450
+ "primaryKey": false,
2451
+ "notNull": true,
2452
+ "autoincrement": false
2453
+ },
2454
+ "enabled": {
2455
+ "name": "enabled",
2456
+ "type": "integer",
2457
+ "primaryKey": false,
2458
+ "notNull": true,
2459
+ "autoincrement": false,
2460
+ "default": true
2461
+ },
2462
+ "revision": {
2463
+ "name": "revision",
2464
+ "type": "integer",
2465
+ "primaryKey": false,
2466
+ "notNull": true,
2467
+ "autoincrement": false
2468
+ },
2469
+ "created_at": {
2470
+ "name": "created_at",
2471
+ "type": "text",
2472
+ "primaryKey": false,
2473
+ "notNull": true,
2474
+ "autoincrement": false
2475
+ },
2476
+ "updated_at": {
2477
+ "name": "updated_at",
2478
+ "type": "text",
2479
+ "primaryKey": false,
2480
+ "notNull": true,
2481
+ "autoincrement": false
2482
+ }
2483
+ },
2484
+ "indexes": {
2485
+ "idx_source_collections_updated": {
2486
+ "name": "idx_source_collections_updated",
2487
+ "columns": ["updated_at"],
2488
+ "isUnique": false
2489
+ }
2490
+ },
2491
+ "foreignKeys": {},
2492
+ "compositePrimaryKeys": {},
2493
+ "uniqueConstraints": {},
2494
+ "checkConstraints": {}
2495
+ },
2496
+ "source_items": {
2497
+ "name": "source_items",
2498
+ "columns": {
2499
+ "id": {
2500
+ "name": "id",
2501
+ "type": "text",
2502
+ "primaryKey": false,
2503
+ "notNull": true,
2504
+ "autoincrement": false
2505
+ },
2506
+ "collection_id": {
2507
+ "name": "collection_id",
2508
+ "type": "text",
2509
+ "primaryKey": false,
2510
+ "notNull": true,
2511
+ "autoincrement": false
2512
+ },
2513
+ "position": {
2514
+ "name": "position",
2515
+ "type": "integer",
2516
+ "primaryKey": false,
2517
+ "notNull": true,
2518
+ "autoincrement": false
2519
+ },
2520
+ "kind": {
2521
+ "name": "kind",
2522
+ "type": "text",
2523
+ "primaryKey": false,
2524
+ "notNull": true,
2525
+ "autoincrement": false
2526
+ },
2527
+ "title": {
2528
+ "name": "title",
2529
+ "type": "text",
2530
+ "primaryKey": false,
2531
+ "notNull": false,
2532
+ "autoincrement": false
2533
+ },
2534
+ "enabled": {
2535
+ "name": "enabled",
2536
+ "type": "integer",
2537
+ "primaryKey": false,
2538
+ "notNull": true,
2539
+ "autoincrement": false,
2540
+ "default": true
2541
+ },
2542
+ "url": {
2543
+ "name": "url",
2544
+ "type": "text",
2545
+ "primaryKey": false,
2546
+ "notNull": false,
2547
+ "autoincrement": false
2548
+ },
2549
+ "query": {
2550
+ "name": "query",
2551
+ "type": "text",
2552
+ "primaryKey": false,
2553
+ "notNull": false,
2554
+ "autoincrement": false
2555
+ },
2556
+ "config": {
2557
+ "name": "config",
2558
+ "type": "text",
2559
+ "primaryKey": false,
2560
+ "notNull": false,
2561
+ "autoincrement": false
2562
+ }
2563
+ },
2564
+ "indexes": {
2565
+ "idx_source_items_collection": {
2566
+ "name": "idx_source_items_collection",
2567
+ "columns": ["collection_id", "position"],
2568
+ "isUnique": false
2569
+ }
2570
+ },
2571
+ "foreignKeys": {
2572
+ "source_items_collection_id_source_collections_id_fk": {
2573
+ "name": "source_items_collection_id_source_collections_id_fk",
2574
+ "tableFrom": "source_items",
2575
+ "tableTo": "source_collections",
2576
+ "columnsFrom": ["collection_id"],
2577
+ "columnsTo": ["id"],
2578
+ "onDelete": "cascade",
2579
+ "onUpdate": "no action"
2580
+ }
2581
+ },
2582
+ "compositePrimaryKeys": {
2583
+ "source_items_collection_id_id_pk": {
2584
+ "columns": ["collection_id", "id"],
2585
+ "name": "source_items_collection_id_id_pk"
2586
+ }
2587
+ },
2588
+ "uniqueConstraints": {},
2589
+ "checkConstraints": {}
2590
+ },
2591
+ "writing_styles": {
2592
+ "name": "writing_styles",
2593
+ "columns": {
2594
+ "id": {
2595
+ "name": "id",
2596
+ "type": "text",
2597
+ "primaryKey": true,
2598
+ "notNull": true,
2599
+ "autoincrement": false
2600
+ },
2601
+ "name": {
2602
+ "name": "name",
2603
+ "type": "text",
2604
+ "primaryKey": false,
2605
+ "notNull": true,
2606
+ "autoincrement": false
2607
+ },
2608
+ "description": {
2609
+ "name": "description",
2610
+ "type": "text",
2611
+ "primaryKey": false,
2612
+ "notNull": false,
2613
+ "autoincrement": false
2614
+ },
2615
+ "enabled": {
2616
+ "name": "enabled",
2617
+ "type": "integer",
2618
+ "primaryKey": false,
2619
+ "notNull": true,
2620
+ "autoincrement": false,
2621
+ "default": true
2622
+ },
2623
+ "channel": {
2624
+ "name": "channel",
2625
+ "type": "text",
2626
+ "primaryKey": false,
2627
+ "notNull": false,
2628
+ "autoincrement": false
2629
+ },
2630
+ "rules": {
2631
+ "name": "rules",
2632
+ "type": "text",
2633
+ "primaryKey": false,
2634
+ "notNull": true,
2635
+ "autoincrement": false
2636
+ },
2637
+ "revision": {
2638
+ "name": "revision",
2639
+ "type": "integer",
2640
+ "primaryKey": false,
2641
+ "notNull": true,
2642
+ "autoincrement": false
2643
+ },
2644
+ "created_at": {
2645
+ "name": "created_at",
2646
+ "type": "text",
2647
+ "primaryKey": false,
2648
+ "notNull": true,
2649
+ "autoincrement": false
2650
+ },
2651
+ "updated_at": {
2652
+ "name": "updated_at",
2653
+ "type": "text",
2654
+ "primaryKey": false,
2655
+ "notNull": true,
2656
+ "autoincrement": false
2657
+ }
2658
+ },
2659
+ "indexes": {
2660
+ "idx_writing_styles_updated": {
2661
+ "name": "idx_writing_styles_updated",
2662
+ "columns": ["updated_at"],
2663
+ "isUnique": false
2664
+ },
2665
+ "idx_writing_styles_channel": {
2666
+ "name": "idx_writing_styles_channel",
2667
+ "columns": ["channel"],
2668
+ "isUnique": false
2669
+ }
2670
+ },
2671
+ "foreignKeys": {},
2672
+ "compositePrimaryKeys": {},
2673
+ "uniqueConstraints": {},
2674
+ "checkConstraints": {}
2675
+ }
2676
+ },
2677
+ "views": {},
2678
+ "enums": {},
2679
+ "_meta": {
2680
+ "schemas": {},
2681
+ "tables": {},
2682
+ "columns": {}
2683
+ },
2684
+ "internal": {
2685
+ "indexes": {}
2686
+ }
2687
+ }