@becomeopc/trendpublish 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/dashboard/assets/-association-list-CpJphL0B.js +1 -0
  2. package/dashboard/assets/-channel-templates-COQosj8a.js +6 -0
  3. package/dashboard/assets/-content-package-preview-DeF-8PPH.js +1 -0
  4. package/dashboard/assets/-editor-page-BISl-fTZ.js +1 -0
  5. package/dashboard/assets/-run-detail-view-DMxo9b8x.js +12 -0
  6. package/dashboard/assets/{-run-presentation-e-aAMUOA.js → -run-presentation-Dhp1MLMP.js} +1 -1
  7. package/dashboard/assets/AnimatePresence-DzUloIx0.js +9 -0
  8. package/dashboard/assets/_app-rmP4sHWt.js +1 -0
  9. package/dashboard/assets/arrow-left-D5-ez4tP.js +1 -0
  10. package/dashboard/assets/arrow-right-BUTx8i5Q.js +1 -0
  11. package/dashboard/assets/articles-Bn3Z1siU.js +1 -0
  12. package/dashboard/assets/automations-DMZkw8g6.js +2 -0
  13. package/dashboard/assets/connections-Dfyth9tv.js +1 -0
  14. package/dashboard/assets/content-plans-me2sZDLU.js +1 -0
  15. package/dashboard/assets/content-plans_._planId.edit-7BHuv528.js +1 -0
  16. package/dashboard/assets/content-plans_.new-7BHuv528.js +1 -0
  17. package/dashboard/assets/copy-B-eZtbzt.js +1 -0
  18. package/dashboard/assets/dropdown-menu-DAjCMI6K.js +1 -0
  19. package/dashboard/assets/eye-BSHReAUR.js +1 -0
  20. package/dashboard/assets/file-text-CfJolIKb.js +1 -0
  21. package/dashboard/assets/fingerprint-pattern-ISviPnO_.js +1 -0
  22. package/dashboard/assets/identities-CIy7Q2wP.js +3 -0
  23. package/dashboard/assets/index-BoLpab45.css +2 -0
  24. package/dashboard/assets/index-DhKRJHPQ.js +51 -0
  25. package/dashboard/assets/jobs-CMViOJeL.js +1 -0
  26. package/dashboard/assets/jobs_._runId-CA8TTEqw.js +1 -0
  27. package/dashboard/assets/knowledge-DQcgNI2r.js +1 -0
  28. package/dashboard/assets/layers-CWm3FyHG.js +1 -0
  29. package/dashboard/assets/layout-template-yIjk7F-q.js +1 -0
  30. package/dashboard/assets/library-BUCfApCB.js +1 -0
  31. package/dashboard/assets/newspaper-DPOzKLbY.js +1 -0
  32. package/dashboard/assets/play-BstQsP-v.js +1 -0
  33. package/dashboard/assets/publication-destination-picker-CJuQVZ8Z.js +1 -0
  34. package/dashboard/assets/publishing-PmNqeFKZ.js +1 -0
  35. package/dashboard/assets/publishing_.styles-B3gViZHT.js +1 -0
  36. package/dashboard/assets/publishing_.templates-DyfaO52q.js +1 -0
  37. package/dashboard/assets/{publishing_.templates_.sessions._sessionId-FkykBbtF.js → publishing_.templates_.sessions._sessionId-C32Beg6R.js} +1 -1
  38. package/dashboard/assets/radio-tower-lWqWRAVm.js +1 -0
  39. package/dashboard/assets/routes-BnBNI1ke.js +1 -0
  40. package/dashboard/assets/runs-CKnSOKv4.js +1 -0
  41. package/dashboard/assets/settings-COO33aq9.js +1 -0
  42. package/dashboard/assets/shield-check-BssN3Hif.js +1 -0
  43. package/dashboard/assets/sources-IjjBA3jh.js +1 -0
  44. package/dashboard/assets/{sse-DQK6eHXZ.js → sse-pzRA-f9J.js} +2 -2
  45. package/dashboard/assets/tabs-BoQLEzMe.js +1 -0
  46. package/dashboard/assets/trash-2-CURppE4-.js +1 -0
  47. package/dashboard/assets/use-onboarding-CGXnn74b.js +1 -0
  48. package/dashboard/assets/use-workspace-snapshot-CQHMnuFv.js +1 -0
  49. package/dashboard/assets/workspace-BpJcl3Mc.js +1 -0
  50. package/dashboard/assets/wrench-DEPBG9g2.js +1 -0
  51. package/dashboard/index.html +2 -2
  52. package/dist/app.js +9957 -3135
  53. package/drizzle/0002_clumsy_loki.sql +33 -0
  54. package/drizzle/0003_bumpy_edwin_jarvis.sql +1 -0
  55. package/drizzle/meta/0002_snapshot.json +2510 -0
  56. package/drizzle/meta/0003_snapshot.json +2517 -0
  57. package/drizzle/meta/_journal.json +14 -0
  58. package/package.json +10 -1
  59. package/dashboard/assets/-association-list-MaFlvvF5.js +0 -1
  60. package/dashboard/assets/-channel-templates-B0KzH4gz.js +0 -6
  61. package/dashboard/assets/-content-package-preview-Bc225W8p.js +0 -1
  62. package/dashboard/assets/-editor-page-DIrPd6Jj.js +0 -1
  63. package/dashboard/assets/-run-detail-view-CSb6Mp_W.js +0 -12
  64. package/dashboard/assets/AnimatePresence-dRKyi9jP.js +0 -9
  65. package/dashboard/assets/_app-C0k3Jpvj.js +0 -1
  66. package/dashboard/assets/app-dialog-CBRjH8y0.js +0 -1
  67. package/dashboard/assets/arrow-left-B1paVsKl.js +0 -1
  68. package/dashboard/assets/arrow-right-Bm6j4CRT.js +0 -1
  69. package/dashboard/assets/articles-CJ24swVV.js +0 -1
  70. package/dashboard/assets/automations-CSqhc87N.js +0 -2
  71. package/dashboard/assets/becomeopc-EvwYWHkB.js +0 -1
  72. package/dashboard/assets/check-_AvUITNy.js +0 -1
  73. package/dashboard/assets/chevron-down-CjEG9BtO.js +0 -1
  74. package/dashboard/assets/chevron-right-BcV2-ijN.js +0 -1
  75. package/dashboard/assets/connections-CUkG-3WF.js +0 -1
  76. package/dashboard/assets/content-plans-1_S1hkDo.js +0 -1
  77. package/dashboard/assets/content-plans_._planId.edit-2sqaHVmd.js +0 -1
  78. package/dashboard/assets/content-plans_.new-2sqaHVmd.js +0 -1
  79. package/dashboard/assets/copy-C4Adx2li.js +0 -1
  80. package/dashboard/assets/dropdown-menu-mpdg8__C.js +0 -1
  81. package/dashboard/assets/empty-state-B2PGtu_a.js +0 -1
  82. package/dashboard/assets/entity-list-B2WXTDDM.js +0 -1
  83. package/dashboard/assets/external-link-B2pLgsIl.js +0 -1
  84. package/dashboard/assets/eye-DyaLFyNg.js +0 -1
  85. package/dashboard/assets/file-text-BqjzSiui.js +0 -1
  86. package/dashboard/assets/fingerprint-pattern-CVznkwfS.js +0 -1
  87. package/dashboard/assets/flask-conical-B9Pn4z-3.js +0 -1
  88. package/dashboard/assets/form-field-BJITE8Lh.js +0 -1
  89. package/dashboard/assets/identities-Bpb-f7oo.js +0 -3
  90. package/dashboard/assets/index-Bx1uywm3.js +0 -51
  91. package/dashboard/assets/index-ghPnBUnR.css +0 -2
  92. package/dashboard/assets/input-Br6N0XCJ.js +0 -1
  93. package/dashboard/assets/jobs-BiQwL4Yt.js +0 -1
  94. package/dashboard/assets/jobs_._runId-DQ9L-G8H.js +0 -1
  95. package/dashboard/assets/knowledge-BePtU9f6.js +0 -1
  96. package/dashboard/assets/layers-B6jc9X_5.js +0 -1
  97. package/dashboard/assets/layout-template-11JYpJ5n.js +0 -1
  98. package/dashboard/assets/library-BlLpV8Oh.js +0 -1
  99. package/dashboard/assets/newspaper-BF6EkBWC.js +0 -1
  100. package/dashboard/assets/notifications-wLr7xSyr.js +0 -1
  101. package/dashboard/assets/page-grid-BR5GG4AN.js +0 -1
  102. package/dashboard/assets/pagination-CEYfdE0s.js +0 -1
  103. package/dashboard/assets/play-DYoZjslk.js +0 -1
  104. package/dashboard/assets/plus-DewHiaw6.js +0 -1
  105. package/dashboard/assets/publication-destination-picker-DAgQcLxS.js +0 -1
  106. package/dashboard/assets/publishing-DOrwrfAd.js +0 -1
  107. package/dashboard/assets/publishing_.styles-DUnbtaS6.js +0 -1
  108. package/dashboard/assets/publishing_.templates-pMvBK24N.js +0 -1
  109. package/dashboard/assets/radio-tower-CS59Tvfq.js +0 -1
  110. package/dashboard/assets/react-OqyHmgtK.js +0 -1
  111. package/dashboard/assets/refresh-cw-BB9_0X86.js +0 -1
  112. package/dashboard/assets/routes-15GLqJa6.js +0 -1
  113. package/dashboard/assets/runs-Cbz28Mf6.js +0 -1
  114. package/dashboard/assets/select-9cx3otc_.js +0 -1
  115. package/dashboard/assets/settings-CeJjvt-K.js +0 -1
  116. package/dashboard/assets/sources-CsuPzTTH.js +0 -1
  117. package/dashboard/assets/sparkles-C9YU6Kr5.js +0 -1
  118. package/dashboard/assets/src-DVp5YM1T.js +0 -1
  119. package/dashboard/assets/tabs-DdmTx_k0.js +0 -1
  120. package/dashboard/assets/textarea-zbjD4aac.js +0 -1
  121. package/dashboard/assets/trash-2-CcgFunKh.js +0 -1
  122. package/dashboard/assets/types-D57tnOAh.js +0 -1
  123. package/dashboard/assets/use-onboarding-fKNsbNhX.js +0 -1
  124. package/dashboard/assets/use-workspace-snapshot-MZKeTfAJ.js +0 -1
  125. package/dashboard/assets/useMutation-Xdq_89ou.js +0 -1
  126. package/dashboard/assets/workspace-XH4e6E59.js +0 -1
  127. package/dashboard/assets/wrench-C9HmhR9v.js +0 -1
@@ -0,0 +1,2517 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "bc14f681-1067-4c2c-ab0c-728a21a31795",
5
+ "prevId": "be868e3e-baf7-4b19-939d-3500147d9717",
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
+ "content_packages": {
1068
+ "name": "content_packages",
1069
+ "columns": {
1070
+ "id": {
1071
+ "name": "id",
1072
+ "type": "text",
1073
+ "primaryKey": true,
1074
+ "notNull": true,
1075
+ "autoincrement": false
1076
+ },
1077
+ "job_id": {
1078
+ "name": "job_id",
1079
+ "type": "text",
1080
+ "primaryKey": false,
1081
+ "notNull": true,
1082
+ "autoincrement": false
1083
+ },
1084
+ "plan_id": {
1085
+ "name": "plan_id",
1086
+ "type": "text",
1087
+ "primaryKey": false,
1088
+ "notNull": true,
1089
+ "autoincrement": false
1090
+ },
1091
+ "content_package": {
1092
+ "name": "content_package",
1093
+ "type": "text",
1094
+ "primaryKey": false,
1095
+ "notNull": true,
1096
+ "autoincrement": false
1097
+ },
1098
+ "revision": {
1099
+ "name": "revision",
1100
+ "type": "integer",
1101
+ "primaryKey": false,
1102
+ "notNull": true,
1103
+ "autoincrement": false
1104
+ },
1105
+ "created_at": {
1106
+ "name": "created_at",
1107
+ "type": "text",
1108
+ "primaryKey": false,
1109
+ "notNull": true,
1110
+ "autoincrement": false
1111
+ },
1112
+ "updated_at": {
1113
+ "name": "updated_at",
1114
+ "type": "text",
1115
+ "primaryKey": false,
1116
+ "notNull": true,
1117
+ "autoincrement": false
1118
+ }
1119
+ },
1120
+ "indexes": {
1121
+ "idx_content_packages_updated": {
1122
+ "name": "idx_content_packages_updated",
1123
+ "columns": ["updated_at"],
1124
+ "isUnique": false
1125
+ },
1126
+ "idx_content_packages_plan": {
1127
+ "name": "idx_content_packages_plan",
1128
+ "columns": ["plan_id"],
1129
+ "isUnique": false
1130
+ },
1131
+ "idx_content_packages_job": {
1132
+ "name": "idx_content_packages_job",
1133
+ "columns": ["job_id"],
1134
+ "isUnique": false
1135
+ }
1136
+ },
1137
+ "foreignKeys": {},
1138
+ "compositePrimaryKeys": {},
1139
+ "uniqueConstraints": {},
1140
+ "checkConstraints": {}
1141
+ },
1142
+ "content_plans": {
1143
+ "name": "content_plans",
1144
+ "columns": {
1145
+ "id": {
1146
+ "name": "id",
1147
+ "type": "text",
1148
+ "primaryKey": true,
1149
+ "notNull": true,
1150
+ "autoincrement": false
1151
+ },
1152
+ "name": {
1153
+ "name": "name",
1154
+ "type": "text",
1155
+ "primaryKey": false,
1156
+ "notNull": true,
1157
+ "autoincrement": false
1158
+ },
1159
+ "enabled": {
1160
+ "name": "enabled",
1161
+ "type": "integer",
1162
+ "primaryKey": false,
1163
+ "notNull": true,
1164
+ "autoincrement": false,
1165
+ "default": true
1166
+ },
1167
+ "identity_id": {
1168
+ "name": "identity_id",
1169
+ "type": "text",
1170
+ "primaryKey": false,
1171
+ "notNull": true,
1172
+ "autoincrement": false
1173
+ },
1174
+ "knowledge_base_ids": {
1175
+ "name": "knowledge_base_ids",
1176
+ "type": "text",
1177
+ "primaryKey": false,
1178
+ "notNull": true,
1179
+ "autoincrement": false
1180
+ },
1181
+ "source_collection_ids": {
1182
+ "name": "source_collection_ids",
1183
+ "type": "text",
1184
+ "primaryKey": false,
1185
+ "notNull": true,
1186
+ "autoincrement": false
1187
+ },
1188
+ "connections": {
1189
+ "name": "connections",
1190
+ "type": "text",
1191
+ "primaryKey": false,
1192
+ "notNull": true,
1193
+ "autoincrement": false
1194
+ },
1195
+ "research_connections": {
1196
+ "name": "research_connections",
1197
+ "type": "text",
1198
+ "primaryKey": false,
1199
+ "notNull": false,
1200
+ "autoincrement": false
1201
+ },
1202
+ "agent": {
1203
+ "name": "agent",
1204
+ "type": "text",
1205
+ "primaryKey": false,
1206
+ "notNull": false,
1207
+ "autoincrement": false
1208
+ },
1209
+ "publishing": {
1210
+ "name": "publishing",
1211
+ "type": "text",
1212
+ "primaryKey": false,
1213
+ "notNull": true,
1214
+ "autoincrement": false
1215
+ },
1216
+ "revision": {
1217
+ "name": "revision",
1218
+ "type": "integer",
1219
+ "primaryKey": false,
1220
+ "notNull": true,
1221
+ "autoincrement": false
1222
+ },
1223
+ "created_at": {
1224
+ "name": "created_at",
1225
+ "type": "text",
1226
+ "primaryKey": false,
1227
+ "notNull": true,
1228
+ "autoincrement": false
1229
+ },
1230
+ "updated_at": {
1231
+ "name": "updated_at",
1232
+ "type": "text",
1233
+ "primaryKey": false,
1234
+ "notNull": true,
1235
+ "autoincrement": false
1236
+ }
1237
+ },
1238
+ "indexes": {
1239
+ "idx_content_plans_updated": {
1240
+ "name": "idx_content_plans_updated",
1241
+ "columns": ["updated_at"],
1242
+ "isUnique": false
1243
+ },
1244
+ "idx_content_plans_identity": {
1245
+ "name": "idx_content_plans_identity",
1246
+ "columns": ["identity_id"],
1247
+ "isUnique": false
1248
+ }
1249
+ },
1250
+ "foreignKeys": {},
1251
+ "compositePrimaryKeys": {},
1252
+ "uniqueConstraints": {},
1253
+ "checkConstraints": {}
1254
+ },
1255
+ "identities": {
1256
+ "name": "identities",
1257
+ "columns": {
1258
+ "id": {
1259
+ "name": "id",
1260
+ "type": "text",
1261
+ "primaryKey": true,
1262
+ "notNull": true,
1263
+ "autoincrement": false
1264
+ },
1265
+ "name": {
1266
+ "name": "name",
1267
+ "type": "text",
1268
+ "primaryKey": false,
1269
+ "notNull": true,
1270
+ "autoincrement": false
1271
+ },
1272
+ "enabled": {
1273
+ "name": "enabled",
1274
+ "type": "integer",
1275
+ "primaryKey": false,
1276
+ "notNull": true,
1277
+ "autoincrement": false,
1278
+ "default": true
1279
+ },
1280
+ "positioning": {
1281
+ "name": "positioning",
1282
+ "type": "text",
1283
+ "primaryKey": false,
1284
+ "notNull": true,
1285
+ "autoincrement": false
1286
+ },
1287
+ "audience": {
1288
+ "name": "audience",
1289
+ "type": "text",
1290
+ "primaryKey": false,
1291
+ "notNull": true,
1292
+ "autoincrement": false
1293
+ },
1294
+ "tone": {
1295
+ "name": "tone",
1296
+ "type": "text",
1297
+ "primaryKey": false,
1298
+ "notNull": true,
1299
+ "autoincrement": false
1300
+ },
1301
+ "forbidden_topics": {
1302
+ "name": "forbidden_topics",
1303
+ "type": "text",
1304
+ "primaryKey": false,
1305
+ "notNull": true,
1306
+ "autoincrement": false
1307
+ },
1308
+ "revision": {
1309
+ "name": "revision",
1310
+ "type": "integer",
1311
+ "primaryKey": false,
1312
+ "notNull": true,
1313
+ "autoincrement": false
1314
+ },
1315
+ "created_at": {
1316
+ "name": "created_at",
1317
+ "type": "text",
1318
+ "primaryKey": false,
1319
+ "notNull": true,
1320
+ "autoincrement": false
1321
+ },
1322
+ "updated_at": {
1323
+ "name": "updated_at",
1324
+ "type": "text",
1325
+ "primaryKey": false,
1326
+ "notNull": true,
1327
+ "autoincrement": false
1328
+ }
1329
+ },
1330
+ "indexes": {
1331
+ "idx_identities_updated": {
1332
+ "name": "idx_identities_updated",
1333
+ "columns": ["updated_at"],
1334
+ "isUnique": false
1335
+ }
1336
+ },
1337
+ "foreignKeys": {},
1338
+ "compositePrimaryKeys": {},
1339
+ "uniqueConstraints": {},
1340
+ "checkConstraints": {}
1341
+ },
1342
+ "internal_schema_versions": {
1343
+ "name": "internal_schema_versions",
1344
+ "columns": {
1345
+ "name": {
1346
+ "name": "name",
1347
+ "type": "text",
1348
+ "primaryKey": true,
1349
+ "notNull": true,
1350
+ "autoincrement": false
1351
+ },
1352
+ "version": {
1353
+ "name": "version",
1354
+ "type": "text",
1355
+ "primaryKey": false,
1356
+ "notNull": true,
1357
+ "autoincrement": false
1358
+ },
1359
+ "updated_at": {
1360
+ "name": "updated_at",
1361
+ "type": "text",
1362
+ "primaryKey": false,
1363
+ "notNull": true,
1364
+ "autoincrement": false
1365
+ }
1366
+ },
1367
+ "indexes": {},
1368
+ "foreignKeys": {},
1369
+ "compositePrimaryKeys": {},
1370
+ "uniqueConstraints": {},
1371
+ "checkConstraints": {}
1372
+ },
1373
+ "knowledge_bases": {
1374
+ "name": "knowledge_bases",
1375
+ "columns": {
1376
+ "id": {
1377
+ "name": "id",
1378
+ "type": "text",
1379
+ "primaryKey": true,
1380
+ "notNull": true,
1381
+ "autoincrement": false
1382
+ },
1383
+ "name": {
1384
+ "name": "name",
1385
+ "type": "text",
1386
+ "primaryKey": false,
1387
+ "notNull": true,
1388
+ "autoincrement": false
1389
+ },
1390
+ "enabled": {
1391
+ "name": "enabled",
1392
+ "type": "integer",
1393
+ "primaryKey": false,
1394
+ "notNull": true,
1395
+ "autoincrement": false,
1396
+ "default": true
1397
+ },
1398
+ "revision": {
1399
+ "name": "revision",
1400
+ "type": "integer",
1401
+ "primaryKey": false,
1402
+ "notNull": true,
1403
+ "autoincrement": false
1404
+ },
1405
+ "created_at": {
1406
+ "name": "created_at",
1407
+ "type": "text",
1408
+ "primaryKey": false,
1409
+ "notNull": true,
1410
+ "autoincrement": false
1411
+ },
1412
+ "updated_at": {
1413
+ "name": "updated_at",
1414
+ "type": "text",
1415
+ "primaryKey": false,
1416
+ "notNull": true,
1417
+ "autoincrement": false
1418
+ }
1419
+ },
1420
+ "indexes": {
1421
+ "idx_knowledge_bases_updated": {
1422
+ "name": "idx_knowledge_bases_updated",
1423
+ "columns": ["updated_at"],
1424
+ "isUnique": false
1425
+ }
1426
+ },
1427
+ "foreignKeys": {},
1428
+ "compositePrimaryKeys": {},
1429
+ "uniqueConstraints": {},
1430
+ "checkConstraints": {}
1431
+ },
1432
+ "knowledge_documents": {
1433
+ "name": "knowledge_documents",
1434
+ "columns": {
1435
+ "id": {
1436
+ "name": "id",
1437
+ "type": "text",
1438
+ "primaryKey": false,
1439
+ "notNull": true,
1440
+ "autoincrement": false
1441
+ },
1442
+ "knowledge_base_id": {
1443
+ "name": "knowledge_base_id",
1444
+ "type": "text",
1445
+ "primaryKey": false,
1446
+ "notNull": true,
1447
+ "autoincrement": false
1448
+ },
1449
+ "position": {
1450
+ "name": "position",
1451
+ "type": "integer",
1452
+ "primaryKey": false,
1453
+ "notNull": true,
1454
+ "autoincrement": false
1455
+ },
1456
+ "title": {
1457
+ "name": "title",
1458
+ "type": "text",
1459
+ "primaryKey": false,
1460
+ "notNull": true,
1461
+ "autoincrement": false
1462
+ },
1463
+ "content": {
1464
+ "name": "content",
1465
+ "type": "text",
1466
+ "primaryKey": false,
1467
+ "notNull": true,
1468
+ "autoincrement": false
1469
+ },
1470
+ "file_name": {
1471
+ "name": "file_name",
1472
+ "type": "text",
1473
+ "primaryKey": false,
1474
+ "notNull": false,
1475
+ "autoincrement": false
1476
+ },
1477
+ "media_type": {
1478
+ "name": "media_type",
1479
+ "type": "text",
1480
+ "primaryKey": false,
1481
+ "notNull": false,
1482
+ "autoincrement": false
1483
+ }
1484
+ },
1485
+ "indexes": {
1486
+ "idx_knowledge_documents_kb": {
1487
+ "name": "idx_knowledge_documents_kb",
1488
+ "columns": ["knowledge_base_id", "position"],
1489
+ "isUnique": false
1490
+ }
1491
+ },
1492
+ "foreignKeys": {
1493
+ "knowledge_documents_knowledge_base_id_knowledge_bases_id_fk": {
1494
+ "name": "knowledge_documents_knowledge_base_id_knowledge_bases_id_fk",
1495
+ "tableFrom": "knowledge_documents",
1496
+ "tableTo": "knowledge_bases",
1497
+ "columnsFrom": ["knowledge_base_id"],
1498
+ "columnsTo": ["id"],
1499
+ "onDelete": "cascade",
1500
+ "onUpdate": "no action"
1501
+ }
1502
+ },
1503
+ "compositePrimaryKeys": {
1504
+ "knowledge_documents_knowledge_base_id_id_pk": {
1505
+ "columns": ["knowledge_base_id", "id"],
1506
+ "name": "knowledge_documents_knowledge_base_id_id_pk"
1507
+ }
1508
+ },
1509
+ "uniqueConstraints": {},
1510
+ "checkConstraints": {}
1511
+ },
1512
+ "publications": {
1513
+ "name": "publications",
1514
+ "columns": {
1515
+ "id": {
1516
+ "name": "id",
1517
+ "type": "text",
1518
+ "primaryKey": true,
1519
+ "notNull": true,
1520
+ "autoincrement": false
1521
+ },
1522
+ "job_id": {
1523
+ "name": "job_id",
1524
+ "type": "text",
1525
+ "primaryKey": false,
1526
+ "notNull": true,
1527
+ "autoincrement": false
1528
+ },
1529
+ "package_id": {
1530
+ "name": "package_id",
1531
+ "type": "text",
1532
+ "primaryKey": false,
1533
+ "notNull": true,
1534
+ "autoincrement": false
1535
+ },
1536
+ "status": {
1537
+ "name": "status",
1538
+ "type": "text",
1539
+ "primaryKey": false,
1540
+ "notNull": true,
1541
+ "autoincrement": false
1542
+ },
1543
+ "batch": {
1544
+ "name": "batch",
1545
+ "type": "text",
1546
+ "primaryKey": false,
1547
+ "notNull": true,
1548
+ "autoincrement": false
1549
+ },
1550
+ "revision": {
1551
+ "name": "revision",
1552
+ "type": "integer",
1553
+ "primaryKey": false,
1554
+ "notNull": true,
1555
+ "autoincrement": false
1556
+ },
1557
+ "created_at": {
1558
+ "name": "created_at",
1559
+ "type": "text",
1560
+ "primaryKey": false,
1561
+ "notNull": true,
1562
+ "autoincrement": false
1563
+ },
1564
+ "updated_at": {
1565
+ "name": "updated_at",
1566
+ "type": "text",
1567
+ "primaryKey": false,
1568
+ "notNull": true,
1569
+ "autoincrement": false
1570
+ }
1571
+ },
1572
+ "indexes": {
1573
+ "idx_publications_updated": {
1574
+ "name": "idx_publications_updated",
1575
+ "columns": ["updated_at"],
1576
+ "isUnique": false
1577
+ },
1578
+ "idx_publications_package": {
1579
+ "name": "idx_publications_package",
1580
+ "columns": ["package_id"],
1581
+ "isUnique": false
1582
+ }
1583
+ },
1584
+ "foreignKeys": {},
1585
+ "compositePrimaryKeys": {},
1586
+ "uniqueConstraints": {},
1587
+ "checkConstraints": {}
1588
+ },
1589
+ "publish_deliveries": {
1590
+ "name": "publish_deliveries",
1591
+ "columns": {
1592
+ "id": {
1593
+ "name": "id",
1594
+ "type": "text",
1595
+ "primaryKey": true,
1596
+ "notNull": true,
1597
+ "autoincrement": false
1598
+ },
1599
+ "job_id": {
1600
+ "name": "job_id",
1601
+ "type": "text",
1602
+ "primaryKey": false,
1603
+ "notNull": true,
1604
+ "autoincrement": false
1605
+ },
1606
+ "package_id": {
1607
+ "name": "package_id",
1608
+ "type": "text",
1609
+ "primaryKey": false,
1610
+ "notNull": true,
1611
+ "autoincrement": false
1612
+ },
1613
+ "destination_id": {
1614
+ "name": "destination_id",
1615
+ "type": "text",
1616
+ "primaryKey": false,
1617
+ "notNull": true,
1618
+ "autoincrement": false
1619
+ },
1620
+ "account_id": {
1621
+ "name": "account_id",
1622
+ "type": "text",
1623
+ "primaryKey": false,
1624
+ "notNull": true,
1625
+ "autoincrement": false
1626
+ },
1627
+ "account_name": {
1628
+ "name": "account_name",
1629
+ "type": "text",
1630
+ "primaryKey": false,
1631
+ "notNull": false,
1632
+ "autoincrement": false
1633
+ },
1634
+ "executor_connection_id": {
1635
+ "name": "executor_connection_id",
1636
+ "type": "text",
1637
+ "primaryKey": false,
1638
+ "notNull": true,
1639
+ "autoincrement": false
1640
+ },
1641
+ "channel": {
1642
+ "name": "channel",
1643
+ "type": "text",
1644
+ "primaryKey": false,
1645
+ "notNull": true,
1646
+ "autoincrement": false
1647
+ },
1648
+ "publication_type": {
1649
+ "name": "publication_type",
1650
+ "type": "text",
1651
+ "primaryKey": false,
1652
+ "notNull": true,
1653
+ "autoincrement": false
1654
+ },
1655
+ "idempotency_key": {
1656
+ "name": "idempotency_key",
1657
+ "type": "text",
1658
+ "primaryKey": false,
1659
+ "notNull": true,
1660
+ "autoincrement": false
1661
+ },
1662
+ "status": {
1663
+ "name": "status",
1664
+ "type": "text",
1665
+ "primaryKey": false,
1666
+ "notNull": true,
1667
+ "autoincrement": false
1668
+ },
1669
+ "lease_until": {
1670
+ "name": "lease_until",
1671
+ "type": "text",
1672
+ "primaryKey": false,
1673
+ "notNull": false,
1674
+ "autoincrement": false
1675
+ },
1676
+ "payload": {
1677
+ "name": "payload",
1678
+ "type": "text",
1679
+ "primaryKey": false,
1680
+ "notNull": true,
1681
+ "autoincrement": false
1682
+ },
1683
+ "prepared": {
1684
+ "name": "prepared",
1685
+ "type": "text",
1686
+ "primaryKey": false,
1687
+ "notNull": true,
1688
+ "autoincrement": false
1689
+ },
1690
+ "receipt": {
1691
+ "name": "receipt",
1692
+ "type": "text",
1693
+ "primaryKey": false,
1694
+ "notNull": false,
1695
+ "autoincrement": false
1696
+ },
1697
+ "error": {
1698
+ "name": "error",
1699
+ "type": "text",
1700
+ "primaryKey": false,
1701
+ "notNull": false,
1702
+ "autoincrement": false
1703
+ },
1704
+ "created_at": {
1705
+ "name": "created_at",
1706
+ "type": "text",
1707
+ "primaryKey": false,
1708
+ "notNull": true,
1709
+ "autoincrement": false
1710
+ },
1711
+ "updated_at": {
1712
+ "name": "updated_at",
1713
+ "type": "text",
1714
+ "primaryKey": false,
1715
+ "notNull": true,
1716
+ "autoincrement": false
1717
+ }
1718
+ },
1719
+ "indexes": {
1720
+ "uq_publish_deliveries_idempotency": {
1721
+ "name": "uq_publish_deliveries_idempotency",
1722
+ "columns": ["idempotency_key"],
1723
+ "isUnique": true
1724
+ },
1725
+ "idx_publish_deliveries_executor_status": {
1726
+ "name": "idx_publish_deliveries_executor_status",
1727
+ "columns": ["executor_connection_id", "status", "updated_at"],
1728
+ "isUnique": false
1729
+ },
1730
+ "idx_publish_deliveries_package_dest": {
1731
+ "name": "idx_publish_deliveries_package_dest",
1732
+ "columns": ["package_id", "destination_id"],
1733
+ "isUnique": false
1734
+ }
1735
+ },
1736
+ "foreignKeys": {},
1737
+ "compositePrimaryKeys": {},
1738
+ "uniqueConstraints": {},
1739
+ "checkConstraints": {}
1740
+ },
1741
+ "publish_executors": {
1742
+ "name": "publish_executors",
1743
+ "columns": {
1744
+ "connection_id": {
1745
+ "name": "connection_id",
1746
+ "type": "text",
1747
+ "primaryKey": true,
1748
+ "notNull": true,
1749
+ "autoincrement": false
1750
+ },
1751
+ "node_name": {
1752
+ "name": "node_name",
1753
+ "type": "text",
1754
+ "primaryKey": false,
1755
+ "notNull": true,
1756
+ "autoincrement": false
1757
+ },
1758
+ "extension_version": {
1759
+ "name": "extension_version",
1760
+ "type": "text",
1761
+ "primaryKey": false,
1762
+ "notNull": false,
1763
+ "autoincrement": false
1764
+ },
1765
+ "platforms": {
1766
+ "name": "platforms",
1767
+ "type": "text",
1768
+ "primaryKey": false,
1769
+ "notNull": true,
1770
+ "autoincrement": false
1771
+ },
1772
+ "accounts": {
1773
+ "name": "accounts",
1774
+ "type": "text",
1775
+ "primaryKey": false,
1776
+ "notNull": false,
1777
+ "autoincrement": false
1778
+ },
1779
+ "last_seen_at": {
1780
+ "name": "last_seen_at",
1781
+ "type": "text",
1782
+ "primaryKey": false,
1783
+ "notNull": true,
1784
+ "autoincrement": false
1785
+ },
1786
+ "created_at": {
1787
+ "name": "created_at",
1788
+ "type": "text",
1789
+ "primaryKey": false,
1790
+ "notNull": true,
1791
+ "autoincrement": false
1792
+ },
1793
+ "updated_at": {
1794
+ "name": "updated_at",
1795
+ "type": "text",
1796
+ "primaryKey": false,
1797
+ "notNull": true,
1798
+ "autoincrement": false
1799
+ }
1800
+ },
1801
+ "indexes": {},
1802
+ "foreignKeys": {},
1803
+ "compositePrimaryKeys": {},
1804
+ "uniqueConstraints": {},
1805
+ "checkConstraints": {}
1806
+ },
1807
+ "review_requests": {
1808
+ "name": "review_requests",
1809
+ "columns": {
1810
+ "id": {
1811
+ "name": "id",
1812
+ "type": "text",
1813
+ "primaryKey": true,
1814
+ "notNull": true,
1815
+ "autoincrement": false
1816
+ },
1817
+ "job_id": {
1818
+ "name": "job_id",
1819
+ "type": "text",
1820
+ "primaryKey": false,
1821
+ "notNull": true,
1822
+ "autoincrement": false
1823
+ },
1824
+ "plan_id": {
1825
+ "name": "plan_id",
1826
+ "type": "text",
1827
+ "primaryKey": false,
1828
+ "notNull": true,
1829
+ "autoincrement": false
1830
+ },
1831
+ "status": {
1832
+ "name": "status",
1833
+ "type": "text",
1834
+ "primaryKey": false,
1835
+ "notNull": true,
1836
+ "autoincrement": false
1837
+ },
1838
+ "request": {
1839
+ "name": "request",
1840
+ "type": "text",
1841
+ "primaryKey": false,
1842
+ "notNull": true,
1843
+ "autoincrement": false
1844
+ },
1845
+ "resolved_package_id": {
1846
+ "name": "resolved_package_id",
1847
+ "type": "text",
1848
+ "primaryKey": false,
1849
+ "notNull": false,
1850
+ "autoincrement": false
1851
+ },
1852
+ "revision": {
1853
+ "name": "revision",
1854
+ "type": "integer",
1855
+ "primaryKey": false,
1856
+ "notNull": true,
1857
+ "autoincrement": false
1858
+ },
1859
+ "created_at": {
1860
+ "name": "created_at",
1861
+ "type": "text",
1862
+ "primaryKey": false,
1863
+ "notNull": true,
1864
+ "autoincrement": false
1865
+ },
1866
+ "updated_at": {
1867
+ "name": "updated_at",
1868
+ "type": "text",
1869
+ "primaryKey": false,
1870
+ "notNull": true,
1871
+ "autoincrement": false
1872
+ }
1873
+ },
1874
+ "indexes": {
1875
+ "idx_review_requests_updated": {
1876
+ "name": "idx_review_requests_updated",
1877
+ "columns": ["updated_at"],
1878
+ "isUnique": false
1879
+ }
1880
+ },
1881
+ "foreignKeys": {},
1882
+ "compositePrimaryKeys": {},
1883
+ "uniqueConstraints": {},
1884
+ "checkConstraints": {}
1885
+ },
1886
+ "runtime_jobs": {
1887
+ "name": "runtime_jobs",
1888
+ "columns": {
1889
+ "id": {
1890
+ "name": "id",
1891
+ "type": "text",
1892
+ "primaryKey": true,
1893
+ "notNull": true,
1894
+ "autoincrement": false
1895
+ },
1896
+ "type": {
1897
+ "name": "type",
1898
+ "type": "text",
1899
+ "primaryKey": false,
1900
+ "notNull": true,
1901
+ "autoincrement": false
1902
+ },
1903
+ "status": {
1904
+ "name": "status",
1905
+ "type": "text",
1906
+ "primaryKey": false,
1907
+ "notNull": true,
1908
+ "autoincrement": false
1909
+ },
1910
+ "data": {
1911
+ "name": "data",
1912
+ "type": "text",
1913
+ "primaryKey": false,
1914
+ "notNull": true,
1915
+ "autoincrement": false
1916
+ },
1917
+ "created_at": {
1918
+ "name": "created_at",
1919
+ "type": "text",
1920
+ "primaryKey": false,
1921
+ "notNull": true,
1922
+ "autoincrement": false
1923
+ },
1924
+ "updated_at": {
1925
+ "name": "updated_at",
1926
+ "type": "text",
1927
+ "primaryKey": false,
1928
+ "notNull": true,
1929
+ "autoincrement": false
1930
+ }
1931
+ },
1932
+ "indexes": {
1933
+ "idx_runtime_jobs_type_created": {
1934
+ "name": "idx_runtime_jobs_type_created",
1935
+ "columns": ["type", "created_at"],
1936
+ "isUnique": false
1937
+ }
1938
+ },
1939
+ "foreignKeys": {},
1940
+ "compositePrimaryKeys": {},
1941
+ "uniqueConstraints": {},
1942
+ "checkConstraints": {}
1943
+ },
1944
+ "runtime_run_activities": {
1945
+ "name": "runtime_run_activities",
1946
+ "columns": {
1947
+ "id": {
1948
+ "name": "id",
1949
+ "type": "text",
1950
+ "primaryKey": true,
1951
+ "notNull": true,
1952
+ "autoincrement": false
1953
+ },
1954
+ "run_id": {
1955
+ "name": "run_id",
1956
+ "type": "text",
1957
+ "primaryKey": false,
1958
+ "notNull": true,
1959
+ "autoincrement": false
1960
+ },
1961
+ "session_id": {
1962
+ "name": "session_id",
1963
+ "type": "text",
1964
+ "primaryKey": false,
1965
+ "notNull": true,
1966
+ "autoincrement": false
1967
+ },
1968
+ "sequence": {
1969
+ "name": "sequence",
1970
+ "type": "integer",
1971
+ "primaryKey": false,
1972
+ "notNull": true,
1973
+ "autoincrement": false
1974
+ },
1975
+ "activity_key": {
1976
+ "name": "activity_key",
1977
+ "type": "text",
1978
+ "primaryKey": false,
1979
+ "notNull": true,
1980
+ "autoincrement": false
1981
+ },
1982
+ "kind": {
1983
+ "name": "kind",
1984
+ "type": "text",
1985
+ "primaryKey": false,
1986
+ "notNull": true,
1987
+ "autoincrement": false
1988
+ },
1989
+ "status": {
1990
+ "name": "status",
1991
+ "type": "text",
1992
+ "primaryKey": false,
1993
+ "notNull": true,
1994
+ "autoincrement": false
1995
+ },
1996
+ "data": {
1997
+ "name": "data",
1998
+ "type": "text",
1999
+ "primaryKey": false,
2000
+ "notNull": true,
2001
+ "autoincrement": false
2002
+ },
2003
+ "updated_at": {
2004
+ "name": "updated_at",
2005
+ "type": "text",
2006
+ "primaryKey": false,
2007
+ "notNull": true,
2008
+ "autoincrement": false
2009
+ }
2010
+ },
2011
+ "indexes": {
2012
+ "uq_runtime_run_activities_seq": {
2013
+ "name": "uq_runtime_run_activities_seq",
2014
+ "columns": ["run_id", "sequence"],
2015
+ "isUnique": true
2016
+ },
2017
+ "uq_runtime_run_activities_key": {
2018
+ "name": "uq_runtime_run_activities_key",
2019
+ "columns": ["run_id", "activity_key"],
2020
+ "isUnique": true
2021
+ },
2022
+ "idx_runtime_run_activities_session": {
2023
+ "name": "idx_runtime_run_activities_session",
2024
+ "columns": ["run_id", "session_id", "sequence"],
2025
+ "isUnique": false
2026
+ }
2027
+ },
2028
+ "foreignKeys": {
2029
+ "runtime_run_activities_run_id_runtime_runs_id_fk": {
2030
+ "name": "runtime_run_activities_run_id_runtime_runs_id_fk",
2031
+ "tableFrom": "runtime_run_activities",
2032
+ "tableTo": "runtime_runs",
2033
+ "columnsFrom": ["run_id"],
2034
+ "columnsTo": ["id"],
2035
+ "onDelete": "cascade",
2036
+ "onUpdate": "no action"
2037
+ },
2038
+ "runtime_run_activities_session_id_runtime_run_sessions_id_fk": {
2039
+ "name": "runtime_run_activities_session_id_runtime_run_sessions_id_fk",
2040
+ "tableFrom": "runtime_run_activities",
2041
+ "tableTo": "runtime_run_sessions",
2042
+ "columnsFrom": ["session_id"],
2043
+ "columnsTo": ["id"],
2044
+ "onDelete": "cascade",
2045
+ "onUpdate": "no action"
2046
+ }
2047
+ },
2048
+ "compositePrimaryKeys": {},
2049
+ "uniqueConstraints": {},
2050
+ "checkConstraints": {}
2051
+ },
2052
+ "runtime_run_sessions": {
2053
+ "name": "runtime_run_sessions",
2054
+ "columns": {
2055
+ "id": {
2056
+ "name": "id",
2057
+ "type": "text",
2058
+ "primaryKey": true,
2059
+ "notNull": true,
2060
+ "autoincrement": false
2061
+ },
2062
+ "run_id": {
2063
+ "name": "run_id",
2064
+ "type": "text",
2065
+ "primaryKey": false,
2066
+ "notNull": true,
2067
+ "autoincrement": false
2068
+ },
2069
+ "kind": {
2070
+ "name": "kind",
2071
+ "type": "text",
2072
+ "primaryKey": false,
2073
+ "notNull": true,
2074
+ "autoincrement": false
2075
+ },
2076
+ "status": {
2077
+ "name": "status",
2078
+ "type": "text",
2079
+ "primaryKey": false,
2080
+ "notNull": true,
2081
+ "autoincrement": false
2082
+ },
2083
+ "destination_id": {
2084
+ "name": "destination_id",
2085
+ "type": "text",
2086
+ "primaryKey": false,
2087
+ "notNull": false,
2088
+ "autoincrement": false
2089
+ },
2090
+ "data": {
2091
+ "name": "data",
2092
+ "type": "text",
2093
+ "primaryKey": false,
2094
+ "notNull": true,
2095
+ "autoincrement": false
2096
+ },
2097
+ "created_at": {
2098
+ "name": "created_at",
2099
+ "type": "text",
2100
+ "primaryKey": false,
2101
+ "notNull": true,
2102
+ "autoincrement": false
2103
+ },
2104
+ "updated_at": {
2105
+ "name": "updated_at",
2106
+ "type": "text",
2107
+ "primaryKey": false,
2108
+ "notNull": true,
2109
+ "autoincrement": false
2110
+ }
2111
+ },
2112
+ "indexes": {
2113
+ "idx_runtime_run_sessions_run": {
2114
+ "name": "idx_runtime_run_sessions_run",
2115
+ "columns": ["run_id", "created_at"],
2116
+ "isUnique": false
2117
+ }
2118
+ },
2119
+ "foreignKeys": {
2120
+ "runtime_run_sessions_run_id_runtime_runs_id_fk": {
2121
+ "name": "runtime_run_sessions_run_id_runtime_runs_id_fk",
2122
+ "tableFrom": "runtime_run_sessions",
2123
+ "tableTo": "runtime_runs",
2124
+ "columnsFrom": ["run_id"],
2125
+ "columnsTo": ["id"],
2126
+ "onDelete": "cascade",
2127
+ "onUpdate": "no action"
2128
+ }
2129
+ },
2130
+ "compositePrimaryKeys": {},
2131
+ "uniqueConstraints": {},
2132
+ "checkConstraints": {}
2133
+ },
2134
+ "runtime_runs": {
2135
+ "name": "runtime_runs",
2136
+ "columns": {
2137
+ "id": {
2138
+ "name": "id",
2139
+ "type": "text",
2140
+ "primaryKey": true,
2141
+ "notNull": true,
2142
+ "autoincrement": false
2143
+ },
2144
+ "kind": {
2145
+ "name": "kind",
2146
+ "type": "text",
2147
+ "primaryKey": false,
2148
+ "notNull": true,
2149
+ "autoincrement": false
2150
+ },
2151
+ "status": {
2152
+ "name": "status",
2153
+ "type": "text",
2154
+ "primaryKey": false,
2155
+ "notNull": true,
2156
+ "autoincrement": false
2157
+ },
2158
+ "plan_id": {
2159
+ "name": "plan_id",
2160
+ "type": "text",
2161
+ "primaryKey": false,
2162
+ "notNull": false,
2163
+ "autoincrement": false
2164
+ },
2165
+ "package_id": {
2166
+ "name": "package_id",
2167
+ "type": "text",
2168
+ "primaryKey": false,
2169
+ "notNull": false,
2170
+ "autoincrement": false
2171
+ },
2172
+ "data": {
2173
+ "name": "data",
2174
+ "type": "text",
2175
+ "primaryKey": false,
2176
+ "notNull": true,
2177
+ "autoincrement": false
2178
+ },
2179
+ "created_at": {
2180
+ "name": "created_at",
2181
+ "type": "text",
2182
+ "primaryKey": false,
2183
+ "notNull": true,
2184
+ "autoincrement": false
2185
+ },
2186
+ "updated_at": {
2187
+ "name": "updated_at",
2188
+ "type": "text",
2189
+ "primaryKey": false,
2190
+ "notNull": true,
2191
+ "autoincrement": false
2192
+ }
2193
+ },
2194
+ "indexes": {
2195
+ "idx_runtime_runs_created": {
2196
+ "name": "idx_runtime_runs_created",
2197
+ "columns": ["created_at"],
2198
+ "isUnique": false
2199
+ },
2200
+ "idx_runtime_runs_plan_created": {
2201
+ "name": "idx_runtime_runs_plan_created",
2202
+ "columns": ["plan_id", "created_at"],
2203
+ "isUnique": false
2204
+ }
2205
+ },
2206
+ "foreignKeys": {},
2207
+ "compositePrimaryKeys": {},
2208
+ "uniqueConstraints": {},
2209
+ "checkConstraints": {}
2210
+ },
2211
+ "runtime_tasks": {
2212
+ "name": "runtime_tasks",
2213
+ "columns": {
2214
+ "job_id": {
2215
+ "name": "job_id",
2216
+ "type": "text",
2217
+ "primaryKey": false,
2218
+ "notNull": true,
2219
+ "autoincrement": false
2220
+ },
2221
+ "task_id": {
2222
+ "name": "task_id",
2223
+ "type": "text",
2224
+ "primaryKey": false,
2225
+ "notNull": true,
2226
+ "autoincrement": false
2227
+ },
2228
+ "status": {
2229
+ "name": "status",
2230
+ "type": "text",
2231
+ "primaryKey": false,
2232
+ "notNull": true,
2233
+ "autoincrement": false
2234
+ },
2235
+ "fingerprint": {
2236
+ "name": "fingerprint",
2237
+ "type": "text",
2238
+ "primaryKey": false,
2239
+ "notNull": true,
2240
+ "autoincrement": false
2241
+ },
2242
+ "data": {
2243
+ "name": "data",
2244
+ "type": "text",
2245
+ "primaryKey": false,
2246
+ "notNull": true,
2247
+ "autoincrement": false
2248
+ },
2249
+ "updated_at": {
2250
+ "name": "updated_at",
2251
+ "type": "text",
2252
+ "primaryKey": false,
2253
+ "notNull": true,
2254
+ "autoincrement": false
2255
+ }
2256
+ },
2257
+ "indexes": {
2258
+ "idx_runtime_tasks_job": {
2259
+ "name": "idx_runtime_tasks_job",
2260
+ "columns": ["job_id", "updated_at"],
2261
+ "isUnique": false
2262
+ }
2263
+ },
2264
+ "foreignKeys": {},
2265
+ "compositePrimaryKeys": {
2266
+ "runtime_tasks_job_id_task_id_pk": {
2267
+ "columns": ["job_id", "task_id"],
2268
+ "name": "runtime_tasks_job_id_task_id_pk"
2269
+ }
2270
+ },
2271
+ "uniqueConstraints": {},
2272
+ "checkConstraints": {}
2273
+ },
2274
+ "source_collections": {
2275
+ "name": "source_collections",
2276
+ "columns": {
2277
+ "id": {
2278
+ "name": "id",
2279
+ "type": "text",
2280
+ "primaryKey": true,
2281
+ "notNull": true,
2282
+ "autoincrement": false
2283
+ },
2284
+ "name": {
2285
+ "name": "name",
2286
+ "type": "text",
2287
+ "primaryKey": false,
2288
+ "notNull": true,
2289
+ "autoincrement": false
2290
+ },
2291
+ "enabled": {
2292
+ "name": "enabled",
2293
+ "type": "integer",
2294
+ "primaryKey": false,
2295
+ "notNull": true,
2296
+ "autoincrement": false,
2297
+ "default": true
2298
+ },
2299
+ "revision": {
2300
+ "name": "revision",
2301
+ "type": "integer",
2302
+ "primaryKey": false,
2303
+ "notNull": true,
2304
+ "autoincrement": false
2305
+ },
2306
+ "created_at": {
2307
+ "name": "created_at",
2308
+ "type": "text",
2309
+ "primaryKey": false,
2310
+ "notNull": true,
2311
+ "autoincrement": false
2312
+ },
2313
+ "updated_at": {
2314
+ "name": "updated_at",
2315
+ "type": "text",
2316
+ "primaryKey": false,
2317
+ "notNull": true,
2318
+ "autoincrement": false
2319
+ }
2320
+ },
2321
+ "indexes": {
2322
+ "idx_source_collections_updated": {
2323
+ "name": "idx_source_collections_updated",
2324
+ "columns": ["updated_at"],
2325
+ "isUnique": false
2326
+ }
2327
+ },
2328
+ "foreignKeys": {},
2329
+ "compositePrimaryKeys": {},
2330
+ "uniqueConstraints": {},
2331
+ "checkConstraints": {}
2332
+ },
2333
+ "source_items": {
2334
+ "name": "source_items",
2335
+ "columns": {
2336
+ "id": {
2337
+ "name": "id",
2338
+ "type": "text",
2339
+ "primaryKey": false,
2340
+ "notNull": true,
2341
+ "autoincrement": false
2342
+ },
2343
+ "collection_id": {
2344
+ "name": "collection_id",
2345
+ "type": "text",
2346
+ "primaryKey": false,
2347
+ "notNull": true,
2348
+ "autoincrement": false
2349
+ },
2350
+ "position": {
2351
+ "name": "position",
2352
+ "type": "integer",
2353
+ "primaryKey": false,
2354
+ "notNull": true,
2355
+ "autoincrement": false
2356
+ },
2357
+ "kind": {
2358
+ "name": "kind",
2359
+ "type": "text",
2360
+ "primaryKey": false,
2361
+ "notNull": true,
2362
+ "autoincrement": false
2363
+ },
2364
+ "title": {
2365
+ "name": "title",
2366
+ "type": "text",
2367
+ "primaryKey": false,
2368
+ "notNull": false,
2369
+ "autoincrement": false
2370
+ },
2371
+ "enabled": {
2372
+ "name": "enabled",
2373
+ "type": "integer",
2374
+ "primaryKey": false,
2375
+ "notNull": true,
2376
+ "autoincrement": false,
2377
+ "default": true
2378
+ },
2379
+ "url": {
2380
+ "name": "url",
2381
+ "type": "text",
2382
+ "primaryKey": false,
2383
+ "notNull": false,
2384
+ "autoincrement": false
2385
+ },
2386
+ "query": {
2387
+ "name": "query",
2388
+ "type": "text",
2389
+ "primaryKey": false,
2390
+ "notNull": false,
2391
+ "autoincrement": false
2392
+ }
2393
+ },
2394
+ "indexes": {
2395
+ "idx_source_items_collection": {
2396
+ "name": "idx_source_items_collection",
2397
+ "columns": ["collection_id", "position"],
2398
+ "isUnique": false
2399
+ }
2400
+ },
2401
+ "foreignKeys": {
2402
+ "source_items_collection_id_source_collections_id_fk": {
2403
+ "name": "source_items_collection_id_source_collections_id_fk",
2404
+ "tableFrom": "source_items",
2405
+ "tableTo": "source_collections",
2406
+ "columnsFrom": ["collection_id"],
2407
+ "columnsTo": ["id"],
2408
+ "onDelete": "cascade",
2409
+ "onUpdate": "no action"
2410
+ }
2411
+ },
2412
+ "compositePrimaryKeys": {
2413
+ "source_items_collection_id_id_pk": {
2414
+ "columns": ["collection_id", "id"],
2415
+ "name": "source_items_collection_id_id_pk"
2416
+ }
2417
+ },
2418
+ "uniqueConstraints": {},
2419
+ "checkConstraints": {}
2420
+ },
2421
+ "writing_styles": {
2422
+ "name": "writing_styles",
2423
+ "columns": {
2424
+ "id": {
2425
+ "name": "id",
2426
+ "type": "text",
2427
+ "primaryKey": true,
2428
+ "notNull": true,
2429
+ "autoincrement": false
2430
+ },
2431
+ "name": {
2432
+ "name": "name",
2433
+ "type": "text",
2434
+ "primaryKey": false,
2435
+ "notNull": true,
2436
+ "autoincrement": false
2437
+ },
2438
+ "description": {
2439
+ "name": "description",
2440
+ "type": "text",
2441
+ "primaryKey": false,
2442
+ "notNull": false,
2443
+ "autoincrement": false
2444
+ },
2445
+ "enabled": {
2446
+ "name": "enabled",
2447
+ "type": "integer",
2448
+ "primaryKey": false,
2449
+ "notNull": true,
2450
+ "autoincrement": false,
2451
+ "default": true
2452
+ },
2453
+ "channel": {
2454
+ "name": "channel",
2455
+ "type": "text",
2456
+ "primaryKey": false,
2457
+ "notNull": false,
2458
+ "autoincrement": false
2459
+ },
2460
+ "rules": {
2461
+ "name": "rules",
2462
+ "type": "text",
2463
+ "primaryKey": false,
2464
+ "notNull": true,
2465
+ "autoincrement": false
2466
+ },
2467
+ "revision": {
2468
+ "name": "revision",
2469
+ "type": "integer",
2470
+ "primaryKey": false,
2471
+ "notNull": true,
2472
+ "autoincrement": false
2473
+ },
2474
+ "created_at": {
2475
+ "name": "created_at",
2476
+ "type": "text",
2477
+ "primaryKey": false,
2478
+ "notNull": true,
2479
+ "autoincrement": false
2480
+ },
2481
+ "updated_at": {
2482
+ "name": "updated_at",
2483
+ "type": "text",
2484
+ "primaryKey": false,
2485
+ "notNull": true,
2486
+ "autoincrement": false
2487
+ }
2488
+ },
2489
+ "indexes": {
2490
+ "idx_writing_styles_updated": {
2491
+ "name": "idx_writing_styles_updated",
2492
+ "columns": ["updated_at"],
2493
+ "isUnique": false
2494
+ },
2495
+ "idx_writing_styles_channel": {
2496
+ "name": "idx_writing_styles_channel",
2497
+ "columns": ["channel"],
2498
+ "isUnique": false
2499
+ }
2500
+ },
2501
+ "foreignKeys": {},
2502
+ "compositePrimaryKeys": {},
2503
+ "uniqueConstraints": {},
2504
+ "checkConstraints": {}
2505
+ }
2506
+ },
2507
+ "views": {},
2508
+ "enums": {},
2509
+ "_meta": {
2510
+ "schemas": {},
2511
+ "tables": {},
2512
+ "columns": {}
2513
+ },
2514
+ "internal": {
2515
+ "indexes": {}
2516
+ }
2517
+ }