@inkeep/agents-core 0.22.9 → 0.22.11

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