@inkeep/agents-core 0.15.0 → 0.16.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 (40) hide show
  1. package/dist/{chunk-FLKAMXLV.js → chunk-L53XWAYG.js} +1 -1
  2. package/dist/chunk-R2EERZSW.js +223 -0
  3. package/dist/{chunk-FMCAYVO7.js → chunk-TO2HNKGP.js} +167 -10
  4. package/dist/{chunk-AHSEMW6N.js → chunk-VPJ6Z5QZ.js} +43 -7
  5. package/dist/client-exports.cjs +215 -21
  6. package/dist/client-exports.d.cts +16 -12
  7. package/dist/client-exports.d.ts +16 -12
  8. package/dist/client-exports.js +4 -10
  9. package/dist/db/schema.cjs +42 -6
  10. package/dist/db/schema.d.cts +2 -2
  11. package/dist/db/schema.d.ts +2 -2
  12. package/dist/db/schema.js +1 -1
  13. package/dist/index.cjs +3274 -2819
  14. package/dist/index.d.cts +365 -314
  15. package/dist/index.d.ts +365 -314
  16. package/dist/index.js +2519 -2494
  17. package/dist/props-validation-BMR1qNiy.d.cts +15 -0
  18. package/dist/props-validation-BMR1qNiy.d.ts +15 -0
  19. package/dist/{schema-D0E2bG9V.d.ts → schema-BtdvdyOA.d.ts} +253 -64
  20. package/dist/{schema-CTBfyt-o.d.cts → schema-DVnfWYwH.d.cts} +253 -64
  21. package/dist/types/index.d.cts +2 -2
  22. package/dist/types/index.d.ts +2 -2
  23. package/dist/{utility-BMAHFZX6.d.cts → utility-BaVsvScm.d.cts} +873 -326
  24. package/dist/{utility-BMAHFZX6.d.ts → utility-BaVsvScm.d.ts} +873 -326
  25. package/dist/utils/schema-conversion.cjs +236 -0
  26. package/dist/utils/schema-conversion.d.cts +26 -0
  27. package/dist/utils/schema-conversion.d.ts +26 -0
  28. package/dist/utils/schema-conversion.js +1 -0
  29. package/dist/validation/index.cjs +218 -14
  30. package/dist/validation/index.d.cts +3 -2
  31. package/dist/validation/index.d.ts +3 -2
  32. package/dist/validation/index.js +2 -2
  33. package/drizzle/0002_bumpy_romulus.sql +3 -0
  34. package/drizzle/0003_soft_forgotten_one.sql +39 -0
  35. package/drizzle/0004_melted_omega_flight.sql +3 -0
  36. package/drizzle/meta/0002_snapshot.json +2428 -0
  37. package/drizzle/meta/0003_snapshot.json +2559 -0
  38. package/drizzle/meta/0004_snapshot.json +2547 -0
  39. package/drizzle/meta/_journal.json +21 -0
  40. package/package.json +1 -1
@@ -0,0 +1,2428 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "39a038ad-52c0-488f-bf8d-51883000f913",
5
+ "prevId": "c250d6aa-b8de-4cc9-a380-7a3f57c71597",
6
+ "tables": {
7
+ "agent_artifact_components": {
8
+ "name": "agent_artifact_components",
9
+ "columns": {
10
+ "tenant_id": {
11
+ "name": "tenant_id",
12
+ "type": "text",
13
+ "primaryKey": false,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "id": {
18
+ "name": "id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "project_id": {
25
+ "name": "project_id",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false
30
+ },
31
+ "graph_id": {
32
+ "name": "graph_id",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": true,
36
+ "autoincrement": false
37
+ },
38
+ "agent_id": {
39
+ "name": "agent_id",
40
+ "type": "text",
41
+ "primaryKey": false,
42
+ "notNull": true,
43
+ "autoincrement": false
44
+ },
45
+ "artifact_component_id": {
46
+ "name": "artifact_component_id",
47
+ "type": "text",
48
+ "primaryKey": false,
49
+ "notNull": true,
50
+ "autoincrement": false
51
+ },
52
+ "created_at": {
53
+ "name": "created_at",
54
+ "type": "text",
55
+ "primaryKey": false,
56
+ "notNull": true,
57
+ "autoincrement": false,
58
+ "default": "CURRENT_TIMESTAMP"
59
+ }
60
+ },
61
+ "indexes": {},
62
+ "foreignKeys": {
63
+ "agent_artifact_components_agent_fk": {
64
+ "name": "agent_artifact_components_agent_fk",
65
+ "tableFrom": "agent_artifact_components",
66
+ "tableTo": "agents",
67
+ "columnsFrom": [
68
+ "tenant_id",
69
+ "project_id",
70
+ "graph_id",
71
+ "agent_id"
72
+ ],
73
+ "columnsTo": [
74
+ "tenant_id",
75
+ "project_id",
76
+ "graph_id",
77
+ "id"
78
+ ],
79
+ "onDelete": "cascade",
80
+ "onUpdate": "no action"
81
+ },
82
+ "agent_artifact_components_artifact_component_fk": {
83
+ "name": "agent_artifact_components_artifact_component_fk",
84
+ "tableFrom": "agent_artifact_components",
85
+ "tableTo": "artifact_components",
86
+ "columnsFrom": [
87
+ "tenant_id",
88
+ "project_id",
89
+ "artifact_component_id"
90
+ ],
91
+ "columnsTo": [
92
+ "tenant_id",
93
+ "project_id",
94
+ "id"
95
+ ],
96
+ "onDelete": "cascade",
97
+ "onUpdate": "no action"
98
+ }
99
+ },
100
+ "compositePrimaryKeys": {
101
+ "agent_artifact_components_tenant_id_project_id_graph_id_agent_id_id_pk": {
102
+ "columns": [
103
+ "tenant_id",
104
+ "project_id",
105
+ "graph_id",
106
+ "agent_id",
107
+ "id"
108
+ ],
109
+ "name": "agent_artifact_components_tenant_id_project_id_graph_id_agent_id_id_pk"
110
+ }
111
+ },
112
+ "uniqueConstraints": {},
113
+ "checkConstraints": {}
114
+ },
115
+ "agent_data_components": {
116
+ "name": "agent_data_components",
117
+ "columns": {
118
+ "tenant_id": {
119
+ "name": "tenant_id",
120
+ "type": "text",
121
+ "primaryKey": false,
122
+ "notNull": true,
123
+ "autoincrement": false
124
+ },
125
+ "id": {
126
+ "name": "id",
127
+ "type": "text",
128
+ "primaryKey": false,
129
+ "notNull": true,
130
+ "autoincrement": false
131
+ },
132
+ "project_id": {
133
+ "name": "project_id",
134
+ "type": "text",
135
+ "primaryKey": false,
136
+ "notNull": true,
137
+ "autoincrement": false
138
+ },
139
+ "graph_id": {
140
+ "name": "graph_id",
141
+ "type": "text",
142
+ "primaryKey": false,
143
+ "notNull": true,
144
+ "autoincrement": false
145
+ },
146
+ "agent_id": {
147
+ "name": "agent_id",
148
+ "type": "text",
149
+ "primaryKey": false,
150
+ "notNull": true,
151
+ "autoincrement": false
152
+ },
153
+ "data_component_id": {
154
+ "name": "data_component_id",
155
+ "type": "text",
156
+ "primaryKey": false,
157
+ "notNull": true,
158
+ "autoincrement": false
159
+ },
160
+ "created_at": {
161
+ "name": "created_at",
162
+ "type": "text",
163
+ "primaryKey": false,
164
+ "notNull": true,
165
+ "autoincrement": false,
166
+ "default": "CURRENT_TIMESTAMP"
167
+ }
168
+ },
169
+ "indexes": {},
170
+ "foreignKeys": {
171
+ "agent_data_components_agent_fk": {
172
+ "name": "agent_data_components_agent_fk",
173
+ "tableFrom": "agent_data_components",
174
+ "tableTo": "agents",
175
+ "columnsFrom": [
176
+ "tenant_id",
177
+ "project_id",
178
+ "graph_id",
179
+ "agent_id"
180
+ ],
181
+ "columnsTo": [
182
+ "tenant_id",
183
+ "project_id",
184
+ "graph_id",
185
+ "id"
186
+ ],
187
+ "onDelete": "cascade",
188
+ "onUpdate": "no action"
189
+ },
190
+ "agent_data_components_data_component_fk": {
191
+ "name": "agent_data_components_data_component_fk",
192
+ "tableFrom": "agent_data_components",
193
+ "tableTo": "data_components",
194
+ "columnsFrom": [
195
+ "tenant_id",
196
+ "project_id",
197
+ "data_component_id"
198
+ ],
199
+ "columnsTo": [
200
+ "tenant_id",
201
+ "project_id",
202
+ "id"
203
+ ],
204
+ "onDelete": "cascade",
205
+ "onUpdate": "no action"
206
+ }
207
+ },
208
+ "compositePrimaryKeys": {
209
+ "agent_data_components_tenant_id_project_id_id_pk": {
210
+ "columns": [
211
+ "tenant_id",
212
+ "project_id",
213
+ "id"
214
+ ],
215
+ "name": "agent_data_components_tenant_id_project_id_id_pk"
216
+ }
217
+ },
218
+ "uniqueConstraints": {},
219
+ "checkConstraints": {}
220
+ },
221
+ "agent_graph": {
222
+ "name": "agent_graph",
223
+ "columns": {
224
+ "tenant_id": {
225
+ "name": "tenant_id",
226
+ "type": "text",
227
+ "primaryKey": false,
228
+ "notNull": true,
229
+ "autoincrement": false
230
+ },
231
+ "id": {
232
+ "name": "id",
233
+ "type": "text",
234
+ "primaryKey": false,
235
+ "notNull": true,
236
+ "autoincrement": false
237
+ },
238
+ "project_id": {
239
+ "name": "project_id",
240
+ "type": "text",
241
+ "primaryKey": false,
242
+ "notNull": true,
243
+ "autoincrement": false
244
+ },
245
+ "name": {
246
+ "name": "name",
247
+ "type": "text",
248
+ "primaryKey": false,
249
+ "notNull": true,
250
+ "autoincrement": false
251
+ },
252
+ "description": {
253
+ "name": "description",
254
+ "type": "text",
255
+ "primaryKey": false,
256
+ "notNull": false,
257
+ "autoincrement": false
258
+ },
259
+ "default_agent_id": {
260
+ "name": "default_agent_id",
261
+ "type": "text",
262
+ "primaryKey": false,
263
+ "notNull": false,
264
+ "autoincrement": false
265
+ },
266
+ "context_config_id": {
267
+ "name": "context_config_id",
268
+ "type": "text",
269
+ "primaryKey": false,
270
+ "notNull": false,
271
+ "autoincrement": false
272
+ },
273
+ "models": {
274
+ "name": "models",
275
+ "type": "text",
276
+ "primaryKey": false,
277
+ "notNull": false,
278
+ "autoincrement": false
279
+ },
280
+ "status_updates": {
281
+ "name": "status_updates",
282
+ "type": "text",
283
+ "primaryKey": false,
284
+ "notNull": false,
285
+ "autoincrement": false
286
+ },
287
+ "graph_prompt": {
288
+ "name": "graph_prompt",
289
+ "type": "text",
290
+ "primaryKey": false,
291
+ "notNull": false,
292
+ "autoincrement": false
293
+ },
294
+ "stop_when": {
295
+ "name": "stop_when",
296
+ "type": "text",
297
+ "primaryKey": false,
298
+ "notNull": false,
299
+ "autoincrement": false
300
+ },
301
+ "created_at": {
302
+ "name": "created_at",
303
+ "type": "text",
304
+ "primaryKey": false,
305
+ "notNull": true,
306
+ "autoincrement": false,
307
+ "default": "CURRENT_TIMESTAMP"
308
+ },
309
+ "updated_at": {
310
+ "name": "updated_at",
311
+ "type": "text",
312
+ "primaryKey": false,
313
+ "notNull": true,
314
+ "autoincrement": false,
315
+ "default": "CURRENT_TIMESTAMP"
316
+ }
317
+ },
318
+ "indexes": {},
319
+ "foreignKeys": {
320
+ "agent_graph_project_fk": {
321
+ "name": "agent_graph_project_fk",
322
+ "tableFrom": "agent_graph",
323
+ "tableTo": "projects",
324
+ "columnsFrom": [
325
+ "tenant_id",
326
+ "project_id"
327
+ ],
328
+ "columnsTo": [
329
+ "tenant_id",
330
+ "id"
331
+ ],
332
+ "onDelete": "cascade",
333
+ "onUpdate": "no action"
334
+ }
335
+ },
336
+ "compositePrimaryKeys": {
337
+ "agent_graph_tenant_id_project_id_id_pk": {
338
+ "columns": [
339
+ "tenant_id",
340
+ "project_id",
341
+ "id"
342
+ ],
343
+ "name": "agent_graph_tenant_id_project_id_id_pk"
344
+ }
345
+ },
346
+ "uniqueConstraints": {},
347
+ "checkConstraints": {}
348
+ },
349
+ "agent_relations": {
350
+ "name": "agent_relations",
351
+ "columns": {
352
+ "tenant_id": {
353
+ "name": "tenant_id",
354
+ "type": "text",
355
+ "primaryKey": false,
356
+ "notNull": true,
357
+ "autoincrement": false
358
+ },
359
+ "id": {
360
+ "name": "id",
361
+ "type": "text",
362
+ "primaryKey": false,
363
+ "notNull": true,
364
+ "autoincrement": false
365
+ },
366
+ "project_id": {
367
+ "name": "project_id",
368
+ "type": "text",
369
+ "primaryKey": false,
370
+ "notNull": true,
371
+ "autoincrement": false
372
+ },
373
+ "graph_id": {
374
+ "name": "graph_id",
375
+ "type": "text",
376
+ "primaryKey": false,
377
+ "notNull": true,
378
+ "autoincrement": false
379
+ },
380
+ "source_agent_id": {
381
+ "name": "source_agent_id",
382
+ "type": "text",
383
+ "primaryKey": false,
384
+ "notNull": true,
385
+ "autoincrement": false
386
+ },
387
+ "target_agent_id": {
388
+ "name": "target_agent_id",
389
+ "type": "text",
390
+ "primaryKey": false,
391
+ "notNull": false,
392
+ "autoincrement": false
393
+ },
394
+ "external_agent_id": {
395
+ "name": "external_agent_id",
396
+ "type": "text",
397
+ "primaryKey": false,
398
+ "notNull": false,
399
+ "autoincrement": false
400
+ },
401
+ "relation_type": {
402
+ "name": "relation_type",
403
+ "type": "text",
404
+ "primaryKey": false,
405
+ "notNull": false,
406
+ "autoincrement": false
407
+ },
408
+ "created_at": {
409
+ "name": "created_at",
410
+ "type": "text",
411
+ "primaryKey": false,
412
+ "notNull": true,
413
+ "autoincrement": false,
414
+ "default": "CURRENT_TIMESTAMP"
415
+ },
416
+ "updated_at": {
417
+ "name": "updated_at",
418
+ "type": "text",
419
+ "primaryKey": false,
420
+ "notNull": true,
421
+ "autoincrement": false,
422
+ "default": "CURRENT_TIMESTAMP"
423
+ }
424
+ },
425
+ "indexes": {},
426
+ "foreignKeys": {
427
+ "agent_relations_graph_fk": {
428
+ "name": "agent_relations_graph_fk",
429
+ "tableFrom": "agent_relations",
430
+ "tableTo": "agent_graph",
431
+ "columnsFrom": [
432
+ "tenant_id",
433
+ "project_id",
434
+ "graph_id"
435
+ ],
436
+ "columnsTo": [
437
+ "tenant_id",
438
+ "project_id",
439
+ "id"
440
+ ],
441
+ "onDelete": "cascade",
442
+ "onUpdate": "no action"
443
+ }
444
+ },
445
+ "compositePrimaryKeys": {
446
+ "agent_relations_tenant_id_project_id_graph_id_id_pk": {
447
+ "columns": [
448
+ "tenant_id",
449
+ "project_id",
450
+ "graph_id",
451
+ "id"
452
+ ],
453
+ "name": "agent_relations_tenant_id_project_id_graph_id_id_pk"
454
+ }
455
+ },
456
+ "uniqueConstraints": {},
457
+ "checkConstraints": {}
458
+ },
459
+ "agent_tool_relations": {
460
+ "name": "agent_tool_relations",
461
+ "columns": {
462
+ "tenant_id": {
463
+ "name": "tenant_id",
464
+ "type": "text",
465
+ "primaryKey": false,
466
+ "notNull": true,
467
+ "autoincrement": false
468
+ },
469
+ "id": {
470
+ "name": "id",
471
+ "type": "text",
472
+ "primaryKey": false,
473
+ "notNull": true,
474
+ "autoincrement": false
475
+ },
476
+ "project_id": {
477
+ "name": "project_id",
478
+ "type": "text",
479
+ "primaryKey": false,
480
+ "notNull": true,
481
+ "autoincrement": false
482
+ },
483
+ "graph_id": {
484
+ "name": "graph_id",
485
+ "type": "text",
486
+ "primaryKey": false,
487
+ "notNull": true,
488
+ "autoincrement": false
489
+ },
490
+ "agent_id": {
491
+ "name": "agent_id",
492
+ "type": "text",
493
+ "primaryKey": false,
494
+ "notNull": true,
495
+ "autoincrement": false
496
+ },
497
+ "tool_id": {
498
+ "name": "tool_id",
499
+ "type": "text",
500
+ "primaryKey": false,
501
+ "notNull": true,
502
+ "autoincrement": false
503
+ },
504
+ "selected_tools": {
505
+ "name": "selected_tools",
506
+ "type": "blob",
507
+ "primaryKey": false,
508
+ "notNull": false,
509
+ "autoincrement": false
510
+ },
511
+ "headers": {
512
+ "name": "headers",
513
+ "type": "blob",
514
+ "primaryKey": false,
515
+ "notNull": false,
516
+ "autoincrement": false
517
+ },
518
+ "created_at": {
519
+ "name": "created_at",
520
+ "type": "text",
521
+ "primaryKey": false,
522
+ "notNull": true,
523
+ "autoincrement": false,
524
+ "default": "CURRENT_TIMESTAMP"
525
+ },
526
+ "updated_at": {
527
+ "name": "updated_at",
528
+ "type": "text",
529
+ "primaryKey": false,
530
+ "notNull": true,
531
+ "autoincrement": false,
532
+ "default": "CURRENT_TIMESTAMP"
533
+ }
534
+ },
535
+ "indexes": {},
536
+ "foreignKeys": {
537
+ "agent_tool_relations_agent_fk": {
538
+ "name": "agent_tool_relations_agent_fk",
539
+ "tableFrom": "agent_tool_relations",
540
+ "tableTo": "agents",
541
+ "columnsFrom": [
542
+ "tenant_id",
543
+ "project_id",
544
+ "graph_id",
545
+ "agent_id"
546
+ ],
547
+ "columnsTo": [
548
+ "tenant_id",
549
+ "project_id",
550
+ "graph_id",
551
+ "id"
552
+ ],
553
+ "onDelete": "cascade",
554
+ "onUpdate": "no action"
555
+ },
556
+ "agent_tool_relations_tool_fk": {
557
+ "name": "agent_tool_relations_tool_fk",
558
+ "tableFrom": "agent_tool_relations",
559
+ "tableTo": "tools",
560
+ "columnsFrom": [
561
+ "tenant_id",
562
+ "project_id",
563
+ "tool_id"
564
+ ],
565
+ "columnsTo": [
566
+ "tenant_id",
567
+ "project_id",
568
+ "id"
569
+ ],
570
+ "onDelete": "cascade",
571
+ "onUpdate": "no action"
572
+ }
573
+ },
574
+ "compositePrimaryKeys": {
575
+ "agent_tool_relations_tenant_id_project_id_graph_id_id_pk": {
576
+ "columns": [
577
+ "tenant_id",
578
+ "project_id",
579
+ "graph_id",
580
+ "id"
581
+ ],
582
+ "name": "agent_tool_relations_tenant_id_project_id_graph_id_id_pk"
583
+ }
584
+ },
585
+ "uniqueConstraints": {},
586
+ "checkConstraints": {}
587
+ },
588
+ "agents": {
589
+ "name": "agents",
590
+ "columns": {
591
+ "tenant_id": {
592
+ "name": "tenant_id",
593
+ "type": "text",
594
+ "primaryKey": false,
595
+ "notNull": true,
596
+ "autoincrement": false
597
+ },
598
+ "id": {
599
+ "name": "id",
600
+ "type": "text",
601
+ "primaryKey": false,
602
+ "notNull": true,
603
+ "autoincrement": false
604
+ },
605
+ "project_id": {
606
+ "name": "project_id",
607
+ "type": "text",
608
+ "primaryKey": false,
609
+ "notNull": true,
610
+ "autoincrement": false
611
+ },
612
+ "graph_id": {
613
+ "name": "graph_id",
614
+ "type": "text",
615
+ "primaryKey": false,
616
+ "notNull": true,
617
+ "autoincrement": false
618
+ },
619
+ "name": {
620
+ "name": "name",
621
+ "type": "text",
622
+ "primaryKey": false,
623
+ "notNull": true,
624
+ "autoincrement": false
625
+ },
626
+ "description": {
627
+ "name": "description",
628
+ "type": "text",
629
+ "primaryKey": false,
630
+ "notNull": true,
631
+ "autoincrement": false
632
+ },
633
+ "prompt": {
634
+ "name": "prompt",
635
+ "type": "text",
636
+ "primaryKey": false,
637
+ "notNull": true,
638
+ "autoincrement": false
639
+ },
640
+ "conversation_history_config": {
641
+ "name": "conversation_history_config",
642
+ "type": "text",
643
+ "primaryKey": false,
644
+ "notNull": false,
645
+ "autoincrement": false
646
+ },
647
+ "models": {
648
+ "name": "models",
649
+ "type": "text",
650
+ "primaryKey": false,
651
+ "notNull": false,
652
+ "autoincrement": false
653
+ },
654
+ "stop_when": {
655
+ "name": "stop_when",
656
+ "type": "text",
657
+ "primaryKey": false,
658
+ "notNull": false,
659
+ "autoincrement": false
660
+ },
661
+ "created_at": {
662
+ "name": "created_at",
663
+ "type": "text",
664
+ "primaryKey": false,
665
+ "notNull": true,
666
+ "autoincrement": false,
667
+ "default": "CURRENT_TIMESTAMP"
668
+ },
669
+ "updated_at": {
670
+ "name": "updated_at",
671
+ "type": "text",
672
+ "primaryKey": false,
673
+ "notNull": true,
674
+ "autoincrement": false,
675
+ "default": "CURRENT_TIMESTAMP"
676
+ }
677
+ },
678
+ "indexes": {},
679
+ "foreignKeys": {
680
+ "agents_graph_fk": {
681
+ "name": "agents_graph_fk",
682
+ "tableFrom": "agents",
683
+ "tableTo": "agent_graph",
684
+ "columnsFrom": [
685
+ "tenant_id",
686
+ "project_id",
687
+ "graph_id"
688
+ ],
689
+ "columnsTo": [
690
+ "tenant_id",
691
+ "project_id",
692
+ "id"
693
+ ],
694
+ "onDelete": "cascade",
695
+ "onUpdate": "no action"
696
+ }
697
+ },
698
+ "compositePrimaryKeys": {
699
+ "agents_tenant_id_project_id_graph_id_id_pk": {
700
+ "columns": [
701
+ "tenant_id",
702
+ "project_id",
703
+ "graph_id",
704
+ "id"
705
+ ],
706
+ "name": "agents_tenant_id_project_id_graph_id_id_pk"
707
+ }
708
+ },
709
+ "uniqueConstraints": {},
710
+ "checkConstraints": {}
711
+ },
712
+ "api_keys": {
713
+ "name": "api_keys",
714
+ "columns": {
715
+ "tenant_id": {
716
+ "name": "tenant_id",
717
+ "type": "text",
718
+ "primaryKey": false,
719
+ "notNull": true,
720
+ "autoincrement": false
721
+ },
722
+ "id": {
723
+ "name": "id",
724
+ "type": "text",
725
+ "primaryKey": false,
726
+ "notNull": true,
727
+ "autoincrement": false
728
+ },
729
+ "project_id": {
730
+ "name": "project_id",
731
+ "type": "text",
732
+ "primaryKey": false,
733
+ "notNull": true,
734
+ "autoincrement": false
735
+ },
736
+ "graph_id": {
737
+ "name": "graph_id",
738
+ "type": "text",
739
+ "primaryKey": false,
740
+ "notNull": true,
741
+ "autoincrement": false
742
+ },
743
+ "public_id": {
744
+ "name": "public_id",
745
+ "type": "text",
746
+ "primaryKey": false,
747
+ "notNull": true,
748
+ "autoincrement": false
749
+ },
750
+ "key_hash": {
751
+ "name": "key_hash",
752
+ "type": "text",
753
+ "primaryKey": false,
754
+ "notNull": true,
755
+ "autoincrement": false
756
+ },
757
+ "key_prefix": {
758
+ "name": "key_prefix",
759
+ "type": "text",
760
+ "primaryKey": false,
761
+ "notNull": true,
762
+ "autoincrement": false
763
+ },
764
+ "name": {
765
+ "name": "name",
766
+ "type": "text",
767
+ "primaryKey": false,
768
+ "notNull": false,
769
+ "autoincrement": false
770
+ },
771
+ "last_used_at": {
772
+ "name": "last_used_at",
773
+ "type": "text",
774
+ "primaryKey": false,
775
+ "notNull": false,
776
+ "autoincrement": false
777
+ },
778
+ "expires_at": {
779
+ "name": "expires_at",
780
+ "type": "text",
781
+ "primaryKey": false,
782
+ "notNull": false,
783
+ "autoincrement": false
784
+ },
785
+ "created_at": {
786
+ "name": "created_at",
787
+ "type": "text",
788
+ "primaryKey": false,
789
+ "notNull": true,
790
+ "autoincrement": false,
791
+ "default": "CURRENT_TIMESTAMP"
792
+ },
793
+ "updated_at": {
794
+ "name": "updated_at",
795
+ "type": "text",
796
+ "primaryKey": false,
797
+ "notNull": true,
798
+ "autoincrement": false,
799
+ "default": "CURRENT_TIMESTAMP"
800
+ }
801
+ },
802
+ "indexes": {
803
+ "api_keys_public_id_unique": {
804
+ "name": "api_keys_public_id_unique",
805
+ "columns": [
806
+ "public_id"
807
+ ],
808
+ "isUnique": true
809
+ },
810
+ "api_keys_tenant_graph_idx": {
811
+ "name": "api_keys_tenant_graph_idx",
812
+ "columns": [
813
+ "tenant_id",
814
+ "graph_id"
815
+ ],
816
+ "isUnique": false
817
+ },
818
+ "api_keys_prefix_idx": {
819
+ "name": "api_keys_prefix_idx",
820
+ "columns": [
821
+ "key_prefix"
822
+ ],
823
+ "isUnique": false
824
+ },
825
+ "api_keys_public_id_idx": {
826
+ "name": "api_keys_public_id_idx",
827
+ "columns": [
828
+ "public_id"
829
+ ],
830
+ "isUnique": false
831
+ }
832
+ },
833
+ "foreignKeys": {
834
+ "api_keys_project_fk": {
835
+ "name": "api_keys_project_fk",
836
+ "tableFrom": "api_keys",
837
+ "tableTo": "projects",
838
+ "columnsFrom": [
839
+ "tenant_id",
840
+ "project_id"
841
+ ],
842
+ "columnsTo": [
843
+ "tenant_id",
844
+ "id"
845
+ ],
846
+ "onDelete": "cascade",
847
+ "onUpdate": "no action"
848
+ },
849
+ "api_keys_graph_fk": {
850
+ "name": "api_keys_graph_fk",
851
+ "tableFrom": "api_keys",
852
+ "tableTo": "agent_graph",
853
+ "columnsFrom": [
854
+ "tenant_id",
855
+ "project_id",
856
+ "graph_id"
857
+ ],
858
+ "columnsTo": [
859
+ "tenant_id",
860
+ "project_id",
861
+ "id"
862
+ ],
863
+ "onDelete": "cascade",
864
+ "onUpdate": "no action"
865
+ }
866
+ },
867
+ "compositePrimaryKeys": {},
868
+ "uniqueConstraints": {},
869
+ "checkConstraints": {}
870
+ },
871
+ "artifact_components": {
872
+ "name": "artifact_components",
873
+ "columns": {
874
+ "tenant_id": {
875
+ "name": "tenant_id",
876
+ "type": "text",
877
+ "primaryKey": false,
878
+ "notNull": true,
879
+ "autoincrement": false
880
+ },
881
+ "id": {
882
+ "name": "id",
883
+ "type": "text",
884
+ "primaryKey": false,
885
+ "notNull": true,
886
+ "autoincrement": false
887
+ },
888
+ "project_id": {
889
+ "name": "project_id",
890
+ "type": "text",
891
+ "primaryKey": false,
892
+ "notNull": true,
893
+ "autoincrement": false
894
+ },
895
+ "name": {
896
+ "name": "name",
897
+ "type": "text",
898
+ "primaryKey": false,
899
+ "notNull": true,
900
+ "autoincrement": false
901
+ },
902
+ "description": {
903
+ "name": "description",
904
+ "type": "text",
905
+ "primaryKey": false,
906
+ "notNull": true,
907
+ "autoincrement": false
908
+ },
909
+ "props": {
910
+ "name": "props",
911
+ "type": "blob",
912
+ "primaryKey": false,
913
+ "notNull": false,
914
+ "autoincrement": false
915
+ },
916
+ "created_at": {
917
+ "name": "created_at",
918
+ "type": "text",
919
+ "primaryKey": false,
920
+ "notNull": true,
921
+ "autoincrement": false,
922
+ "default": "CURRENT_TIMESTAMP"
923
+ },
924
+ "updated_at": {
925
+ "name": "updated_at",
926
+ "type": "text",
927
+ "primaryKey": false,
928
+ "notNull": true,
929
+ "autoincrement": false,
930
+ "default": "CURRENT_TIMESTAMP"
931
+ }
932
+ },
933
+ "indexes": {},
934
+ "foreignKeys": {
935
+ "artifact_components_project_fk": {
936
+ "name": "artifact_components_project_fk",
937
+ "tableFrom": "artifact_components",
938
+ "tableTo": "projects",
939
+ "columnsFrom": [
940
+ "tenant_id",
941
+ "project_id"
942
+ ],
943
+ "columnsTo": [
944
+ "tenant_id",
945
+ "id"
946
+ ],
947
+ "onDelete": "cascade",
948
+ "onUpdate": "no action"
949
+ }
950
+ },
951
+ "compositePrimaryKeys": {
952
+ "artifact_components_tenant_id_project_id_id_pk": {
953
+ "columns": [
954
+ "tenant_id",
955
+ "project_id",
956
+ "id"
957
+ ],
958
+ "name": "artifact_components_tenant_id_project_id_id_pk"
959
+ }
960
+ },
961
+ "uniqueConstraints": {},
962
+ "checkConstraints": {}
963
+ },
964
+ "context_cache": {
965
+ "name": "context_cache",
966
+ "columns": {
967
+ "tenant_id": {
968
+ "name": "tenant_id",
969
+ "type": "text",
970
+ "primaryKey": false,
971
+ "notNull": true,
972
+ "autoincrement": false
973
+ },
974
+ "id": {
975
+ "name": "id",
976
+ "type": "text",
977
+ "primaryKey": false,
978
+ "notNull": true,
979
+ "autoincrement": false
980
+ },
981
+ "project_id": {
982
+ "name": "project_id",
983
+ "type": "text",
984
+ "primaryKey": false,
985
+ "notNull": true,
986
+ "autoincrement": false
987
+ },
988
+ "conversation_id": {
989
+ "name": "conversation_id",
990
+ "type": "text",
991
+ "primaryKey": false,
992
+ "notNull": true,
993
+ "autoincrement": false
994
+ },
995
+ "context_config_id": {
996
+ "name": "context_config_id",
997
+ "type": "text",
998
+ "primaryKey": false,
999
+ "notNull": true,
1000
+ "autoincrement": false
1001
+ },
1002
+ "context_variable_key": {
1003
+ "name": "context_variable_key",
1004
+ "type": "text",
1005
+ "primaryKey": false,
1006
+ "notNull": true,
1007
+ "autoincrement": false
1008
+ },
1009
+ "value": {
1010
+ "name": "value",
1011
+ "type": "blob",
1012
+ "primaryKey": false,
1013
+ "notNull": true,
1014
+ "autoincrement": false
1015
+ },
1016
+ "request_hash": {
1017
+ "name": "request_hash",
1018
+ "type": "text",
1019
+ "primaryKey": false,
1020
+ "notNull": false,
1021
+ "autoincrement": false
1022
+ },
1023
+ "fetched_at": {
1024
+ "name": "fetched_at",
1025
+ "type": "text",
1026
+ "primaryKey": false,
1027
+ "notNull": true,
1028
+ "autoincrement": false
1029
+ },
1030
+ "fetch_source": {
1031
+ "name": "fetch_source",
1032
+ "type": "text",
1033
+ "primaryKey": false,
1034
+ "notNull": false,
1035
+ "autoincrement": false
1036
+ },
1037
+ "fetch_duration_ms": {
1038
+ "name": "fetch_duration_ms",
1039
+ "type": "integer",
1040
+ "primaryKey": false,
1041
+ "notNull": false,
1042
+ "autoincrement": false
1043
+ },
1044
+ "created_at": {
1045
+ "name": "created_at",
1046
+ "type": "text",
1047
+ "primaryKey": false,
1048
+ "notNull": true,
1049
+ "autoincrement": false,
1050
+ "default": "CURRENT_TIMESTAMP"
1051
+ },
1052
+ "updated_at": {
1053
+ "name": "updated_at",
1054
+ "type": "text",
1055
+ "primaryKey": false,
1056
+ "notNull": true,
1057
+ "autoincrement": false,
1058
+ "default": "CURRENT_TIMESTAMP"
1059
+ }
1060
+ },
1061
+ "indexes": {
1062
+ "context_cache_lookup_idx": {
1063
+ "name": "context_cache_lookup_idx",
1064
+ "columns": [
1065
+ "conversation_id",
1066
+ "context_config_id",
1067
+ "context_variable_key"
1068
+ ],
1069
+ "isUnique": false
1070
+ }
1071
+ },
1072
+ "foreignKeys": {
1073
+ "context_cache_project_fk": {
1074
+ "name": "context_cache_project_fk",
1075
+ "tableFrom": "context_cache",
1076
+ "tableTo": "projects",
1077
+ "columnsFrom": [
1078
+ "tenant_id",
1079
+ "project_id"
1080
+ ],
1081
+ "columnsTo": [
1082
+ "tenant_id",
1083
+ "id"
1084
+ ],
1085
+ "onDelete": "cascade",
1086
+ "onUpdate": "no action"
1087
+ }
1088
+ },
1089
+ "compositePrimaryKeys": {
1090
+ "context_cache_tenant_id_project_id_id_pk": {
1091
+ "columns": [
1092
+ "tenant_id",
1093
+ "project_id",
1094
+ "id"
1095
+ ],
1096
+ "name": "context_cache_tenant_id_project_id_id_pk"
1097
+ }
1098
+ },
1099
+ "uniqueConstraints": {},
1100
+ "checkConstraints": {}
1101
+ },
1102
+ "context_configs": {
1103
+ "name": "context_configs",
1104
+ "columns": {
1105
+ "tenant_id": {
1106
+ "name": "tenant_id",
1107
+ "type": "text",
1108
+ "primaryKey": false,
1109
+ "notNull": true,
1110
+ "autoincrement": false
1111
+ },
1112
+ "id": {
1113
+ "name": "id",
1114
+ "type": "text",
1115
+ "primaryKey": false,
1116
+ "notNull": true,
1117
+ "autoincrement": false
1118
+ },
1119
+ "project_id": {
1120
+ "name": "project_id",
1121
+ "type": "text",
1122
+ "primaryKey": false,
1123
+ "notNull": true,
1124
+ "autoincrement": false
1125
+ },
1126
+ "graph_id": {
1127
+ "name": "graph_id",
1128
+ "type": "text",
1129
+ "primaryKey": false,
1130
+ "notNull": true,
1131
+ "autoincrement": false
1132
+ },
1133
+ "name": {
1134
+ "name": "name",
1135
+ "type": "text",
1136
+ "primaryKey": false,
1137
+ "notNull": true,
1138
+ "autoincrement": false
1139
+ },
1140
+ "description": {
1141
+ "name": "description",
1142
+ "type": "text",
1143
+ "primaryKey": false,
1144
+ "notNull": true,
1145
+ "autoincrement": false
1146
+ },
1147
+ "request_context_schema": {
1148
+ "name": "request_context_schema",
1149
+ "type": "blob",
1150
+ "primaryKey": false,
1151
+ "notNull": false,
1152
+ "autoincrement": false
1153
+ },
1154
+ "context_variables": {
1155
+ "name": "context_variables",
1156
+ "type": "blob",
1157
+ "primaryKey": false,
1158
+ "notNull": false,
1159
+ "autoincrement": false
1160
+ },
1161
+ "created_at": {
1162
+ "name": "created_at",
1163
+ "type": "text",
1164
+ "primaryKey": false,
1165
+ "notNull": true,
1166
+ "autoincrement": false,
1167
+ "default": "CURRENT_TIMESTAMP"
1168
+ },
1169
+ "updated_at": {
1170
+ "name": "updated_at",
1171
+ "type": "text",
1172
+ "primaryKey": false,
1173
+ "notNull": true,
1174
+ "autoincrement": false,
1175
+ "default": "CURRENT_TIMESTAMP"
1176
+ }
1177
+ },
1178
+ "indexes": {},
1179
+ "foreignKeys": {
1180
+ "context_configs_graph_fk": {
1181
+ "name": "context_configs_graph_fk",
1182
+ "tableFrom": "context_configs",
1183
+ "tableTo": "agent_graph",
1184
+ "columnsFrom": [
1185
+ "tenant_id",
1186
+ "project_id",
1187
+ "graph_id"
1188
+ ],
1189
+ "columnsTo": [
1190
+ "tenant_id",
1191
+ "project_id",
1192
+ "id"
1193
+ ],
1194
+ "onDelete": "cascade",
1195
+ "onUpdate": "no action"
1196
+ }
1197
+ },
1198
+ "compositePrimaryKeys": {
1199
+ "context_configs_tenant_id_project_id_graph_id_id_pk": {
1200
+ "columns": [
1201
+ "tenant_id",
1202
+ "project_id",
1203
+ "graph_id",
1204
+ "id"
1205
+ ],
1206
+ "name": "context_configs_tenant_id_project_id_graph_id_id_pk"
1207
+ }
1208
+ },
1209
+ "uniqueConstraints": {},
1210
+ "checkConstraints": {}
1211
+ },
1212
+ "conversations": {
1213
+ "name": "conversations",
1214
+ "columns": {
1215
+ "tenant_id": {
1216
+ "name": "tenant_id",
1217
+ "type": "text",
1218
+ "primaryKey": false,
1219
+ "notNull": true,
1220
+ "autoincrement": false
1221
+ },
1222
+ "id": {
1223
+ "name": "id",
1224
+ "type": "text",
1225
+ "primaryKey": false,
1226
+ "notNull": true,
1227
+ "autoincrement": false
1228
+ },
1229
+ "project_id": {
1230
+ "name": "project_id",
1231
+ "type": "text",
1232
+ "primaryKey": false,
1233
+ "notNull": true,
1234
+ "autoincrement": false
1235
+ },
1236
+ "user_id": {
1237
+ "name": "user_id",
1238
+ "type": "text",
1239
+ "primaryKey": false,
1240
+ "notNull": false,
1241
+ "autoincrement": false
1242
+ },
1243
+ "active_agent_id": {
1244
+ "name": "active_agent_id",
1245
+ "type": "text",
1246
+ "primaryKey": false,
1247
+ "notNull": true,
1248
+ "autoincrement": false
1249
+ },
1250
+ "title": {
1251
+ "name": "title",
1252
+ "type": "text",
1253
+ "primaryKey": false,
1254
+ "notNull": false,
1255
+ "autoincrement": false
1256
+ },
1257
+ "last_context_resolution": {
1258
+ "name": "last_context_resolution",
1259
+ "type": "text",
1260
+ "primaryKey": false,
1261
+ "notNull": false,
1262
+ "autoincrement": false
1263
+ },
1264
+ "metadata": {
1265
+ "name": "metadata",
1266
+ "type": "blob",
1267
+ "primaryKey": false,
1268
+ "notNull": false,
1269
+ "autoincrement": false
1270
+ },
1271
+ "created_at": {
1272
+ "name": "created_at",
1273
+ "type": "text",
1274
+ "primaryKey": false,
1275
+ "notNull": true,
1276
+ "autoincrement": false,
1277
+ "default": "CURRENT_TIMESTAMP"
1278
+ },
1279
+ "updated_at": {
1280
+ "name": "updated_at",
1281
+ "type": "text",
1282
+ "primaryKey": false,
1283
+ "notNull": true,
1284
+ "autoincrement": false,
1285
+ "default": "CURRENT_TIMESTAMP"
1286
+ }
1287
+ },
1288
+ "indexes": {},
1289
+ "foreignKeys": {
1290
+ "conversations_project_fk": {
1291
+ "name": "conversations_project_fk",
1292
+ "tableFrom": "conversations",
1293
+ "tableTo": "projects",
1294
+ "columnsFrom": [
1295
+ "tenant_id",
1296
+ "project_id"
1297
+ ],
1298
+ "columnsTo": [
1299
+ "tenant_id",
1300
+ "id"
1301
+ ],
1302
+ "onDelete": "cascade",
1303
+ "onUpdate": "no action"
1304
+ }
1305
+ },
1306
+ "compositePrimaryKeys": {
1307
+ "conversations_tenant_id_project_id_id_pk": {
1308
+ "columns": [
1309
+ "tenant_id",
1310
+ "project_id",
1311
+ "id"
1312
+ ],
1313
+ "name": "conversations_tenant_id_project_id_id_pk"
1314
+ }
1315
+ },
1316
+ "uniqueConstraints": {},
1317
+ "checkConstraints": {}
1318
+ },
1319
+ "credential_references": {
1320
+ "name": "credential_references",
1321
+ "columns": {
1322
+ "tenant_id": {
1323
+ "name": "tenant_id",
1324
+ "type": "text",
1325
+ "primaryKey": false,
1326
+ "notNull": true,
1327
+ "autoincrement": false
1328
+ },
1329
+ "id": {
1330
+ "name": "id",
1331
+ "type": "text",
1332
+ "primaryKey": false,
1333
+ "notNull": true,
1334
+ "autoincrement": false
1335
+ },
1336
+ "project_id": {
1337
+ "name": "project_id",
1338
+ "type": "text",
1339
+ "primaryKey": false,
1340
+ "notNull": true,
1341
+ "autoincrement": false
1342
+ },
1343
+ "type": {
1344
+ "name": "type",
1345
+ "type": "text",
1346
+ "primaryKey": false,
1347
+ "notNull": true,
1348
+ "autoincrement": false
1349
+ },
1350
+ "credential_store_id": {
1351
+ "name": "credential_store_id",
1352
+ "type": "text",
1353
+ "primaryKey": false,
1354
+ "notNull": true,
1355
+ "autoincrement": false
1356
+ },
1357
+ "retrieval_params": {
1358
+ "name": "retrieval_params",
1359
+ "type": "blob",
1360
+ "primaryKey": false,
1361
+ "notNull": false,
1362
+ "autoincrement": false
1363
+ },
1364
+ "created_at": {
1365
+ "name": "created_at",
1366
+ "type": "text",
1367
+ "primaryKey": false,
1368
+ "notNull": true,
1369
+ "autoincrement": false,
1370
+ "default": "CURRENT_TIMESTAMP"
1371
+ },
1372
+ "updated_at": {
1373
+ "name": "updated_at",
1374
+ "type": "text",
1375
+ "primaryKey": false,
1376
+ "notNull": true,
1377
+ "autoincrement": false,
1378
+ "default": "CURRENT_TIMESTAMP"
1379
+ }
1380
+ },
1381
+ "indexes": {},
1382
+ "foreignKeys": {
1383
+ "credential_references_project_fk": {
1384
+ "name": "credential_references_project_fk",
1385
+ "tableFrom": "credential_references",
1386
+ "tableTo": "projects",
1387
+ "columnsFrom": [
1388
+ "tenant_id",
1389
+ "project_id"
1390
+ ],
1391
+ "columnsTo": [
1392
+ "tenant_id",
1393
+ "id"
1394
+ ],
1395
+ "onDelete": "cascade",
1396
+ "onUpdate": "no action"
1397
+ }
1398
+ },
1399
+ "compositePrimaryKeys": {
1400
+ "credential_references_tenant_id_project_id_id_pk": {
1401
+ "columns": [
1402
+ "tenant_id",
1403
+ "project_id",
1404
+ "id"
1405
+ ],
1406
+ "name": "credential_references_tenant_id_project_id_id_pk"
1407
+ }
1408
+ },
1409
+ "uniqueConstraints": {},
1410
+ "checkConstraints": {}
1411
+ },
1412
+ "data_components": {
1413
+ "name": "data_components",
1414
+ "columns": {
1415
+ "tenant_id": {
1416
+ "name": "tenant_id",
1417
+ "type": "text",
1418
+ "primaryKey": false,
1419
+ "notNull": true,
1420
+ "autoincrement": false
1421
+ },
1422
+ "id": {
1423
+ "name": "id",
1424
+ "type": "text",
1425
+ "primaryKey": false,
1426
+ "notNull": true,
1427
+ "autoincrement": false
1428
+ },
1429
+ "project_id": {
1430
+ "name": "project_id",
1431
+ "type": "text",
1432
+ "primaryKey": false,
1433
+ "notNull": true,
1434
+ "autoincrement": false
1435
+ },
1436
+ "name": {
1437
+ "name": "name",
1438
+ "type": "text",
1439
+ "primaryKey": false,
1440
+ "notNull": true,
1441
+ "autoincrement": false
1442
+ },
1443
+ "description": {
1444
+ "name": "description",
1445
+ "type": "text",
1446
+ "primaryKey": false,
1447
+ "notNull": true,
1448
+ "autoincrement": false
1449
+ },
1450
+ "props": {
1451
+ "name": "props",
1452
+ "type": "blob",
1453
+ "primaryKey": false,
1454
+ "notNull": false,
1455
+ "autoincrement": false
1456
+ },
1457
+ "created_at": {
1458
+ "name": "created_at",
1459
+ "type": "text",
1460
+ "primaryKey": false,
1461
+ "notNull": true,
1462
+ "autoincrement": false,
1463
+ "default": "CURRENT_TIMESTAMP"
1464
+ },
1465
+ "updated_at": {
1466
+ "name": "updated_at",
1467
+ "type": "text",
1468
+ "primaryKey": false,
1469
+ "notNull": true,
1470
+ "autoincrement": false,
1471
+ "default": "CURRENT_TIMESTAMP"
1472
+ }
1473
+ },
1474
+ "indexes": {},
1475
+ "foreignKeys": {
1476
+ "data_components_project_fk": {
1477
+ "name": "data_components_project_fk",
1478
+ "tableFrom": "data_components",
1479
+ "tableTo": "projects",
1480
+ "columnsFrom": [
1481
+ "tenant_id",
1482
+ "project_id"
1483
+ ],
1484
+ "columnsTo": [
1485
+ "tenant_id",
1486
+ "id"
1487
+ ],
1488
+ "onDelete": "cascade",
1489
+ "onUpdate": "no action"
1490
+ }
1491
+ },
1492
+ "compositePrimaryKeys": {
1493
+ "data_components_tenant_id_project_id_id_pk": {
1494
+ "columns": [
1495
+ "tenant_id",
1496
+ "project_id",
1497
+ "id"
1498
+ ],
1499
+ "name": "data_components_tenant_id_project_id_id_pk"
1500
+ }
1501
+ },
1502
+ "uniqueConstraints": {},
1503
+ "checkConstraints": {}
1504
+ },
1505
+ "external_agents": {
1506
+ "name": "external_agents",
1507
+ "columns": {
1508
+ "tenant_id": {
1509
+ "name": "tenant_id",
1510
+ "type": "text",
1511
+ "primaryKey": false,
1512
+ "notNull": true,
1513
+ "autoincrement": false
1514
+ },
1515
+ "id": {
1516
+ "name": "id",
1517
+ "type": "text",
1518
+ "primaryKey": false,
1519
+ "notNull": true,
1520
+ "autoincrement": false
1521
+ },
1522
+ "project_id": {
1523
+ "name": "project_id",
1524
+ "type": "text",
1525
+ "primaryKey": false,
1526
+ "notNull": true,
1527
+ "autoincrement": false
1528
+ },
1529
+ "graph_id": {
1530
+ "name": "graph_id",
1531
+ "type": "text",
1532
+ "primaryKey": false,
1533
+ "notNull": true,
1534
+ "autoincrement": false
1535
+ },
1536
+ "name": {
1537
+ "name": "name",
1538
+ "type": "text",
1539
+ "primaryKey": false,
1540
+ "notNull": true,
1541
+ "autoincrement": false
1542
+ },
1543
+ "description": {
1544
+ "name": "description",
1545
+ "type": "text",
1546
+ "primaryKey": false,
1547
+ "notNull": true,
1548
+ "autoincrement": false
1549
+ },
1550
+ "base_url": {
1551
+ "name": "base_url",
1552
+ "type": "text",
1553
+ "primaryKey": false,
1554
+ "notNull": true,
1555
+ "autoincrement": false
1556
+ },
1557
+ "credential_reference_id": {
1558
+ "name": "credential_reference_id",
1559
+ "type": "text",
1560
+ "primaryKey": false,
1561
+ "notNull": false,
1562
+ "autoincrement": false
1563
+ },
1564
+ "headers": {
1565
+ "name": "headers",
1566
+ "type": "blob",
1567
+ "primaryKey": false,
1568
+ "notNull": false,
1569
+ "autoincrement": false
1570
+ },
1571
+ "created_at": {
1572
+ "name": "created_at",
1573
+ "type": "text",
1574
+ "primaryKey": false,
1575
+ "notNull": true,
1576
+ "autoincrement": false,
1577
+ "default": "CURRENT_TIMESTAMP"
1578
+ },
1579
+ "updated_at": {
1580
+ "name": "updated_at",
1581
+ "type": "text",
1582
+ "primaryKey": false,
1583
+ "notNull": true,
1584
+ "autoincrement": false,
1585
+ "default": "CURRENT_TIMESTAMP"
1586
+ }
1587
+ },
1588
+ "indexes": {},
1589
+ "foreignKeys": {
1590
+ "external_agents_graph_fk": {
1591
+ "name": "external_agents_graph_fk",
1592
+ "tableFrom": "external_agents",
1593
+ "tableTo": "agent_graph",
1594
+ "columnsFrom": [
1595
+ "tenant_id",
1596
+ "project_id",
1597
+ "graph_id"
1598
+ ],
1599
+ "columnsTo": [
1600
+ "tenant_id",
1601
+ "project_id",
1602
+ "id"
1603
+ ],
1604
+ "onDelete": "cascade",
1605
+ "onUpdate": "no action"
1606
+ },
1607
+ "external_agents_credential_reference_fk": {
1608
+ "name": "external_agents_credential_reference_fk",
1609
+ "tableFrom": "external_agents",
1610
+ "tableTo": "credential_references",
1611
+ "columnsFrom": [
1612
+ "tenant_id",
1613
+ "project_id",
1614
+ "credential_reference_id"
1615
+ ],
1616
+ "columnsTo": [
1617
+ "tenant_id",
1618
+ "project_id",
1619
+ "id"
1620
+ ],
1621
+ "onDelete": "set null",
1622
+ "onUpdate": "no action"
1623
+ }
1624
+ },
1625
+ "compositePrimaryKeys": {
1626
+ "external_agents_tenant_id_project_id_graph_id_id_pk": {
1627
+ "columns": [
1628
+ "tenant_id",
1629
+ "project_id",
1630
+ "graph_id",
1631
+ "id"
1632
+ ],
1633
+ "name": "external_agents_tenant_id_project_id_graph_id_id_pk"
1634
+ }
1635
+ },
1636
+ "uniqueConstraints": {},
1637
+ "checkConstraints": {}
1638
+ },
1639
+ "ledger_artifacts": {
1640
+ "name": "ledger_artifacts",
1641
+ "columns": {
1642
+ "tenant_id": {
1643
+ "name": "tenant_id",
1644
+ "type": "text",
1645
+ "primaryKey": false,
1646
+ "notNull": true,
1647
+ "autoincrement": false
1648
+ },
1649
+ "id": {
1650
+ "name": "id",
1651
+ "type": "text",
1652
+ "primaryKey": false,
1653
+ "notNull": true,
1654
+ "autoincrement": false
1655
+ },
1656
+ "project_id": {
1657
+ "name": "project_id",
1658
+ "type": "text",
1659
+ "primaryKey": false,
1660
+ "notNull": true,
1661
+ "autoincrement": false
1662
+ },
1663
+ "task_id": {
1664
+ "name": "task_id",
1665
+ "type": "text",
1666
+ "primaryKey": false,
1667
+ "notNull": true,
1668
+ "autoincrement": false
1669
+ },
1670
+ "tool_call_id": {
1671
+ "name": "tool_call_id",
1672
+ "type": "text",
1673
+ "primaryKey": false,
1674
+ "notNull": false,
1675
+ "autoincrement": false
1676
+ },
1677
+ "context_id": {
1678
+ "name": "context_id",
1679
+ "type": "text",
1680
+ "primaryKey": false,
1681
+ "notNull": true,
1682
+ "autoincrement": false
1683
+ },
1684
+ "type": {
1685
+ "name": "type",
1686
+ "type": "text",
1687
+ "primaryKey": false,
1688
+ "notNull": true,
1689
+ "autoincrement": false,
1690
+ "default": "'source'"
1691
+ },
1692
+ "name": {
1693
+ "name": "name",
1694
+ "type": "text",
1695
+ "primaryKey": false,
1696
+ "notNull": false,
1697
+ "autoincrement": false
1698
+ },
1699
+ "description": {
1700
+ "name": "description",
1701
+ "type": "text",
1702
+ "primaryKey": false,
1703
+ "notNull": false,
1704
+ "autoincrement": false
1705
+ },
1706
+ "parts": {
1707
+ "name": "parts",
1708
+ "type": "blob",
1709
+ "primaryKey": false,
1710
+ "notNull": false,
1711
+ "autoincrement": false
1712
+ },
1713
+ "metadata": {
1714
+ "name": "metadata",
1715
+ "type": "blob",
1716
+ "primaryKey": false,
1717
+ "notNull": false,
1718
+ "autoincrement": false
1719
+ },
1720
+ "summary": {
1721
+ "name": "summary",
1722
+ "type": "text",
1723
+ "primaryKey": false,
1724
+ "notNull": false,
1725
+ "autoincrement": false
1726
+ },
1727
+ "mime": {
1728
+ "name": "mime",
1729
+ "type": "blob",
1730
+ "primaryKey": false,
1731
+ "notNull": false,
1732
+ "autoincrement": false
1733
+ },
1734
+ "visibility": {
1735
+ "name": "visibility",
1736
+ "type": "text",
1737
+ "primaryKey": false,
1738
+ "notNull": false,
1739
+ "autoincrement": false,
1740
+ "default": "'context'"
1741
+ },
1742
+ "allowed_agents": {
1743
+ "name": "allowed_agents",
1744
+ "type": "blob",
1745
+ "primaryKey": false,
1746
+ "notNull": false,
1747
+ "autoincrement": false
1748
+ },
1749
+ "derived_from": {
1750
+ "name": "derived_from",
1751
+ "type": "text",
1752
+ "primaryKey": false,
1753
+ "notNull": false,
1754
+ "autoincrement": false
1755
+ },
1756
+ "created_at": {
1757
+ "name": "created_at",
1758
+ "type": "text",
1759
+ "primaryKey": false,
1760
+ "notNull": true,
1761
+ "autoincrement": false,
1762
+ "default": "CURRENT_TIMESTAMP"
1763
+ },
1764
+ "updated_at": {
1765
+ "name": "updated_at",
1766
+ "type": "text",
1767
+ "primaryKey": false,
1768
+ "notNull": true,
1769
+ "autoincrement": false,
1770
+ "default": "CURRENT_TIMESTAMP"
1771
+ }
1772
+ },
1773
+ "indexes": {
1774
+ "ledger_artifacts_task_id_idx": {
1775
+ "name": "ledger_artifacts_task_id_idx",
1776
+ "columns": [
1777
+ "task_id"
1778
+ ],
1779
+ "isUnique": false
1780
+ },
1781
+ "ledger_artifacts_tool_call_id_idx": {
1782
+ "name": "ledger_artifacts_tool_call_id_idx",
1783
+ "columns": [
1784
+ "tool_call_id"
1785
+ ],
1786
+ "isUnique": false
1787
+ },
1788
+ "ledger_artifacts_context_id_idx": {
1789
+ "name": "ledger_artifacts_context_id_idx",
1790
+ "columns": [
1791
+ "context_id"
1792
+ ],
1793
+ "isUnique": false
1794
+ },
1795
+ "ledger_artifacts_task_context_name_unique": {
1796
+ "name": "ledger_artifacts_task_context_name_unique",
1797
+ "columns": [
1798
+ "task_id",
1799
+ "context_id",
1800
+ "name"
1801
+ ],
1802
+ "isUnique": true
1803
+ }
1804
+ },
1805
+ "foreignKeys": {
1806
+ "ledger_artifacts_project_fk": {
1807
+ "name": "ledger_artifacts_project_fk",
1808
+ "tableFrom": "ledger_artifacts",
1809
+ "tableTo": "projects",
1810
+ "columnsFrom": [
1811
+ "tenant_id",
1812
+ "project_id"
1813
+ ],
1814
+ "columnsTo": [
1815
+ "tenant_id",
1816
+ "id"
1817
+ ],
1818
+ "onDelete": "cascade",
1819
+ "onUpdate": "no action"
1820
+ }
1821
+ },
1822
+ "compositePrimaryKeys": {
1823
+ "ledger_artifacts_tenant_id_project_id_id_task_id_pk": {
1824
+ "columns": [
1825
+ "tenant_id",
1826
+ "project_id",
1827
+ "id",
1828
+ "task_id"
1829
+ ],
1830
+ "name": "ledger_artifacts_tenant_id_project_id_id_task_id_pk"
1831
+ }
1832
+ },
1833
+ "uniqueConstraints": {},
1834
+ "checkConstraints": {}
1835
+ },
1836
+ "messages": {
1837
+ "name": "messages",
1838
+ "columns": {
1839
+ "tenant_id": {
1840
+ "name": "tenant_id",
1841
+ "type": "text",
1842
+ "primaryKey": false,
1843
+ "notNull": true,
1844
+ "autoincrement": false
1845
+ },
1846
+ "id": {
1847
+ "name": "id",
1848
+ "type": "text",
1849
+ "primaryKey": false,
1850
+ "notNull": true,
1851
+ "autoincrement": false
1852
+ },
1853
+ "project_id": {
1854
+ "name": "project_id",
1855
+ "type": "text",
1856
+ "primaryKey": false,
1857
+ "notNull": true,
1858
+ "autoincrement": false
1859
+ },
1860
+ "conversation_id": {
1861
+ "name": "conversation_id",
1862
+ "type": "text",
1863
+ "primaryKey": false,
1864
+ "notNull": true,
1865
+ "autoincrement": false
1866
+ },
1867
+ "role": {
1868
+ "name": "role",
1869
+ "type": "text",
1870
+ "primaryKey": false,
1871
+ "notNull": true,
1872
+ "autoincrement": false
1873
+ },
1874
+ "from_agent_id": {
1875
+ "name": "from_agent_id",
1876
+ "type": "text",
1877
+ "primaryKey": false,
1878
+ "notNull": false,
1879
+ "autoincrement": false
1880
+ },
1881
+ "to_agent_id": {
1882
+ "name": "to_agent_id",
1883
+ "type": "text",
1884
+ "primaryKey": false,
1885
+ "notNull": false,
1886
+ "autoincrement": false
1887
+ },
1888
+ "from_external_agent_id": {
1889
+ "name": "from_external_agent_id",
1890
+ "type": "text",
1891
+ "primaryKey": false,
1892
+ "notNull": false,
1893
+ "autoincrement": false
1894
+ },
1895
+ "to_external_agent_id": {
1896
+ "name": "to_external_agent_id",
1897
+ "type": "text",
1898
+ "primaryKey": false,
1899
+ "notNull": false,
1900
+ "autoincrement": false
1901
+ },
1902
+ "content": {
1903
+ "name": "content",
1904
+ "type": "blob",
1905
+ "primaryKey": false,
1906
+ "notNull": true,
1907
+ "autoincrement": false
1908
+ },
1909
+ "visibility": {
1910
+ "name": "visibility",
1911
+ "type": "text",
1912
+ "primaryKey": false,
1913
+ "notNull": true,
1914
+ "autoincrement": false,
1915
+ "default": "'user-facing'"
1916
+ },
1917
+ "message_type": {
1918
+ "name": "message_type",
1919
+ "type": "text",
1920
+ "primaryKey": false,
1921
+ "notNull": true,
1922
+ "autoincrement": false,
1923
+ "default": "'chat'"
1924
+ },
1925
+ "agent_id": {
1926
+ "name": "agent_id",
1927
+ "type": "text",
1928
+ "primaryKey": false,
1929
+ "notNull": false,
1930
+ "autoincrement": false
1931
+ },
1932
+ "task_id": {
1933
+ "name": "task_id",
1934
+ "type": "text",
1935
+ "primaryKey": false,
1936
+ "notNull": false,
1937
+ "autoincrement": false
1938
+ },
1939
+ "parent_message_id": {
1940
+ "name": "parent_message_id",
1941
+ "type": "text",
1942
+ "primaryKey": false,
1943
+ "notNull": false,
1944
+ "autoincrement": false
1945
+ },
1946
+ "a2a_task_id": {
1947
+ "name": "a2a_task_id",
1948
+ "type": "text",
1949
+ "primaryKey": false,
1950
+ "notNull": false,
1951
+ "autoincrement": false
1952
+ },
1953
+ "a2a_session_id": {
1954
+ "name": "a2a_session_id",
1955
+ "type": "text",
1956
+ "primaryKey": false,
1957
+ "notNull": false,
1958
+ "autoincrement": false
1959
+ },
1960
+ "metadata": {
1961
+ "name": "metadata",
1962
+ "type": "blob",
1963
+ "primaryKey": false,
1964
+ "notNull": false,
1965
+ "autoincrement": false
1966
+ },
1967
+ "created_at": {
1968
+ "name": "created_at",
1969
+ "type": "text",
1970
+ "primaryKey": false,
1971
+ "notNull": true,
1972
+ "autoincrement": false,
1973
+ "default": "CURRENT_TIMESTAMP"
1974
+ },
1975
+ "updated_at": {
1976
+ "name": "updated_at",
1977
+ "type": "text",
1978
+ "primaryKey": false,
1979
+ "notNull": true,
1980
+ "autoincrement": false,
1981
+ "default": "CURRENT_TIMESTAMP"
1982
+ }
1983
+ },
1984
+ "indexes": {},
1985
+ "foreignKeys": {
1986
+ "messages_project_fk": {
1987
+ "name": "messages_project_fk",
1988
+ "tableFrom": "messages",
1989
+ "tableTo": "projects",
1990
+ "columnsFrom": [
1991
+ "tenant_id",
1992
+ "project_id"
1993
+ ],
1994
+ "columnsTo": [
1995
+ "tenant_id",
1996
+ "id"
1997
+ ],
1998
+ "onDelete": "cascade",
1999
+ "onUpdate": "no action"
2000
+ }
2001
+ },
2002
+ "compositePrimaryKeys": {
2003
+ "messages_tenant_id_project_id_id_pk": {
2004
+ "columns": [
2005
+ "tenant_id",
2006
+ "project_id",
2007
+ "id"
2008
+ ],
2009
+ "name": "messages_tenant_id_project_id_id_pk"
2010
+ }
2011
+ },
2012
+ "uniqueConstraints": {},
2013
+ "checkConstraints": {}
2014
+ },
2015
+ "projects": {
2016
+ "name": "projects",
2017
+ "columns": {
2018
+ "tenant_id": {
2019
+ "name": "tenant_id",
2020
+ "type": "text",
2021
+ "primaryKey": false,
2022
+ "notNull": true,
2023
+ "autoincrement": false
2024
+ },
2025
+ "id": {
2026
+ "name": "id",
2027
+ "type": "text",
2028
+ "primaryKey": false,
2029
+ "notNull": true,
2030
+ "autoincrement": false
2031
+ },
2032
+ "name": {
2033
+ "name": "name",
2034
+ "type": "text",
2035
+ "primaryKey": false,
2036
+ "notNull": true,
2037
+ "autoincrement": false
2038
+ },
2039
+ "description": {
2040
+ "name": "description",
2041
+ "type": "text",
2042
+ "primaryKey": false,
2043
+ "notNull": true,
2044
+ "autoincrement": false
2045
+ },
2046
+ "models": {
2047
+ "name": "models",
2048
+ "type": "text",
2049
+ "primaryKey": false,
2050
+ "notNull": false,
2051
+ "autoincrement": false
2052
+ },
2053
+ "stop_when": {
2054
+ "name": "stop_when",
2055
+ "type": "text",
2056
+ "primaryKey": false,
2057
+ "notNull": false,
2058
+ "autoincrement": false
2059
+ },
2060
+ "created_at": {
2061
+ "name": "created_at",
2062
+ "type": "text",
2063
+ "primaryKey": false,
2064
+ "notNull": true,
2065
+ "autoincrement": false,
2066
+ "default": "CURRENT_TIMESTAMP"
2067
+ },
2068
+ "updated_at": {
2069
+ "name": "updated_at",
2070
+ "type": "text",
2071
+ "primaryKey": false,
2072
+ "notNull": true,
2073
+ "autoincrement": false,
2074
+ "default": "CURRENT_TIMESTAMP"
2075
+ }
2076
+ },
2077
+ "indexes": {},
2078
+ "foreignKeys": {},
2079
+ "compositePrimaryKeys": {
2080
+ "projects_tenant_id_id_pk": {
2081
+ "columns": [
2082
+ "tenant_id",
2083
+ "id"
2084
+ ],
2085
+ "name": "projects_tenant_id_id_pk"
2086
+ }
2087
+ },
2088
+ "uniqueConstraints": {},
2089
+ "checkConstraints": {}
2090
+ },
2091
+ "task_relations": {
2092
+ "name": "task_relations",
2093
+ "columns": {
2094
+ "tenant_id": {
2095
+ "name": "tenant_id",
2096
+ "type": "text",
2097
+ "primaryKey": false,
2098
+ "notNull": true,
2099
+ "autoincrement": false
2100
+ },
2101
+ "id": {
2102
+ "name": "id",
2103
+ "type": "text",
2104
+ "primaryKey": false,
2105
+ "notNull": true,
2106
+ "autoincrement": false
2107
+ },
2108
+ "project_id": {
2109
+ "name": "project_id",
2110
+ "type": "text",
2111
+ "primaryKey": false,
2112
+ "notNull": true,
2113
+ "autoincrement": false
2114
+ },
2115
+ "parent_task_id": {
2116
+ "name": "parent_task_id",
2117
+ "type": "text",
2118
+ "primaryKey": false,
2119
+ "notNull": true,
2120
+ "autoincrement": false
2121
+ },
2122
+ "child_task_id": {
2123
+ "name": "child_task_id",
2124
+ "type": "text",
2125
+ "primaryKey": false,
2126
+ "notNull": true,
2127
+ "autoincrement": false
2128
+ },
2129
+ "relation_type": {
2130
+ "name": "relation_type",
2131
+ "type": "text",
2132
+ "primaryKey": false,
2133
+ "notNull": false,
2134
+ "autoincrement": false,
2135
+ "default": "'parent_child'"
2136
+ },
2137
+ "created_at": {
2138
+ "name": "created_at",
2139
+ "type": "text",
2140
+ "primaryKey": false,
2141
+ "notNull": true,
2142
+ "autoincrement": false,
2143
+ "default": "CURRENT_TIMESTAMP"
2144
+ },
2145
+ "updated_at": {
2146
+ "name": "updated_at",
2147
+ "type": "text",
2148
+ "primaryKey": false,
2149
+ "notNull": true,
2150
+ "autoincrement": false,
2151
+ "default": "CURRENT_TIMESTAMP"
2152
+ }
2153
+ },
2154
+ "indexes": {},
2155
+ "foreignKeys": {
2156
+ "task_relations_project_fk": {
2157
+ "name": "task_relations_project_fk",
2158
+ "tableFrom": "task_relations",
2159
+ "tableTo": "projects",
2160
+ "columnsFrom": [
2161
+ "tenant_id",
2162
+ "project_id"
2163
+ ],
2164
+ "columnsTo": [
2165
+ "tenant_id",
2166
+ "id"
2167
+ ],
2168
+ "onDelete": "cascade",
2169
+ "onUpdate": "no action"
2170
+ }
2171
+ },
2172
+ "compositePrimaryKeys": {
2173
+ "task_relations_tenant_id_project_id_id_pk": {
2174
+ "columns": [
2175
+ "tenant_id",
2176
+ "project_id",
2177
+ "id"
2178
+ ],
2179
+ "name": "task_relations_tenant_id_project_id_id_pk"
2180
+ }
2181
+ },
2182
+ "uniqueConstraints": {},
2183
+ "checkConstraints": {}
2184
+ },
2185
+ "tasks": {
2186
+ "name": "tasks",
2187
+ "columns": {
2188
+ "tenant_id": {
2189
+ "name": "tenant_id",
2190
+ "type": "text",
2191
+ "primaryKey": false,
2192
+ "notNull": true,
2193
+ "autoincrement": false
2194
+ },
2195
+ "id": {
2196
+ "name": "id",
2197
+ "type": "text",
2198
+ "primaryKey": false,
2199
+ "notNull": true,
2200
+ "autoincrement": false
2201
+ },
2202
+ "project_id": {
2203
+ "name": "project_id",
2204
+ "type": "text",
2205
+ "primaryKey": false,
2206
+ "notNull": true,
2207
+ "autoincrement": false
2208
+ },
2209
+ "graph_id": {
2210
+ "name": "graph_id",
2211
+ "type": "text",
2212
+ "primaryKey": false,
2213
+ "notNull": true,
2214
+ "autoincrement": false
2215
+ },
2216
+ "agent_id": {
2217
+ "name": "agent_id",
2218
+ "type": "text",
2219
+ "primaryKey": false,
2220
+ "notNull": true,
2221
+ "autoincrement": false
2222
+ },
2223
+ "context_id": {
2224
+ "name": "context_id",
2225
+ "type": "text",
2226
+ "primaryKey": false,
2227
+ "notNull": true,
2228
+ "autoincrement": false
2229
+ },
2230
+ "status": {
2231
+ "name": "status",
2232
+ "type": "text",
2233
+ "primaryKey": false,
2234
+ "notNull": true,
2235
+ "autoincrement": false
2236
+ },
2237
+ "metadata": {
2238
+ "name": "metadata",
2239
+ "type": "blob",
2240
+ "primaryKey": false,
2241
+ "notNull": false,
2242
+ "autoincrement": false
2243
+ },
2244
+ "created_at": {
2245
+ "name": "created_at",
2246
+ "type": "text",
2247
+ "primaryKey": false,
2248
+ "notNull": true,
2249
+ "autoincrement": false,
2250
+ "default": "CURRENT_TIMESTAMP"
2251
+ },
2252
+ "updated_at": {
2253
+ "name": "updated_at",
2254
+ "type": "text",
2255
+ "primaryKey": false,
2256
+ "notNull": true,
2257
+ "autoincrement": false,
2258
+ "default": "CURRENT_TIMESTAMP"
2259
+ }
2260
+ },
2261
+ "indexes": {},
2262
+ "foreignKeys": {
2263
+ "tasks_agent_fk": {
2264
+ "name": "tasks_agent_fk",
2265
+ "tableFrom": "tasks",
2266
+ "tableTo": "agents",
2267
+ "columnsFrom": [
2268
+ "tenant_id",
2269
+ "project_id",
2270
+ "graph_id",
2271
+ "agent_id"
2272
+ ],
2273
+ "columnsTo": [
2274
+ "tenant_id",
2275
+ "project_id",
2276
+ "graph_id",
2277
+ "id"
2278
+ ],
2279
+ "onDelete": "cascade",
2280
+ "onUpdate": "no action"
2281
+ }
2282
+ },
2283
+ "compositePrimaryKeys": {
2284
+ "tasks_tenant_id_project_id_id_pk": {
2285
+ "columns": [
2286
+ "tenant_id",
2287
+ "project_id",
2288
+ "id"
2289
+ ],
2290
+ "name": "tasks_tenant_id_project_id_id_pk"
2291
+ }
2292
+ },
2293
+ "uniqueConstraints": {},
2294
+ "checkConstraints": {}
2295
+ },
2296
+ "tools": {
2297
+ "name": "tools",
2298
+ "columns": {
2299
+ "tenant_id": {
2300
+ "name": "tenant_id",
2301
+ "type": "text",
2302
+ "primaryKey": false,
2303
+ "notNull": true,
2304
+ "autoincrement": false
2305
+ },
2306
+ "id": {
2307
+ "name": "id",
2308
+ "type": "text",
2309
+ "primaryKey": false,
2310
+ "notNull": true,
2311
+ "autoincrement": false
2312
+ },
2313
+ "project_id": {
2314
+ "name": "project_id",
2315
+ "type": "text",
2316
+ "primaryKey": false,
2317
+ "notNull": true,
2318
+ "autoincrement": false
2319
+ },
2320
+ "name": {
2321
+ "name": "name",
2322
+ "type": "text",
2323
+ "primaryKey": false,
2324
+ "notNull": true,
2325
+ "autoincrement": false
2326
+ },
2327
+ "config": {
2328
+ "name": "config",
2329
+ "type": "blob",
2330
+ "primaryKey": false,
2331
+ "notNull": true,
2332
+ "autoincrement": false
2333
+ },
2334
+ "credential_reference_id": {
2335
+ "name": "credential_reference_id",
2336
+ "type": "text",
2337
+ "primaryKey": false,
2338
+ "notNull": false,
2339
+ "autoincrement": false
2340
+ },
2341
+ "headers": {
2342
+ "name": "headers",
2343
+ "type": "blob",
2344
+ "primaryKey": false,
2345
+ "notNull": false,
2346
+ "autoincrement": false
2347
+ },
2348
+ "image_url": {
2349
+ "name": "image_url",
2350
+ "type": "text",
2351
+ "primaryKey": false,
2352
+ "notNull": false,
2353
+ "autoincrement": false
2354
+ },
2355
+ "capabilities": {
2356
+ "name": "capabilities",
2357
+ "type": "blob",
2358
+ "primaryKey": false,
2359
+ "notNull": false,
2360
+ "autoincrement": false
2361
+ },
2362
+ "last_error": {
2363
+ "name": "last_error",
2364
+ "type": "text",
2365
+ "primaryKey": false,
2366
+ "notNull": false,
2367
+ "autoincrement": false
2368
+ },
2369
+ "created_at": {
2370
+ "name": "created_at",
2371
+ "type": "text",
2372
+ "primaryKey": false,
2373
+ "notNull": true,
2374
+ "autoincrement": false,
2375
+ "default": "CURRENT_TIMESTAMP"
2376
+ },
2377
+ "updated_at": {
2378
+ "name": "updated_at",
2379
+ "type": "text",
2380
+ "primaryKey": false,
2381
+ "notNull": true,
2382
+ "autoincrement": false,
2383
+ "default": "CURRENT_TIMESTAMP"
2384
+ }
2385
+ },
2386
+ "indexes": {},
2387
+ "foreignKeys": {
2388
+ "tools_project_fk": {
2389
+ "name": "tools_project_fk",
2390
+ "tableFrom": "tools",
2391
+ "tableTo": "projects",
2392
+ "columnsFrom": [
2393
+ "tenant_id",
2394
+ "project_id"
2395
+ ],
2396
+ "columnsTo": [
2397
+ "tenant_id",
2398
+ "id"
2399
+ ],
2400
+ "onDelete": "cascade",
2401
+ "onUpdate": "no action"
2402
+ }
2403
+ },
2404
+ "compositePrimaryKeys": {
2405
+ "tools_tenant_id_project_id_id_pk": {
2406
+ "columns": [
2407
+ "tenant_id",
2408
+ "project_id",
2409
+ "id"
2410
+ ],
2411
+ "name": "tools_tenant_id_project_id_id_pk"
2412
+ }
2413
+ },
2414
+ "uniqueConstraints": {},
2415
+ "checkConstraints": {}
2416
+ }
2417
+ },
2418
+ "views": {},
2419
+ "enums": {},
2420
+ "_meta": {
2421
+ "schemas": {},
2422
+ "tables": {},
2423
+ "columns": {}
2424
+ },
2425
+ "internal": {
2426
+ "indexes": {}
2427
+ }
2428
+ }