@becomeopc/trendpublish 0.0.0-stage → 0.1.1

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 (85) hide show
  1. package/dashboard/assets/-association-list-MaFlvvF5.js +1 -0
  2. package/dashboard/assets/-channel-templates-B0KzH4gz.js +6 -0
  3. package/dashboard/assets/-content-package-preview-Bc225W8p.js +1 -0
  4. package/dashboard/assets/-editor-page-DIrPd6Jj.js +1 -0
  5. package/dashboard/assets/-run-detail-view-CSb6Mp_W.js +12 -0
  6. package/dashboard/assets/-run-presentation-e-aAMUOA.js +1 -0
  7. package/dashboard/assets/AnimatePresence-dRKyi9jP.js +9 -0
  8. package/dashboard/assets/_app-C0k3Jpvj.js +1 -0
  9. package/dashboard/assets/app-dialog-CBRjH8y0.js +1 -0
  10. package/dashboard/assets/arrow-left-B1paVsKl.js +1 -0
  11. package/dashboard/assets/arrow-right-Bm6j4CRT.js +1 -0
  12. package/dashboard/assets/articles-CJ24swVV.js +1 -0
  13. package/dashboard/assets/automations-CSqhc87N.js +2 -0
  14. package/dashboard/assets/becomeopc-EvwYWHkB.js +1 -0
  15. package/dashboard/assets/check-_AvUITNy.js +1 -0
  16. package/dashboard/assets/chevron-down-CjEG9BtO.js +1 -0
  17. package/dashboard/assets/chevron-right-BcV2-ijN.js +1 -0
  18. package/dashboard/assets/connections-CUkG-3WF.js +1 -0
  19. package/dashboard/assets/content-plans-1_S1hkDo.js +1 -0
  20. package/dashboard/assets/content-plans_._planId.edit-2sqaHVmd.js +1 -0
  21. package/dashboard/assets/content-plans_.new-2sqaHVmd.js +1 -0
  22. package/dashboard/assets/copy-C4Adx2li.js +1 -0
  23. package/dashboard/assets/dropdown-menu-mpdg8__C.js +1 -0
  24. package/dashboard/assets/empty-state-B2PGtu_a.js +1 -0
  25. package/dashboard/assets/entity-list-B2WXTDDM.js +1 -0
  26. package/dashboard/assets/execution-Brd94hIY.js +1 -0
  27. package/dashboard/assets/external-link-B2pLgsIl.js +1 -0
  28. package/dashboard/assets/eye-DyaLFyNg.js +1 -0
  29. package/dashboard/assets/file-text-BqjzSiui.js +1 -0
  30. package/dashboard/assets/fingerprint-pattern-CVznkwfS.js +1 -0
  31. package/dashboard/assets/flask-conical-B9Pn4z-3.js +1 -0
  32. package/dashboard/assets/form-field-BJITE8Lh.js +1 -0
  33. package/dashboard/assets/identities-Bpb-f7oo.js +3 -0
  34. package/dashboard/assets/index-Bx1uywm3.js +51 -0
  35. package/dashboard/assets/index-ghPnBUnR.css +2 -0
  36. package/dashboard/assets/input-Br6N0XCJ.js +1 -0
  37. package/dashboard/assets/jobs-BiQwL4Yt.js +1 -0
  38. package/dashboard/assets/jobs_._runId-DQ9L-G8H.js +1 -0
  39. package/dashboard/assets/knowledge-BePtU9f6.js +1 -0
  40. package/dashboard/assets/layers-B6jc9X_5.js +1 -0
  41. package/dashboard/assets/layout-template-11JYpJ5n.js +1 -0
  42. package/dashboard/assets/library-BlLpV8Oh.js +1 -0
  43. package/dashboard/assets/newspaper-BF6EkBWC.js +1 -0
  44. package/dashboard/assets/notifications-wLr7xSyr.js +1 -0
  45. package/dashboard/assets/page-grid-BR5GG4AN.js +1 -0
  46. package/dashboard/assets/pagination-CEYfdE0s.js +1 -0
  47. package/dashboard/assets/play-DYoZjslk.js +1 -0
  48. package/dashboard/assets/plus-DewHiaw6.js +1 -0
  49. package/dashboard/assets/publication-destination-picker-DAgQcLxS.js +1 -0
  50. package/dashboard/assets/publishing-DOrwrfAd.js +1 -0
  51. package/dashboard/assets/publishing_.styles-DUnbtaS6.js +1 -0
  52. package/dashboard/assets/publishing_.templates-pMvBK24N.js +1 -0
  53. package/dashboard/assets/publishing_.templates_.sessions._sessionId-FkykBbtF.js +1 -0
  54. package/dashboard/assets/radio-tower-CS59Tvfq.js +1 -0
  55. package/dashboard/assets/react-OqyHmgtK.js +1 -0
  56. package/dashboard/assets/refresh-cw-BB9_0X86.js +1 -0
  57. package/dashboard/assets/rolldown-runtime-DoHqwKmD.js +1 -0
  58. package/dashboard/assets/routes-15GLqJa6.js +1 -0
  59. package/dashboard/assets/runs-Cbz28Mf6.js +1 -0
  60. package/dashboard/assets/select-9cx3otc_.js +1 -0
  61. package/dashboard/assets/settings-CeJjvt-K.js +1 -0
  62. package/dashboard/assets/sources-CsuPzTTH.js +1 -0
  63. package/dashboard/assets/sparkles-C9YU6Kr5.js +1 -0
  64. package/dashboard/assets/src-DVp5YM1T.js +1 -0
  65. package/dashboard/assets/sse-DQK6eHXZ.js +4 -0
  66. package/dashboard/assets/tabs-DdmTx_k0.js +1 -0
  67. package/dashboard/assets/textarea-zbjD4aac.js +1 -0
  68. package/dashboard/assets/trash-2-CcgFunKh.js +1 -0
  69. package/dashboard/assets/types-D57tnOAh.js +1 -0
  70. package/dashboard/assets/use-onboarding-fKNsbNhX.js +1 -0
  71. package/dashboard/assets/use-workspace-snapshot-MZKeTfAJ.js +1 -0
  72. package/dashboard/assets/useMutation-Xdq_89ou.js +1 -0
  73. package/dashboard/assets/workspace-XH4e6E59.js +1 -0
  74. package/dashboard/assets/wrench-C9HmhR9v.js +1 -0
  75. package/dashboard/favicon.svg +5 -0
  76. package/dashboard/index.html +15 -0
  77. package/dist/app.js +47724 -0
  78. package/dist/cli.js +11 -0
  79. package/drizzle/0000_zippy_juggernaut.sql +361 -0
  80. package/drizzle/0001_safe_green_goblin.sql +15 -0
  81. package/drizzle/meta/0000_snapshot.json +2221 -0
  82. package/drizzle/meta/0001_snapshot.json +2299 -0
  83. package/drizzle/meta/_journal.json +20 -0
  84. package/package.json +29 -4
  85. package/README.md +0 -3
@@ -0,0 +1,2299 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "914e822e-f64c-4ca2-b969-8573e28eaed5",
5
+ "prevId": "f409843e-3a03-4e81-95ec-7b9927415ca6",
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
+ "review_requests": {
1590
+ "name": "review_requests",
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
+ "plan_id": {
1607
+ "name": "plan_id",
1608
+ "type": "text",
1609
+ "primaryKey": false,
1610
+ "notNull": true,
1611
+ "autoincrement": false
1612
+ },
1613
+ "status": {
1614
+ "name": "status",
1615
+ "type": "text",
1616
+ "primaryKey": false,
1617
+ "notNull": true,
1618
+ "autoincrement": false
1619
+ },
1620
+ "request": {
1621
+ "name": "request",
1622
+ "type": "text",
1623
+ "primaryKey": false,
1624
+ "notNull": true,
1625
+ "autoincrement": false
1626
+ },
1627
+ "resolved_package_id": {
1628
+ "name": "resolved_package_id",
1629
+ "type": "text",
1630
+ "primaryKey": false,
1631
+ "notNull": false,
1632
+ "autoincrement": false
1633
+ },
1634
+ "revision": {
1635
+ "name": "revision",
1636
+ "type": "integer",
1637
+ "primaryKey": false,
1638
+ "notNull": true,
1639
+ "autoincrement": false
1640
+ },
1641
+ "created_at": {
1642
+ "name": "created_at",
1643
+ "type": "text",
1644
+ "primaryKey": false,
1645
+ "notNull": true,
1646
+ "autoincrement": false
1647
+ },
1648
+ "updated_at": {
1649
+ "name": "updated_at",
1650
+ "type": "text",
1651
+ "primaryKey": false,
1652
+ "notNull": true,
1653
+ "autoincrement": false
1654
+ }
1655
+ },
1656
+ "indexes": {
1657
+ "idx_review_requests_updated": {
1658
+ "name": "idx_review_requests_updated",
1659
+ "columns": ["updated_at"],
1660
+ "isUnique": false
1661
+ }
1662
+ },
1663
+ "foreignKeys": {},
1664
+ "compositePrimaryKeys": {},
1665
+ "uniqueConstraints": {},
1666
+ "checkConstraints": {}
1667
+ },
1668
+ "runtime_jobs": {
1669
+ "name": "runtime_jobs",
1670
+ "columns": {
1671
+ "id": {
1672
+ "name": "id",
1673
+ "type": "text",
1674
+ "primaryKey": true,
1675
+ "notNull": true,
1676
+ "autoincrement": false
1677
+ },
1678
+ "type": {
1679
+ "name": "type",
1680
+ "type": "text",
1681
+ "primaryKey": false,
1682
+ "notNull": true,
1683
+ "autoincrement": false
1684
+ },
1685
+ "status": {
1686
+ "name": "status",
1687
+ "type": "text",
1688
+ "primaryKey": false,
1689
+ "notNull": true,
1690
+ "autoincrement": false
1691
+ },
1692
+ "data": {
1693
+ "name": "data",
1694
+ "type": "text",
1695
+ "primaryKey": false,
1696
+ "notNull": true,
1697
+ "autoincrement": false
1698
+ },
1699
+ "created_at": {
1700
+ "name": "created_at",
1701
+ "type": "text",
1702
+ "primaryKey": false,
1703
+ "notNull": true,
1704
+ "autoincrement": false
1705
+ },
1706
+ "updated_at": {
1707
+ "name": "updated_at",
1708
+ "type": "text",
1709
+ "primaryKey": false,
1710
+ "notNull": true,
1711
+ "autoincrement": false
1712
+ }
1713
+ },
1714
+ "indexes": {
1715
+ "idx_runtime_jobs_type_created": {
1716
+ "name": "idx_runtime_jobs_type_created",
1717
+ "columns": ["type", "created_at"],
1718
+ "isUnique": false
1719
+ }
1720
+ },
1721
+ "foreignKeys": {},
1722
+ "compositePrimaryKeys": {},
1723
+ "uniqueConstraints": {},
1724
+ "checkConstraints": {}
1725
+ },
1726
+ "runtime_run_activities": {
1727
+ "name": "runtime_run_activities",
1728
+ "columns": {
1729
+ "id": {
1730
+ "name": "id",
1731
+ "type": "text",
1732
+ "primaryKey": true,
1733
+ "notNull": true,
1734
+ "autoincrement": false
1735
+ },
1736
+ "run_id": {
1737
+ "name": "run_id",
1738
+ "type": "text",
1739
+ "primaryKey": false,
1740
+ "notNull": true,
1741
+ "autoincrement": false
1742
+ },
1743
+ "session_id": {
1744
+ "name": "session_id",
1745
+ "type": "text",
1746
+ "primaryKey": false,
1747
+ "notNull": true,
1748
+ "autoincrement": false
1749
+ },
1750
+ "sequence": {
1751
+ "name": "sequence",
1752
+ "type": "integer",
1753
+ "primaryKey": false,
1754
+ "notNull": true,
1755
+ "autoincrement": false
1756
+ },
1757
+ "activity_key": {
1758
+ "name": "activity_key",
1759
+ "type": "text",
1760
+ "primaryKey": false,
1761
+ "notNull": true,
1762
+ "autoincrement": false
1763
+ },
1764
+ "kind": {
1765
+ "name": "kind",
1766
+ "type": "text",
1767
+ "primaryKey": false,
1768
+ "notNull": true,
1769
+ "autoincrement": false
1770
+ },
1771
+ "status": {
1772
+ "name": "status",
1773
+ "type": "text",
1774
+ "primaryKey": false,
1775
+ "notNull": true,
1776
+ "autoincrement": false
1777
+ },
1778
+ "data": {
1779
+ "name": "data",
1780
+ "type": "text",
1781
+ "primaryKey": false,
1782
+ "notNull": true,
1783
+ "autoincrement": false
1784
+ },
1785
+ "updated_at": {
1786
+ "name": "updated_at",
1787
+ "type": "text",
1788
+ "primaryKey": false,
1789
+ "notNull": true,
1790
+ "autoincrement": false
1791
+ }
1792
+ },
1793
+ "indexes": {
1794
+ "uq_runtime_run_activities_seq": {
1795
+ "name": "uq_runtime_run_activities_seq",
1796
+ "columns": ["run_id", "sequence"],
1797
+ "isUnique": true
1798
+ },
1799
+ "uq_runtime_run_activities_key": {
1800
+ "name": "uq_runtime_run_activities_key",
1801
+ "columns": ["run_id", "activity_key"],
1802
+ "isUnique": true
1803
+ },
1804
+ "idx_runtime_run_activities_session": {
1805
+ "name": "idx_runtime_run_activities_session",
1806
+ "columns": ["run_id", "session_id", "sequence"],
1807
+ "isUnique": false
1808
+ }
1809
+ },
1810
+ "foreignKeys": {
1811
+ "runtime_run_activities_run_id_runtime_runs_id_fk": {
1812
+ "name": "runtime_run_activities_run_id_runtime_runs_id_fk",
1813
+ "tableFrom": "runtime_run_activities",
1814
+ "tableTo": "runtime_runs",
1815
+ "columnsFrom": ["run_id"],
1816
+ "columnsTo": ["id"],
1817
+ "onDelete": "cascade",
1818
+ "onUpdate": "no action"
1819
+ },
1820
+ "runtime_run_activities_session_id_runtime_run_sessions_id_fk": {
1821
+ "name": "runtime_run_activities_session_id_runtime_run_sessions_id_fk",
1822
+ "tableFrom": "runtime_run_activities",
1823
+ "tableTo": "runtime_run_sessions",
1824
+ "columnsFrom": ["session_id"],
1825
+ "columnsTo": ["id"],
1826
+ "onDelete": "cascade",
1827
+ "onUpdate": "no action"
1828
+ }
1829
+ },
1830
+ "compositePrimaryKeys": {},
1831
+ "uniqueConstraints": {},
1832
+ "checkConstraints": {}
1833
+ },
1834
+ "runtime_run_sessions": {
1835
+ "name": "runtime_run_sessions",
1836
+ "columns": {
1837
+ "id": {
1838
+ "name": "id",
1839
+ "type": "text",
1840
+ "primaryKey": true,
1841
+ "notNull": true,
1842
+ "autoincrement": false
1843
+ },
1844
+ "run_id": {
1845
+ "name": "run_id",
1846
+ "type": "text",
1847
+ "primaryKey": false,
1848
+ "notNull": true,
1849
+ "autoincrement": false
1850
+ },
1851
+ "kind": {
1852
+ "name": "kind",
1853
+ "type": "text",
1854
+ "primaryKey": false,
1855
+ "notNull": true,
1856
+ "autoincrement": false
1857
+ },
1858
+ "status": {
1859
+ "name": "status",
1860
+ "type": "text",
1861
+ "primaryKey": false,
1862
+ "notNull": true,
1863
+ "autoincrement": false
1864
+ },
1865
+ "destination_id": {
1866
+ "name": "destination_id",
1867
+ "type": "text",
1868
+ "primaryKey": false,
1869
+ "notNull": false,
1870
+ "autoincrement": false
1871
+ },
1872
+ "data": {
1873
+ "name": "data",
1874
+ "type": "text",
1875
+ "primaryKey": false,
1876
+ "notNull": true,
1877
+ "autoincrement": false
1878
+ },
1879
+ "created_at": {
1880
+ "name": "created_at",
1881
+ "type": "text",
1882
+ "primaryKey": false,
1883
+ "notNull": true,
1884
+ "autoincrement": false
1885
+ },
1886
+ "updated_at": {
1887
+ "name": "updated_at",
1888
+ "type": "text",
1889
+ "primaryKey": false,
1890
+ "notNull": true,
1891
+ "autoincrement": false
1892
+ }
1893
+ },
1894
+ "indexes": {
1895
+ "idx_runtime_run_sessions_run": {
1896
+ "name": "idx_runtime_run_sessions_run",
1897
+ "columns": ["run_id", "created_at"],
1898
+ "isUnique": false
1899
+ }
1900
+ },
1901
+ "foreignKeys": {
1902
+ "runtime_run_sessions_run_id_runtime_runs_id_fk": {
1903
+ "name": "runtime_run_sessions_run_id_runtime_runs_id_fk",
1904
+ "tableFrom": "runtime_run_sessions",
1905
+ "tableTo": "runtime_runs",
1906
+ "columnsFrom": ["run_id"],
1907
+ "columnsTo": ["id"],
1908
+ "onDelete": "cascade",
1909
+ "onUpdate": "no action"
1910
+ }
1911
+ },
1912
+ "compositePrimaryKeys": {},
1913
+ "uniqueConstraints": {},
1914
+ "checkConstraints": {}
1915
+ },
1916
+ "runtime_runs": {
1917
+ "name": "runtime_runs",
1918
+ "columns": {
1919
+ "id": {
1920
+ "name": "id",
1921
+ "type": "text",
1922
+ "primaryKey": true,
1923
+ "notNull": true,
1924
+ "autoincrement": false
1925
+ },
1926
+ "kind": {
1927
+ "name": "kind",
1928
+ "type": "text",
1929
+ "primaryKey": false,
1930
+ "notNull": true,
1931
+ "autoincrement": false
1932
+ },
1933
+ "status": {
1934
+ "name": "status",
1935
+ "type": "text",
1936
+ "primaryKey": false,
1937
+ "notNull": true,
1938
+ "autoincrement": false
1939
+ },
1940
+ "plan_id": {
1941
+ "name": "plan_id",
1942
+ "type": "text",
1943
+ "primaryKey": false,
1944
+ "notNull": false,
1945
+ "autoincrement": false
1946
+ },
1947
+ "package_id": {
1948
+ "name": "package_id",
1949
+ "type": "text",
1950
+ "primaryKey": false,
1951
+ "notNull": false,
1952
+ "autoincrement": false
1953
+ },
1954
+ "data": {
1955
+ "name": "data",
1956
+ "type": "text",
1957
+ "primaryKey": false,
1958
+ "notNull": true,
1959
+ "autoincrement": false
1960
+ },
1961
+ "created_at": {
1962
+ "name": "created_at",
1963
+ "type": "text",
1964
+ "primaryKey": false,
1965
+ "notNull": true,
1966
+ "autoincrement": false
1967
+ },
1968
+ "updated_at": {
1969
+ "name": "updated_at",
1970
+ "type": "text",
1971
+ "primaryKey": false,
1972
+ "notNull": true,
1973
+ "autoincrement": false
1974
+ }
1975
+ },
1976
+ "indexes": {
1977
+ "idx_runtime_runs_created": {
1978
+ "name": "idx_runtime_runs_created",
1979
+ "columns": ["created_at"],
1980
+ "isUnique": false
1981
+ },
1982
+ "idx_runtime_runs_plan_created": {
1983
+ "name": "idx_runtime_runs_plan_created",
1984
+ "columns": ["plan_id", "created_at"],
1985
+ "isUnique": false
1986
+ }
1987
+ },
1988
+ "foreignKeys": {},
1989
+ "compositePrimaryKeys": {},
1990
+ "uniqueConstraints": {},
1991
+ "checkConstraints": {}
1992
+ },
1993
+ "runtime_tasks": {
1994
+ "name": "runtime_tasks",
1995
+ "columns": {
1996
+ "job_id": {
1997
+ "name": "job_id",
1998
+ "type": "text",
1999
+ "primaryKey": false,
2000
+ "notNull": true,
2001
+ "autoincrement": false
2002
+ },
2003
+ "task_id": {
2004
+ "name": "task_id",
2005
+ "type": "text",
2006
+ "primaryKey": false,
2007
+ "notNull": true,
2008
+ "autoincrement": false
2009
+ },
2010
+ "status": {
2011
+ "name": "status",
2012
+ "type": "text",
2013
+ "primaryKey": false,
2014
+ "notNull": true,
2015
+ "autoincrement": false
2016
+ },
2017
+ "fingerprint": {
2018
+ "name": "fingerprint",
2019
+ "type": "text",
2020
+ "primaryKey": false,
2021
+ "notNull": true,
2022
+ "autoincrement": false
2023
+ },
2024
+ "data": {
2025
+ "name": "data",
2026
+ "type": "text",
2027
+ "primaryKey": false,
2028
+ "notNull": true,
2029
+ "autoincrement": false
2030
+ },
2031
+ "updated_at": {
2032
+ "name": "updated_at",
2033
+ "type": "text",
2034
+ "primaryKey": false,
2035
+ "notNull": true,
2036
+ "autoincrement": false
2037
+ }
2038
+ },
2039
+ "indexes": {
2040
+ "idx_runtime_tasks_job": {
2041
+ "name": "idx_runtime_tasks_job",
2042
+ "columns": ["job_id", "updated_at"],
2043
+ "isUnique": false
2044
+ }
2045
+ },
2046
+ "foreignKeys": {},
2047
+ "compositePrimaryKeys": {
2048
+ "runtime_tasks_job_id_task_id_pk": {
2049
+ "columns": ["job_id", "task_id"],
2050
+ "name": "runtime_tasks_job_id_task_id_pk"
2051
+ }
2052
+ },
2053
+ "uniqueConstraints": {},
2054
+ "checkConstraints": {}
2055
+ },
2056
+ "source_collections": {
2057
+ "name": "source_collections",
2058
+ "columns": {
2059
+ "id": {
2060
+ "name": "id",
2061
+ "type": "text",
2062
+ "primaryKey": true,
2063
+ "notNull": true,
2064
+ "autoincrement": false
2065
+ },
2066
+ "name": {
2067
+ "name": "name",
2068
+ "type": "text",
2069
+ "primaryKey": false,
2070
+ "notNull": true,
2071
+ "autoincrement": false
2072
+ },
2073
+ "enabled": {
2074
+ "name": "enabled",
2075
+ "type": "integer",
2076
+ "primaryKey": false,
2077
+ "notNull": true,
2078
+ "autoincrement": false,
2079
+ "default": true
2080
+ },
2081
+ "revision": {
2082
+ "name": "revision",
2083
+ "type": "integer",
2084
+ "primaryKey": false,
2085
+ "notNull": true,
2086
+ "autoincrement": false
2087
+ },
2088
+ "created_at": {
2089
+ "name": "created_at",
2090
+ "type": "text",
2091
+ "primaryKey": false,
2092
+ "notNull": true,
2093
+ "autoincrement": false
2094
+ },
2095
+ "updated_at": {
2096
+ "name": "updated_at",
2097
+ "type": "text",
2098
+ "primaryKey": false,
2099
+ "notNull": true,
2100
+ "autoincrement": false
2101
+ }
2102
+ },
2103
+ "indexes": {
2104
+ "idx_source_collections_updated": {
2105
+ "name": "idx_source_collections_updated",
2106
+ "columns": ["updated_at"],
2107
+ "isUnique": false
2108
+ }
2109
+ },
2110
+ "foreignKeys": {},
2111
+ "compositePrimaryKeys": {},
2112
+ "uniqueConstraints": {},
2113
+ "checkConstraints": {}
2114
+ },
2115
+ "source_items": {
2116
+ "name": "source_items",
2117
+ "columns": {
2118
+ "id": {
2119
+ "name": "id",
2120
+ "type": "text",
2121
+ "primaryKey": false,
2122
+ "notNull": true,
2123
+ "autoincrement": false
2124
+ },
2125
+ "collection_id": {
2126
+ "name": "collection_id",
2127
+ "type": "text",
2128
+ "primaryKey": false,
2129
+ "notNull": true,
2130
+ "autoincrement": false
2131
+ },
2132
+ "position": {
2133
+ "name": "position",
2134
+ "type": "integer",
2135
+ "primaryKey": false,
2136
+ "notNull": true,
2137
+ "autoincrement": false
2138
+ },
2139
+ "kind": {
2140
+ "name": "kind",
2141
+ "type": "text",
2142
+ "primaryKey": false,
2143
+ "notNull": true,
2144
+ "autoincrement": false
2145
+ },
2146
+ "title": {
2147
+ "name": "title",
2148
+ "type": "text",
2149
+ "primaryKey": false,
2150
+ "notNull": false,
2151
+ "autoincrement": false
2152
+ },
2153
+ "enabled": {
2154
+ "name": "enabled",
2155
+ "type": "integer",
2156
+ "primaryKey": false,
2157
+ "notNull": true,
2158
+ "autoincrement": false,
2159
+ "default": true
2160
+ },
2161
+ "url": {
2162
+ "name": "url",
2163
+ "type": "text",
2164
+ "primaryKey": false,
2165
+ "notNull": false,
2166
+ "autoincrement": false
2167
+ },
2168
+ "query": {
2169
+ "name": "query",
2170
+ "type": "text",
2171
+ "primaryKey": false,
2172
+ "notNull": false,
2173
+ "autoincrement": false
2174
+ }
2175
+ },
2176
+ "indexes": {
2177
+ "idx_source_items_collection": {
2178
+ "name": "idx_source_items_collection",
2179
+ "columns": ["collection_id", "position"],
2180
+ "isUnique": false
2181
+ }
2182
+ },
2183
+ "foreignKeys": {
2184
+ "source_items_collection_id_source_collections_id_fk": {
2185
+ "name": "source_items_collection_id_source_collections_id_fk",
2186
+ "tableFrom": "source_items",
2187
+ "tableTo": "source_collections",
2188
+ "columnsFrom": ["collection_id"],
2189
+ "columnsTo": ["id"],
2190
+ "onDelete": "cascade",
2191
+ "onUpdate": "no action"
2192
+ }
2193
+ },
2194
+ "compositePrimaryKeys": {
2195
+ "source_items_collection_id_id_pk": {
2196
+ "columns": ["collection_id", "id"],
2197
+ "name": "source_items_collection_id_id_pk"
2198
+ }
2199
+ },
2200
+ "uniqueConstraints": {},
2201
+ "checkConstraints": {}
2202
+ },
2203
+ "writing_styles": {
2204
+ "name": "writing_styles",
2205
+ "columns": {
2206
+ "id": {
2207
+ "name": "id",
2208
+ "type": "text",
2209
+ "primaryKey": true,
2210
+ "notNull": true,
2211
+ "autoincrement": false
2212
+ },
2213
+ "name": {
2214
+ "name": "name",
2215
+ "type": "text",
2216
+ "primaryKey": false,
2217
+ "notNull": true,
2218
+ "autoincrement": false
2219
+ },
2220
+ "description": {
2221
+ "name": "description",
2222
+ "type": "text",
2223
+ "primaryKey": false,
2224
+ "notNull": false,
2225
+ "autoincrement": false
2226
+ },
2227
+ "enabled": {
2228
+ "name": "enabled",
2229
+ "type": "integer",
2230
+ "primaryKey": false,
2231
+ "notNull": true,
2232
+ "autoincrement": false,
2233
+ "default": true
2234
+ },
2235
+ "channel": {
2236
+ "name": "channel",
2237
+ "type": "text",
2238
+ "primaryKey": false,
2239
+ "notNull": false,
2240
+ "autoincrement": false
2241
+ },
2242
+ "rules": {
2243
+ "name": "rules",
2244
+ "type": "text",
2245
+ "primaryKey": false,
2246
+ "notNull": true,
2247
+ "autoincrement": false
2248
+ },
2249
+ "revision": {
2250
+ "name": "revision",
2251
+ "type": "integer",
2252
+ "primaryKey": false,
2253
+ "notNull": true,
2254
+ "autoincrement": false
2255
+ },
2256
+ "created_at": {
2257
+ "name": "created_at",
2258
+ "type": "text",
2259
+ "primaryKey": false,
2260
+ "notNull": true,
2261
+ "autoincrement": false
2262
+ },
2263
+ "updated_at": {
2264
+ "name": "updated_at",
2265
+ "type": "text",
2266
+ "primaryKey": false,
2267
+ "notNull": true,
2268
+ "autoincrement": false
2269
+ }
2270
+ },
2271
+ "indexes": {
2272
+ "idx_writing_styles_updated": {
2273
+ "name": "idx_writing_styles_updated",
2274
+ "columns": ["updated_at"],
2275
+ "isUnique": false
2276
+ },
2277
+ "idx_writing_styles_channel": {
2278
+ "name": "idx_writing_styles_channel",
2279
+ "columns": ["channel"],
2280
+ "isUnique": false
2281
+ }
2282
+ },
2283
+ "foreignKeys": {},
2284
+ "compositePrimaryKeys": {},
2285
+ "uniqueConstraints": {},
2286
+ "checkConstraints": {}
2287
+ }
2288
+ },
2289
+ "views": {},
2290
+ "enums": {},
2291
+ "_meta": {
2292
+ "schemas": {},
2293
+ "tables": {},
2294
+ "columns": {}
2295
+ },
2296
+ "internal": {
2297
+ "indexes": {}
2298
+ }
2299
+ }