@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,2805 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "a5f29169-6e1d-4211-a945-1f19d197f324",
5
+ "prevId": "f494a887-29d9-4dc8-b678-d0d845354fe6",
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
+ "embedding": {
1113
+ "name": "embedding",
1114
+ "type": "text",
1115
+ "primaryKey": false,
1116
+ "notNull": false,
1117
+ "autoincrement": false
1118
+ },
1119
+ "job_id": {
1120
+ "name": "job_id",
1121
+ "type": "text",
1122
+ "primaryKey": false,
1123
+ "notNull": true,
1124
+ "autoincrement": false
1125
+ },
1126
+ "package_id": {
1127
+ "name": "package_id",
1128
+ "type": "text",
1129
+ "primaryKey": false,
1130
+ "notNull": true,
1131
+ "autoincrement": false
1132
+ },
1133
+ "consumed_at": {
1134
+ "name": "consumed_at",
1135
+ "type": "text",
1136
+ "primaryKey": false,
1137
+ "notNull": true,
1138
+ "autoincrement": false
1139
+ }
1140
+ },
1141
+ "indexes": {
1142
+ "uq_consumed_sources_scope_url": {
1143
+ "name": "uq_consumed_sources_scope_url",
1144
+ "columns": ["scope_kind", "scope_id", "url_hash"],
1145
+ "isUnique": true
1146
+ },
1147
+ "idx_consumed_sources_scope_time": {
1148
+ "name": "idx_consumed_sources_scope_time",
1149
+ "columns": ["scope_kind", "scope_id", "consumed_at"],
1150
+ "isUnique": false
1151
+ }
1152
+ },
1153
+ "foreignKeys": {},
1154
+ "compositePrimaryKeys": {},
1155
+ "uniqueConstraints": {},
1156
+ "checkConstraints": {}
1157
+ },
1158
+ "content_packages": {
1159
+ "name": "content_packages",
1160
+ "columns": {
1161
+ "id": {
1162
+ "name": "id",
1163
+ "type": "text",
1164
+ "primaryKey": true,
1165
+ "notNull": true,
1166
+ "autoincrement": false
1167
+ },
1168
+ "job_id": {
1169
+ "name": "job_id",
1170
+ "type": "text",
1171
+ "primaryKey": false,
1172
+ "notNull": true,
1173
+ "autoincrement": false
1174
+ },
1175
+ "plan_id": {
1176
+ "name": "plan_id",
1177
+ "type": "text",
1178
+ "primaryKey": false,
1179
+ "notNull": true,
1180
+ "autoincrement": false
1181
+ },
1182
+ "content_package": {
1183
+ "name": "content_package",
1184
+ "type": "text",
1185
+ "primaryKey": false,
1186
+ "notNull": true,
1187
+ "autoincrement": false
1188
+ },
1189
+ "revision": {
1190
+ "name": "revision",
1191
+ "type": "integer",
1192
+ "primaryKey": false,
1193
+ "notNull": true,
1194
+ "autoincrement": false
1195
+ },
1196
+ "created_at": {
1197
+ "name": "created_at",
1198
+ "type": "text",
1199
+ "primaryKey": false,
1200
+ "notNull": true,
1201
+ "autoincrement": false
1202
+ },
1203
+ "updated_at": {
1204
+ "name": "updated_at",
1205
+ "type": "text",
1206
+ "primaryKey": false,
1207
+ "notNull": true,
1208
+ "autoincrement": false
1209
+ }
1210
+ },
1211
+ "indexes": {
1212
+ "idx_content_packages_updated": {
1213
+ "name": "idx_content_packages_updated",
1214
+ "columns": ["updated_at"],
1215
+ "isUnique": false
1216
+ },
1217
+ "idx_content_packages_plan": {
1218
+ "name": "idx_content_packages_plan",
1219
+ "columns": ["plan_id"],
1220
+ "isUnique": false
1221
+ },
1222
+ "idx_content_packages_job": {
1223
+ "name": "idx_content_packages_job",
1224
+ "columns": ["job_id"],
1225
+ "isUnique": false
1226
+ }
1227
+ },
1228
+ "foreignKeys": {},
1229
+ "compositePrimaryKeys": {},
1230
+ "uniqueConstraints": {},
1231
+ "checkConstraints": {}
1232
+ },
1233
+ "content_plans": {
1234
+ "name": "content_plans",
1235
+ "columns": {
1236
+ "id": {
1237
+ "name": "id",
1238
+ "type": "text",
1239
+ "primaryKey": true,
1240
+ "notNull": true,
1241
+ "autoincrement": false
1242
+ },
1243
+ "name": {
1244
+ "name": "name",
1245
+ "type": "text",
1246
+ "primaryKey": false,
1247
+ "notNull": true,
1248
+ "autoincrement": false
1249
+ },
1250
+ "enabled": {
1251
+ "name": "enabled",
1252
+ "type": "integer",
1253
+ "primaryKey": false,
1254
+ "notNull": true,
1255
+ "autoincrement": false,
1256
+ "default": true
1257
+ },
1258
+ "identity_id": {
1259
+ "name": "identity_id",
1260
+ "type": "text",
1261
+ "primaryKey": false,
1262
+ "notNull": true,
1263
+ "autoincrement": false
1264
+ },
1265
+ "knowledge_base_ids": {
1266
+ "name": "knowledge_base_ids",
1267
+ "type": "text",
1268
+ "primaryKey": false,
1269
+ "notNull": true,
1270
+ "autoincrement": false
1271
+ },
1272
+ "source_ids": {
1273
+ "name": "source_ids",
1274
+ "type": "text",
1275
+ "primaryKey": false,
1276
+ "notNull": true,
1277
+ "autoincrement": false
1278
+ },
1279
+ "source_tags": {
1280
+ "name": "source_tags",
1281
+ "type": "text",
1282
+ "primaryKey": false,
1283
+ "notNull": true,
1284
+ "autoincrement": false
1285
+ },
1286
+ "empty_signal_policy": {
1287
+ "name": "empty_signal_policy",
1288
+ "type": "text",
1289
+ "primaryKey": false,
1290
+ "notNull": true,
1291
+ "autoincrement": false,
1292
+ "default": "'skip'"
1293
+ },
1294
+ "connections": {
1295
+ "name": "connections",
1296
+ "type": "text",
1297
+ "primaryKey": false,
1298
+ "notNull": true,
1299
+ "autoincrement": false
1300
+ },
1301
+ "agent": {
1302
+ "name": "agent",
1303
+ "type": "text",
1304
+ "primaryKey": false,
1305
+ "notNull": false,
1306
+ "autoincrement": false
1307
+ },
1308
+ "publishing": {
1309
+ "name": "publishing",
1310
+ "type": "text",
1311
+ "primaryKey": false,
1312
+ "notNull": true,
1313
+ "autoincrement": false
1314
+ },
1315
+ "revision": {
1316
+ "name": "revision",
1317
+ "type": "integer",
1318
+ "primaryKey": false,
1319
+ "notNull": true,
1320
+ "autoincrement": false
1321
+ },
1322
+ "created_at": {
1323
+ "name": "created_at",
1324
+ "type": "text",
1325
+ "primaryKey": false,
1326
+ "notNull": true,
1327
+ "autoincrement": false
1328
+ },
1329
+ "updated_at": {
1330
+ "name": "updated_at",
1331
+ "type": "text",
1332
+ "primaryKey": false,
1333
+ "notNull": true,
1334
+ "autoincrement": false
1335
+ }
1336
+ },
1337
+ "indexes": {
1338
+ "idx_content_plans_updated": {
1339
+ "name": "idx_content_plans_updated",
1340
+ "columns": ["updated_at"],
1341
+ "isUnique": false
1342
+ },
1343
+ "idx_content_plans_identity": {
1344
+ "name": "idx_content_plans_identity",
1345
+ "columns": ["identity_id"],
1346
+ "isUnique": false
1347
+ }
1348
+ },
1349
+ "foreignKeys": {},
1350
+ "compositePrimaryKeys": {},
1351
+ "uniqueConstraints": {},
1352
+ "checkConstraints": {}
1353
+ },
1354
+ "extension_captures": {
1355
+ "name": "extension_captures",
1356
+ "columns": {
1357
+ "id": {
1358
+ "name": "id",
1359
+ "type": "text",
1360
+ "primaryKey": true,
1361
+ "notNull": true,
1362
+ "autoincrement": false
1363
+ },
1364
+ "executor_connection_id": {
1365
+ "name": "executor_connection_id",
1366
+ "type": "text",
1367
+ "primaryKey": false,
1368
+ "notNull": true,
1369
+ "autoincrement": false
1370
+ },
1371
+ "job_id": {
1372
+ "name": "job_id",
1373
+ "type": "text",
1374
+ "primaryKey": false,
1375
+ "notNull": false,
1376
+ "autoincrement": false
1377
+ },
1378
+ "url": {
1379
+ "name": "url",
1380
+ "type": "text",
1381
+ "primaryKey": false,
1382
+ "notNull": true,
1383
+ "autoincrement": false
1384
+ },
1385
+ "status": {
1386
+ "name": "status",
1387
+ "type": "text",
1388
+ "primaryKey": false,
1389
+ "notNull": true,
1390
+ "autoincrement": false
1391
+ },
1392
+ "result": {
1393
+ "name": "result",
1394
+ "type": "text",
1395
+ "primaryKey": false,
1396
+ "notNull": false,
1397
+ "autoincrement": false
1398
+ },
1399
+ "error": {
1400
+ "name": "error",
1401
+ "type": "text",
1402
+ "primaryKey": false,
1403
+ "notNull": false,
1404
+ "autoincrement": false
1405
+ },
1406
+ "created_at": {
1407
+ "name": "created_at",
1408
+ "type": "text",
1409
+ "primaryKey": false,
1410
+ "notNull": true,
1411
+ "autoincrement": false
1412
+ },
1413
+ "updated_at": {
1414
+ "name": "updated_at",
1415
+ "type": "text",
1416
+ "primaryKey": false,
1417
+ "notNull": true,
1418
+ "autoincrement": false
1419
+ }
1420
+ },
1421
+ "indexes": {
1422
+ "idx_extension_captures_executor_status": {
1423
+ "name": "idx_extension_captures_executor_status",
1424
+ "columns": ["executor_connection_id", "status", "updated_at"],
1425
+ "isUnique": false
1426
+ }
1427
+ },
1428
+ "foreignKeys": {},
1429
+ "compositePrimaryKeys": {},
1430
+ "uniqueConstraints": {},
1431
+ "checkConstraints": {}
1432
+ },
1433
+ "identities": {
1434
+ "name": "identities",
1435
+ "columns": {
1436
+ "id": {
1437
+ "name": "id",
1438
+ "type": "text",
1439
+ "primaryKey": true,
1440
+ "notNull": true,
1441
+ "autoincrement": false
1442
+ },
1443
+ "name": {
1444
+ "name": "name",
1445
+ "type": "text",
1446
+ "primaryKey": false,
1447
+ "notNull": true,
1448
+ "autoincrement": false
1449
+ },
1450
+ "enabled": {
1451
+ "name": "enabled",
1452
+ "type": "integer",
1453
+ "primaryKey": false,
1454
+ "notNull": true,
1455
+ "autoincrement": false,
1456
+ "default": true
1457
+ },
1458
+ "positioning": {
1459
+ "name": "positioning",
1460
+ "type": "text",
1461
+ "primaryKey": false,
1462
+ "notNull": true,
1463
+ "autoincrement": false
1464
+ },
1465
+ "audience": {
1466
+ "name": "audience",
1467
+ "type": "text",
1468
+ "primaryKey": false,
1469
+ "notNull": true,
1470
+ "autoincrement": false
1471
+ },
1472
+ "tone": {
1473
+ "name": "tone",
1474
+ "type": "text",
1475
+ "primaryKey": false,
1476
+ "notNull": true,
1477
+ "autoincrement": false
1478
+ },
1479
+ "forbidden_topics": {
1480
+ "name": "forbidden_topics",
1481
+ "type": "text",
1482
+ "primaryKey": false,
1483
+ "notNull": true,
1484
+ "autoincrement": false
1485
+ },
1486
+ "revision": {
1487
+ "name": "revision",
1488
+ "type": "integer",
1489
+ "primaryKey": false,
1490
+ "notNull": true,
1491
+ "autoincrement": false
1492
+ },
1493
+ "created_at": {
1494
+ "name": "created_at",
1495
+ "type": "text",
1496
+ "primaryKey": false,
1497
+ "notNull": true,
1498
+ "autoincrement": false
1499
+ },
1500
+ "updated_at": {
1501
+ "name": "updated_at",
1502
+ "type": "text",
1503
+ "primaryKey": false,
1504
+ "notNull": true,
1505
+ "autoincrement": false
1506
+ }
1507
+ },
1508
+ "indexes": {
1509
+ "idx_identities_updated": {
1510
+ "name": "idx_identities_updated",
1511
+ "columns": ["updated_at"],
1512
+ "isUnique": false
1513
+ }
1514
+ },
1515
+ "foreignKeys": {},
1516
+ "compositePrimaryKeys": {},
1517
+ "uniqueConstraints": {},
1518
+ "checkConstraints": {}
1519
+ },
1520
+ "internal_schema_versions": {
1521
+ "name": "internal_schema_versions",
1522
+ "columns": {
1523
+ "name": {
1524
+ "name": "name",
1525
+ "type": "text",
1526
+ "primaryKey": true,
1527
+ "notNull": true,
1528
+ "autoincrement": false
1529
+ },
1530
+ "version": {
1531
+ "name": "version",
1532
+ "type": "text",
1533
+ "primaryKey": false,
1534
+ "notNull": true,
1535
+ "autoincrement": false
1536
+ },
1537
+ "updated_at": {
1538
+ "name": "updated_at",
1539
+ "type": "text",
1540
+ "primaryKey": false,
1541
+ "notNull": true,
1542
+ "autoincrement": false
1543
+ }
1544
+ },
1545
+ "indexes": {},
1546
+ "foreignKeys": {},
1547
+ "compositePrimaryKeys": {},
1548
+ "uniqueConstraints": {},
1549
+ "checkConstraints": {}
1550
+ },
1551
+ "knowledge_bases": {
1552
+ "name": "knowledge_bases",
1553
+ "columns": {
1554
+ "id": {
1555
+ "name": "id",
1556
+ "type": "text",
1557
+ "primaryKey": true,
1558
+ "notNull": true,
1559
+ "autoincrement": false
1560
+ },
1561
+ "name": {
1562
+ "name": "name",
1563
+ "type": "text",
1564
+ "primaryKey": false,
1565
+ "notNull": true,
1566
+ "autoincrement": false
1567
+ },
1568
+ "enabled": {
1569
+ "name": "enabled",
1570
+ "type": "integer",
1571
+ "primaryKey": false,
1572
+ "notNull": true,
1573
+ "autoincrement": false,
1574
+ "default": true
1575
+ },
1576
+ "revision": {
1577
+ "name": "revision",
1578
+ "type": "integer",
1579
+ "primaryKey": false,
1580
+ "notNull": true,
1581
+ "autoincrement": false
1582
+ },
1583
+ "created_at": {
1584
+ "name": "created_at",
1585
+ "type": "text",
1586
+ "primaryKey": false,
1587
+ "notNull": true,
1588
+ "autoincrement": false
1589
+ },
1590
+ "updated_at": {
1591
+ "name": "updated_at",
1592
+ "type": "text",
1593
+ "primaryKey": false,
1594
+ "notNull": true,
1595
+ "autoincrement": false
1596
+ }
1597
+ },
1598
+ "indexes": {
1599
+ "idx_knowledge_bases_updated": {
1600
+ "name": "idx_knowledge_bases_updated",
1601
+ "columns": ["updated_at"],
1602
+ "isUnique": false
1603
+ }
1604
+ },
1605
+ "foreignKeys": {},
1606
+ "compositePrimaryKeys": {},
1607
+ "uniqueConstraints": {},
1608
+ "checkConstraints": {}
1609
+ },
1610
+ "knowledge_documents": {
1611
+ "name": "knowledge_documents",
1612
+ "columns": {
1613
+ "id": {
1614
+ "name": "id",
1615
+ "type": "text",
1616
+ "primaryKey": false,
1617
+ "notNull": true,
1618
+ "autoincrement": false
1619
+ },
1620
+ "knowledge_base_id": {
1621
+ "name": "knowledge_base_id",
1622
+ "type": "text",
1623
+ "primaryKey": false,
1624
+ "notNull": true,
1625
+ "autoincrement": false
1626
+ },
1627
+ "position": {
1628
+ "name": "position",
1629
+ "type": "integer",
1630
+ "primaryKey": false,
1631
+ "notNull": true,
1632
+ "autoincrement": false
1633
+ },
1634
+ "title": {
1635
+ "name": "title",
1636
+ "type": "text",
1637
+ "primaryKey": false,
1638
+ "notNull": true,
1639
+ "autoincrement": false
1640
+ },
1641
+ "content": {
1642
+ "name": "content",
1643
+ "type": "text",
1644
+ "primaryKey": false,
1645
+ "notNull": true,
1646
+ "autoincrement": false
1647
+ },
1648
+ "file_name": {
1649
+ "name": "file_name",
1650
+ "type": "text",
1651
+ "primaryKey": false,
1652
+ "notNull": false,
1653
+ "autoincrement": false
1654
+ },
1655
+ "media_type": {
1656
+ "name": "media_type",
1657
+ "type": "text",
1658
+ "primaryKey": false,
1659
+ "notNull": false,
1660
+ "autoincrement": false
1661
+ }
1662
+ },
1663
+ "indexes": {
1664
+ "idx_knowledge_documents_kb": {
1665
+ "name": "idx_knowledge_documents_kb",
1666
+ "columns": ["knowledge_base_id", "position"],
1667
+ "isUnique": false
1668
+ }
1669
+ },
1670
+ "foreignKeys": {
1671
+ "knowledge_documents_knowledge_base_id_knowledge_bases_id_fk": {
1672
+ "name": "knowledge_documents_knowledge_base_id_knowledge_bases_id_fk",
1673
+ "tableFrom": "knowledge_documents",
1674
+ "tableTo": "knowledge_bases",
1675
+ "columnsFrom": ["knowledge_base_id"],
1676
+ "columnsTo": ["id"],
1677
+ "onDelete": "cascade",
1678
+ "onUpdate": "no action"
1679
+ }
1680
+ },
1681
+ "compositePrimaryKeys": {
1682
+ "knowledge_documents_knowledge_base_id_id_pk": {
1683
+ "columns": ["knowledge_base_id", "id"],
1684
+ "name": "knowledge_documents_knowledge_base_id_id_pk"
1685
+ }
1686
+ },
1687
+ "uniqueConstraints": {},
1688
+ "checkConstraints": {}
1689
+ },
1690
+ "publications": {
1691
+ "name": "publications",
1692
+ "columns": {
1693
+ "id": {
1694
+ "name": "id",
1695
+ "type": "text",
1696
+ "primaryKey": true,
1697
+ "notNull": true,
1698
+ "autoincrement": false
1699
+ },
1700
+ "job_id": {
1701
+ "name": "job_id",
1702
+ "type": "text",
1703
+ "primaryKey": false,
1704
+ "notNull": true,
1705
+ "autoincrement": false
1706
+ },
1707
+ "package_id": {
1708
+ "name": "package_id",
1709
+ "type": "text",
1710
+ "primaryKey": false,
1711
+ "notNull": true,
1712
+ "autoincrement": false
1713
+ },
1714
+ "status": {
1715
+ "name": "status",
1716
+ "type": "text",
1717
+ "primaryKey": false,
1718
+ "notNull": true,
1719
+ "autoincrement": false
1720
+ },
1721
+ "batch": {
1722
+ "name": "batch",
1723
+ "type": "text",
1724
+ "primaryKey": false,
1725
+ "notNull": true,
1726
+ "autoincrement": false
1727
+ },
1728
+ "revision": {
1729
+ "name": "revision",
1730
+ "type": "integer",
1731
+ "primaryKey": false,
1732
+ "notNull": true,
1733
+ "autoincrement": false
1734
+ },
1735
+ "created_at": {
1736
+ "name": "created_at",
1737
+ "type": "text",
1738
+ "primaryKey": false,
1739
+ "notNull": true,
1740
+ "autoincrement": false
1741
+ },
1742
+ "updated_at": {
1743
+ "name": "updated_at",
1744
+ "type": "text",
1745
+ "primaryKey": false,
1746
+ "notNull": true,
1747
+ "autoincrement": false
1748
+ }
1749
+ },
1750
+ "indexes": {
1751
+ "idx_publications_updated": {
1752
+ "name": "idx_publications_updated",
1753
+ "columns": ["updated_at"],
1754
+ "isUnique": false
1755
+ },
1756
+ "idx_publications_package": {
1757
+ "name": "idx_publications_package",
1758
+ "columns": ["package_id"],
1759
+ "isUnique": false
1760
+ }
1761
+ },
1762
+ "foreignKeys": {},
1763
+ "compositePrimaryKeys": {},
1764
+ "uniqueConstraints": {},
1765
+ "checkConstraints": {}
1766
+ },
1767
+ "publish_deliveries": {
1768
+ "name": "publish_deliveries",
1769
+ "columns": {
1770
+ "id": {
1771
+ "name": "id",
1772
+ "type": "text",
1773
+ "primaryKey": true,
1774
+ "notNull": true,
1775
+ "autoincrement": false
1776
+ },
1777
+ "job_id": {
1778
+ "name": "job_id",
1779
+ "type": "text",
1780
+ "primaryKey": false,
1781
+ "notNull": true,
1782
+ "autoincrement": false
1783
+ },
1784
+ "package_id": {
1785
+ "name": "package_id",
1786
+ "type": "text",
1787
+ "primaryKey": false,
1788
+ "notNull": true,
1789
+ "autoincrement": false
1790
+ },
1791
+ "destination_id": {
1792
+ "name": "destination_id",
1793
+ "type": "text",
1794
+ "primaryKey": false,
1795
+ "notNull": true,
1796
+ "autoincrement": false
1797
+ },
1798
+ "account_id": {
1799
+ "name": "account_id",
1800
+ "type": "text",
1801
+ "primaryKey": false,
1802
+ "notNull": true,
1803
+ "autoincrement": false
1804
+ },
1805
+ "account_name": {
1806
+ "name": "account_name",
1807
+ "type": "text",
1808
+ "primaryKey": false,
1809
+ "notNull": false,
1810
+ "autoincrement": false
1811
+ },
1812
+ "executor_connection_id": {
1813
+ "name": "executor_connection_id",
1814
+ "type": "text",
1815
+ "primaryKey": false,
1816
+ "notNull": true,
1817
+ "autoincrement": false
1818
+ },
1819
+ "channel": {
1820
+ "name": "channel",
1821
+ "type": "text",
1822
+ "primaryKey": false,
1823
+ "notNull": true,
1824
+ "autoincrement": false
1825
+ },
1826
+ "publication_type": {
1827
+ "name": "publication_type",
1828
+ "type": "text",
1829
+ "primaryKey": false,
1830
+ "notNull": true,
1831
+ "autoincrement": false
1832
+ },
1833
+ "idempotency_key": {
1834
+ "name": "idempotency_key",
1835
+ "type": "text",
1836
+ "primaryKey": false,
1837
+ "notNull": true,
1838
+ "autoincrement": false
1839
+ },
1840
+ "status": {
1841
+ "name": "status",
1842
+ "type": "text",
1843
+ "primaryKey": false,
1844
+ "notNull": true,
1845
+ "autoincrement": false
1846
+ },
1847
+ "lease_until": {
1848
+ "name": "lease_until",
1849
+ "type": "text",
1850
+ "primaryKey": false,
1851
+ "notNull": false,
1852
+ "autoincrement": false
1853
+ },
1854
+ "payload": {
1855
+ "name": "payload",
1856
+ "type": "text",
1857
+ "primaryKey": false,
1858
+ "notNull": true,
1859
+ "autoincrement": false
1860
+ },
1861
+ "prepared": {
1862
+ "name": "prepared",
1863
+ "type": "text",
1864
+ "primaryKey": false,
1865
+ "notNull": true,
1866
+ "autoincrement": false
1867
+ },
1868
+ "receipt": {
1869
+ "name": "receipt",
1870
+ "type": "text",
1871
+ "primaryKey": false,
1872
+ "notNull": false,
1873
+ "autoincrement": false
1874
+ },
1875
+ "error": {
1876
+ "name": "error",
1877
+ "type": "text",
1878
+ "primaryKey": false,
1879
+ "notNull": false,
1880
+ "autoincrement": false
1881
+ },
1882
+ "created_at": {
1883
+ "name": "created_at",
1884
+ "type": "text",
1885
+ "primaryKey": false,
1886
+ "notNull": true,
1887
+ "autoincrement": false
1888
+ },
1889
+ "updated_at": {
1890
+ "name": "updated_at",
1891
+ "type": "text",
1892
+ "primaryKey": false,
1893
+ "notNull": true,
1894
+ "autoincrement": false
1895
+ }
1896
+ },
1897
+ "indexes": {
1898
+ "uq_publish_deliveries_idempotency": {
1899
+ "name": "uq_publish_deliveries_idempotency",
1900
+ "columns": ["idempotency_key"],
1901
+ "isUnique": true
1902
+ },
1903
+ "idx_publish_deliveries_executor_status": {
1904
+ "name": "idx_publish_deliveries_executor_status",
1905
+ "columns": ["executor_connection_id", "status", "updated_at"],
1906
+ "isUnique": false
1907
+ },
1908
+ "idx_publish_deliveries_package_dest": {
1909
+ "name": "idx_publish_deliveries_package_dest",
1910
+ "columns": ["package_id", "destination_id"],
1911
+ "isUnique": false
1912
+ }
1913
+ },
1914
+ "foreignKeys": {},
1915
+ "compositePrimaryKeys": {},
1916
+ "uniqueConstraints": {},
1917
+ "checkConstraints": {}
1918
+ },
1919
+ "publish_executors": {
1920
+ "name": "publish_executors",
1921
+ "columns": {
1922
+ "connection_id": {
1923
+ "name": "connection_id",
1924
+ "type": "text",
1925
+ "primaryKey": true,
1926
+ "notNull": true,
1927
+ "autoincrement": false
1928
+ },
1929
+ "node_name": {
1930
+ "name": "node_name",
1931
+ "type": "text",
1932
+ "primaryKey": false,
1933
+ "notNull": true,
1934
+ "autoincrement": false
1935
+ },
1936
+ "extension_version": {
1937
+ "name": "extension_version",
1938
+ "type": "text",
1939
+ "primaryKey": false,
1940
+ "notNull": false,
1941
+ "autoincrement": false
1942
+ },
1943
+ "platforms": {
1944
+ "name": "platforms",
1945
+ "type": "text",
1946
+ "primaryKey": false,
1947
+ "notNull": true,
1948
+ "autoincrement": false
1949
+ },
1950
+ "accounts": {
1951
+ "name": "accounts",
1952
+ "type": "text",
1953
+ "primaryKey": false,
1954
+ "notNull": false,
1955
+ "autoincrement": false
1956
+ },
1957
+ "last_seen_at": {
1958
+ "name": "last_seen_at",
1959
+ "type": "text",
1960
+ "primaryKey": false,
1961
+ "notNull": true,
1962
+ "autoincrement": false
1963
+ },
1964
+ "created_at": {
1965
+ "name": "created_at",
1966
+ "type": "text",
1967
+ "primaryKey": false,
1968
+ "notNull": true,
1969
+ "autoincrement": false
1970
+ },
1971
+ "updated_at": {
1972
+ "name": "updated_at",
1973
+ "type": "text",
1974
+ "primaryKey": false,
1975
+ "notNull": true,
1976
+ "autoincrement": false
1977
+ }
1978
+ },
1979
+ "indexes": {},
1980
+ "foreignKeys": {},
1981
+ "compositePrimaryKeys": {},
1982
+ "uniqueConstraints": {},
1983
+ "checkConstraints": {}
1984
+ },
1985
+ "review_requests": {
1986
+ "name": "review_requests",
1987
+ "columns": {
1988
+ "id": {
1989
+ "name": "id",
1990
+ "type": "text",
1991
+ "primaryKey": true,
1992
+ "notNull": true,
1993
+ "autoincrement": false
1994
+ },
1995
+ "job_id": {
1996
+ "name": "job_id",
1997
+ "type": "text",
1998
+ "primaryKey": false,
1999
+ "notNull": true,
2000
+ "autoincrement": false
2001
+ },
2002
+ "plan_id": {
2003
+ "name": "plan_id",
2004
+ "type": "text",
2005
+ "primaryKey": false,
2006
+ "notNull": true,
2007
+ "autoincrement": false
2008
+ },
2009
+ "status": {
2010
+ "name": "status",
2011
+ "type": "text",
2012
+ "primaryKey": false,
2013
+ "notNull": true,
2014
+ "autoincrement": false
2015
+ },
2016
+ "request": {
2017
+ "name": "request",
2018
+ "type": "text",
2019
+ "primaryKey": false,
2020
+ "notNull": true,
2021
+ "autoincrement": false
2022
+ },
2023
+ "resolved_package_id": {
2024
+ "name": "resolved_package_id",
2025
+ "type": "text",
2026
+ "primaryKey": false,
2027
+ "notNull": false,
2028
+ "autoincrement": false
2029
+ },
2030
+ "revision": {
2031
+ "name": "revision",
2032
+ "type": "integer",
2033
+ "primaryKey": false,
2034
+ "notNull": true,
2035
+ "autoincrement": false
2036
+ },
2037
+ "created_at": {
2038
+ "name": "created_at",
2039
+ "type": "text",
2040
+ "primaryKey": false,
2041
+ "notNull": true,
2042
+ "autoincrement": false
2043
+ },
2044
+ "updated_at": {
2045
+ "name": "updated_at",
2046
+ "type": "text",
2047
+ "primaryKey": false,
2048
+ "notNull": true,
2049
+ "autoincrement": false
2050
+ }
2051
+ },
2052
+ "indexes": {
2053
+ "idx_review_requests_updated": {
2054
+ "name": "idx_review_requests_updated",
2055
+ "columns": ["updated_at"],
2056
+ "isUnique": false
2057
+ }
2058
+ },
2059
+ "foreignKeys": {},
2060
+ "compositePrimaryKeys": {},
2061
+ "uniqueConstraints": {},
2062
+ "checkConstraints": {}
2063
+ },
2064
+ "runtime_jobs": {
2065
+ "name": "runtime_jobs",
2066
+ "columns": {
2067
+ "id": {
2068
+ "name": "id",
2069
+ "type": "text",
2070
+ "primaryKey": true,
2071
+ "notNull": true,
2072
+ "autoincrement": false
2073
+ },
2074
+ "type": {
2075
+ "name": "type",
2076
+ "type": "text",
2077
+ "primaryKey": false,
2078
+ "notNull": true,
2079
+ "autoincrement": false
2080
+ },
2081
+ "status": {
2082
+ "name": "status",
2083
+ "type": "text",
2084
+ "primaryKey": false,
2085
+ "notNull": true,
2086
+ "autoincrement": false
2087
+ },
2088
+ "data": {
2089
+ "name": "data",
2090
+ "type": "text",
2091
+ "primaryKey": false,
2092
+ "notNull": true,
2093
+ "autoincrement": false
2094
+ },
2095
+ "created_at": {
2096
+ "name": "created_at",
2097
+ "type": "text",
2098
+ "primaryKey": false,
2099
+ "notNull": true,
2100
+ "autoincrement": false
2101
+ },
2102
+ "updated_at": {
2103
+ "name": "updated_at",
2104
+ "type": "text",
2105
+ "primaryKey": false,
2106
+ "notNull": true,
2107
+ "autoincrement": false
2108
+ }
2109
+ },
2110
+ "indexes": {
2111
+ "idx_runtime_jobs_type_created": {
2112
+ "name": "idx_runtime_jobs_type_created",
2113
+ "columns": ["type", "created_at"],
2114
+ "isUnique": false
2115
+ }
2116
+ },
2117
+ "foreignKeys": {},
2118
+ "compositePrimaryKeys": {},
2119
+ "uniqueConstraints": {},
2120
+ "checkConstraints": {}
2121
+ },
2122
+ "runtime_run_activities": {
2123
+ "name": "runtime_run_activities",
2124
+ "columns": {
2125
+ "id": {
2126
+ "name": "id",
2127
+ "type": "text",
2128
+ "primaryKey": true,
2129
+ "notNull": true,
2130
+ "autoincrement": false
2131
+ },
2132
+ "run_id": {
2133
+ "name": "run_id",
2134
+ "type": "text",
2135
+ "primaryKey": false,
2136
+ "notNull": true,
2137
+ "autoincrement": false
2138
+ },
2139
+ "session_id": {
2140
+ "name": "session_id",
2141
+ "type": "text",
2142
+ "primaryKey": false,
2143
+ "notNull": true,
2144
+ "autoincrement": false
2145
+ },
2146
+ "sequence": {
2147
+ "name": "sequence",
2148
+ "type": "integer",
2149
+ "primaryKey": false,
2150
+ "notNull": true,
2151
+ "autoincrement": false
2152
+ },
2153
+ "activity_key": {
2154
+ "name": "activity_key",
2155
+ "type": "text",
2156
+ "primaryKey": false,
2157
+ "notNull": true,
2158
+ "autoincrement": false
2159
+ },
2160
+ "kind": {
2161
+ "name": "kind",
2162
+ "type": "text",
2163
+ "primaryKey": false,
2164
+ "notNull": true,
2165
+ "autoincrement": false
2166
+ },
2167
+ "status": {
2168
+ "name": "status",
2169
+ "type": "text",
2170
+ "primaryKey": false,
2171
+ "notNull": true,
2172
+ "autoincrement": false
2173
+ },
2174
+ "data": {
2175
+ "name": "data",
2176
+ "type": "text",
2177
+ "primaryKey": false,
2178
+ "notNull": true,
2179
+ "autoincrement": false
2180
+ },
2181
+ "updated_at": {
2182
+ "name": "updated_at",
2183
+ "type": "text",
2184
+ "primaryKey": false,
2185
+ "notNull": true,
2186
+ "autoincrement": false
2187
+ }
2188
+ },
2189
+ "indexes": {
2190
+ "uq_runtime_run_activities_seq": {
2191
+ "name": "uq_runtime_run_activities_seq",
2192
+ "columns": ["run_id", "sequence"],
2193
+ "isUnique": true
2194
+ },
2195
+ "uq_runtime_run_activities_key": {
2196
+ "name": "uq_runtime_run_activities_key",
2197
+ "columns": ["run_id", "activity_key"],
2198
+ "isUnique": true
2199
+ },
2200
+ "idx_runtime_run_activities_session": {
2201
+ "name": "idx_runtime_run_activities_session",
2202
+ "columns": ["run_id", "session_id", "sequence"],
2203
+ "isUnique": false
2204
+ }
2205
+ },
2206
+ "foreignKeys": {
2207
+ "runtime_run_activities_run_id_runtime_runs_id_fk": {
2208
+ "name": "runtime_run_activities_run_id_runtime_runs_id_fk",
2209
+ "tableFrom": "runtime_run_activities",
2210
+ "tableTo": "runtime_runs",
2211
+ "columnsFrom": ["run_id"],
2212
+ "columnsTo": ["id"],
2213
+ "onDelete": "cascade",
2214
+ "onUpdate": "no action"
2215
+ },
2216
+ "runtime_run_activities_session_id_runtime_run_sessions_id_fk": {
2217
+ "name": "runtime_run_activities_session_id_runtime_run_sessions_id_fk",
2218
+ "tableFrom": "runtime_run_activities",
2219
+ "tableTo": "runtime_run_sessions",
2220
+ "columnsFrom": ["session_id"],
2221
+ "columnsTo": ["id"],
2222
+ "onDelete": "cascade",
2223
+ "onUpdate": "no action"
2224
+ }
2225
+ },
2226
+ "compositePrimaryKeys": {},
2227
+ "uniqueConstraints": {},
2228
+ "checkConstraints": {}
2229
+ },
2230
+ "runtime_run_sessions": {
2231
+ "name": "runtime_run_sessions",
2232
+ "columns": {
2233
+ "id": {
2234
+ "name": "id",
2235
+ "type": "text",
2236
+ "primaryKey": true,
2237
+ "notNull": true,
2238
+ "autoincrement": false
2239
+ },
2240
+ "run_id": {
2241
+ "name": "run_id",
2242
+ "type": "text",
2243
+ "primaryKey": false,
2244
+ "notNull": true,
2245
+ "autoincrement": false
2246
+ },
2247
+ "kind": {
2248
+ "name": "kind",
2249
+ "type": "text",
2250
+ "primaryKey": false,
2251
+ "notNull": true,
2252
+ "autoincrement": false
2253
+ },
2254
+ "status": {
2255
+ "name": "status",
2256
+ "type": "text",
2257
+ "primaryKey": false,
2258
+ "notNull": true,
2259
+ "autoincrement": false
2260
+ },
2261
+ "destination_id": {
2262
+ "name": "destination_id",
2263
+ "type": "text",
2264
+ "primaryKey": false,
2265
+ "notNull": false,
2266
+ "autoincrement": false
2267
+ },
2268
+ "data": {
2269
+ "name": "data",
2270
+ "type": "text",
2271
+ "primaryKey": false,
2272
+ "notNull": true,
2273
+ "autoincrement": false
2274
+ },
2275
+ "created_at": {
2276
+ "name": "created_at",
2277
+ "type": "text",
2278
+ "primaryKey": false,
2279
+ "notNull": true,
2280
+ "autoincrement": false
2281
+ },
2282
+ "updated_at": {
2283
+ "name": "updated_at",
2284
+ "type": "text",
2285
+ "primaryKey": false,
2286
+ "notNull": true,
2287
+ "autoincrement": false
2288
+ }
2289
+ },
2290
+ "indexes": {
2291
+ "idx_runtime_run_sessions_run": {
2292
+ "name": "idx_runtime_run_sessions_run",
2293
+ "columns": ["run_id", "created_at"],
2294
+ "isUnique": false
2295
+ }
2296
+ },
2297
+ "foreignKeys": {
2298
+ "runtime_run_sessions_run_id_runtime_runs_id_fk": {
2299
+ "name": "runtime_run_sessions_run_id_runtime_runs_id_fk",
2300
+ "tableFrom": "runtime_run_sessions",
2301
+ "tableTo": "runtime_runs",
2302
+ "columnsFrom": ["run_id"],
2303
+ "columnsTo": ["id"],
2304
+ "onDelete": "cascade",
2305
+ "onUpdate": "no action"
2306
+ }
2307
+ },
2308
+ "compositePrimaryKeys": {},
2309
+ "uniqueConstraints": {},
2310
+ "checkConstraints": {}
2311
+ },
2312
+ "runtime_runs": {
2313
+ "name": "runtime_runs",
2314
+ "columns": {
2315
+ "id": {
2316
+ "name": "id",
2317
+ "type": "text",
2318
+ "primaryKey": true,
2319
+ "notNull": true,
2320
+ "autoincrement": false
2321
+ },
2322
+ "kind": {
2323
+ "name": "kind",
2324
+ "type": "text",
2325
+ "primaryKey": false,
2326
+ "notNull": true,
2327
+ "autoincrement": false
2328
+ },
2329
+ "status": {
2330
+ "name": "status",
2331
+ "type": "text",
2332
+ "primaryKey": false,
2333
+ "notNull": true,
2334
+ "autoincrement": false
2335
+ },
2336
+ "plan_id": {
2337
+ "name": "plan_id",
2338
+ "type": "text",
2339
+ "primaryKey": false,
2340
+ "notNull": false,
2341
+ "autoincrement": false
2342
+ },
2343
+ "package_id": {
2344
+ "name": "package_id",
2345
+ "type": "text",
2346
+ "primaryKey": false,
2347
+ "notNull": false,
2348
+ "autoincrement": false
2349
+ },
2350
+ "data": {
2351
+ "name": "data",
2352
+ "type": "text",
2353
+ "primaryKey": false,
2354
+ "notNull": true,
2355
+ "autoincrement": false
2356
+ },
2357
+ "created_at": {
2358
+ "name": "created_at",
2359
+ "type": "text",
2360
+ "primaryKey": false,
2361
+ "notNull": true,
2362
+ "autoincrement": false
2363
+ },
2364
+ "updated_at": {
2365
+ "name": "updated_at",
2366
+ "type": "text",
2367
+ "primaryKey": false,
2368
+ "notNull": true,
2369
+ "autoincrement": false
2370
+ }
2371
+ },
2372
+ "indexes": {
2373
+ "idx_runtime_runs_created": {
2374
+ "name": "idx_runtime_runs_created",
2375
+ "columns": ["created_at"],
2376
+ "isUnique": false
2377
+ },
2378
+ "idx_runtime_runs_plan_created": {
2379
+ "name": "idx_runtime_runs_plan_created",
2380
+ "columns": ["plan_id", "created_at"],
2381
+ "isUnique": false
2382
+ }
2383
+ },
2384
+ "foreignKeys": {},
2385
+ "compositePrimaryKeys": {},
2386
+ "uniqueConstraints": {},
2387
+ "checkConstraints": {}
2388
+ },
2389
+ "runtime_tasks": {
2390
+ "name": "runtime_tasks",
2391
+ "columns": {
2392
+ "job_id": {
2393
+ "name": "job_id",
2394
+ "type": "text",
2395
+ "primaryKey": false,
2396
+ "notNull": true,
2397
+ "autoincrement": false
2398
+ },
2399
+ "task_id": {
2400
+ "name": "task_id",
2401
+ "type": "text",
2402
+ "primaryKey": false,
2403
+ "notNull": true,
2404
+ "autoincrement": false
2405
+ },
2406
+ "status": {
2407
+ "name": "status",
2408
+ "type": "text",
2409
+ "primaryKey": false,
2410
+ "notNull": true,
2411
+ "autoincrement": false
2412
+ },
2413
+ "fingerprint": {
2414
+ "name": "fingerprint",
2415
+ "type": "text",
2416
+ "primaryKey": false,
2417
+ "notNull": true,
2418
+ "autoincrement": false
2419
+ },
2420
+ "data": {
2421
+ "name": "data",
2422
+ "type": "text",
2423
+ "primaryKey": false,
2424
+ "notNull": true,
2425
+ "autoincrement": false
2426
+ },
2427
+ "updated_at": {
2428
+ "name": "updated_at",
2429
+ "type": "text",
2430
+ "primaryKey": false,
2431
+ "notNull": true,
2432
+ "autoincrement": false
2433
+ }
2434
+ },
2435
+ "indexes": {
2436
+ "idx_runtime_tasks_job": {
2437
+ "name": "idx_runtime_tasks_job",
2438
+ "columns": ["job_id", "updated_at"],
2439
+ "isUnique": false
2440
+ }
2441
+ },
2442
+ "foreignKeys": {},
2443
+ "compositePrimaryKeys": {
2444
+ "runtime_tasks_job_id_task_id_pk": {
2445
+ "columns": ["job_id", "task_id"],
2446
+ "name": "runtime_tasks_job_id_task_id_pk"
2447
+ }
2448
+ },
2449
+ "uniqueConstraints": {},
2450
+ "checkConstraints": {}
2451
+ },
2452
+ "source_signals": {
2453
+ "name": "source_signals",
2454
+ "columns": {
2455
+ "id": {
2456
+ "name": "id",
2457
+ "type": "text",
2458
+ "primaryKey": true,
2459
+ "notNull": true,
2460
+ "autoincrement": false
2461
+ },
2462
+ "source_id": {
2463
+ "name": "source_id",
2464
+ "type": "text",
2465
+ "primaryKey": false,
2466
+ "notNull": true,
2467
+ "autoincrement": false
2468
+ },
2469
+ "source_name": {
2470
+ "name": "source_name",
2471
+ "type": "text",
2472
+ "primaryKey": false,
2473
+ "notNull": true,
2474
+ "autoincrement": false
2475
+ },
2476
+ "url": {
2477
+ "name": "url",
2478
+ "type": "text",
2479
+ "primaryKey": false,
2480
+ "notNull": true,
2481
+ "autoincrement": false
2482
+ },
2483
+ "canonical_url": {
2484
+ "name": "canonical_url",
2485
+ "type": "text",
2486
+ "primaryKey": false,
2487
+ "notNull": true,
2488
+ "autoincrement": false
2489
+ },
2490
+ "url_hash": {
2491
+ "name": "url_hash",
2492
+ "type": "text",
2493
+ "primaryKey": false,
2494
+ "notNull": true,
2495
+ "autoincrement": false
2496
+ },
2497
+ "title": {
2498
+ "name": "title",
2499
+ "type": "text",
2500
+ "primaryKey": false,
2501
+ "notNull": true,
2502
+ "autoincrement": false
2503
+ },
2504
+ "snippet": {
2505
+ "name": "snippet",
2506
+ "type": "text",
2507
+ "primaryKey": false,
2508
+ "notNull": false,
2509
+ "autoincrement": false
2510
+ },
2511
+ "content": {
2512
+ "name": "content",
2513
+ "type": "text",
2514
+ "primaryKey": false,
2515
+ "notNull": false,
2516
+ "autoincrement": false
2517
+ },
2518
+ "author": {
2519
+ "name": "author",
2520
+ "type": "text",
2521
+ "primaryKey": false,
2522
+ "notNull": false,
2523
+ "autoincrement": false
2524
+ },
2525
+ "published_at": {
2526
+ "name": "published_at",
2527
+ "type": "text",
2528
+ "primaryKey": false,
2529
+ "notNull": false,
2530
+ "autoincrement": false
2531
+ },
2532
+ "score": {
2533
+ "name": "score",
2534
+ "type": "integer",
2535
+ "primaryKey": false,
2536
+ "notNull": false,
2537
+ "autoincrement": false
2538
+ },
2539
+ "media_type": {
2540
+ "name": "media_type",
2541
+ "type": "text",
2542
+ "primaryKey": false,
2543
+ "notNull": false,
2544
+ "autoincrement": false
2545
+ },
2546
+ "origin": {
2547
+ "name": "origin",
2548
+ "type": "text",
2549
+ "primaryKey": false,
2550
+ "notNull": true,
2551
+ "autoincrement": false
2552
+ },
2553
+ "embedding": {
2554
+ "name": "embedding",
2555
+ "type": "text",
2556
+ "primaryKey": false,
2557
+ "notNull": false,
2558
+ "autoincrement": false
2559
+ },
2560
+ "fetched_at": {
2561
+ "name": "fetched_at",
2562
+ "type": "text",
2563
+ "primaryKey": false,
2564
+ "notNull": true,
2565
+ "autoincrement": false
2566
+ },
2567
+ "consumed_at": {
2568
+ "name": "consumed_at",
2569
+ "type": "text",
2570
+ "primaryKey": false,
2571
+ "notNull": false,
2572
+ "autoincrement": false
2573
+ }
2574
+ },
2575
+ "indexes": {
2576
+ "uq_source_signals_source_url": {
2577
+ "name": "uq_source_signals_source_url",
2578
+ "columns": ["source_id", "url_hash"],
2579
+ "isUnique": true
2580
+ },
2581
+ "idx_source_signals_source_fetched": {
2582
+ "name": "idx_source_signals_source_fetched",
2583
+ "columns": ["source_id", "fetched_at"],
2584
+ "isUnique": false
2585
+ }
2586
+ },
2587
+ "foreignKeys": {
2588
+ "source_signals_source_id_sources_id_fk": {
2589
+ "name": "source_signals_source_id_sources_id_fk",
2590
+ "tableFrom": "source_signals",
2591
+ "tableTo": "sources",
2592
+ "columnsFrom": ["source_id"],
2593
+ "columnsTo": ["id"],
2594
+ "onDelete": "cascade",
2595
+ "onUpdate": "no action"
2596
+ }
2597
+ },
2598
+ "compositePrimaryKeys": {},
2599
+ "uniqueConstraints": {},
2600
+ "checkConstraints": {}
2601
+ },
2602
+ "sources": {
2603
+ "name": "sources",
2604
+ "columns": {
2605
+ "id": {
2606
+ "name": "id",
2607
+ "type": "text",
2608
+ "primaryKey": true,
2609
+ "notNull": true,
2610
+ "autoincrement": false
2611
+ },
2612
+ "name": {
2613
+ "name": "name",
2614
+ "type": "text",
2615
+ "primaryKey": false,
2616
+ "notNull": true,
2617
+ "autoincrement": false
2618
+ },
2619
+ "enabled": {
2620
+ "name": "enabled",
2621
+ "type": "integer",
2622
+ "primaryKey": false,
2623
+ "notNull": true,
2624
+ "autoincrement": false,
2625
+ "default": true
2626
+ },
2627
+ "kind": {
2628
+ "name": "kind",
2629
+ "type": "text",
2630
+ "primaryKey": false,
2631
+ "notNull": true,
2632
+ "autoincrement": false
2633
+ },
2634
+ "tags": {
2635
+ "name": "tags",
2636
+ "type": "text",
2637
+ "primaryKey": false,
2638
+ "notNull": true,
2639
+ "autoincrement": false
2640
+ },
2641
+ "priority_weight_milli": {
2642
+ "name": "priority_weight_milli",
2643
+ "type": "integer",
2644
+ "primaryKey": false,
2645
+ "notNull": true,
2646
+ "autoincrement": false,
2647
+ "default": 1000
2648
+ },
2649
+ "config": {
2650
+ "name": "config",
2651
+ "type": "text",
2652
+ "primaryKey": false,
2653
+ "notNull": true,
2654
+ "autoincrement": false
2655
+ },
2656
+ "filters": {
2657
+ "name": "filters",
2658
+ "type": "text",
2659
+ "primaryKey": false,
2660
+ "notNull": false,
2661
+ "autoincrement": false
2662
+ },
2663
+ "health": {
2664
+ "name": "health",
2665
+ "type": "text",
2666
+ "primaryKey": false,
2667
+ "notNull": false,
2668
+ "autoincrement": false
2669
+ },
2670
+ "revision": {
2671
+ "name": "revision",
2672
+ "type": "integer",
2673
+ "primaryKey": false,
2674
+ "notNull": true,
2675
+ "autoincrement": false
2676
+ },
2677
+ "created_at": {
2678
+ "name": "created_at",
2679
+ "type": "text",
2680
+ "primaryKey": false,
2681
+ "notNull": true,
2682
+ "autoincrement": false
2683
+ },
2684
+ "updated_at": {
2685
+ "name": "updated_at",
2686
+ "type": "text",
2687
+ "primaryKey": false,
2688
+ "notNull": true,
2689
+ "autoincrement": false
2690
+ }
2691
+ },
2692
+ "indexes": {
2693
+ "idx_sources_updated": {
2694
+ "name": "idx_sources_updated",
2695
+ "columns": ["updated_at"],
2696
+ "isUnique": false
2697
+ },
2698
+ "idx_sources_kind": {
2699
+ "name": "idx_sources_kind",
2700
+ "columns": ["kind"],
2701
+ "isUnique": false
2702
+ }
2703
+ },
2704
+ "foreignKeys": {},
2705
+ "compositePrimaryKeys": {},
2706
+ "uniqueConstraints": {},
2707
+ "checkConstraints": {}
2708
+ },
2709
+ "writing_styles": {
2710
+ "name": "writing_styles",
2711
+ "columns": {
2712
+ "id": {
2713
+ "name": "id",
2714
+ "type": "text",
2715
+ "primaryKey": true,
2716
+ "notNull": true,
2717
+ "autoincrement": false
2718
+ },
2719
+ "name": {
2720
+ "name": "name",
2721
+ "type": "text",
2722
+ "primaryKey": false,
2723
+ "notNull": true,
2724
+ "autoincrement": false
2725
+ },
2726
+ "description": {
2727
+ "name": "description",
2728
+ "type": "text",
2729
+ "primaryKey": false,
2730
+ "notNull": false,
2731
+ "autoincrement": false
2732
+ },
2733
+ "enabled": {
2734
+ "name": "enabled",
2735
+ "type": "integer",
2736
+ "primaryKey": false,
2737
+ "notNull": true,
2738
+ "autoincrement": false,
2739
+ "default": true
2740
+ },
2741
+ "channel": {
2742
+ "name": "channel",
2743
+ "type": "text",
2744
+ "primaryKey": false,
2745
+ "notNull": false,
2746
+ "autoincrement": false
2747
+ },
2748
+ "rules": {
2749
+ "name": "rules",
2750
+ "type": "text",
2751
+ "primaryKey": false,
2752
+ "notNull": true,
2753
+ "autoincrement": false
2754
+ },
2755
+ "revision": {
2756
+ "name": "revision",
2757
+ "type": "integer",
2758
+ "primaryKey": false,
2759
+ "notNull": true,
2760
+ "autoincrement": false
2761
+ },
2762
+ "created_at": {
2763
+ "name": "created_at",
2764
+ "type": "text",
2765
+ "primaryKey": false,
2766
+ "notNull": true,
2767
+ "autoincrement": false
2768
+ },
2769
+ "updated_at": {
2770
+ "name": "updated_at",
2771
+ "type": "text",
2772
+ "primaryKey": false,
2773
+ "notNull": true,
2774
+ "autoincrement": false
2775
+ }
2776
+ },
2777
+ "indexes": {
2778
+ "idx_writing_styles_updated": {
2779
+ "name": "idx_writing_styles_updated",
2780
+ "columns": ["updated_at"],
2781
+ "isUnique": false
2782
+ },
2783
+ "idx_writing_styles_channel": {
2784
+ "name": "idx_writing_styles_channel",
2785
+ "columns": ["channel"],
2786
+ "isUnique": false
2787
+ }
2788
+ },
2789
+ "foreignKeys": {},
2790
+ "compositePrimaryKeys": {},
2791
+ "uniqueConstraints": {},
2792
+ "checkConstraints": {}
2793
+ }
2794
+ },
2795
+ "views": {},
2796
+ "enums": {},
2797
+ "_meta": {
2798
+ "schemas": {},
2799
+ "tables": {},
2800
+ "columns": {}
2801
+ },
2802
+ "internal": {
2803
+ "indexes": {}
2804
+ }
2805
+ }