@inkeep/agents-core 0.14.13 → 0.14.15

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.
@@ -0,0 +1,2435 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "c250d6aa-b8de-4cc9-a380-7a3f57c71597",
5
+ "prevId": "657e0b92-37d2-44e7-b7ac-e81525e4c4c2",
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
+ "summary_props": {
910
+ "name": "summary_props",
911
+ "type": "blob",
912
+ "primaryKey": false,
913
+ "notNull": false,
914
+ "autoincrement": false
915
+ },
916
+ "full_props": {
917
+ "name": "full_props",
918
+ "type": "blob",
919
+ "primaryKey": false,
920
+ "notNull": false,
921
+ "autoincrement": false
922
+ },
923
+ "created_at": {
924
+ "name": "created_at",
925
+ "type": "text",
926
+ "primaryKey": false,
927
+ "notNull": true,
928
+ "autoincrement": false,
929
+ "default": "CURRENT_TIMESTAMP"
930
+ },
931
+ "updated_at": {
932
+ "name": "updated_at",
933
+ "type": "text",
934
+ "primaryKey": false,
935
+ "notNull": true,
936
+ "autoincrement": false,
937
+ "default": "CURRENT_TIMESTAMP"
938
+ }
939
+ },
940
+ "indexes": {},
941
+ "foreignKeys": {
942
+ "artifact_components_project_fk": {
943
+ "name": "artifact_components_project_fk",
944
+ "tableFrom": "artifact_components",
945
+ "tableTo": "projects",
946
+ "columnsFrom": [
947
+ "tenant_id",
948
+ "project_id"
949
+ ],
950
+ "columnsTo": [
951
+ "tenant_id",
952
+ "id"
953
+ ],
954
+ "onDelete": "cascade",
955
+ "onUpdate": "no action"
956
+ }
957
+ },
958
+ "compositePrimaryKeys": {
959
+ "artifact_components_tenant_id_project_id_id_pk": {
960
+ "columns": [
961
+ "tenant_id",
962
+ "project_id",
963
+ "id"
964
+ ],
965
+ "name": "artifact_components_tenant_id_project_id_id_pk"
966
+ }
967
+ },
968
+ "uniqueConstraints": {},
969
+ "checkConstraints": {}
970
+ },
971
+ "context_cache": {
972
+ "name": "context_cache",
973
+ "columns": {
974
+ "tenant_id": {
975
+ "name": "tenant_id",
976
+ "type": "text",
977
+ "primaryKey": false,
978
+ "notNull": true,
979
+ "autoincrement": false
980
+ },
981
+ "id": {
982
+ "name": "id",
983
+ "type": "text",
984
+ "primaryKey": false,
985
+ "notNull": true,
986
+ "autoincrement": false
987
+ },
988
+ "project_id": {
989
+ "name": "project_id",
990
+ "type": "text",
991
+ "primaryKey": false,
992
+ "notNull": true,
993
+ "autoincrement": false
994
+ },
995
+ "conversation_id": {
996
+ "name": "conversation_id",
997
+ "type": "text",
998
+ "primaryKey": false,
999
+ "notNull": true,
1000
+ "autoincrement": false
1001
+ },
1002
+ "context_config_id": {
1003
+ "name": "context_config_id",
1004
+ "type": "text",
1005
+ "primaryKey": false,
1006
+ "notNull": true,
1007
+ "autoincrement": false
1008
+ },
1009
+ "context_variable_key": {
1010
+ "name": "context_variable_key",
1011
+ "type": "text",
1012
+ "primaryKey": false,
1013
+ "notNull": true,
1014
+ "autoincrement": false
1015
+ },
1016
+ "value": {
1017
+ "name": "value",
1018
+ "type": "blob",
1019
+ "primaryKey": false,
1020
+ "notNull": true,
1021
+ "autoincrement": false
1022
+ },
1023
+ "request_hash": {
1024
+ "name": "request_hash",
1025
+ "type": "text",
1026
+ "primaryKey": false,
1027
+ "notNull": false,
1028
+ "autoincrement": false
1029
+ },
1030
+ "fetched_at": {
1031
+ "name": "fetched_at",
1032
+ "type": "text",
1033
+ "primaryKey": false,
1034
+ "notNull": true,
1035
+ "autoincrement": false
1036
+ },
1037
+ "fetch_source": {
1038
+ "name": "fetch_source",
1039
+ "type": "text",
1040
+ "primaryKey": false,
1041
+ "notNull": false,
1042
+ "autoincrement": false
1043
+ },
1044
+ "fetch_duration_ms": {
1045
+ "name": "fetch_duration_ms",
1046
+ "type": "integer",
1047
+ "primaryKey": false,
1048
+ "notNull": false,
1049
+ "autoincrement": false
1050
+ },
1051
+ "created_at": {
1052
+ "name": "created_at",
1053
+ "type": "text",
1054
+ "primaryKey": false,
1055
+ "notNull": true,
1056
+ "autoincrement": false,
1057
+ "default": "CURRENT_TIMESTAMP"
1058
+ },
1059
+ "updated_at": {
1060
+ "name": "updated_at",
1061
+ "type": "text",
1062
+ "primaryKey": false,
1063
+ "notNull": true,
1064
+ "autoincrement": false,
1065
+ "default": "CURRENT_TIMESTAMP"
1066
+ }
1067
+ },
1068
+ "indexes": {
1069
+ "context_cache_lookup_idx": {
1070
+ "name": "context_cache_lookup_idx",
1071
+ "columns": [
1072
+ "conversation_id",
1073
+ "context_config_id",
1074
+ "context_variable_key"
1075
+ ],
1076
+ "isUnique": false
1077
+ }
1078
+ },
1079
+ "foreignKeys": {
1080
+ "context_cache_project_fk": {
1081
+ "name": "context_cache_project_fk",
1082
+ "tableFrom": "context_cache",
1083
+ "tableTo": "projects",
1084
+ "columnsFrom": [
1085
+ "tenant_id",
1086
+ "project_id"
1087
+ ],
1088
+ "columnsTo": [
1089
+ "tenant_id",
1090
+ "id"
1091
+ ],
1092
+ "onDelete": "cascade",
1093
+ "onUpdate": "no action"
1094
+ }
1095
+ },
1096
+ "compositePrimaryKeys": {
1097
+ "context_cache_tenant_id_project_id_id_pk": {
1098
+ "columns": [
1099
+ "tenant_id",
1100
+ "project_id",
1101
+ "id"
1102
+ ],
1103
+ "name": "context_cache_tenant_id_project_id_id_pk"
1104
+ }
1105
+ },
1106
+ "uniqueConstraints": {},
1107
+ "checkConstraints": {}
1108
+ },
1109
+ "context_configs": {
1110
+ "name": "context_configs",
1111
+ "columns": {
1112
+ "tenant_id": {
1113
+ "name": "tenant_id",
1114
+ "type": "text",
1115
+ "primaryKey": false,
1116
+ "notNull": true,
1117
+ "autoincrement": false
1118
+ },
1119
+ "id": {
1120
+ "name": "id",
1121
+ "type": "text",
1122
+ "primaryKey": false,
1123
+ "notNull": true,
1124
+ "autoincrement": false
1125
+ },
1126
+ "project_id": {
1127
+ "name": "project_id",
1128
+ "type": "text",
1129
+ "primaryKey": false,
1130
+ "notNull": true,
1131
+ "autoincrement": false
1132
+ },
1133
+ "graph_id": {
1134
+ "name": "graph_id",
1135
+ "type": "text",
1136
+ "primaryKey": false,
1137
+ "notNull": true,
1138
+ "autoincrement": false
1139
+ },
1140
+ "name": {
1141
+ "name": "name",
1142
+ "type": "text",
1143
+ "primaryKey": false,
1144
+ "notNull": true,
1145
+ "autoincrement": false
1146
+ },
1147
+ "description": {
1148
+ "name": "description",
1149
+ "type": "text",
1150
+ "primaryKey": false,
1151
+ "notNull": true,
1152
+ "autoincrement": false
1153
+ },
1154
+ "request_context_schema": {
1155
+ "name": "request_context_schema",
1156
+ "type": "blob",
1157
+ "primaryKey": false,
1158
+ "notNull": false,
1159
+ "autoincrement": false
1160
+ },
1161
+ "context_variables": {
1162
+ "name": "context_variables",
1163
+ "type": "blob",
1164
+ "primaryKey": false,
1165
+ "notNull": false,
1166
+ "autoincrement": false
1167
+ },
1168
+ "created_at": {
1169
+ "name": "created_at",
1170
+ "type": "text",
1171
+ "primaryKey": false,
1172
+ "notNull": true,
1173
+ "autoincrement": false,
1174
+ "default": "CURRENT_TIMESTAMP"
1175
+ },
1176
+ "updated_at": {
1177
+ "name": "updated_at",
1178
+ "type": "text",
1179
+ "primaryKey": false,
1180
+ "notNull": true,
1181
+ "autoincrement": false,
1182
+ "default": "CURRENT_TIMESTAMP"
1183
+ }
1184
+ },
1185
+ "indexes": {},
1186
+ "foreignKeys": {
1187
+ "context_configs_graph_fk": {
1188
+ "name": "context_configs_graph_fk",
1189
+ "tableFrom": "context_configs",
1190
+ "tableTo": "agent_graph",
1191
+ "columnsFrom": [
1192
+ "tenant_id",
1193
+ "project_id",
1194
+ "graph_id"
1195
+ ],
1196
+ "columnsTo": [
1197
+ "tenant_id",
1198
+ "project_id",
1199
+ "id"
1200
+ ],
1201
+ "onDelete": "cascade",
1202
+ "onUpdate": "no action"
1203
+ }
1204
+ },
1205
+ "compositePrimaryKeys": {
1206
+ "context_configs_tenant_id_project_id_graph_id_id_pk": {
1207
+ "columns": [
1208
+ "tenant_id",
1209
+ "project_id",
1210
+ "graph_id",
1211
+ "id"
1212
+ ],
1213
+ "name": "context_configs_tenant_id_project_id_graph_id_id_pk"
1214
+ }
1215
+ },
1216
+ "uniqueConstraints": {},
1217
+ "checkConstraints": {}
1218
+ },
1219
+ "conversations": {
1220
+ "name": "conversations",
1221
+ "columns": {
1222
+ "tenant_id": {
1223
+ "name": "tenant_id",
1224
+ "type": "text",
1225
+ "primaryKey": false,
1226
+ "notNull": true,
1227
+ "autoincrement": false
1228
+ },
1229
+ "id": {
1230
+ "name": "id",
1231
+ "type": "text",
1232
+ "primaryKey": false,
1233
+ "notNull": true,
1234
+ "autoincrement": false
1235
+ },
1236
+ "project_id": {
1237
+ "name": "project_id",
1238
+ "type": "text",
1239
+ "primaryKey": false,
1240
+ "notNull": true,
1241
+ "autoincrement": false
1242
+ },
1243
+ "user_id": {
1244
+ "name": "user_id",
1245
+ "type": "text",
1246
+ "primaryKey": false,
1247
+ "notNull": false,
1248
+ "autoincrement": false
1249
+ },
1250
+ "active_agent_id": {
1251
+ "name": "active_agent_id",
1252
+ "type": "text",
1253
+ "primaryKey": false,
1254
+ "notNull": true,
1255
+ "autoincrement": false
1256
+ },
1257
+ "title": {
1258
+ "name": "title",
1259
+ "type": "text",
1260
+ "primaryKey": false,
1261
+ "notNull": false,
1262
+ "autoincrement": false
1263
+ },
1264
+ "last_context_resolution": {
1265
+ "name": "last_context_resolution",
1266
+ "type": "text",
1267
+ "primaryKey": false,
1268
+ "notNull": false,
1269
+ "autoincrement": false
1270
+ },
1271
+ "metadata": {
1272
+ "name": "metadata",
1273
+ "type": "blob",
1274
+ "primaryKey": false,
1275
+ "notNull": false,
1276
+ "autoincrement": false
1277
+ },
1278
+ "created_at": {
1279
+ "name": "created_at",
1280
+ "type": "text",
1281
+ "primaryKey": false,
1282
+ "notNull": true,
1283
+ "autoincrement": false,
1284
+ "default": "CURRENT_TIMESTAMP"
1285
+ },
1286
+ "updated_at": {
1287
+ "name": "updated_at",
1288
+ "type": "text",
1289
+ "primaryKey": false,
1290
+ "notNull": true,
1291
+ "autoincrement": false,
1292
+ "default": "CURRENT_TIMESTAMP"
1293
+ }
1294
+ },
1295
+ "indexes": {},
1296
+ "foreignKeys": {
1297
+ "conversations_project_fk": {
1298
+ "name": "conversations_project_fk",
1299
+ "tableFrom": "conversations",
1300
+ "tableTo": "projects",
1301
+ "columnsFrom": [
1302
+ "tenant_id",
1303
+ "project_id"
1304
+ ],
1305
+ "columnsTo": [
1306
+ "tenant_id",
1307
+ "id"
1308
+ ],
1309
+ "onDelete": "cascade",
1310
+ "onUpdate": "no action"
1311
+ }
1312
+ },
1313
+ "compositePrimaryKeys": {
1314
+ "conversations_tenant_id_project_id_id_pk": {
1315
+ "columns": [
1316
+ "tenant_id",
1317
+ "project_id",
1318
+ "id"
1319
+ ],
1320
+ "name": "conversations_tenant_id_project_id_id_pk"
1321
+ }
1322
+ },
1323
+ "uniqueConstraints": {},
1324
+ "checkConstraints": {}
1325
+ },
1326
+ "credential_references": {
1327
+ "name": "credential_references",
1328
+ "columns": {
1329
+ "tenant_id": {
1330
+ "name": "tenant_id",
1331
+ "type": "text",
1332
+ "primaryKey": false,
1333
+ "notNull": true,
1334
+ "autoincrement": false
1335
+ },
1336
+ "id": {
1337
+ "name": "id",
1338
+ "type": "text",
1339
+ "primaryKey": false,
1340
+ "notNull": true,
1341
+ "autoincrement": false
1342
+ },
1343
+ "project_id": {
1344
+ "name": "project_id",
1345
+ "type": "text",
1346
+ "primaryKey": false,
1347
+ "notNull": true,
1348
+ "autoincrement": false
1349
+ },
1350
+ "type": {
1351
+ "name": "type",
1352
+ "type": "text",
1353
+ "primaryKey": false,
1354
+ "notNull": true,
1355
+ "autoincrement": false
1356
+ },
1357
+ "credential_store_id": {
1358
+ "name": "credential_store_id",
1359
+ "type": "text",
1360
+ "primaryKey": false,
1361
+ "notNull": true,
1362
+ "autoincrement": false
1363
+ },
1364
+ "retrieval_params": {
1365
+ "name": "retrieval_params",
1366
+ "type": "blob",
1367
+ "primaryKey": false,
1368
+ "notNull": false,
1369
+ "autoincrement": false
1370
+ },
1371
+ "created_at": {
1372
+ "name": "created_at",
1373
+ "type": "text",
1374
+ "primaryKey": false,
1375
+ "notNull": true,
1376
+ "autoincrement": false,
1377
+ "default": "CURRENT_TIMESTAMP"
1378
+ },
1379
+ "updated_at": {
1380
+ "name": "updated_at",
1381
+ "type": "text",
1382
+ "primaryKey": false,
1383
+ "notNull": true,
1384
+ "autoincrement": false,
1385
+ "default": "CURRENT_TIMESTAMP"
1386
+ }
1387
+ },
1388
+ "indexes": {},
1389
+ "foreignKeys": {
1390
+ "credential_references_project_fk": {
1391
+ "name": "credential_references_project_fk",
1392
+ "tableFrom": "credential_references",
1393
+ "tableTo": "projects",
1394
+ "columnsFrom": [
1395
+ "tenant_id",
1396
+ "project_id"
1397
+ ],
1398
+ "columnsTo": [
1399
+ "tenant_id",
1400
+ "id"
1401
+ ],
1402
+ "onDelete": "cascade",
1403
+ "onUpdate": "no action"
1404
+ }
1405
+ },
1406
+ "compositePrimaryKeys": {
1407
+ "credential_references_tenant_id_project_id_id_pk": {
1408
+ "columns": [
1409
+ "tenant_id",
1410
+ "project_id",
1411
+ "id"
1412
+ ],
1413
+ "name": "credential_references_tenant_id_project_id_id_pk"
1414
+ }
1415
+ },
1416
+ "uniqueConstraints": {},
1417
+ "checkConstraints": {}
1418
+ },
1419
+ "data_components": {
1420
+ "name": "data_components",
1421
+ "columns": {
1422
+ "tenant_id": {
1423
+ "name": "tenant_id",
1424
+ "type": "text",
1425
+ "primaryKey": false,
1426
+ "notNull": true,
1427
+ "autoincrement": false
1428
+ },
1429
+ "id": {
1430
+ "name": "id",
1431
+ "type": "text",
1432
+ "primaryKey": false,
1433
+ "notNull": true,
1434
+ "autoincrement": false
1435
+ },
1436
+ "project_id": {
1437
+ "name": "project_id",
1438
+ "type": "text",
1439
+ "primaryKey": false,
1440
+ "notNull": true,
1441
+ "autoincrement": false
1442
+ },
1443
+ "name": {
1444
+ "name": "name",
1445
+ "type": "text",
1446
+ "primaryKey": false,
1447
+ "notNull": true,
1448
+ "autoincrement": false
1449
+ },
1450
+ "description": {
1451
+ "name": "description",
1452
+ "type": "text",
1453
+ "primaryKey": false,
1454
+ "notNull": true,
1455
+ "autoincrement": false
1456
+ },
1457
+ "props": {
1458
+ "name": "props",
1459
+ "type": "blob",
1460
+ "primaryKey": false,
1461
+ "notNull": false,
1462
+ "autoincrement": false
1463
+ },
1464
+ "created_at": {
1465
+ "name": "created_at",
1466
+ "type": "text",
1467
+ "primaryKey": false,
1468
+ "notNull": true,
1469
+ "autoincrement": false,
1470
+ "default": "CURRENT_TIMESTAMP"
1471
+ },
1472
+ "updated_at": {
1473
+ "name": "updated_at",
1474
+ "type": "text",
1475
+ "primaryKey": false,
1476
+ "notNull": true,
1477
+ "autoincrement": false,
1478
+ "default": "CURRENT_TIMESTAMP"
1479
+ }
1480
+ },
1481
+ "indexes": {},
1482
+ "foreignKeys": {
1483
+ "data_components_project_fk": {
1484
+ "name": "data_components_project_fk",
1485
+ "tableFrom": "data_components",
1486
+ "tableTo": "projects",
1487
+ "columnsFrom": [
1488
+ "tenant_id",
1489
+ "project_id"
1490
+ ],
1491
+ "columnsTo": [
1492
+ "tenant_id",
1493
+ "id"
1494
+ ],
1495
+ "onDelete": "cascade",
1496
+ "onUpdate": "no action"
1497
+ }
1498
+ },
1499
+ "compositePrimaryKeys": {
1500
+ "data_components_tenant_id_project_id_id_pk": {
1501
+ "columns": [
1502
+ "tenant_id",
1503
+ "project_id",
1504
+ "id"
1505
+ ],
1506
+ "name": "data_components_tenant_id_project_id_id_pk"
1507
+ }
1508
+ },
1509
+ "uniqueConstraints": {},
1510
+ "checkConstraints": {}
1511
+ },
1512
+ "external_agents": {
1513
+ "name": "external_agents",
1514
+ "columns": {
1515
+ "tenant_id": {
1516
+ "name": "tenant_id",
1517
+ "type": "text",
1518
+ "primaryKey": false,
1519
+ "notNull": true,
1520
+ "autoincrement": false
1521
+ },
1522
+ "id": {
1523
+ "name": "id",
1524
+ "type": "text",
1525
+ "primaryKey": false,
1526
+ "notNull": true,
1527
+ "autoincrement": false
1528
+ },
1529
+ "project_id": {
1530
+ "name": "project_id",
1531
+ "type": "text",
1532
+ "primaryKey": false,
1533
+ "notNull": true,
1534
+ "autoincrement": false
1535
+ },
1536
+ "graph_id": {
1537
+ "name": "graph_id",
1538
+ "type": "text",
1539
+ "primaryKey": false,
1540
+ "notNull": true,
1541
+ "autoincrement": false
1542
+ },
1543
+ "name": {
1544
+ "name": "name",
1545
+ "type": "text",
1546
+ "primaryKey": false,
1547
+ "notNull": true,
1548
+ "autoincrement": false
1549
+ },
1550
+ "description": {
1551
+ "name": "description",
1552
+ "type": "text",
1553
+ "primaryKey": false,
1554
+ "notNull": true,
1555
+ "autoincrement": false
1556
+ },
1557
+ "base_url": {
1558
+ "name": "base_url",
1559
+ "type": "text",
1560
+ "primaryKey": false,
1561
+ "notNull": true,
1562
+ "autoincrement": false
1563
+ },
1564
+ "credential_reference_id": {
1565
+ "name": "credential_reference_id",
1566
+ "type": "text",
1567
+ "primaryKey": false,
1568
+ "notNull": false,
1569
+ "autoincrement": false
1570
+ },
1571
+ "headers": {
1572
+ "name": "headers",
1573
+ "type": "blob",
1574
+ "primaryKey": false,
1575
+ "notNull": false,
1576
+ "autoincrement": false
1577
+ },
1578
+ "created_at": {
1579
+ "name": "created_at",
1580
+ "type": "text",
1581
+ "primaryKey": false,
1582
+ "notNull": true,
1583
+ "autoincrement": false,
1584
+ "default": "CURRENT_TIMESTAMP"
1585
+ },
1586
+ "updated_at": {
1587
+ "name": "updated_at",
1588
+ "type": "text",
1589
+ "primaryKey": false,
1590
+ "notNull": true,
1591
+ "autoincrement": false,
1592
+ "default": "CURRENT_TIMESTAMP"
1593
+ }
1594
+ },
1595
+ "indexes": {},
1596
+ "foreignKeys": {
1597
+ "external_agents_graph_fk": {
1598
+ "name": "external_agents_graph_fk",
1599
+ "tableFrom": "external_agents",
1600
+ "tableTo": "agent_graph",
1601
+ "columnsFrom": [
1602
+ "tenant_id",
1603
+ "project_id",
1604
+ "graph_id"
1605
+ ],
1606
+ "columnsTo": [
1607
+ "tenant_id",
1608
+ "project_id",
1609
+ "id"
1610
+ ],
1611
+ "onDelete": "cascade",
1612
+ "onUpdate": "no action"
1613
+ },
1614
+ "external_agents_credential_reference_fk": {
1615
+ "name": "external_agents_credential_reference_fk",
1616
+ "tableFrom": "external_agents",
1617
+ "tableTo": "credential_references",
1618
+ "columnsFrom": [
1619
+ "tenant_id",
1620
+ "project_id",
1621
+ "credential_reference_id"
1622
+ ],
1623
+ "columnsTo": [
1624
+ "tenant_id",
1625
+ "project_id",
1626
+ "id"
1627
+ ],
1628
+ "onDelete": "set null",
1629
+ "onUpdate": "no action"
1630
+ }
1631
+ },
1632
+ "compositePrimaryKeys": {
1633
+ "external_agents_tenant_id_project_id_graph_id_id_pk": {
1634
+ "columns": [
1635
+ "tenant_id",
1636
+ "project_id",
1637
+ "graph_id",
1638
+ "id"
1639
+ ],
1640
+ "name": "external_agents_tenant_id_project_id_graph_id_id_pk"
1641
+ }
1642
+ },
1643
+ "uniqueConstraints": {},
1644
+ "checkConstraints": {}
1645
+ },
1646
+ "ledger_artifacts": {
1647
+ "name": "ledger_artifacts",
1648
+ "columns": {
1649
+ "tenant_id": {
1650
+ "name": "tenant_id",
1651
+ "type": "text",
1652
+ "primaryKey": false,
1653
+ "notNull": true,
1654
+ "autoincrement": false
1655
+ },
1656
+ "id": {
1657
+ "name": "id",
1658
+ "type": "text",
1659
+ "primaryKey": false,
1660
+ "notNull": true,
1661
+ "autoincrement": false
1662
+ },
1663
+ "project_id": {
1664
+ "name": "project_id",
1665
+ "type": "text",
1666
+ "primaryKey": false,
1667
+ "notNull": true,
1668
+ "autoincrement": false
1669
+ },
1670
+ "task_id": {
1671
+ "name": "task_id",
1672
+ "type": "text",
1673
+ "primaryKey": false,
1674
+ "notNull": true,
1675
+ "autoincrement": false
1676
+ },
1677
+ "tool_call_id": {
1678
+ "name": "tool_call_id",
1679
+ "type": "text",
1680
+ "primaryKey": false,
1681
+ "notNull": false,
1682
+ "autoincrement": false
1683
+ },
1684
+ "context_id": {
1685
+ "name": "context_id",
1686
+ "type": "text",
1687
+ "primaryKey": false,
1688
+ "notNull": true,
1689
+ "autoincrement": false
1690
+ },
1691
+ "type": {
1692
+ "name": "type",
1693
+ "type": "text",
1694
+ "primaryKey": false,
1695
+ "notNull": true,
1696
+ "autoincrement": false,
1697
+ "default": "'source'"
1698
+ },
1699
+ "name": {
1700
+ "name": "name",
1701
+ "type": "text",
1702
+ "primaryKey": false,
1703
+ "notNull": false,
1704
+ "autoincrement": false
1705
+ },
1706
+ "description": {
1707
+ "name": "description",
1708
+ "type": "text",
1709
+ "primaryKey": false,
1710
+ "notNull": false,
1711
+ "autoincrement": false
1712
+ },
1713
+ "parts": {
1714
+ "name": "parts",
1715
+ "type": "blob",
1716
+ "primaryKey": false,
1717
+ "notNull": false,
1718
+ "autoincrement": false
1719
+ },
1720
+ "metadata": {
1721
+ "name": "metadata",
1722
+ "type": "blob",
1723
+ "primaryKey": false,
1724
+ "notNull": false,
1725
+ "autoincrement": false
1726
+ },
1727
+ "summary": {
1728
+ "name": "summary",
1729
+ "type": "text",
1730
+ "primaryKey": false,
1731
+ "notNull": false,
1732
+ "autoincrement": false
1733
+ },
1734
+ "mime": {
1735
+ "name": "mime",
1736
+ "type": "blob",
1737
+ "primaryKey": false,
1738
+ "notNull": false,
1739
+ "autoincrement": false
1740
+ },
1741
+ "visibility": {
1742
+ "name": "visibility",
1743
+ "type": "text",
1744
+ "primaryKey": false,
1745
+ "notNull": false,
1746
+ "autoincrement": false,
1747
+ "default": "'context'"
1748
+ },
1749
+ "allowed_agents": {
1750
+ "name": "allowed_agents",
1751
+ "type": "blob",
1752
+ "primaryKey": false,
1753
+ "notNull": false,
1754
+ "autoincrement": false
1755
+ },
1756
+ "derived_from": {
1757
+ "name": "derived_from",
1758
+ "type": "text",
1759
+ "primaryKey": false,
1760
+ "notNull": false,
1761
+ "autoincrement": false
1762
+ },
1763
+ "created_at": {
1764
+ "name": "created_at",
1765
+ "type": "text",
1766
+ "primaryKey": false,
1767
+ "notNull": true,
1768
+ "autoincrement": false,
1769
+ "default": "CURRENT_TIMESTAMP"
1770
+ },
1771
+ "updated_at": {
1772
+ "name": "updated_at",
1773
+ "type": "text",
1774
+ "primaryKey": false,
1775
+ "notNull": true,
1776
+ "autoincrement": false,
1777
+ "default": "CURRENT_TIMESTAMP"
1778
+ }
1779
+ },
1780
+ "indexes": {
1781
+ "ledger_artifacts_task_id_idx": {
1782
+ "name": "ledger_artifacts_task_id_idx",
1783
+ "columns": [
1784
+ "task_id"
1785
+ ],
1786
+ "isUnique": false
1787
+ },
1788
+ "ledger_artifacts_tool_call_id_idx": {
1789
+ "name": "ledger_artifacts_tool_call_id_idx",
1790
+ "columns": [
1791
+ "tool_call_id"
1792
+ ],
1793
+ "isUnique": false
1794
+ },
1795
+ "ledger_artifacts_context_id_idx": {
1796
+ "name": "ledger_artifacts_context_id_idx",
1797
+ "columns": [
1798
+ "context_id"
1799
+ ],
1800
+ "isUnique": false
1801
+ },
1802
+ "ledger_artifacts_task_context_name_unique": {
1803
+ "name": "ledger_artifacts_task_context_name_unique",
1804
+ "columns": [
1805
+ "task_id",
1806
+ "context_id",
1807
+ "name"
1808
+ ],
1809
+ "isUnique": true
1810
+ }
1811
+ },
1812
+ "foreignKeys": {
1813
+ "ledger_artifacts_project_fk": {
1814
+ "name": "ledger_artifacts_project_fk",
1815
+ "tableFrom": "ledger_artifacts",
1816
+ "tableTo": "projects",
1817
+ "columnsFrom": [
1818
+ "tenant_id",
1819
+ "project_id"
1820
+ ],
1821
+ "columnsTo": [
1822
+ "tenant_id",
1823
+ "id"
1824
+ ],
1825
+ "onDelete": "cascade",
1826
+ "onUpdate": "no action"
1827
+ }
1828
+ },
1829
+ "compositePrimaryKeys": {
1830
+ "ledger_artifacts_tenant_id_project_id_id_task_id_pk": {
1831
+ "columns": [
1832
+ "tenant_id",
1833
+ "project_id",
1834
+ "id",
1835
+ "task_id"
1836
+ ],
1837
+ "name": "ledger_artifacts_tenant_id_project_id_id_task_id_pk"
1838
+ }
1839
+ },
1840
+ "uniqueConstraints": {},
1841
+ "checkConstraints": {}
1842
+ },
1843
+ "messages": {
1844
+ "name": "messages",
1845
+ "columns": {
1846
+ "tenant_id": {
1847
+ "name": "tenant_id",
1848
+ "type": "text",
1849
+ "primaryKey": false,
1850
+ "notNull": true,
1851
+ "autoincrement": false
1852
+ },
1853
+ "id": {
1854
+ "name": "id",
1855
+ "type": "text",
1856
+ "primaryKey": false,
1857
+ "notNull": true,
1858
+ "autoincrement": false
1859
+ },
1860
+ "project_id": {
1861
+ "name": "project_id",
1862
+ "type": "text",
1863
+ "primaryKey": false,
1864
+ "notNull": true,
1865
+ "autoincrement": false
1866
+ },
1867
+ "conversation_id": {
1868
+ "name": "conversation_id",
1869
+ "type": "text",
1870
+ "primaryKey": false,
1871
+ "notNull": true,
1872
+ "autoincrement": false
1873
+ },
1874
+ "role": {
1875
+ "name": "role",
1876
+ "type": "text",
1877
+ "primaryKey": false,
1878
+ "notNull": true,
1879
+ "autoincrement": false
1880
+ },
1881
+ "from_agent_id": {
1882
+ "name": "from_agent_id",
1883
+ "type": "text",
1884
+ "primaryKey": false,
1885
+ "notNull": false,
1886
+ "autoincrement": false
1887
+ },
1888
+ "to_agent_id": {
1889
+ "name": "to_agent_id",
1890
+ "type": "text",
1891
+ "primaryKey": false,
1892
+ "notNull": false,
1893
+ "autoincrement": false
1894
+ },
1895
+ "from_external_agent_id": {
1896
+ "name": "from_external_agent_id",
1897
+ "type": "text",
1898
+ "primaryKey": false,
1899
+ "notNull": false,
1900
+ "autoincrement": false
1901
+ },
1902
+ "to_external_agent_id": {
1903
+ "name": "to_external_agent_id",
1904
+ "type": "text",
1905
+ "primaryKey": false,
1906
+ "notNull": false,
1907
+ "autoincrement": false
1908
+ },
1909
+ "content": {
1910
+ "name": "content",
1911
+ "type": "blob",
1912
+ "primaryKey": false,
1913
+ "notNull": true,
1914
+ "autoincrement": false
1915
+ },
1916
+ "visibility": {
1917
+ "name": "visibility",
1918
+ "type": "text",
1919
+ "primaryKey": false,
1920
+ "notNull": true,
1921
+ "autoincrement": false,
1922
+ "default": "'user-facing'"
1923
+ },
1924
+ "message_type": {
1925
+ "name": "message_type",
1926
+ "type": "text",
1927
+ "primaryKey": false,
1928
+ "notNull": true,
1929
+ "autoincrement": false,
1930
+ "default": "'chat'"
1931
+ },
1932
+ "agent_id": {
1933
+ "name": "agent_id",
1934
+ "type": "text",
1935
+ "primaryKey": false,
1936
+ "notNull": false,
1937
+ "autoincrement": false
1938
+ },
1939
+ "task_id": {
1940
+ "name": "task_id",
1941
+ "type": "text",
1942
+ "primaryKey": false,
1943
+ "notNull": false,
1944
+ "autoincrement": false
1945
+ },
1946
+ "parent_message_id": {
1947
+ "name": "parent_message_id",
1948
+ "type": "text",
1949
+ "primaryKey": false,
1950
+ "notNull": false,
1951
+ "autoincrement": false
1952
+ },
1953
+ "a2a_task_id": {
1954
+ "name": "a2a_task_id",
1955
+ "type": "text",
1956
+ "primaryKey": false,
1957
+ "notNull": false,
1958
+ "autoincrement": false
1959
+ },
1960
+ "a2a_session_id": {
1961
+ "name": "a2a_session_id",
1962
+ "type": "text",
1963
+ "primaryKey": false,
1964
+ "notNull": false,
1965
+ "autoincrement": false
1966
+ },
1967
+ "metadata": {
1968
+ "name": "metadata",
1969
+ "type": "blob",
1970
+ "primaryKey": false,
1971
+ "notNull": false,
1972
+ "autoincrement": false
1973
+ },
1974
+ "created_at": {
1975
+ "name": "created_at",
1976
+ "type": "text",
1977
+ "primaryKey": false,
1978
+ "notNull": true,
1979
+ "autoincrement": false,
1980
+ "default": "CURRENT_TIMESTAMP"
1981
+ },
1982
+ "updated_at": {
1983
+ "name": "updated_at",
1984
+ "type": "text",
1985
+ "primaryKey": false,
1986
+ "notNull": true,
1987
+ "autoincrement": false,
1988
+ "default": "CURRENT_TIMESTAMP"
1989
+ }
1990
+ },
1991
+ "indexes": {},
1992
+ "foreignKeys": {
1993
+ "messages_project_fk": {
1994
+ "name": "messages_project_fk",
1995
+ "tableFrom": "messages",
1996
+ "tableTo": "projects",
1997
+ "columnsFrom": [
1998
+ "tenant_id",
1999
+ "project_id"
2000
+ ],
2001
+ "columnsTo": [
2002
+ "tenant_id",
2003
+ "id"
2004
+ ],
2005
+ "onDelete": "cascade",
2006
+ "onUpdate": "no action"
2007
+ }
2008
+ },
2009
+ "compositePrimaryKeys": {
2010
+ "messages_tenant_id_project_id_id_pk": {
2011
+ "columns": [
2012
+ "tenant_id",
2013
+ "project_id",
2014
+ "id"
2015
+ ],
2016
+ "name": "messages_tenant_id_project_id_id_pk"
2017
+ }
2018
+ },
2019
+ "uniqueConstraints": {},
2020
+ "checkConstraints": {}
2021
+ },
2022
+ "projects": {
2023
+ "name": "projects",
2024
+ "columns": {
2025
+ "tenant_id": {
2026
+ "name": "tenant_id",
2027
+ "type": "text",
2028
+ "primaryKey": false,
2029
+ "notNull": true,
2030
+ "autoincrement": false
2031
+ },
2032
+ "id": {
2033
+ "name": "id",
2034
+ "type": "text",
2035
+ "primaryKey": false,
2036
+ "notNull": true,
2037
+ "autoincrement": false
2038
+ },
2039
+ "name": {
2040
+ "name": "name",
2041
+ "type": "text",
2042
+ "primaryKey": false,
2043
+ "notNull": true,
2044
+ "autoincrement": false
2045
+ },
2046
+ "description": {
2047
+ "name": "description",
2048
+ "type": "text",
2049
+ "primaryKey": false,
2050
+ "notNull": true,
2051
+ "autoincrement": false
2052
+ },
2053
+ "models": {
2054
+ "name": "models",
2055
+ "type": "text",
2056
+ "primaryKey": false,
2057
+ "notNull": false,
2058
+ "autoincrement": false
2059
+ },
2060
+ "stop_when": {
2061
+ "name": "stop_when",
2062
+ "type": "text",
2063
+ "primaryKey": false,
2064
+ "notNull": false,
2065
+ "autoincrement": false
2066
+ },
2067
+ "created_at": {
2068
+ "name": "created_at",
2069
+ "type": "text",
2070
+ "primaryKey": false,
2071
+ "notNull": true,
2072
+ "autoincrement": false,
2073
+ "default": "CURRENT_TIMESTAMP"
2074
+ },
2075
+ "updated_at": {
2076
+ "name": "updated_at",
2077
+ "type": "text",
2078
+ "primaryKey": false,
2079
+ "notNull": true,
2080
+ "autoincrement": false,
2081
+ "default": "CURRENT_TIMESTAMP"
2082
+ }
2083
+ },
2084
+ "indexes": {},
2085
+ "foreignKeys": {},
2086
+ "compositePrimaryKeys": {
2087
+ "projects_tenant_id_id_pk": {
2088
+ "columns": [
2089
+ "tenant_id",
2090
+ "id"
2091
+ ],
2092
+ "name": "projects_tenant_id_id_pk"
2093
+ }
2094
+ },
2095
+ "uniqueConstraints": {},
2096
+ "checkConstraints": {}
2097
+ },
2098
+ "task_relations": {
2099
+ "name": "task_relations",
2100
+ "columns": {
2101
+ "tenant_id": {
2102
+ "name": "tenant_id",
2103
+ "type": "text",
2104
+ "primaryKey": false,
2105
+ "notNull": true,
2106
+ "autoincrement": false
2107
+ },
2108
+ "id": {
2109
+ "name": "id",
2110
+ "type": "text",
2111
+ "primaryKey": false,
2112
+ "notNull": true,
2113
+ "autoincrement": false
2114
+ },
2115
+ "project_id": {
2116
+ "name": "project_id",
2117
+ "type": "text",
2118
+ "primaryKey": false,
2119
+ "notNull": true,
2120
+ "autoincrement": false
2121
+ },
2122
+ "parent_task_id": {
2123
+ "name": "parent_task_id",
2124
+ "type": "text",
2125
+ "primaryKey": false,
2126
+ "notNull": true,
2127
+ "autoincrement": false
2128
+ },
2129
+ "child_task_id": {
2130
+ "name": "child_task_id",
2131
+ "type": "text",
2132
+ "primaryKey": false,
2133
+ "notNull": true,
2134
+ "autoincrement": false
2135
+ },
2136
+ "relation_type": {
2137
+ "name": "relation_type",
2138
+ "type": "text",
2139
+ "primaryKey": false,
2140
+ "notNull": false,
2141
+ "autoincrement": false,
2142
+ "default": "'parent_child'"
2143
+ },
2144
+ "created_at": {
2145
+ "name": "created_at",
2146
+ "type": "text",
2147
+ "primaryKey": false,
2148
+ "notNull": true,
2149
+ "autoincrement": false,
2150
+ "default": "CURRENT_TIMESTAMP"
2151
+ },
2152
+ "updated_at": {
2153
+ "name": "updated_at",
2154
+ "type": "text",
2155
+ "primaryKey": false,
2156
+ "notNull": true,
2157
+ "autoincrement": false,
2158
+ "default": "CURRENT_TIMESTAMP"
2159
+ }
2160
+ },
2161
+ "indexes": {},
2162
+ "foreignKeys": {
2163
+ "task_relations_project_fk": {
2164
+ "name": "task_relations_project_fk",
2165
+ "tableFrom": "task_relations",
2166
+ "tableTo": "projects",
2167
+ "columnsFrom": [
2168
+ "tenant_id",
2169
+ "project_id"
2170
+ ],
2171
+ "columnsTo": [
2172
+ "tenant_id",
2173
+ "id"
2174
+ ],
2175
+ "onDelete": "cascade",
2176
+ "onUpdate": "no action"
2177
+ }
2178
+ },
2179
+ "compositePrimaryKeys": {
2180
+ "task_relations_tenant_id_project_id_id_pk": {
2181
+ "columns": [
2182
+ "tenant_id",
2183
+ "project_id",
2184
+ "id"
2185
+ ],
2186
+ "name": "task_relations_tenant_id_project_id_id_pk"
2187
+ }
2188
+ },
2189
+ "uniqueConstraints": {},
2190
+ "checkConstraints": {}
2191
+ },
2192
+ "tasks": {
2193
+ "name": "tasks",
2194
+ "columns": {
2195
+ "tenant_id": {
2196
+ "name": "tenant_id",
2197
+ "type": "text",
2198
+ "primaryKey": false,
2199
+ "notNull": true,
2200
+ "autoincrement": false
2201
+ },
2202
+ "id": {
2203
+ "name": "id",
2204
+ "type": "text",
2205
+ "primaryKey": false,
2206
+ "notNull": true,
2207
+ "autoincrement": false
2208
+ },
2209
+ "project_id": {
2210
+ "name": "project_id",
2211
+ "type": "text",
2212
+ "primaryKey": false,
2213
+ "notNull": true,
2214
+ "autoincrement": false
2215
+ },
2216
+ "graph_id": {
2217
+ "name": "graph_id",
2218
+ "type": "text",
2219
+ "primaryKey": false,
2220
+ "notNull": true,
2221
+ "autoincrement": false
2222
+ },
2223
+ "agent_id": {
2224
+ "name": "agent_id",
2225
+ "type": "text",
2226
+ "primaryKey": false,
2227
+ "notNull": true,
2228
+ "autoincrement": false
2229
+ },
2230
+ "context_id": {
2231
+ "name": "context_id",
2232
+ "type": "text",
2233
+ "primaryKey": false,
2234
+ "notNull": true,
2235
+ "autoincrement": false
2236
+ },
2237
+ "status": {
2238
+ "name": "status",
2239
+ "type": "text",
2240
+ "primaryKey": false,
2241
+ "notNull": true,
2242
+ "autoincrement": false
2243
+ },
2244
+ "metadata": {
2245
+ "name": "metadata",
2246
+ "type": "blob",
2247
+ "primaryKey": false,
2248
+ "notNull": false,
2249
+ "autoincrement": false
2250
+ },
2251
+ "created_at": {
2252
+ "name": "created_at",
2253
+ "type": "text",
2254
+ "primaryKey": false,
2255
+ "notNull": true,
2256
+ "autoincrement": false,
2257
+ "default": "CURRENT_TIMESTAMP"
2258
+ },
2259
+ "updated_at": {
2260
+ "name": "updated_at",
2261
+ "type": "text",
2262
+ "primaryKey": false,
2263
+ "notNull": true,
2264
+ "autoincrement": false,
2265
+ "default": "CURRENT_TIMESTAMP"
2266
+ }
2267
+ },
2268
+ "indexes": {},
2269
+ "foreignKeys": {
2270
+ "tasks_agent_fk": {
2271
+ "name": "tasks_agent_fk",
2272
+ "tableFrom": "tasks",
2273
+ "tableTo": "agents",
2274
+ "columnsFrom": [
2275
+ "tenant_id",
2276
+ "project_id",
2277
+ "graph_id",
2278
+ "agent_id"
2279
+ ],
2280
+ "columnsTo": [
2281
+ "tenant_id",
2282
+ "project_id",
2283
+ "graph_id",
2284
+ "id"
2285
+ ],
2286
+ "onDelete": "cascade",
2287
+ "onUpdate": "no action"
2288
+ }
2289
+ },
2290
+ "compositePrimaryKeys": {
2291
+ "tasks_tenant_id_project_id_id_pk": {
2292
+ "columns": [
2293
+ "tenant_id",
2294
+ "project_id",
2295
+ "id"
2296
+ ],
2297
+ "name": "tasks_tenant_id_project_id_id_pk"
2298
+ }
2299
+ },
2300
+ "uniqueConstraints": {},
2301
+ "checkConstraints": {}
2302
+ },
2303
+ "tools": {
2304
+ "name": "tools",
2305
+ "columns": {
2306
+ "tenant_id": {
2307
+ "name": "tenant_id",
2308
+ "type": "text",
2309
+ "primaryKey": false,
2310
+ "notNull": true,
2311
+ "autoincrement": false
2312
+ },
2313
+ "id": {
2314
+ "name": "id",
2315
+ "type": "text",
2316
+ "primaryKey": false,
2317
+ "notNull": true,
2318
+ "autoincrement": false
2319
+ },
2320
+ "project_id": {
2321
+ "name": "project_id",
2322
+ "type": "text",
2323
+ "primaryKey": false,
2324
+ "notNull": true,
2325
+ "autoincrement": false
2326
+ },
2327
+ "name": {
2328
+ "name": "name",
2329
+ "type": "text",
2330
+ "primaryKey": false,
2331
+ "notNull": true,
2332
+ "autoincrement": false
2333
+ },
2334
+ "config": {
2335
+ "name": "config",
2336
+ "type": "blob",
2337
+ "primaryKey": false,
2338
+ "notNull": true,
2339
+ "autoincrement": false
2340
+ },
2341
+ "credential_reference_id": {
2342
+ "name": "credential_reference_id",
2343
+ "type": "text",
2344
+ "primaryKey": false,
2345
+ "notNull": false,
2346
+ "autoincrement": false
2347
+ },
2348
+ "headers": {
2349
+ "name": "headers",
2350
+ "type": "blob",
2351
+ "primaryKey": false,
2352
+ "notNull": false,
2353
+ "autoincrement": false
2354
+ },
2355
+ "image_url": {
2356
+ "name": "image_url",
2357
+ "type": "text",
2358
+ "primaryKey": false,
2359
+ "notNull": false,
2360
+ "autoincrement": false
2361
+ },
2362
+ "capabilities": {
2363
+ "name": "capabilities",
2364
+ "type": "blob",
2365
+ "primaryKey": false,
2366
+ "notNull": false,
2367
+ "autoincrement": false
2368
+ },
2369
+ "last_error": {
2370
+ "name": "last_error",
2371
+ "type": "text",
2372
+ "primaryKey": false,
2373
+ "notNull": false,
2374
+ "autoincrement": false
2375
+ },
2376
+ "created_at": {
2377
+ "name": "created_at",
2378
+ "type": "text",
2379
+ "primaryKey": false,
2380
+ "notNull": true,
2381
+ "autoincrement": false,
2382
+ "default": "CURRENT_TIMESTAMP"
2383
+ },
2384
+ "updated_at": {
2385
+ "name": "updated_at",
2386
+ "type": "text",
2387
+ "primaryKey": false,
2388
+ "notNull": true,
2389
+ "autoincrement": false,
2390
+ "default": "CURRENT_TIMESTAMP"
2391
+ }
2392
+ },
2393
+ "indexes": {},
2394
+ "foreignKeys": {
2395
+ "tools_project_fk": {
2396
+ "name": "tools_project_fk",
2397
+ "tableFrom": "tools",
2398
+ "tableTo": "projects",
2399
+ "columnsFrom": [
2400
+ "tenant_id",
2401
+ "project_id"
2402
+ ],
2403
+ "columnsTo": [
2404
+ "tenant_id",
2405
+ "id"
2406
+ ],
2407
+ "onDelete": "cascade",
2408
+ "onUpdate": "no action"
2409
+ }
2410
+ },
2411
+ "compositePrimaryKeys": {
2412
+ "tools_tenant_id_project_id_id_pk": {
2413
+ "columns": [
2414
+ "tenant_id",
2415
+ "project_id",
2416
+ "id"
2417
+ ],
2418
+ "name": "tools_tenant_id_project_id_id_pk"
2419
+ }
2420
+ },
2421
+ "uniqueConstraints": {},
2422
+ "checkConstraints": {}
2423
+ }
2424
+ },
2425
+ "views": {},
2426
+ "enums": {},
2427
+ "_meta": {
2428
+ "schemas": {},
2429
+ "tables": {},
2430
+ "columns": {}
2431
+ },
2432
+ "internal": {
2433
+ "indexes": {}
2434
+ }
2435
+ }