@becomeopc/trendpublish 0.0.0-stage → 0.1.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 (82) hide show
  1. package/dashboard/assets/-association-list-CE--B0dM.js +1 -0
  2. package/dashboard/assets/-channel-templates-CdLCNDrC.js +6 -0
  3. package/dashboard/assets/-content-package-preview-DC4PLY9G.js +1 -0
  4. package/dashboard/assets/-editor-page-CS5uk_2L.js +1 -0
  5. package/dashboard/assets/-run-detail-view-Csh1ek6d.js +12 -0
  6. package/dashboard/assets/-run-presentation-e-aAMUOA.js +1 -0
  7. package/dashboard/assets/AnimatePresence-OeIRE0Xw.js +9 -0
  8. package/dashboard/assets/_app-Bci0KgUT.js +1 -0
  9. package/dashboard/assets/app-dialog-ChNc5zc0.js +1 -0
  10. package/dashboard/assets/arrow-left-BQWrTPzt.js +1 -0
  11. package/dashboard/assets/arrow-right-Da_6qwwr.js +1 -0
  12. package/dashboard/assets/articles-Bw-jie6T.js +1 -0
  13. package/dashboard/assets/automations-JF7dpk0H.js +2 -0
  14. package/dashboard/assets/check-C6hl-XsU.js +1 -0
  15. package/dashboard/assets/chevron-down-DXrCAjpz.js +1 -0
  16. package/dashboard/assets/chevron-right-okm7Mcup.js +1 -0
  17. package/dashboard/assets/connections-D_OfbK5O.js +1 -0
  18. package/dashboard/assets/content-plans-CmaGhnXT.js +1 -0
  19. package/dashboard/assets/content-plans_._planId.edit-BPCAxR7I.js +1 -0
  20. package/dashboard/assets/content-plans_.new-BPCAxR7I.js +1 -0
  21. package/dashboard/assets/copy-CWp2fj5q.js +1 -0
  22. package/dashboard/assets/dropdown-menu-BR9kBDP8.js +1 -0
  23. package/dashboard/assets/entity-list-C7fEITZj.js +1 -0
  24. package/dashboard/assets/execution-Brd94hIY.js +1 -0
  25. package/dashboard/assets/eye-Drma9Anf.js +1 -0
  26. package/dashboard/assets/file-text-BSOvvVFv.js +1 -0
  27. package/dashboard/assets/fingerprint-pattern-C_dvDw0n.js +1 -0
  28. package/dashboard/assets/flask-conical-DpX8Ww6S.js +1 -0
  29. package/dashboard/assets/form-field-BbOl9sGR.js +1 -0
  30. package/dashboard/assets/identities-B2SMnjY3.js +3 -0
  31. package/dashboard/assets/index-DC7b8xgR.js +51 -0
  32. package/dashboard/assets/index-pqOc3FQv.css +2 -0
  33. package/dashboard/assets/input-D7j_2GhD.js +1 -0
  34. package/dashboard/assets/jobs-WwmifsK9.js +1 -0
  35. package/dashboard/assets/jobs_._runId-BZsBpBT-.js +1 -0
  36. package/dashboard/assets/knowledge-CnqdN8mY.js +1 -0
  37. package/dashboard/assets/layers-BHAmPdjS.js +1 -0
  38. package/dashboard/assets/layout-template-_-9A39QH.js +1 -0
  39. package/dashboard/assets/library-Bo-F96xG.js +1 -0
  40. package/dashboard/assets/newspaper-Dcqy9j6N.js +1 -0
  41. package/dashboard/assets/notifications-Dlx9WRAf.js +1 -0
  42. package/dashboard/assets/page-grid-x4teY0Qb.js +1 -0
  43. package/dashboard/assets/pagination-BIxivGX2.js +1 -0
  44. package/dashboard/assets/play-CqRcIakP.js +1 -0
  45. package/dashboard/assets/plus-Cgi-AlzH.js +1 -0
  46. package/dashboard/assets/publication-destination-picker-p0aE3sNP.js +1 -0
  47. package/dashboard/assets/publishing-DYavJU0X.js +1 -0
  48. package/dashboard/assets/publishing_.styles-DfbwPHCg.js +1 -0
  49. package/dashboard/assets/publishing_.templates-DoOVohr6.js +1 -0
  50. package/dashboard/assets/publishing_.templates_.sessions._sessionId-BKbSHrpn.js +1 -0
  51. package/dashboard/assets/radio-tower-tBHGxqPI.js +1 -0
  52. package/dashboard/assets/react-ByivFozR.js +1 -0
  53. package/dashboard/assets/rolldown-runtime-DoHqwKmD.js +1 -0
  54. package/dashboard/assets/routes-zvPXw-Ia.js +1 -0
  55. package/dashboard/assets/runs-DiLk0fOQ.js +1 -0
  56. package/dashboard/assets/select-BUT5ahxS.js +1 -0
  57. package/dashboard/assets/settings-BZ3KUyq9.js +1 -0
  58. package/dashboard/assets/sources-DaQA2K6Y.js +1 -0
  59. package/dashboard/assets/sparkles-ws1IsiGt.js +1 -0
  60. package/dashboard/assets/src-DVp5YM1T.js +1 -0
  61. package/dashboard/assets/sse-_t5PeRmk.js +4 -0
  62. package/dashboard/assets/tabs-DT--ZcFL.js +1 -0
  63. package/dashboard/assets/textarea-B7N7g6fl.js +1 -0
  64. package/dashboard/assets/trash-2-C3dbRhyb.js +1 -0
  65. package/dashboard/assets/types-D57tnOAh.js +1 -0
  66. package/dashboard/assets/use-onboarding-muxucTEZ.js +1 -0
  67. package/dashboard/assets/use-workspace-snapshot-CZmWKC_d.js +1 -0
  68. package/dashboard/assets/useMutation-C221JCx3.js +1 -0
  69. package/dashboard/assets/useQuery-CH_PyDWC.js +1 -0
  70. package/dashboard/assets/workspace-DGt_GyLc.js +1 -0
  71. package/dashboard/assets/wrench-BHwKK2nB.js +1 -0
  72. package/dashboard/favicon.svg +5 -0
  73. package/dashboard/index.html +15 -0
  74. package/dist/app.js +46875 -0
  75. package/dist/cli.js +11 -0
  76. package/drizzle/0000_zippy_juggernaut.sql +361 -0
  77. package/drizzle/0001_safe_green_goblin.sql +15 -0
  78. package/drizzle/meta/0000_snapshot.json +2221 -0
  79. package/drizzle/meta/0001_snapshot.json +2299 -0
  80. package/drizzle/meta/_journal.json +20 -0
  81. package/package.json +29 -4
  82. package/README.md +0 -3
@@ -0,0 +1,2221 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "f409843e-3a03-4e81-95ec-7b9927415ca6",
5
+ "prevId": "00000000-0000-0000-0000-000000000000",
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
+ "template_id": {
1168
+ "name": "template_id",
1169
+ "type": "text",
1170
+ "primaryKey": false,
1171
+ "notNull": false,
1172
+ "autoincrement": false
1173
+ },
1174
+ "identity_id": {
1175
+ "name": "identity_id",
1176
+ "type": "text",
1177
+ "primaryKey": false,
1178
+ "notNull": true,
1179
+ "autoincrement": false
1180
+ },
1181
+ "knowledge_base_ids": {
1182
+ "name": "knowledge_base_ids",
1183
+ "type": "text",
1184
+ "primaryKey": false,
1185
+ "notNull": true,
1186
+ "autoincrement": false
1187
+ },
1188
+ "source_collection_ids": {
1189
+ "name": "source_collection_ids",
1190
+ "type": "text",
1191
+ "primaryKey": false,
1192
+ "notNull": true,
1193
+ "autoincrement": false
1194
+ },
1195
+ "connections": {
1196
+ "name": "connections",
1197
+ "type": "text",
1198
+ "primaryKey": false,
1199
+ "notNull": true,
1200
+ "autoincrement": false
1201
+ },
1202
+ "research_connections": {
1203
+ "name": "research_connections",
1204
+ "type": "text",
1205
+ "primaryKey": false,
1206
+ "notNull": false,
1207
+ "autoincrement": false
1208
+ },
1209
+ "agent": {
1210
+ "name": "agent",
1211
+ "type": "text",
1212
+ "primaryKey": false,
1213
+ "notNull": false,
1214
+ "autoincrement": false
1215
+ },
1216
+ "publishing": {
1217
+ "name": "publishing",
1218
+ "type": "text",
1219
+ "primaryKey": false,
1220
+ "notNull": true,
1221
+ "autoincrement": false
1222
+ },
1223
+ "revision": {
1224
+ "name": "revision",
1225
+ "type": "integer",
1226
+ "primaryKey": false,
1227
+ "notNull": true,
1228
+ "autoincrement": false
1229
+ },
1230
+ "created_at": {
1231
+ "name": "created_at",
1232
+ "type": "text",
1233
+ "primaryKey": false,
1234
+ "notNull": true,
1235
+ "autoincrement": false
1236
+ },
1237
+ "updated_at": {
1238
+ "name": "updated_at",
1239
+ "type": "text",
1240
+ "primaryKey": false,
1241
+ "notNull": true,
1242
+ "autoincrement": false
1243
+ }
1244
+ },
1245
+ "indexes": {
1246
+ "idx_content_plans_updated": {
1247
+ "name": "idx_content_plans_updated",
1248
+ "columns": ["updated_at"],
1249
+ "isUnique": false
1250
+ },
1251
+ "idx_content_plans_identity": {
1252
+ "name": "idx_content_plans_identity",
1253
+ "columns": ["identity_id"],
1254
+ "isUnique": false
1255
+ }
1256
+ },
1257
+ "foreignKeys": {},
1258
+ "compositePrimaryKeys": {},
1259
+ "uniqueConstraints": {},
1260
+ "checkConstraints": {}
1261
+ },
1262
+ "identities": {
1263
+ "name": "identities",
1264
+ "columns": {
1265
+ "id": {
1266
+ "name": "id",
1267
+ "type": "text",
1268
+ "primaryKey": true,
1269
+ "notNull": true,
1270
+ "autoincrement": false
1271
+ },
1272
+ "name": {
1273
+ "name": "name",
1274
+ "type": "text",
1275
+ "primaryKey": false,
1276
+ "notNull": true,
1277
+ "autoincrement": false
1278
+ },
1279
+ "enabled": {
1280
+ "name": "enabled",
1281
+ "type": "integer",
1282
+ "primaryKey": false,
1283
+ "notNull": true,
1284
+ "autoincrement": false,
1285
+ "default": true
1286
+ },
1287
+ "positioning": {
1288
+ "name": "positioning",
1289
+ "type": "text",
1290
+ "primaryKey": false,
1291
+ "notNull": true,
1292
+ "autoincrement": false
1293
+ },
1294
+ "audience": {
1295
+ "name": "audience",
1296
+ "type": "text",
1297
+ "primaryKey": false,
1298
+ "notNull": true,
1299
+ "autoincrement": false
1300
+ },
1301
+ "tone": {
1302
+ "name": "tone",
1303
+ "type": "text",
1304
+ "primaryKey": false,
1305
+ "notNull": true,
1306
+ "autoincrement": false
1307
+ },
1308
+ "forbidden_topics": {
1309
+ "name": "forbidden_topics",
1310
+ "type": "text",
1311
+ "primaryKey": false,
1312
+ "notNull": true,
1313
+ "autoincrement": false
1314
+ },
1315
+ "revision": {
1316
+ "name": "revision",
1317
+ "type": "integer",
1318
+ "primaryKey": false,
1319
+ "notNull": true,
1320
+ "autoincrement": false
1321
+ },
1322
+ "created_at": {
1323
+ "name": "created_at",
1324
+ "type": "text",
1325
+ "primaryKey": false,
1326
+ "notNull": true,
1327
+ "autoincrement": false
1328
+ },
1329
+ "updated_at": {
1330
+ "name": "updated_at",
1331
+ "type": "text",
1332
+ "primaryKey": false,
1333
+ "notNull": true,
1334
+ "autoincrement": false
1335
+ }
1336
+ },
1337
+ "indexes": {
1338
+ "idx_identities_updated": {
1339
+ "name": "idx_identities_updated",
1340
+ "columns": ["updated_at"],
1341
+ "isUnique": false
1342
+ }
1343
+ },
1344
+ "foreignKeys": {},
1345
+ "compositePrimaryKeys": {},
1346
+ "uniqueConstraints": {},
1347
+ "checkConstraints": {}
1348
+ },
1349
+ "internal_schema_versions": {
1350
+ "name": "internal_schema_versions",
1351
+ "columns": {
1352
+ "name": {
1353
+ "name": "name",
1354
+ "type": "text",
1355
+ "primaryKey": true,
1356
+ "notNull": true,
1357
+ "autoincrement": false
1358
+ },
1359
+ "version": {
1360
+ "name": "version",
1361
+ "type": "text",
1362
+ "primaryKey": false,
1363
+ "notNull": true,
1364
+ "autoincrement": false
1365
+ },
1366
+ "updated_at": {
1367
+ "name": "updated_at",
1368
+ "type": "text",
1369
+ "primaryKey": false,
1370
+ "notNull": true,
1371
+ "autoincrement": false
1372
+ }
1373
+ },
1374
+ "indexes": {},
1375
+ "foreignKeys": {},
1376
+ "compositePrimaryKeys": {},
1377
+ "uniqueConstraints": {},
1378
+ "checkConstraints": {}
1379
+ },
1380
+ "knowledge_bases": {
1381
+ "name": "knowledge_bases",
1382
+ "columns": {
1383
+ "id": {
1384
+ "name": "id",
1385
+ "type": "text",
1386
+ "primaryKey": true,
1387
+ "notNull": true,
1388
+ "autoincrement": false
1389
+ },
1390
+ "name": {
1391
+ "name": "name",
1392
+ "type": "text",
1393
+ "primaryKey": false,
1394
+ "notNull": true,
1395
+ "autoincrement": false
1396
+ },
1397
+ "enabled": {
1398
+ "name": "enabled",
1399
+ "type": "integer",
1400
+ "primaryKey": false,
1401
+ "notNull": true,
1402
+ "autoincrement": false,
1403
+ "default": true
1404
+ },
1405
+ "revision": {
1406
+ "name": "revision",
1407
+ "type": "integer",
1408
+ "primaryKey": false,
1409
+ "notNull": true,
1410
+ "autoincrement": false
1411
+ },
1412
+ "created_at": {
1413
+ "name": "created_at",
1414
+ "type": "text",
1415
+ "primaryKey": false,
1416
+ "notNull": true,
1417
+ "autoincrement": false
1418
+ },
1419
+ "updated_at": {
1420
+ "name": "updated_at",
1421
+ "type": "text",
1422
+ "primaryKey": false,
1423
+ "notNull": true,
1424
+ "autoincrement": false
1425
+ }
1426
+ },
1427
+ "indexes": {
1428
+ "idx_knowledge_bases_updated": {
1429
+ "name": "idx_knowledge_bases_updated",
1430
+ "columns": ["updated_at"],
1431
+ "isUnique": false
1432
+ }
1433
+ },
1434
+ "foreignKeys": {},
1435
+ "compositePrimaryKeys": {},
1436
+ "uniqueConstraints": {},
1437
+ "checkConstraints": {}
1438
+ },
1439
+ "knowledge_documents": {
1440
+ "name": "knowledge_documents",
1441
+ "columns": {
1442
+ "id": {
1443
+ "name": "id",
1444
+ "type": "text",
1445
+ "primaryKey": false,
1446
+ "notNull": true,
1447
+ "autoincrement": false
1448
+ },
1449
+ "knowledge_base_id": {
1450
+ "name": "knowledge_base_id",
1451
+ "type": "text",
1452
+ "primaryKey": false,
1453
+ "notNull": true,
1454
+ "autoincrement": false
1455
+ },
1456
+ "position": {
1457
+ "name": "position",
1458
+ "type": "integer",
1459
+ "primaryKey": false,
1460
+ "notNull": true,
1461
+ "autoincrement": false
1462
+ },
1463
+ "title": {
1464
+ "name": "title",
1465
+ "type": "text",
1466
+ "primaryKey": false,
1467
+ "notNull": true,
1468
+ "autoincrement": false
1469
+ },
1470
+ "content": {
1471
+ "name": "content",
1472
+ "type": "text",
1473
+ "primaryKey": false,
1474
+ "notNull": true,
1475
+ "autoincrement": false
1476
+ },
1477
+ "file_name": {
1478
+ "name": "file_name",
1479
+ "type": "text",
1480
+ "primaryKey": false,
1481
+ "notNull": false,
1482
+ "autoincrement": false
1483
+ },
1484
+ "media_type": {
1485
+ "name": "media_type",
1486
+ "type": "text",
1487
+ "primaryKey": false,
1488
+ "notNull": false,
1489
+ "autoincrement": false
1490
+ }
1491
+ },
1492
+ "indexes": {
1493
+ "idx_knowledge_documents_kb": {
1494
+ "name": "idx_knowledge_documents_kb",
1495
+ "columns": ["knowledge_base_id", "position"],
1496
+ "isUnique": false
1497
+ }
1498
+ },
1499
+ "foreignKeys": {
1500
+ "knowledge_documents_knowledge_base_id_knowledge_bases_id_fk": {
1501
+ "name": "knowledge_documents_knowledge_base_id_knowledge_bases_id_fk",
1502
+ "tableFrom": "knowledge_documents",
1503
+ "tableTo": "knowledge_bases",
1504
+ "columnsFrom": ["knowledge_base_id"],
1505
+ "columnsTo": ["id"],
1506
+ "onDelete": "cascade",
1507
+ "onUpdate": "no action"
1508
+ }
1509
+ },
1510
+ "compositePrimaryKeys": {
1511
+ "knowledge_documents_knowledge_base_id_id_pk": {
1512
+ "columns": ["knowledge_base_id", "id"],
1513
+ "name": "knowledge_documents_knowledge_base_id_id_pk"
1514
+ }
1515
+ },
1516
+ "uniqueConstraints": {},
1517
+ "checkConstraints": {}
1518
+ },
1519
+ "publications": {
1520
+ "name": "publications",
1521
+ "columns": {
1522
+ "id": {
1523
+ "name": "id",
1524
+ "type": "text",
1525
+ "primaryKey": true,
1526
+ "notNull": true,
1527
+ "autoincrement": false
1528
+ },
1529
+ "job_id": {
1530
+ "name": "job_id",
1531
+ "type": "text",
1532
+ "primaryKey": false,
1533
+ "notNull": true,
1534
+ "autoincrement": false
1535
+ },
1536
+ "package_id": {
1537
+ "name": "package_id",
1538
+ "type": "text",
1539
+ "primaryKey": false,
1540
+ "notNull": true,
1541
+ "autoincrement": false
1542
+ },
1543
+ "status": {
1544
+ "name": "status",
1545
+ "type": "text",
1546
+ "primaryKey": false,
1547
+ "notNull": true,
1548
+ "autoincrement": false
1549
+ },
1550
+ "batch": {
1551
+ "name": "batch",
1552
+ "type": "text",
1553
+ "primaryKey": false,
1554
+ "notNull": true,
1555
+ "autoincrement": false
1556
+ },
1557
+ "revision": {
1558
+ "name": "revision",
1559
+ "type": "integer",
1560
+ "primaryKey": false,
1561
+ "notNull": true,
1562
+ "autoincrement": false
1563
+ },
1564
+ "created_at": {
1565
+ "name": "created_at",
1566
+ "type": "text",
1567
+ "primaryKey": false,
1568
+ "notNull": true,
1569
+ "autoincrement": false
1570
+ },
1571
+ "updated_at": {
1572
+ "name": "updated_at",
1573
+ "type": "text",
1574
+ "primaryKey": false,
1575
+ "notNull": true,
1576
+ "autoincrement": false
1577
+ }
1578
+ },
1579
+ "indexes": {
1580
+ "idx_publications_updated": {
1581
+ "name": "idx_publications_updated",
1582
+ "columns": ["updated_at"],
1583
+ "isUnique": false
1584
+ },
1585
+ "idx_publications_package": {
1586
+ "name": "idx_publications_package",
1587
+ "columns": ["package_id"],
1588
+ "isUnique": false
1589
+ }
1590
+ },
1591
+ "foreignKeys": {},
1592
+ "compositePrimaryKeys": {},
1593
+ "uniqueConstraints": {},
1594
+ "checkConstraints": {}
1595
+ },
1596
+ "review_requests": {
1597
+ "name": "review_requests",
1598
+ "columns": {
1599
+ "id": {
1600
+ "name": "id",
1601
+ "type": "text",
1602
+ "primaryKey": true,
1603
+ "notNull": true,
1604
+ "autoincrement": false
1605
+ },
1606
+ "job_id": {
1607
+ "name": "job_id",
1608
+ "type": "text",
1609
+ "primaryKey": false,
1610
+ "notNull": true,
1611
+ "autoincrement": false
1612
+ },
1613
+ "plan_id": {
1614
+ "name": "plan_id",
1615
+ "type": "text",
1616
+ "primaryKey": false,
1617
+ "notNull": true,
1618
+ "autoincrement": false
1619
+ },
1620
+ "status": {
1621
+ "name": "status",
1622
+ "type": "text",
1623
+ "primaryKey": false,
1624
+ "notNull": true,
1625
+ "autoincrement": false
1626
+ },
1627
+ "request": {
1628
+ "name": "request",
1629
+ "type": "text",
1630
+ "primaryKey": false,
1631
+ "notNull": true,
1632
+ "autoincrement": false
1633
+ },
1634
+ "resolved_package_id": {
1635
+ "name": "resolved_package_id",
1636
+ "type": "text",
1637
+ "primaryKey": false,
1638
+ "notNull": false,
1639
+ "autoincrement": false
1640
+ },
1641
+ "revision": {
1642
+ "name": "revision",
1643
+ "type": "integer",
1644
+ "primaryKey": false,
1645
+ "notNull": true,
1646
+ "autoincrement": false
1647
+ },
1648
+ "created_at": {
1649
+ "name": "created_at",
1650
+ "type": "text",
1651
+ "primaryKey": false,
1652
+ "notNull": true,
1653
+ "autoincrement": false
1654
+ },
1655
+ "updated_at": {
1656
+ "name": "updated_at",
1657
+ "type": "text",
1658
+ "primaryKey": false,
1659
+ "notNull": true,
1660
+ "autoincrement": false
1661
+ }
1662
+ },
1663
+ "indexes": {
1664
+ "idx_review_requests_updated": {
1665
+ "name": "idx_review_requests_updated",
1666
+ "columns": ["updated_at"],
1667
+ "isUnique": false
1668
+ }
1669
+ },
1670
+ "foreignKeys": {},
1671
+ "compositePrimaryKeys": {},
1672
+ "uniqueConstraints": {},
1673
+ "checkConstraints": {}
1674
+ },
1675
+ "runtime_jobs": {
1676
+ "name": "runtime_jobs",
1677
+ "columns": {
1678
+ "id": {
1679
+ "name": "id",
1680
+ "type": "text",
1681
+ "primaryKey": true,
1682
+ "notNull": true,
1683
+ "autoincrement": false
1684
+ },
1685
+ "type": {
1686
+ "name": "type",
1687
+ "type": "text",
1688
+ "primaryKey": false,
1689
+ "notNull": true,
1690
+ "autoincrement": false
1691
+ },
1692
+ "status": {
1693
+ "name": "status",
1694
+ "type": "text",
1695
+ "primaryKey": false,
1696
+ "notNull": true,
1697
+ "autoincrement": false
1698
+ },
1699
+ "data": {
1700
+ "name": "data",
1701
+ "type": "text",
1702
+ "primaryKey": false,
1703
+ "notNull": true,
1704
+ "autoincrement": false
1705
+ },
1706
+ "created_at": {
1707
+ "name": "created_at",
1708
+ "type": "text",
1709
+ "primaryKey": false,
1710
+ "notNull": true,
1711
+ "autoincrement": false
1712
+ },
1713
+ "updated_at": {
1714
+ "name": "updated_at",
1715
+ "type": "text",
1716
+ "primaryKey": false,
1717
+ "notNull": true,
1718
+ "autoincrement": false
1719
+ }
1720
+ },
1721
+ "indexes": {
1722
+ "idx_runtime_jobs_type_created": {
1723
+ "name": "idx_runtime_jobs_type_created",
1724
+ "columns": ["type", "created_at"],
1725
+ "isUnique": false
1726
+ }
1727
+ },
1728
+ "foreignKeys": {},
1729
+ "compositePrimaryKeys": {},
1730
+ "uniqueConstraints": {},
1731
+ "checkConstraints": {}
1732
+ },
1733
+ "runtime_run_activities": {
1734
+ "name": "runtime_run_activities",
1735
+ "columns": {
1736
+ "id": {
1737
+ "name": "id",
1738
+ "type": "text",
1739
+ "primaryKey": true,
1740
+ "notNull": true,
1741
+ "autoincrement": false
1742
+ },
1743
+ "run_id": {
1744
+ "name": "run_id",
1745
+ "type": "text",
1746
+ "primaryKey": false,
1747
+ "notNull": true,
1748
+ "autoincrement": false
1749
+ },
1750
+ "session_id": {
1751
+ "name": "session_id",
1752
+ "type": "text",
1753
+ "primaryKey": false,
1754
+ "notNull": true,
1755
+ "autoincrement": false
1756
+ },
1757
+ "sequence": {
1758
+ "name": "sequence",
1759
+ "type": "integer",
1760
+ "primaryKey": false,
1761
+ "notNull": true,
1762
+ "autoincrement": false
1763
+ },
1764
+ "activity_key": {
1765
+ "name": "activity_key",
1766
+ "type": "text",
1767
+ "primaryKey": false,
1768
+ "notNull": true,
1769
+ "autoincrement": false
1770
+ },
1771
+ "kind": {
1772
+ "name": "kind",
1773
+ "type": "text",
1774
+ "primaryKey": false,
1775
+ "notNull": true,
1776
+ "autoincrement": false
1777
+ },
1778
+ "status": {
1779
+ "name": "status",
1780
+ "type": "text",
1781
+ "primaryKey": false,
1782
+ "notNull": true,
1783
+ "autoincrement": false
1784
+ },
1785
+ "data": {
1786
+ "name": "data",
1787
+ "type": "text",
1788
+ "primaryKey": false,
1789
+ "notNull": true,
1790
+ "autoincrement": false
1791
+ },
1792
+ "updated_at": {
1793
+ "name": "updated_at",
1794
+ "type": "text",
1795
+ "primaryKey": false,
1796
+ "notNull": true,
1797
+ "autoincrement": false
1798
+ }
1799
+ },
1800
+ "indexes": {
1801
+ "uq_runtime_run_activities_seq": {
1802
+ "name": "uq_runtime_run_activities_seq",
1803
+ "columns": ["run_id", "sequence"],
1804
+ "isUnique": true
1805
+ },
1806
+ "uq_runtime_run_activities_key": {
1807
+ "name": "uq_runtime_run_activities_key",
1808
+ "columns": ["run_id", "activity_key"],
1809
+ "isUnique": true
1810
+ },
1811
+ "idx_runtime_run_activities_session": {
1812
+ "name": "idx_runtime_run_activities_session",
1813
+ "columns": ["run_id", "session_id", "sequence"],
1814
+ "isUnique": false
1815
+ }
1816
+ },
1817
+ "foreignKeys": {
1818
+ "runtime_run_activities_run_id_runtime_runs_id_fk": {
1819
+ "name": "runtime_run_activities_run_id_runtime_runs_id_fk",
1820
+ "tableFrom": "runtime_run_activities",
1821
+ "tableTo": "runtime_runs",
1822
+ "columnsFrom": ["run_id"],
1823
+ "columnsTo": ["id"],
1824
+ "onDelete": "cascade",
1825
+ "onUpdate": "no action"
1826
+ },
1827
+ "runtime_run_activities_session_id_runtime_run_sessions_id_fk": {
1828
+ "name": "runtime_run_activities_session_id_runtime_run_sessions_id_fk",
1829
+ "tableFrom": "runtime_run_activities",
1830
+ "tableTo": "runtime_run_sessions",
1831
+ "columnsFrom": ["session_id"],
1832
+ "columnsTo": ["id"],
1833
+ "onDelete": "cascade",
1834
+ "onUpdate": "no action"
1835
+ }
1836
+ },
1837
+ "compositePrimaryKeys": {},
1838
+ "uniqueConstraints": {},
1839
+ "checkConstraints": {}
1840
+ },
1841
+ "runtime_run_sessions": {
1842
+ "name": "runtime_run_sessions",
1843
+ "columns": {
1844
+ "id": {
1845
+ "name": "id",
1846
+ "type": "text",
1847
+ "primaryKey": true,
1848
+ "notNull": true,
1849
+ "autoincrement": false
1850
+ },
1851
+ "run_id": {
1852
+ "name": "run_id",
1853
+ "type": "text",
1854
+ "primaryKey": false,
1855
+ "notNull": true,
1856
+ "autoincrement": false
1857
+ },
1858
+ "kind": {
1859
+ "name": "kind",
1860
+ "type": "text",
1861
+ "primaryKey": false,
1862
+ "notNull": true,
1863
+ "autoincrement": false
1864
+ },
1865
+ "status": {
1866
+ "name": "status",
1867
+ "type": "text",
1868
+ "primaryKey": false,
1869
+ "notNull": true,
1870
+ "autoincrement": false
1871
+ },
1872
+ "destination_id": {
1873
+ "name": "destination_id",
1874
+ "type": "text",
1875
+ "primaryKey": false,
1876
+ "notNull": false,
1877
+ "autoincrement": false
1878
+ },
1879
+ "data": {
1880
+ "name": "data",
1881
+ "type": "text",
1882
+ "primaryKey": false,
1883
+ "notNull": true,
1884
+ "autoincrement": false
1885
+ },
1886
+ "created_at": {
1887
+ "name": "created_at",
1888
+ "type": "text",
1889
+ "primaryKey": false,
1890
+ "notNull": true,
1891
+ "autoincrement": false
1892
+ },
1893
+ "updated_at": {
1894
+ "name": "updated_at",
1895
+ "type": "text",
1896
+ "primaryKey": false,
1897
+ "notNull": true,
1898
+ "autoincrement": false
1899
+ }
1900
+ },
1901
+ "indexes": {
1902
+ "idx_runtime_run_sessions_run": {
1903
+ "name": "idx_runtime_run_sessions_run",
1904
+ "columns": ["run_id", "created_at"],
1905
+ "isUnique": false
1906
+ }
1907
+ },
1908
+ "foreignKeys": {
1909
+ "runtime_run_sessions_run_id_runtime_runs_id_fk": {
1910
+ "name": "runtime_run_sessions_run_id_runtime_runs_id_fk",
1911
+ "tableFrom": "runtime_run_sessions",
1912
+ "tableTo": "runtime_runs",
1913
+ "columnsFrom": ["run_id"],
1914
+ "columnsTo": ["id"],
1915
+ "onDelete": "cascade",
1916
+ "onUpdate": "no action"
1917
+ }
1918
+ },
1919
+ "compositePrimaryKeys": {},
1920
+ "uniqueConstraints": {},
1921
+ "checkConstraints": {}
1922
+ },
1923
+ "runtime_runs": {
1924
+ "name": "runtime_runs",
1925
+ "columns": {
1926
+ "id": {
1927
+ "name": "id",
1928
+ "type": "text",
1929
+ "primaryKey": true,
1930
+ "notNull": true,
1931
+ "autoincrement": false
1932
+ },
1933
+ "kind": {
1934
+ "name": "kind",
1935
+ "type": "text",
1936
+ "primaryKey": false,
1937
+ "notNull": true,
1938
+ "autoincrement": false
1939
+ },
1940
+ "status": {
1941
+ "name": "status",
1942
+ "type": "text",
1943
+ "primaryKey": false,
1944
+ "notNull": true,
1945
+ "autoincrement": false
1946
+ },
1947
+ "plan_id": {
1948
+ "name": "plan_id",
1949
+ "type": "text",
1950
+ "primaryKey": false,
1951
+ "notNull": false,
1952
+ "autoincrement": false
1953
+ },
1954
+ "package_id": {
1955
+ "name": "package_id",
1956
+ "type": "text",
1957
+ "primaryKey": false,
1958
+ "notNull": false,
1959
+ "autoincrement": false
1960
+ },
1961
+ "data": {
1962
+ "name": "data",
1963
+ "type": "text",
1964
+ "primaryKey": false,
1965
+ "notNull": true,
1966
+ "autoincrement": false
1967
+ },
1968
+ "created_at": {
1969
+ "name": "created_at",
1970
+ "type": "text",
1971
+ "primaryKey": false,
1972
+ "notNull": true,
1973
+ "autoincrement": false
1974
+ },
1975
+ "updated_at": {
1976
+ "name": "updated_at",
1977
+ "type": "text",
1978
+ "primaryKey": false,
1979
+ "notNull": true,
1980
+ "autoincrement": false
1981
+ }
1982
+ },
1983
+ "indexes": {
1984
+ "idx_runtime_runs_created": {
1985
+ "name": "idx_runtime_runs_created",
1986
+ "columns": ["created_at"],
1987
+ "isUnique": false
1988
+ },
1989
+ "idx_runtime_runs_plan_created": {
1990
+ "name": "idx_runtime_runs_plan_created",
1991
+ "columns": ["plan_id", "created_at"],
1992
+ "isUnique": false
1993
+ }
1994
+ },
1995
+ "foreignKeys": {},
1996
+ "compositePrimaryKeys": {},
1997
+ "uniqueConstraints": {},
1998
+ "checkConstraints": {}
1999
+ },
2000
+ "runtime_tasks": {
2001
+ "name": "runtime_tasks",
2002
+ "columns": {
2003
+ "job_id": {
2004
+ "name": "job_id",
2005
+ "type": "text",
2006
+ "primaryKey": false,
2007
+ "notNull": true,
2008
+ "autoincrement": false
2009
+ },
2010
+ "task_id": {
2011
+ "name": "task_id",
2012
+ "type": "text",
2013
+ "primaryKey": false,
2014
+ "notNull": true,
2015
+ "autoincrement": false
2016
+ },
2017
+ "status": {
2018
+ "name": "status",
2019
+ "type": "text",
2020
+ "primaryKey": false,
2021
+ "notNull": true,
2022
+ "autoincrement": false
2023
+ },
2024
+ "fingerprint": {
2025
+ "name": "fingerprint",
2026
+ "type": "text",
2027
+ "primaryKey": false,
2028
+ "notNull": true,
2029
+ "autoincrement": false
2030
+ },
2031
+ "data": {
2032
+ "name": "data",
2033
+ "type": "text",
2034
+ "primaryKey": false,
2035
+ "notNull": true,
2036
+ "autoincrement": false
2037
+ },
2038
+ "updated_at": {
2039
+ "name": "updated_at",
2040
+ "type": "text",
2041
+ "primaryKey": false,
2042
+ "notNull": true,
2043
+ "autoincrement": false
2044
+ }
2045
+ },
2046
+ "indexes": {
2047
+ "idx_runtime_tasks_job": {
2048
+ "name": "idx_runtime_tasks_job",
2049
+ "columns": ["job_id", "updated_at"],
2050
+ "isUnique": false
2051
+ }
2052
+ },
2053
+ "foreignKeys": {},
2054
+ "compositePrimaryKeys": {
2055
+ "runtime_tasks_job_id_task_id_pk": {
2056
+ "columns": ["job_id", "task_id"],
2057
+ "name": "runtime_tasks_job_id_task_id_pk"
2058
+ }
2059
+ },
2060
+ "uniqueConstraints": {},
2061
+ "checkConstraints": {}
2062
+ },
2063
+ "source_collections": {
2064
+ "name": "source_collections",
2065
+ "columns": {
2066
+ "id": {
2067
+ "name": "id",
2068
+ "type": "text",
2069
+ "primaryKey": true,
2070
+ "notNull": true,
2071
+ "autoincrement": false
2072
+ },
2073
+ "name": {
2074
+ "name": "name",
2075
+ "type": "text",
2076
+ "primaryKey": false,
2077
+ "notNull": true,
2078
+ "autoincrement": false
2079
+ },
2080
+ "enabled": {
2081
+ "name": "enabled",
2082
+ "type": "integer",
2083
+ "primaryKey": false,
2084
+ "notNull": true,
2085
+ "autoincrement": false,
2086
+ "default": true
2087
+ },
2088
+ "revision": {
2089
+ "name": "revision",
2090
+ "type": "integer",
2091
+ "primaryKey": false,
2092
+ "notNull": true,
2093
+ "autoincrement": false
2094
+ },
2095
+ "created_at": {
2096
+ "name": "created_at",
2097
+ "type": "text",
2098
+ "primaryKey": false,
2099
+ "notNull": true,
2100
+ "autoincrement": false
2101
+ },
2102
+ "updated_at": {
2103
+ "name": "updated_at",
2104
+ "type": "text",
2105
+ "primaryKey": false,
2106
+ "notNull": true,
2107
+ "autoincrement": false
2108
+ }
2109
+ },
2110
+ "indexes": {
2111
+ "idx_source_collections_updated": {
2112
+ "name": "idx_source_collections_updated",
2113
+ "columns": ["updated_at"],
2114
+ "isUnique": false
2115
+ }
2116
+ },
2117
+ "foreignKeys": {},
2118
+ "compositePrimaryKeys": {},
2119
+ "uniqueConstraints": {},
2120
+ "checkConstraints": {}
2121
+ },
2122
+ "source_items": {
2123
+ "name": "source_items",
2124
+ "columns": {
2125
+ "id": {
2126
+ "name": "id",
2127
+ "type": "text",
2128
+ "primaryKey": false,
2129
+ "notNull": true,
2130
+ "autoincrement": false
2131
+ },
2132
+ "collection_id": {
2133
+ "name": "collection_id",
2134
+ "type": "text",
2135
+ "primaryKey": false,
2136
+ "notNull": true,
2137
+ "autoincrement": false
2138
+ },
2139
+ "position": {
2140
+ "name": "position",
2141
+ "type": "integer",
2142
+ "primaryKey": false,
2143
+ "notNull": true,
2144
+ "autoincrement": false
2145
+ },
2146
+ "kind": {
2147
+ "name": "kind",
2148
+ "type": "text",
2149
+ "primaryKey": false,
2150
+ "notNull": true,
2151
+ "autoincrement": false
2152
+ },
2153
+ "title": {
2154
+ "name": "title",
2155
+ "type": "text",
2156
+ "primaryKey": false,
2157
+ "notNull": false,
2158
+ "autoincrement": false
2159
+ },
2160
+ "enabled": {
2161
+ "name": "enabled",
2162
+ "type": "integer",
2163
+ "primaryKey": false,
2164
+ "notNull": true,
2165
+ "autoincrement": false,
2166
+ "default": true
2167
+ },
2168
+ "url": {
2169
+ "name": "url",
2170
+ "type": "text",
2171
+ "primaryKey": false,
2172
+ "notNull": false,
2173
+ "autoincrement": false
2174
+ },
2175
+ "query": {
2176
+ "name": "query",
2177
+ "type": "text",
2178
+ "primaryKey": false,
2179
+ "notNull": false,
2180
+ "autoincrement": false
2181
+ }
2182
+ },
2183
+ "indexes": {
2184
+ "idx_source_items_collection": {
2185
+ "name": "idx_source_items_collection",
2186
+ "columns": ["collection_id", "position"],
2187
+ "isUnique": false
2188
+ }
2189
+ },
2190
+ "foreignKeys": {
2191
+ "source_items_collection_id_source_collections_id_fk": {
2192
+ "name": "source_items_collection_id_source_collections_id_fk",
2193
+ "tableFrom": "source_items",
2194
+ "tableTo": "source_collections",
2195
+ "columnsFrom": ["collection_id"],
2196
+ "columnsTo": ["id"],
2197
+ "onDelete": "cascade",
2198
+ "onUpdate": "no action"
2199
+ }
2200
+ },
2201
+ "compositePrimaryKeys": {
2202
+ "source_items_collection_id_id_pk": {
2203
+ "columns": ["collection_id", "id"],
2204
+ "name": "source_items_collection_id_id_pk"
2205
+ }
2206
+ },
2207
+ "uniqueConstraints": {},
2208
+ "checkConstraints": {}
2209
+ }
2210
+ },
2211
+ "views": {},
2212
+ "enums": {},
2213
+ "_meta": {
2214
+ "schemas": {},
2215
+ "tables": {},
2216
+ "columns": {}
2217
+ },
2218
+ "internal": {
2219
+ "indexes": {}
2220
+ }
2221
+ }