@inkeep/agents-core 0.70.7 → 0.71.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/dist/auth/auth-validation-schemas.d.ts +154 -154
  2. package/dist/auth/permissions.d.ts +9 -9
  3. package/dist/client-exports.d.ts +3 -3
  4. package/dist/client-exports.js +3 -3
  5. package/dist/constants/allowed-file-formats.d.ts +3 -1
  6. package/dist/constants/allowed-file-formats.js +38 -26
  7. package/dist/constants/index.d.ts +3 -3
  8. package/dist/constants/index.js +3 -3
  9. package/dist/constants/signoz-queries.d.ts +6 -2
  10. package/dist/constants/signoz-queries.js +14 -9
  11. package/dist/data-access/index.d.ts +2 -1
  12. package/dist/data-access/index.js +2 -1
  13. package/dist/data-access/manage/agents.d.ts +15 -15
  14. package/dist/data-access/manage/artifactComponents.d.ts +8 -8
  15. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  16. package/dist/data-access/manage/dataComponents.d.ts +4 -4
  17. package/dist/data-access/manage/functionTools.d.ts +12 -12
  18. package/dist/data-access/manage/skills.d.ts +7 -7
  19. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
  20. package/dist/data-access/manage/subAgentRelations.d.ts +24 -24
  21. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
  22. package/dist/data-access/manage/subAgents.d.ts +9 -9
  23. package/dist/data-access/manage/tools.d.ts +18 -18
  24. package/dist/data-access/manage/triggers.d.ts +6 -6
  25. package/dist/data-access/manage/webhookDestinations.d.ts +60 -0
  26. package/dist/data-access/manage/webhookDestinations.js +113 -0
  27. package/dist/data-access/runtime/apiKeys.d.ts +12 -12
  28. package/dist/data-access/runtime/apps.d.ts +11 -11
  29. package/dist/data-access/runtime/conversations.d.ts +24 -24
  30. package/dist/data-access/runtime/feedback.d.ts +4 -4
  31. package/dist/data-access/runtime/messages.d.ts +9 -9
  32. package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
  33. package/dist/data-access/runtime/tasks.d.ts +6 -6
  34. package/dist/db/manage/manage-schema.d.ts +699 -368
  35. package/dist/db/manage/manage-schema.js +93 -2
  36. package/dist/db/runtime/runtime-schema.d.ts +391 -391
  37. package/dist/index.d.ts +6 -5
  38. package/dist/index.js +5 -4
  39. package/dist/setup/setup.d.ts +1 -0
  40. package/dist/setup/setup.js +4 -1
  41. package/dist/types/entities.d.ts +9 -2
  42. package/dist/types/index.d.ts +2 -2
  43. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  44. package/dist/validation/index.d.ts +2 -2
  45. package/dist/validation/index.js +2 -2
  46. package/dist/validation/schemas/skills.d.ts +27 -27
  47. package/dist/validation/schemas.d.ts +2528 -1961
  48. package/dist/validation/schemas.js +67 -3
  49. package/drizzle/manage/0019_hesitant_runaways.sql +28 -0
  50. package/drizzle/manage/meta/0019_snapshot.json +4086 -0
  51. package/drizzle/manage/meta/_journal.json +7 -0
  52. package/package.json +1 -1
@@ -0,0 +1,4086 @@
1
+ {
2
+ "id": "d39aa8fa-3ecb-4fc3-ad54-00d9843446c4",
3
+ "prevId": "ed25d806-48ca-4f89-be85-b4a1b2afbce3",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.agent_dataset_relations": {
8
+ "name": "agent_dataset_relations",
9
+ "schema": "",
10
+ "columns": {
11
+ "tenant_id": {
12
+ "name": "tenant_id",
13
+ "type": "varchar(256)",
14
+ "primaryKey": false,
15
+ "notNull": true
16
+ },
17
+ "id": {
18
+ "name": "id",
19
+ "type": "varchar(256)",
20
+ "primaryKey": false,
21
+ "notNull": true
22
+ },
23
+ "project_id": {
24
+ "name": "project_id",
25
+ "type": "varchar(256)",
26
+ "primaryKey": false,
27
+ "notNull": true
28
+ },
29
+ "agent_id": {
30
+ "name": "agent_id",
31
+ "type": "varchar(256)",
32
+ "primaryKey": false,
33
+ "notNull": true
34
+ },
35
+ "dataset_id": {
36
+ "name": "dataset_id",
37
+ "type": "varchar(256)",
38
+ "primaryKey": false,
39
+ "notNull": true
40
+ },
41
+ "created_at": {
42
+ "name": "created_at",
43
+ "type": "timestamp",
44
+ "primaryKey": false,
45
+ "notNull": true,
46
+ "default": "now()"
47
+ },
48
+ "updated_at": {
49
+ "name": "updated_at",
50
+ "type": "timestamp",
51
+ "primaryKey": false,
52
+ "notNull": true,
53
+ "default": "now()"
54
+ }
55
+ },
56
+ "indexes": {},
57
+ "foreignKeys": {
58
+ "agent_dataset_relations_agent_fk": {
59
+ "name": "agent_dataset_relations_agent_fk",
60
+ "tableFrom": "agent_dataset_relations",
61
+ "tableTo": "agent",
62
+ "columnsFrom": [
63
+ "tenant_id",
64
+ "project_id",
65
+ "agent_id"
66
+ ],
67
+ "columnsTo": [
68
+ "tenant_id",
69
+ "project_id",
70
+ "id"
71
+ ],
72
+ "onDelete": "cascade",
73
+ "onUpdate": "no action"
74
+ },
75
+ "agent_dataset_relations_dataset_fk": {
76
+ "name": "agent_dataset_relations_dataset_fk",
77
+ "tableFrom": "agent_dataset_relations",
78
+ "tableTo": "dataset",
79
+ "columnsFrom": [
80
+ "tenant_id",
81
+ "project_id",
82
+ "dataset_id"
83
+ ],
84
+ "columnsTo": [
85
+ "tenant_id",
86
+ "project_id",
87
+ "id"
88
+ ],
89
+ "onDelete": "cascade",
90
+ "onUpdate": "no action"
91
+ }
92
+ },
93
+ "compositePrimaryKeys": {
94
+ "agent_dataset_relations_tenant_id_project_id_id_pk": {
95
+ "name": "agent_dataset_relations_tenant_id_project_id_id_pk",
96
+ "columns": [
97
+ "tenant_id",
98
+ "project_id",
99
+ "id"
100
+ ]
101
+ }
102
+ },
103
+ "uniqueConstraints": {
104
+ "agent_dataset_relations_unique": {
105
+ "name": "agent_dataset_relations_unique",
106
+ "nullsNotDistinct": false,
107
+ "columns": [
108
+ "tenant_id",
109
+ "project_id",
110
+ "agent_id",
111
+ "dataset_id"
112
+ ]
113
+ }
114
+ },
115
+ "policies": {},
116
+ "checkConstraints": {},
117
+ "isRLSEnabled": false
118
+ },
119
+ "public.agent_evaluator_relations": {
120
+ "name": "agent_evaluator_relations",
121
+ "schema": "",
122
+ "columns": {
123
+ "tenant_id": {
124
+ "name": "tenant_id",
125
+ "type": "varchar(256)",
126
+ "primaryKey": false,
127
+ "notNull": true
128
+ },
129
+ "id": {
130
+ "name": "id",
131
+ "type": "varchar(256)",
132
+ "primaryKey": false,
133
+ "notNull": true
134
+ },
135
+ "project_id": {
136
+ "name": "project_id",
137
+ "type": "varchar(256)",
138
+ "primaryKey": false,
139
+ "notNull": true
140
+ },
141
+ "agent_id": {
142
+ "name": "agent_id",
143
+ "type": "varchar(256)",
144
+ "primaryKey": false,
145
+ "notNull": true
146
+ },
147
+ "evaluator_id": {
148
+ "name": "evaluator_id",
149
+ "type": "varchar(256)",
150
+ "primaryKey": false,
151
+ "notNull": true
152
+ },
153
+ "created_at": {
154
+ "name": "created_at",
155
+ "type": "timestamp",
156
+ "primaryKey": false,
157
+ "notNull": true,
158
+ "default": "now()"
159
+ },
160
+ "updated_at": {
161
+ "name": "updated_at",
162
+ "type": "timestamp",
163
+ "primaryKey": false,
164
+ "notNull": true,
165
+ "default": "now()"
166
+ }
167
+ },
168
+ "indexes": {},
169
+ "foreignKeys": {
170
+ "agent_evaluator_relations_agent_fk": {
171
+ "name": "agent_evaluator_relations_agent_fk",
172
+ "tableFrom": "agent_evaluator_relations",
173
+ "tableTo": "agent",
174
+ "columnsFrom": [
175
+ "tenant_id",
176
+ "project_id",
177
+ "agent_id"
178
+ ],
179
+ "columnsTo": [
180
+ "tenant_id",
181
+ "project_id",
182
+ "id"
183
+ ],
184
+ "onDelete": "cascade",
185
+ "onUpdate": "no action"
186
+ },
187
+ "agent_evaluator_relations_evaluator_fk": {
188
+ "name": "agent_evaluator_relations_evaluator_fk",
189
+ "tableFrom": "agent_evaluator_relations",
190
+ "tableTo": "evaluator",
191
+ "columnsFrom": [
192
+ "tenant_id",
193
+ "project_id",
194
+ "evaluator_id"
195
+ ],
196
+ "columnsTo": [
197
+ "tenant_id",
198
+ "project_id",
199
+ "id"
200
+ ],
201
+ "onDelete": "cascade",
202
+ "onUpdate": "no action"
203
+ }
204
+ },
205
+ "compositePrimaryKeys": {
206
+ "agent_evaluator_relations_tenant_id_project_id_id_pk": {
207
+ "name": "agent_evaluator_relations_tenant_id_project_id_id_pk",
208
+ "columns": [
209
+ "tenant_id",
210
+ "project_id",
211
+ "id"
212
+ ]
213
+ }
214
+ },
215
+ "uniqueConstraints": {
216
+ "agent_evaluator_relations_unique": {
217
+ "name": "agent_evaluator_relations_unique",
218
+ "nullsNotDistinct": false,
219
+ "columns": [
220
+ "tenant_id",
221
+ "project_id",
222
+ "agent_id",
223
+ "evaluator_id"
224
+ ]
225
+ }
226
+ },
227
+ "policies": {},
228
+ "checkConstraints": {},
229
+ "isRLSEnabled": false
230
+ },
231
+ "public.agent": {
232
+ "name": "agent",
233
+ "schema": "",
234
+ "columns": {
235
+ "tenant_id": {
236
+ "name": "tenant_id",
237
+ "type": "varchar(256)",
238
+ "primaryKey": false,
239
+ "notNull": true
240
+ },
241
+ "id": {
242
+ "name": "id",
243
+ "type": "varchar(256)",
244
+ "primaryKey": false,
245
+ "notNull": true
246
+ },
247
+ "project_id": {
248
+ "name": "project_id",
249
+ "type": "varchar(256)",
250
+ "primaryKey": false,
251
+ "notNull": true
252
+ },
253
+ "name": {
254
+ "name": "name",
255
+ "type": "varchar(256)",
256
+ "primaryKey": false,
257
+ "notNull": true
258
+ },
259
+ "description": {
260
+ "name": "description",
261
+ "type": "text",
262
+ "primaryKey": false,
263
+ "notNull": false
264
+ },
265
+ "default_sub_agent_id": {
266
+ "name": "default_sub_agent_id",
267
+ "type": "varchar(256)",
268
+ "primaryKey": false,
269
+ "notNull": false
270
+ },
271
+ "context_config_id": {
272
+ "name": "context_config_id",
273
+ "type": "varchar(256)",
274
+ "primaryKey": false,
275
+ "notNull": false
276
+ },
277
+ "models": {
278
+ "name": "models",
279
+ "type": "jsonb",
280
+ "primaryKey": false,
281
+ "notNull": false
282
+ },
283
+ "status_updates": {
284
+ "name": "status_updates",
285
+ "type": "jsonb",
286
+ "primaryKey": false,
287
+ "notNull": false
288
+ },
289
+ "prompt": {
290
+ "name": "prompt",
291
+ "type": "text",
292
+ "primaryKey": false,
293
+ "notNull": false
294
+ },
295
+ "stop_when": {
296
+ "name": "stop_when",
297
+ "type": "jsonb",
298
+ "primaryKey": false,
299
+ "notNull": false
300
+ },
301
+ "execution_mode": {
302
+ "name": "execution_mode",
303
+ "type": "varchar(50)",
304
+ "primaryKey": false,
305
+ "notNull": true,
306
+ "default": "'classic'"
307
+ },
308
+ "created_at": {
309
+ "name": "created_at",
310
+ "type": "timestamp",
311
+ "primaryKey": false,
312
+ "notNull": true,
313
+ "default": "now()"
314
+ },
315
+ "updated_at": {
316
+ "name": "updated_at",
317
+ "type": "timestamp",
318
+ "primaryKey": false,
319
+ "notNull": true,
320
+ "default": "now()"
321
+ }
322
+ },
323
+ "indexes": {},
324
+ "foreignKeys": {
325
+ "agent_project_fk": {
326
+ "name": "agent_project_fk",
327
+ "tableFrom": "agent",
328
+ "tableTo": "projects",
329
+ "columnsFrom": [
330
+ "tenant_id",
331
+ "project_id"
332
+ ],
333
+ "columnsTo": [
334
+ "tenant_id",
335
+ "id"
336
+ ],
337
+ "onDelete": "cascade",
338
+ "onUpdate": "no action"
339
+ }
340
+ },
341
+ "compositePrimaryKeys": {
342
+ "agent_tenant_id_project_id_id_pk": {
343
+ "name": "agent_tenant_id_project_id_id_pk",
344
+ "columns": [
345
+ "tenant_id",
346
+ "project_id",
347
+ "id"
348
+ ]
349
+ }
350
+ },
351
+ "uniqueConstraints": {},
352
+ "policies": {},
353
+ "checkConstraints": {},
354
+ "isRLSEnabled": false
355
+ },
356
+ "public.artifact_components": {
357
+ "name": "artifact_components",
358
+ "schema": "",
359
+ "columns": {
360
+ "tenant_id": {
361
+ "name": "tenant_id",
362
+ "type": "varchar(256)",
363
+ "primaryKey": false,
364
+ "notNull": true
365
+ },
366
+ "id": {
367
+ "name": "id",
368
+ "type": "varchar(256)",
369
+ "primaryKey": false,
370
+ "notNull": true
371
+ },
372
+ "project_id": {
373
+ "name": "project_id",
374
+ "type": "varchar(256)",
375
+ "primaryKey": false,
376
+ "notNull": true
377
+ },
378
+ "name": {
379
+ "name": "name",
380
+ "type": "varchar(256)",
381
+ "primaryKey": false,
382
+ "notNull": true
383
+ },
384
+ "description": {
385
+ "name": "description",
386
+ "type": "text",
387
+ "primaryKey": false,
388
+ "notNull": false
389
+ },
390
+ "props": {
391
+ "name": "props",
392
+ "type": "jsonb",
393
+ "primaryKey": false,
394
+ "notNull": false
395
+ },
396
+ "render": {
397
+ "name": "render",
398
+ "type": "jsonb",
399
+ "primaryKey": false,
400
+ "notNull": false
401
+ },
402
+ "created_at": {
403
+ "name": "created_at",
404
+ "type": "timestamp",
405
+ "primaryKey": false,
406
+ "notNull": true,
407
+ "default": "now()"
408
+ },
409
+ "updated_at": {
410
+ "name": "updated_at",
411
+ "type": "timestamp",
412
+ "primaryKey": false,
413
+ "notNull": true,
414
+ "default": "now()"
415
+ }
416
+ },
417
+ "indexes": {},
418
+ "foreignKeys": {
419
+ "artifact_components_project_fk": {
420
+ "name": "artifact_components_project_fk",
421
+ "tableFrom": "artifact_components",
422
+ "tableTo": "projects",
423
+ "columnsFrom": [
424
+ "tenant_id",
425
+ "project_id"
426
+ ],
427
+ "columnsTo": [
428
+ "tenant_id",
429
+ "id"
430
+ ],
431
+ "onDelete": "cascade",
432
+ "onUpdate": "no action"
433
+ }
434
+ },
435
+ "compositePrimaryKeys": {
436
+ "artifact_components_tenant_id_project_id_id_pk": {
437
+ "name": "artifact_components_tenant_id_project_id_id_pk",
438
+ "columns": [
439
+ "tenant_id",
440
+ "project_id",
441
+ "id"
442
+ ]
443
+ }
444
+ },
445
+ "uniqueConstraints": {},
446
+ "policies": {},
447
+ "checkConstraints": {},
448
+ "isRLSEnabled": false
449
+ },
450
+ "public.context_configs": {
451
+ "name": "context_configs",
452
+ "schema": "",
453
+ "columns": {
454
+ "tenant_id": {
455
+ "name": "tenant_id",
456
+ "type": "varchar(256)",
457
+ "primaryKey": false,
458
+ "notNull": true
459
+ },
460
+ "id": {
461
+ "name": "id",
462
+ "type": "varchar(256)",
463
+ "primaryKey": false,
464
+ "notNull": true
465
+ },
466
+ "project_id": {
467
+ "name": "project_id",
468
+ "type": "varchar(256)",
469
+ "primaryKey": false,
470
+ "notNull": true
471
+ },
472
+ "agent_id": {
473
+ "name": "agent_id",
474
+ "type": "varchar(256)",
475
+ "primaryKey": false,
476
+ "notNull": true
477
+ },
478
+ "headers_schema": {
479
+ "name": "headers_schema",
480
+ "type": "jsonb",
481
+ "primaryKey": false,
482
+ "notNull": false
483
+ },
484
+ "context_variables": {
485
+ "name": "context_variables",
486
+ "type": "jsonb",
487
+ "primaryKey": false,
488
+ "notNull": false
489
+ },
490
+ "created_at": {
491
+ "name": "created_at",
492
+ "type": "timestamp",
493
+ "primaryKey": false,
494
+ "notNull": true,
495
+ "default": "now()"
496
+ },
497
+ "updated_at": {
498
+ "name": "updated_at",
499
+ "type": "timestamp",
500
+ "primaryKey": false,
501
+ "notNull": true,
502
+ "default": "now()"
503
+ }
504
+ },
505
+ "indexes": {},
506
+ "foreignKeys": {
507
+ "context_configs_agent_fk": {
508
+ "name": "context_configs_agent_fk",
509
+ "tableFrom": "context_configs",
510
+ "tableTo": "agent",
511
+ "columnsFrom": [
512
+ "tenant_id",
513
+ "project_id",
514
+ "agent_id"
515
+ ],
516
+ "columnsTo": [
517
+ "tenant_id",
518
+ "project_id",
519
+ "id"
520
+ ],
521
+ "onDelete": "cascade",
522
+ "onUpdate": "no action"
523
+ }
524
+ },
525
+ "compositePrimaryKeys": {
526
+ "context_configs_tenant_id_project_id_agent_id_id_pk": {
527
+ "name": "context_configs_tenant_id_project_id_agent_id_id_pk",
528
+ "columns": [
529
+ "tenant_id",
530
+ "project_id",
531
+ "agent_id",
532
+ "id"
533
+ ]
534
+ }
535
+ },
536
+ "uniqueConstraints": {},
537
+ "policies": {},
538
+ "checkConstraints": {},
539
+ "isRLSEnabled": false
540
+ },
541
+ "public.credential_references": {
542
+ "name": "credential_references",
543
+ "schema": "",
544
+ "columns": {
545
+ "tenant_id": {
546
+ "name": "tenant_id",
547
+ "type": "varchar(256)",
548
+ "primaryKey": false,
549
+ "notNull": true
550
+ },
551
+ "id": {
552
+ "name": "id",
553
+ "type": "varchar(256)",
554
+ "primaryKey": false,
555
+ "notNull": true
556
+ },
557
+ "project_id": {
558
+ "name": "project_id",
559
+ "type": "varchar(256)",
560
+ "primaryKey": false,
561
+ "notNull": true
562
+ },
563
+ "name": {
564
+ "name": "name",
565
+ "type": "varchar(256)",
566
+ "primaryKey": false,
567
+ "notNull": true
568
+ },
569
+ "type": {
570
+ "name": "type",
571
+ "type": "varchar(256)",
572
+ "primaryKey": false,
573
+ "notNull": true
574
+ },
575
+ "credential_store_id": {
576
+ "name": "credential_store_id",
577
+ "type": "varchar(256)",
578
+ "primaryKey": false,
579
+ "notNull": true
580
+ },
581
+ "retrieval_params": {
582
+ "name": "retrieval_params",
583
+ "type": "jsonb",
584
+ "primaryKey": false,
585
+ "notNull": false
586
+ },
587
+ "tool_id": {
588
+ "name": "tool_id",
589
+ "type": "varchar(256)",
590
+ "primaryKey": false,
591
+ "notNull": false
592
+ },
593
+ "user_id": {
594
+ "name": "user_id",
595
+ "type": "varchar(256)",
596
+ "primaryKey": false,
597
+ "notNull": false
598
+ },
599
+ "created_by": {
600
+ "name": "created_by",
601
+ "type": "varchar(256)",
602
+ "primaryKey": false,
603
+ "notNull": false
604
+ },
605
+ "created_at": {
606
+ "name": "created_at",
607
+ "type": "timestamp",
608
+ "primaryKey": false,
609
+ "notNull": true,
610
+ "default": "now()"
611
+ },
612
+ "updated_at": {
613
+ "name": "updated_at",
614
+ "type": "timestamp",
615
+ "primaryKey": false,
616
+ "notNull": true,
617
+ "default": "now()"
618
+ }
619
+ },
620
+ "indexes": {},
621
+ "foreignKeys": {
622
+ "credential_references_project_fk": {
623
+ "name": "credential_references_project_fk",
624
+ "tableFrom": "credential_references",
625
+ "tableTo": "projects",
626
+ "columnsFrom": [
627
+ "tenant_id",
628
+ "project_id"
629
+ ],
630
+ "columnsTo": [
631
+ "tenant_id",
632
+ "id"
633
+ ],
634
+ "onDelete": "cascade",
635
+ "onUpdate": "no action"
636
+ }
637
+ },
638
+ "compositePrimaryKeys": {
639
+ "credential_references_tenant_id_project_id_id_pk": {
640
+ "name": "credential_references_tenant_id_project_id_id_pk",
641
+ "columns": [
642
+ "tenant_id",
643
+ "project_id",
644
+ "id"
645
+ ]
646
+ }
647
+ },
648
+ "uniqueConstraints": {
649
+ "credential_references_id_unique": {
650
+ "name": "credential_references_id_unique",
651
+ "nullsNotDistinct": false,
652
+ "columns": [
653
+ "id"
654
+ ]
655
+ },
656
+ "credential_references_tool_user_unique": {
657
+ "name": "credential_references_tool_user_unique",
658
+ "nullsNotDistinct": false,
659
+ "columns": [
660
+ "tool_id",
661
+ "user_id"
662
+ ]
663
+ }
664
+ },
665
+ "policies": {},
666
+ "checkConstraints": {},
667
+ "isRLSEnabled": false
668
+ },
669
+ "public.data_components": {
670
+ "name": "data_components",
671
+ "schema": "",
672
+ "columns": {
673
+ "tenant_id": {
674
+ "name": "tenant_id",
675
+ "type": "varchar(256)",
676
+ "primaryKey": false,
677
+ "notNull": true
678
+ },
679
+ "id": {
680
+ "name": "id",
681
+ "type": "varchar(256)",
682
+ "primaryKey": false,
683
+ "notNull": true
684
+ },
685
+ "project_id": {
686
+ "name": "project_id",
687
+ "type": "varchar(256)",
688
+ "primaryKey": false,
689
+ "notNull": true
690
+ },
691
+ "name": {
692
+ "name": "name",
693
+ "type": "varchar(256)",
694
+ "primaryKey": false,
695
+ "notNull": true
696
+ },
697
+ "description": {
698
+ "name": "description",
699
+ "type": "text",
700
+ "primaryKey": false,
701
+ "notNull": false
702
+ },
703
+ "props": {
704
+ "name": "props",
705
+ "type": "jsonb",
706
+ "primaryKey": false,
707
+ "notNull": true
708
+ },
709
+ "render": {
710
+ "name": "render",
711
+ "type": "jsonb",
712
+ "primaryKey": false,
713
+ "notNull": false
714
+ },
715
+ "created_at": {
716
+ "name": "created_at",
717
+ "type": "timestamp",
718
+ "primaryKey": false,
719
+ "notNull": true,
720
+ "default": "now()"
721
+ },
722
+ "updated_at": {
723
+ "name": "updated_at",
724
+ "type": "timestamp",
725
+ "primaryKey": false,
726
+ "notNull": true,
727
+ "default": "now()"
728
+ }
729
+ },
730
+ "indexes": {},
731
+ "foreignKeys": {
732
+ "data_components_project_fk": {
733
+ "name": "data_components_project_fk",
734
+ "tableFrom": "data_components",
735
+ "tableTo": "projects",
736
+ "columnsFrom": [
737
+ "tenant_id",
738
+ "project_id"
739
+ ],
740
+ "columnsTo": [
741
+ "tenant_id",
742
+ "id"
743
+ ],
744
+ "onDelete": "cascade",
745
+ "onUpdate": "no action"
746
+ }
747
+ },
748
+ "compositePrimaryKeys": {
749
+ "data_components_tenant_id_project_id_id_pk": {
750
+ "name": "data_components_tenant_id_project_id_id_pk",
751
+ "columns": [
752
+ "tenant_id",
753
+ "project_id",
754
+ "id"
755
+ ]
756
+ }
757
+ },
758
+ "uniqueConstraints": {},
759
+ "policies": {},
760
+ "checkConstraints": {},
761
+ "isRLSEnabled": false
762
+ },
763
+ "public.dataset": {
764
+ "name": "dataset",
765
+ "schema": "",
766
+ "columns": {
767
+ "tenant_id": {
768
+ "name": "tenant_id",
769
+ "type": "varchar(256)",
770
+ "primaryKey": false,
771
+ "notNull": true
772
+ },
773
+ "id": {
774
+ "name": "id",
775
+ "type": "varchar(256)",
776
+ "primaryKey": false,
777
+ "notNull": true
778
+ },
779
+ "project_id": {
780
+ "name": "project_id",
781
+ "type": "varchar(256)",
782
+ "primaryKey": false,
783
+ "notNull": true
784
+ },
785
+ "name": {
786
+ "name": "name",
787
+ "type": "varchar(256)",
788
+ "primaryKey": false,
789
+ "notNull": true
790
+ },
791
+ "created_at": {
792
+ "name": "created_at",
793
+ "type": "timestamp",
794
+ "primaryKey": false,
795
+ "notNull": true,
796
+ "default": "now()"
797
+ },
798
+ "updated_at": {
799
+ "name": "updated_at",
800
+ "type": "timestamp",
801
+ "primaryKey": false,
802
+ "notNull": true,
803
+ "default": "now()"
804
+ }
805
+ },
806
+ "indexes": {},
807
+ "foreignKeys": {
808
+ "dataset_project_fk": {
809
+ "name": "dataset_project_fk",
810
+ "tableFrom": "dataset",
811
+ "tableTo": "projects",
812
+ "columnsFrom": [
813
+ "tenant_id",
814
+ "project_id"
815
+ ],
816
+ "columnsTo": [
817
+ "tenant_id",
818
+ "id"
819
+ ],
820
+ "onDelete": "cascade",
821
+ "onUpdate": "no action"
822
+ }
823
+ },
824
+ "compositePrimaryKeys": {
825
+ "dataset_tenant_id_project_id_id_pk": {
826
+ "name": "dataset_tenant_id_project_id_id_pk",
827
+ "columns": [
828
+ "tenant_id",
829
+ "project_id",
830
+ "id"
831
+ ]
832
+ }
833
+ },
834
+ "uniqueConstraints": {},
835
+ "policies": {},
836
+ "checkConstraints": {},
837
+ "isRLSEnabled": false
838
+ },
839
+ "public.dataset_item": {
840
+ "name": "dataset_item",
841
+ "schema": "",
842
+ "columns": {
843
+ "tenant_id": {
844
+ "name": "tenant_id",
845
+ "type": "varchar(256)",
846
+ "primaryKey": false,
847
+ "notNull": true
848
+ },
849
+ "id": {
850
+ "name": "id",
851
+ "type": "varchar(256)",
852
+ "primaryKey": false,
853
+ "notNull": true
854
+ },
855
+ "project_id": {
856
+ "name": "project_id",
857
+ "type": "varchar(256)",
858
+ "primaryKey": false,
859
+ "notNull": true
860
+ },
861
+ "dataset_id": {
862
+ "name": "dataset_id",
863
+ "type": "varchar(256)",
864
+ "primaryKey": false,
865
+ "notNull": true
866
+ },
867
+ "input": {
868
+ "name": "input",
869
+ "type": "jsonb",
870
+ "primaryKey": false,
871
+ "notNull": true
872
+ },
873
+ "expected_output": {
874
+ "name": "expected_output",
875
+ "type": "jsonb",
876
+ "primaryKey": false,
877
+ "notNull": false
878
+ },
879
+ "created_at": {
880
+ "name": "created_at",
881
+ "type": "timestamp",
882
+ "primaryKey": false,
883
+ "notNull": true,
884
+ "default": "now()"
885
+ },
886
+ "updated_at": {
887
+ "name": "updated_at",
888
+ "type": "timestamp",
889
+ "primaryKey": false,
890
+ "notNull": true,
891
+ "default": "now()"
892
+ }
893
+ },
894
+ "indexes": {},
895
+ "foreignKeys": {
896
+ "dataset_item_dataset_fk": {
897
+ "name": "dataset_item_dataset_fk",
898
+ "tableFrom": "dataset_item",
899
+ "tableTo": "dataset",
900
+ "columnsFrom": [
901
+ "tenant_id",
902
+ "project_id",
903
+ "dataset_id"
904
+ ],
905
+ "columnsTo": [
906
+ "tenant_id",
907
+ "project_id",
908
+ "id"
909
+ ],
910
+ "onDelete": "cascade",
911
+ "onUpdate": "no action"
912
+ }
913
+ },
914
+ "compositePrimaryKeys": {
915
+ "dataset_item_tenant_id_project_id_id_pk": {
916
+ "name": "dataset_item_tenant_id_project_id_id_pk",
917
+ "columns": [
918
+ "tenant_id",
919
+ "project_id",
920
+ "id"
921
+ ]
922
+ }
923
+ },
924
+ "uniqueConstraints": {},
925
+ "policies": {},
926
+ "checkConstraints": {},
927
+ "isRLSEnabled": false
928
+ },
929
+ "public.dataset_run_config": {
930
+ "name": "dataset_run_config",
931
+ "schema": "",
932
+ "columns": {
933
+ "tenant_id": {
934
+ "name": "tenant_id",
935
+ "type": "varchar(256)",
936
+ "primaryKey": false,
937
+ "notNull": true
938
+ },
939
+ "id": {
940
+ "name": "id",
941
+ "type": "varchar(256)",
942
+ "primaryKey": false,
943
+ "notNull": true
944
+ },
945
+ "project_id": {
946
+ "name": "project_id",
947
+ "type": "varchar(256)",
948
+ "primaryKey": false,
949
+ "notNull": true
950
+ },
951
+ "name": {
952
+ "name": "name",
953
+ "type": "varchar(256)",
954
+ "primaryKey": false,
955
+ "notNull": true
956
+ },
957
+ "description": {
958
+ "name": "description",
959
+ "type": "text",
960
+ "primaryKey": false,
961
+ "notNull": false
962
+ },
963
+ "dataset_id": {
964
+ "name": "dataset_id",
965
+ "type": "varchar(256)",
966
+ "primaryKey": false,
967
+ "notNull": true
968
+ },
969
+ "created_at": {
970
+ "name": "created_at",
971
+ "type": "timestamp",
972
+ "primaryKey": false,
973
+ "notNull": true,
974
+ "default": "now()"
975
+ },
976
+ "updated_at": {
977
+ "name": "updated_at",
978
+ "type": "timestamp",
979
+ "primaryKey": false,
980
+ "notNull": true,
981
+ "default": "now()"
982
+ }
983
+ },
984
+ "indexes": {},
985
+ "foreignKeys": {
986
+ "dataset_run_config_project_fk": {
987
+ "name": "dataset_run_config_project_fk",
988
+ "tableFrom": "dataset_run_config",
989
+ "tableTo": "projects",
990
+ "columnsFrom": [
991
+ "tenant_id",
992
+ "project_id"
993
+ ],
994
+ "columnsTo": [
995
+ "tenant_id",
996
+ "id"
997
+ ],
998
+ "onDelete": "cascade",
999
+ "onUpdate": "no action"
1000
+ },
1001
+ "dataset_run_config_dataset_fk": {
1002
+ "name": "dataset_run_config_dataset_fk",
1003
+ "tableFrom": "dataset_run_config",
1004
+ "tableTo": "dataset",
1005
+ "columnsFrom": [
1006
+ "tenant_id",
1007
+ "project_id",
1008
+ "dataset_id"
1009
+ ],
1010
+ "columnsTo": [
1011
+ "tenant_id",
1012
+ "project_id",
1013
+ "id"
1014
+ ],
1015
+ "onDelete": "cascade",
1016
+ "onUpdate": "no action"
1017
+ }
1018
+ },
1019
+ "compositePrimaryKeys": {
1020
+ "dataset_run_config_tenant_id_project_id_id_pk": {
1021
+ "name": "dataset_run_config_tenant_id_project_id_id_pk",
1022
+ "columns": [
1023
+ "tenant_id",
1024
+ "project_id",
1025
+ "id"
1026
+ ]
1027
+ }
1028
+ },
1029
+ "uniqueConstraints": {},
1030
+ "policies": {},
1031
+ "checkConstraints": {},
1032
+ "isRLSEnabled": false
1033
+ },
1034
+ "public.dataset_run_config_agent_relations": {
1035
+ "name": "dataset_run_config_agent_relations",
1036
+ "schema": "",
1037
+ "columns": {
1038
+ "tenant_id": {
1039
+ "name": "tenant_id",
1040
+ "type": "varchar(256)",
1041
+ "primaryKey": false,
1042
+ "notNull": true
1043
+ },
1044
+ "id": {
1045
+ "name": "id",
1046
+ "type": "varchar(256)",
1047
+ "primaryKey": false,
1048
+ "notNull": true
1049
+ },
1050
+ "project_id": {
1051
+ "name": "project_id",
1052
+ "type": "varchar(256)",
1053
+ "primaryKey": false,
1054
+ "notNull": true
1055
+ },
1056
+ "dataset_run_config_id": {
1057
+ "name": "dataset_run_config_id",
1058
+ "type": "varchar(256)",
1059
+ "primaryKey": false,
1060
+ "notNull": true
1061
+ },
1062
+ "agent_id": {
1063
+ "name": "agent_id",
1064
+ "type": "varchar(256)",
1065
+ "primaryKey": false,
1066
+ "notNull": true
1067
+ },
1068
+ "created_at": {
1069
+ "name": "created_at",
1070
+ "type": "timestamp",
1071
+ "primaryKey": false,
1072
+ "notNull": true,
1073
+ "default": "now()"
1074
+ },
1075
+ "updated_at": {
1076
+ "name": "updated_at",
1077
+ "type": "timestamp",
1078
+ "primaryKey": false,
1079
+ "notNull": true,
1080
+ "default": "now()"
1081
+ }
1082
+ },
1083
+ "indexes": {},
1084
+ "foreignKeys": {
1085
+ "dataset_run_config_agent_relations_dataset_run_config_fk": {
1086
+ "name": "dataset_run_config_agent_relations_dataset_run_config_fk",
1087
+ "tableFrom": "dataset_run_config_agent_relations",
1088
+ "tableTo": "dataset_run_config",
1089
+ "columnsFrom": [
1090
+ "tenant_id",
1091
+ "project_id",
1092
+ "dataset_run_config_id"
1093
+ ],
1094
+ "columnsTo": [
1095
+ "tenant_id",
1096
+ "project_id",
1097
+ "id"
1098
+ ],
1099
+ "onDelete": "cascade",
1100
+ "onUpdate": "no action"
1101
+ },
1102
+ "dataset_run_config_agent_relations_agent_fk": {
1103
+ "name": "dataset_run_config_agent_relations_agent_fk",
1104
+ "tableFrom": "dataset_run_config_agent_relations",
1105
+ "tableTo": "agent",
1106
+ "columnsFrom": [
1107
+ "tenant_id",
1108
+ "project_id",
1109
+ "agent_id"
1110
+ ],
1111
+ "columnsTo": [
1112
+ "tenant_id",
1113
+ "project_id",
1114
+ "id"
1115
+ ],
1116
+ "onDelete": "cascade",
1117
+ "onUpdate": "no action"
1118
+ }
1119
+ },
1120
+ "compositePrimaryKeys": {
1121
+ "dataset_run_config_agent_relations_tenant_id_project_id_id_pk": {
1122
+ "name": "dataset_run_config_agent_relations_tenant_id_project_id_id_pk",
1123
+ "columns": [
1124
+ "tenant_id",
1125
+ "project_id",
1126
+ "id"
1127
+ ]
1128
+ }
1129
+ },
1130
+ "uniqueConstraints": {},
1131
+ "policies": {},
1132
+ "checkConstraints": {},
1133
+ "isRLSEnabled": false
1134
+ },
1135
+ "public.evaluation_job_config": {
1136
+ "name": "evaluation_job_config",
1137
+ "schema": "",
1138
+ "columns": {
1139
+ "tenant_id": {
1140
+ "name": "tenant_id",
1141
+ "type": "varchar(256)",
1142
+ "primaryKey": false,
1143
+ "notNull": true
1144
+ },
1145
+ "id": {
1146
+ "name": "id",
1147
+ "type": "varchar(256)",
1148
+ "primaryKey": false,
1149
+ "notNull": true
1150
+ },
1151
+ "project_id": {
1152
+ "name": "project_id",
1153
+ "type": "varchar(256)",
1154
+ "primaryKey": false,
1155
+ "notNull": true
1156
+ },
1157
+ "job_filters": {
1158
+ "name": "job_filters",
1159
+ "type": "jsonb",
1160
+ "primaryKey": false,
1161
+ "notNull": false
1162
+ },
1163
+ "created_at": {
1164
+ "name": "created_at",
1165
+ "type": "timestamp",
1166
+ "primaryKey": false,
1167
+ "notNull": true,
1168
+ "default": "now()"
1169
+ },
1170
+ "updated_at": {
1171
+ "name": "updated_at",
1172
+ "type": "timestamp",
1173
+ "primaryKey": false,
1174
+ "notNull": true,
1175
+ "default": "now()"
1176
+ }
1177
+ },
1178
+ "indexes": {},
1179
+ "foreignKeys": {
1180
+ "evaluation_job_config_project_fk": {
1181
+ "name": "evaluation_job_config_project_fk",
1182
+ "tableFrom": "evaluation_job_config",
1183
+ "tableTo": "projects",
1184
+ "columnsFrom": [
1185
+ "tenant_id",
1186
+ "project_id"
1187
+ ],
1188
+ "columnsTo": [
1189
+ "tenant_id",
1190
+ "id"
1191
+ ],
1192
+ "onDelete": "cascade",
1193
+ "onUpdate": "no action"
1194
+ }
1195
+ },
1196
+ "compositePrimaryKeys": {
1197
+ "evaluation_job_config_tenant_id_project_id_id_pk": {
1198
+ "name": "evaluation_job_config_tenant_id_project_id_id_pk",
1199
+ "columns": [
1200
+ "tenant_id",
1201
+ "project_id",
1202
+ "id"
1203
+ ]
1204
+ }
1205
+ },
1206
+ "uniqueConstraints": {},
1207
+ "policies": {},
1208
+ "checkConstraints": {},
1209
+ "isRLSEnabled": false
1210
+ },
1211
+ "public.evaluation_job_config_evaluator_relations": {
1212
+ "name": "evaluation_job_config_evaluator_relations",
1213
+ "schema": "",
1214
+ "columns": {
1215
+ "tenant_id": {
1216
+ "name": "tenant_id",
1217
+ "type": "varchar(256)",
1218
+ "primaryKey": false,
1219
+ "notNull": true
1220
+ },
1221
+ "id": {
1222
+ "name": "id",
1223
+ "type": "varchar(256)",
1224
+ "primaryKey": false,
1225
+ "notNull": true
1226
+ },
1227
+ "project_id": {
1228
+ "name": "project_id",
1229
+ "type": "varchar(256)",
1230
+ "primaryKey": false,
1231
+ "notNull": true
1232
+ },
1233
+ "evaluation_job_config_id": {
1234
+ "name": "evaluation_job_config_id",
1235
+ "type": "varchar(256)",
1236
+ "primaryKey": false,
1237
+ "notNull": true
1238
+ },
1239
+ "evaluator_id": {
1240
+ "name": "evaluator_id",
1241
+ "type": "varchar(256)",
1242
+ "primaryKey": false,
1243
+ "notNull": true
1244
+ },
1245
+ "created_at": {
1246
+ "name": "created_at",
1247
+ "type": "timestamp",
1248
+ "primaryKey": false,
1249
+ "notNull": true,
1250
+ "default": "now()"
1251
+ },
1252
+ "updated_at": {
1253
+ "name": "updated_at",
1254
+ "type": "timestamp",
1255
+ "primaryKey": false,
1256
+ "notNull": true,
1257
+ "default": "now()"
1258
+ }
1259
+ },
1260
+ "indexes": {},
1261
+ "foreignKeys": {
1262
+ "eval_job_cfg_evaluator_rel_job_cfg_fk": {
1263
+ "name": "eval_job_cfg_evaluator_rel_job_cfg_fk",
1264
+ "tableFrom": "evaluation_job_config_evaluator_relations",
1265
+ "tableTo": "evaluation_job_config",
1266
+ "columnsFrom": [
1267
+ "tenant_id",
1268
+ "project_id",
1269
+ "evaluation_job_config_id"
1270
+ ],
1271
+ "columnsTo": [
1272
+ "tenant_id",
1273
+ "project_id",
1274
+ "id"
1275
+ ],
1276
+ "onDelete": "cascade",
1277
+ "onUpdate": "no action"
1278
+ },
1279
+ "eval_job_cfg_evaluator_rel_evaluator_fk": {
1280
+ "name": "eval_job_cfg_evaluator_rel_evaluator_fk",
1281
+ "tableFrom": "evaluation_job_config_evaluator_relations",
1282
+ "tableTo": "evaluator",
1283
+ "columnsFrom": [
1284
+ "tenant_id",
1285
+ "project_id",
1286
+ "evaluator_id"
1287
+ ],
1288
+ "columnsTo": [
1289
+ "tenant_id",
1290
+ "project_id",
1291
+ "id"
1292
+ ],
1293
+ "onDelete": "cascade",
1294
+ "onUpdate": "no action"
1295
+ }
1296
+ },
1297
+ "compositePrimaryKeys": {
1298
+ "eval_job_cfg_evaluator_rel_pk": {
1299
+ "name": "eval_job_cfg_evaluator_rel_pk",
1300
+ "columns": [
1301
+ "tenant_id",
1302
+ "project_id",
1303
+ "id"
1304
+ ]
1305
+ }
1306
+ },
1307
+ "uniqueConstraints": {},
1308
+ "policies": {},
1309
+ "checkConstraints": {},
1310
+ "isRLSEnabled": false
1311
+ },
1312
+ "public.evaluation_run_config": {
1313
+ "name": "evaluation_run_config",
1314
+ "schema": "",
1315
+ "columns": {
1316
+ "tenant_id": {
1317
+ "name": "tenant_id",
1318
+ "type": "varchar(256)",
1319
+ "primaryKey": false,
1320
+ "notNull": true
1321
+ },
1322
+ "id": {
1323
+ "name": "id",
1324
+ "type": "varchar(256)",
1325
+ "primaryKey": false,
1326
+ "notNull": true
1327
+ },
1328
+ "project_id": {
1329
+ "name": "project_id",
1330
+ "type": "varchar(256)",
1331
+ "primaryKey": false,
1332
+ "notNull": true
1333
+ },
1334
+ "name": {
1335
+ "name": "name",
1336
+ "type": "varchar(256)",
1337
+ "primaryKey": false,
1338
+ "notNull": true
1339
+ },
1340
+ "description": {
1341
+ "name": "description",
1342
+ "type": "text",
1343
+ "primaryKey": false,
1344
+ "notNull": false
1345
+ },
1346
+ "is_active": {
1347
+ "name": "is_active",
1348
+ "type": "boolean",
1349
+ "primaryKey": false,
1350
+ "notNull": true,
1351
+ "default": true
1352
+ },
1353
+ "created_at": {
1354
+ "name": "created_at",
1355
+ "type": "timestamp",
1356
+ "primaryKey": false,
1357
+ "notNull": true,
1358
+ "default": "now()"
1359
+ },
1360
+ "updated_at": {
1361
+ "name": "updated_at",
1362
+ "type": "timestamp",
1363
+ "primaryKey": false,
1364
+ "notNull": true,
1365
+ "default": "now()"
1366
+ }
1367
+ },
1368
+ "indexes": {},
1369
+ "foreignKeys": {
1370
+ "evaluation_run_config_project_fk": {
1371
+ "name": "evaluation_run_config_project_fk",
1372
+ "tableFrom": "evaluation_run_config",
1373
+ "tableTo": "projects",
1374
+ "columnsFrom": [
1375
+ "tenant_id",
1376
+ "project_id"
1377
+ ],
1378
+ "columnsTo": [
1379
+ "tenant_id",
1380
+ "id"
1381
+ ],
1382
+ "onDelete": "cascade",
1383
+ "onUpdate": "no action"
1384
+ }
1385
+ },
1386
+ "compositePrimaryKeys": {
1387
+ "evaluation_run_config_tenant_id_project_id_id_pk": {
1388
+ "name": "evaluation_run_config_tenant_id_project_id_id_pk",
1389
+ "columns": [
1390
+ "tenant_id",
1391
+ "project_id",
1392
+ "id"
1393
+ ]
1394
+ }
1395
+ },
1396
+ "uniqueConstraints": {},
1397
+ "policies": {},
1398
+ "checkConstraints": {},
1399
+ "isRLSEnabled": false
1400
+ },
1401
+ "public.evaluation_run_config_evaluation_suite_config_relations": {
1402
+ "name": "evaluation_run_config_evaluation_suite_config_relations",
1403
+ "schema": "",
1404
+ "columns": {
1405
+ "tenant_id": {
1406
+ "name": "tenant_id",
1407
+ "type": "varchar(256)",
1408
+ "primaryKey": false,
1409
+ "notNull": true
1410
+ },
1411
+ "id": {
1412
+ "name": "id",
1413
+ "type": "varchar(256)",
1414
+ "primaryKey": false,
1415
+ "notNull": true
1416
+ },
1417
+ "project_id": {
1418
+ "name": "project_id",
1419
+ "type": "varchar(256)",
1420
+ "primaryKey": false,
1421
+ "notNull": true
1422
+ },
1423
+ "evaluation_run_config_id": {
1424
+ "name": "evaluation_run_config_id",
1425
+ "type": "varchar(256)",
1426
+ "primaryKey": false,
1427
+ "notNull": true
1428
+ },
1429
+ "evaluation_suite_config_id": {
1430
+ "name": "evaluation_suite_config_id",
1431
+ "type": "varchar(256)",
1432
+ "primaryKey": false,
1433
+ "notNull": true
1434
+ },
1435
+ "created_at": {
1436
+ "name": "created_at",
1437
+ "type": "timestamp",
1438
+ "primaryKey": false,
1439
+ "notNull": true,
1440
+ "default": "now()"
1441
+ },
1442
+ "updated_at": {
1443
+ "name": "updated_at",
1444
+ "type": "timestamp",
1445
+ "primaryKey": false,
1446
+ "notNull": true,
1447
+ "default": "now()"
1448
+ }
1449
+ },
1450
+ "indexes": {},
1451
+ "foreignKeys": {
1452
+ "eval_run_cfg_eval_suite_rel_run_cfg_fk": {
1453
+ "name": "eval_run_cfg_eval_suite_rel_run_cfg_fk",
1454
+ "tableFrom": "evaluation_run_config_evaluation_suite_config_relations",
1455
+ "tableTo": "evaluation_run_config",
1456
+ "columnsFrom": [
1457
+ "tenant_id",
1458
+ "project_id",
1459
+ "evaluation_run_config_id"
1460
+ ],
1461
+ "columnsTo": [
1462
+ "tenant_id",
1463
+ "project_id",
1464
+ "id"
1465
+ ],
1466
+ "onDelete": "cascade",
1467
+ "onUpdate": "no action"
1468
+ },
1469
+ "eval_run_cfg_eval_suite_rel_suite_cfg_fk": {
1470
+ "name": "eval_run_cfg_eval_suite_rel_suite_cfg_fk",
1471
+ "tableFrom": "evaluation_run_config_evaluation_suite_config_relations",
1472
+ "tableTo": "evaluation_suite_config",
1473
+ "columnsFrom": [
1474
+ "tenant_id",
1475
+ "project_id",
1476
+ "evaluation_suite_config_id"
1477
+ ],
1478
+ "columnsTo": [
1479
+ "tenant_id",
1480
+ "project_id",
1481
+ "id"
1482
+ ],
1483
+ "onDelete": "cascade",
1484
+ "onUpdate": "no action"
1485
+ }
1486
+ },
1487
+ "compositePrimaryKeys": {
1488
+ "eval_run_cfg_eval_suite_cfg_rel_pk": {
1489
+ "name": "eval_run_cfg_eval_suite_cfg_rel_pk",
1490
+ "columns": [
1491
+ "tenant_id",
1492
+ "project_id",
1493
+ "id"
1494
+ ]
1495
+ }
1496
+ },
1497
+ "uniqueConstraints": {},
1498
+ "policies": {},
1499
+ "checkConstraints": {},
1500
+ "isRLSEnabled": false
1501
+ },
1502
+ "public.evaluation_suite_config": {
1503
+ "name": "evaluation_suite_config",
1504
+ "schema": "",
1505
+ "columns": {
1506
+ "tenant_id": {
1507
+ "name": "tenant_id",
1508
+ "type": "varchar(256)",
1509
+ "primaryKey": false,
1510
+ "notNull": true
1511
+ },
1512
+ "id": {
1513
+ "name": "id",
1514
+ "type": "varchar(256)",
1515
+ "primaryKey": false,
1516
+ "notNull": true
1517
+ },
1518
+ "project_id": {
1519
+ "name": "project_id",
1520
+ "type": "varchar(256)",
1521
+ "primaryKey": false,
1522
+ "notNull": true
1523
+ },
1524
+ "filters": {
1525
+ "name": "filters",
1526
+ "type": "jsonb",
1527
+ "primaryKey": false,
1528
+ "notNull": false
1529
+ },
1530
+ "sample_rate": {
1531
+ "name": "sample_rate",
1532
+ "type": "double precision",
1533
+ "primaryKey": false,
1534
+ "notNull": false
1535
+ },
1536
+ "created_at": {
1537
+ "name": "created_at",
1538
+ "type": "timestamp",
1539
+ "primaryKey": false,
1540
+ "notNull": true,
1541
+ "default": "now()"
1542
+ },
1543
+ "updated_at": {
1544
+ "name": "updated_at",
1545
+ "type": "timestamp",
1546
+ "primaryKey": false,
1547
+ "notNull": true,
1548
+ "default": "now()"
1549
+ }
1550
+ },
1551
+ "indexes": {},
1552
+ "foreignKeys": {
1553
+ "evaluation_suite_config_project_fk": {
1554
+ "name": "evaluation_suite_config_project_fk",
1555
+ "tableFrom": "evaluation_suite_config",
1556
+ "tableTo": "projects",
1557
+ "columnsFrom": [
1558
+ "tenant_id",
1559
+ "project_id"
1560
+ ],
1561
+ "columnsTo": [
1562
+ "tenant_id",
1563
+ "id"
1564
+ ],
1565
+ "onDelete": "cascade",
1566
+ "onUpdate": "no action"
1567
+ }
1568
+ },
1569
+ "compositePrimaryKeys": {
1570
+ "evaluation_suite_config_tenant_id_project_id_id_pk": {
1571
+ "name": "evaluation_suite_config_tenant_id_project_id_id_pk",
1572
+ "columns": [
1573
+ "tenant_id",
1574
+ "project_id",
1575
+ "id"
1576
+ ]
1577
+ }
1578
+ },
1579
+ "uniqueConstraints": {},
1580
+ "policies": {},
1581
+ "checkConstraints": {},
1582
+ "isRLSEnabled": false
1583
+ },
1584
+ "public.evaluation_suite_config_evaluator_relations": {
1585
+ "name": "evaluation_suite_config_evaluator_relations",
1586
+ "schema": "",
1587
+ "columns": {
1588
+ "tenant_id": {
1589
+ "name": "tenant_id",
1590
+ "type": "varchar(256)",
1591
+ "primaryKey": false,
1592
+ "notNull": true
1593
+ },
1594
+ "id": {
1595
+ "name": "id",
1596
+ "type": "varchar(256)",
1597
+ "primaryKey": false,
1598
+ "notNull": true
1599
+ },
1600
+ "project_id": {
1601
+ "name": "project_id",
1602
+ "type": "varchar(256)",
1603
+ "primaryKey": false,
1604
+ "notNull": true
1605
+ },
1606
+ "evaluation_suite_config_id": {
1607
+ "name": "evaluation_suite_config_id",
1608
+ "type": "varchar(256)",
1609
+ "primaryKey": false,
1610
+ "notNull": true
1611
+ },
1612
+ "evaluator_id": {
1613
+ "name": "evaluator_id",
1614
+ "type": "varchar(256)",
1615
+ "primaryKey": false,
1616
+ "notNull": true
1617
+ },
1618
+ "created_at": {
1619
+ "name": "created_at",
1620
+ "type": "timestamp",
1621
+ "primaryKey": false,
1622
+ "notNull": true,
1623
+ "default": "now()"
1624
+ },
1625
+ "updated_at": {
1626
+ "name": "updated_at",
1627
+ "type": "timestamp",
1628
+ "primaryKey": false,
1629
+ "notNull": true,
1630
+ "default": "now()"
1631
+ }
1632
+ },
1633
+ "indexes": {},
1634
+ "foreignKeys": {
1635
+ "eval_suite_cfg_evaluator_rel_suite_cfg_fk": {
1636
+ "name": "eval_suite_cfg_evaluator_rel_suite_cfg_fk",
1637
+ "tableFrom": "evaluation_suite_config_evaluator_relations",
1638
+ "tableTo": "evaluation_suite_config",
1639
+ "columnsFrom": [
1640
+ "tenant_id",
1641
+ "project_id",
1642
+ "evaluation_suite_config_id"
1643
+ ],
1644
+ "columnsTo": [
1645
+ "tenant_id",
1646
+ "project_id",
1647
+ "id"
1648
+ ],
1649
+ "onDelete": "cascade",
1650
+ "onUpdate": "no action"
1651
+ },
1652
+ "eval_suite_cfg_evaluator_rel_evaluator_fk": {
1653
+ "name": "eval_suite_cfg_evaluator_rel_evaluator_fk",
1654
+ "tableFrom": "evaluation_suite_config_evaluator_relations",
1655
+ "tableTo": "evaluator",
1656
+ "columnsFrom": [
1657
+ "tenant_id",
1658
+ "project_id",
1659
+ "evaluator_id"
1660
+ ],
1661
+ "columnsTo": [
1662
+ "tenant_id",
1663
+ "project_id",
1664
+ "id"
1665
+ ],
1666
+ "onDelete": "cascade",
1667
+ "onUpdate": "no action"
1668
+ }
1669
+ },
1670
+ "compositePrimaryKeys": {
1671
+ "eval_suite_cfg_evaluator_rel_pk": {
1672
+ "name": "eval_suite_cfg_evaluator_rel_pk",
1673
+ "columns": [
1674
+ "tenant_id",
1675
+ "project_id",
1676
+ "id"
1677
+ ]
1678
+ }
1679
+ },
1680
+ "uniqueConstraints": {},
1681
+ "policies": {},
1682
+ "checkConstraints": {},
1683
+ "isRLSEnabled": false
1684
+ },
1685
+ "public.evaluator": {
1686
+ "name": "evaluator",
1687
+ "schema": "",
1688
+ "columns": {
1689
+ "tenant_id": {
1690
+ "name": "tenant_id",
1691
+ "type": "varchar(256)",
1692
+ "primaryKey": false,
1693
+ "notNull": true
1694
+ },
1695
+ "id": {
1696
+ "name": "id",
1697
+ "type": "varchar(256)",
1698
+ "primaryKey": false,
1699
+ "notNull": true
1700
+ },
1701
+ "project_id": {
1702
+ "name": "project_id",
1703
+ "type": "varchar(256)",
1704
+ "primaryKey": false,
1705
+ "notNull": true
1706
+ },
1707
+ "name": {
1708
+ "name": "name",
1709
+ "type": "varchar(256)",
1710
+ "primaryKey": false,
1711
+ "notNull": true
1712
+ },
1713
+ "description": {
1714
+ "name": "description",
1715
+ "type": "text",
1716
+ "primaryKey": false,
1717
+ "notNull": false
1718
+ },
1719
+ "prompt": {
1720
+ "name": "prompt",
1721
+ "type": "text",
1722
+ "primaryKey": false,
1723
+ "notNull": true
1724
+ },
1725
+ "schema": {
1726
+ "name": "schema",
1727
+ "type": "jsonb",
1728
+ "primaryKey": false,
1729
+ "notNull": true
1730
+ },
1731
+ "model": {
1732
+ "name": "model",
1733
+ "type": "jsonb",
1734
+ "primaryKey": false,
1735
+ "notNull": true
1736
+ },
1737
+ "pass_criteria": {
1738
+ "name": "pass_criteria",
1739
+ "type": "jsonb",
1740
+ "primaryKey": false,
1741
+ "notNull": false
1742
+ },
1743
+ "created_at": {
1744
+ "name": "created_at",
1745
+ "type": "timestamp",
1746
+ "primaryKey": false,
1747
+ "notNull": true,
1748
+ "default": "now()"
1749
+ },
1750
+ "updated_at": {
1751
+ "name": "updated_at",
1752
+ "type": "timestamp",
1753
+ "primaryKey": false,
1754
+ "notNull": true,
1755
+ "default": "now()"
1756
+ }
1757
+ },
1758
+ "indexes": {},
1759
+ "foreignKeys": {
1760
+ "evaluator_project_fk": {
1761
+ "name": "evaluator_project_fk",
1762
+ "tableFrom": "evaluator",
1763
+ "tableTo": "projects",
1764
+ "columnsFrom": [
1765
+ "tenant_id",
1766
+ "project_id"
1767
+ ],
1768
+ "columnsTo": [
1769
+ "tenant_id",
1770
+ "id"
1771
+ ],
1772
+ "onDelete": "cascade",
1773
+ "onUpdate": "no action"
1774
+ }
1775
+ },
1776
+ "compositePrimaryKeys": {
1777
+ "evaluator_tenant_id_project_id_id_pk": {
1778
+ "name": "evaluator_tenant_id_project_id_id_pk",
1779
+ "columns": [
1780
+ "tenant_id",
1781
+ "project_id",
1782
+ "id"
1783
+ ]
1784
+ }
1785
+ },
1786
+ "uniqueConstraints": {},
1787
+ "policies": {},
1788
+ "checkConstraints": {},
1789
+ "isRLSEnabled": false
1790
+ },
1791
+ "public.external_agents": {
1792
+ "name": "external_agents",
1793
+ "schema": "",
1794
+ "columns": {
1795
+ "tenant_id": {
1796
+ "name": "tenant_id",
1797
+ "type": "varchar(256)",
1798
+ "primaryKey": false,
1799
+ "notNull": true
1800
+ },
1801
+ "id": {
1802
+ "name": "id",
1803
+ "type": "varchar(256)",
1804
+ "primaryKey": false,
1805
+ "notNull": true
1806
+ },
1807
+ "project_id": {
1808
+ "name": "project_id",
1809
+ "type": "varchar(256)",
1810
+ "primaryKey": false,
1811
+ "notNull": true
1812
+ },
1813
+ "name": {
1814
+ "name": "name",
1815
+ "type": "varchar(256)",
1816
+ "primaryKey": false,
1817
+ "notNull": true
1818
+ },
1819
+ "description": {
1820
+ "name": "description",
1821
+ "type": "text",
1822
+ "primaryKey": false,
1823
+ "notNull": false
1824
+ },
1825
+ "base_url": {
1826
+ "name": "base_url",
1827
+ "type": "text",
1828
+ "primaryKey": false,
1829
+ "notNull": true
1830
+ },
1831
+ "credential_reference_id": {
1832
+ "name": "credential_reference_id",
1833
+ "type": "varchar(256)",
1834
+ "primaryKey": false,
1835
+ "notNull": false
1836
+ },
1837
+ "created_at": {
1838
+ "name": "created_at",
1839
+ "type": "timestamp",
1840
+ "primaryKey": false,
1841
+ "notNull": true,
1842
+ "default": "now()"
1843
+ },
1844
+ "updated_at": {
1845
+ "name": "updated_at",
1846
+ "type": "timestamp",
1847
+ "primaryKey": false,
1848
+ "notNull": true,
1849
+ "default": "now()"
1850
+ }
1851
+ },
1852
+ "indexes": {},
1853
+ "foreignKeys": {
1854
+ "external_agents_project_fk": {
1855
+ "name": "external_agents_project_fk",
1856
+ "tableFrom": "external_agents",
1857
+ "tableTo": "projects",
1858
+ "columnsFrom": [
1859
+ "tenant_id",
1860
+ "project_id"
1861
+ ],
1862
+ "columnsTo": [
1863
+ "tenant_id",
1864
+ "id"
1865
+ ],
1866
+ "onDelete": "cascade",
1867
+ "onUpdate": "no action"
1868
+ },
1869
+ "external_agents_credential_reference_fk": {
1870
+ "name": "external_agents_credential_reference_fk",
1871
+ "tableFrom": "external_agents",
1872
+ "tableTo": "credential_references",
1873
+ "columnsFrom": [
1874
+ "credential_reference_id"
1875
+ ],
1876
+ "columnsTo": [
1877
+ "id"
1878
+ ],
1879
+ "onDelete": "set null",
1880
+ "onUpdate": "no action"
1881
+ }
1882
+ },
1883
+ "compositePrimaryKeys": {
1884
+ "external_agents_tenant_id_project_id_id_pk": {
1885
+ "name": "external_agents_tenant_id_project_id_id_pk",
1886
+ "columns": [
1887
+ "tenant_id",
1888
+ "project_id",
1889
+ "id"
1890
+ ]
1891
+ }
1892
+ },
1893
+ "uniqueConstraints": {},
1894
+ "policies": {},
1895
+ "checkConstraints": {},
1896
+ "isRLSEnabled": false
1897
+ },
1898
+ "public.function_tools": {
1899
+ "name": "function_tools",
1900
+ "schema": "",
1901
+ "columns": {
1902
+ "tenant_id": {
1903
+ "name": "tenant_id",
1904
+ "type": "varchar(256)",
1905
+ "primaryKey": false,
1906
+ "notNull": true
1907
+ },
1908
+ "id": {
1909
+ "name": "id",
1910
+ "type": "varchar(256)",
1911
+ "primaryKey": false,
1912
+ "notNull": true
1913
+ },
1914
+ "project_id": {
1915
+ "name": "project_id",
1916
+ "type": "varchar(256)",
1917
+ "primaryKey": false,
1918
+ "notNull": true
1919
+ },
1920
+ "agent_id": {
1921
+ "name": "agent_id",
1922
+ "type": "varchar(256)",
1923
+ "primaryKey": false,
1924
+ "notNull": true
1925
+ },
1926
+ "name": {
1927
+ "name": "name",
1928
+ "type": "varchar(256)",
1929
+ "primaryKey": false,
1930
+ "notNull": true
1931
+ },
1932
+ "description": {
1933
+ "name": "description",
1934
+ "type": "text",
1935
+ "primaryKey": false,
1936
+ "notNull": false
1937
+ },
1938
+ "function_id": {
1939
+ "name": "function_id",
1940
+ "type": "varchar(256)",
1941
+ "primaryKey": false,
1942
+ "notNull": true
1943
+ },
1944
+ "created_at": {
1945
+ "name": "created_at",
1946
+ "type": "timestamp",
1947
+ "primaryKey": false,
1948
+ "notNull": true,
1949
+ "default": "now()"
1950
+ },
1951
+ "updated_at": {
1952
+ "name": "updated_at",
1953
+ "type": "timestamp",
1954
+ "primaryKey": false,
1955
+ "notNull": true,
1956
+ "default": "now()"
1957
+ }
1958
+ },
1959
+ "indexes": {},
1960
+ "foreignKeys": {
1961
+ "function_tools_agent_fk": {
1962
+ "name": "function_tools_agent_fk",
1963
+ "tableFrom": "function_tools",
1964
+ "tableTo": "agent",
1965
+ "columnsFrom": [
1966
+ "tenant_id",
1967
+ "project_id",
1968
+ "agent_id"
1969
+ ],
1970
+ "columnsTo": [
1971
+ "tenant_id",
1972
+ "project_id",
1973
+ "id"
1974
+ ],
1975
+ "onDelete": "cascade",
1976
+ "onUpdate": "no action"
1977
+ },
1978
+ "function_tools_function_fk": {
1979
+ "name": "function_tools_function_fk",
1980
+ "tableFrom": "function_tools",
1981
+ "tableTo": "functions",
1982
+ "columnsFrom": [
1983
+ "tenant_id",
1984
+ "project_id",
1985
+ "function_id"
1986
+ ],
1987
+ "columnsTo": [
1988
+ "tenant_id",
1989
+ "project_id",
1990
+ "id"
1991
+ ],
1992
+ "onDelete": "cascade",
1993
+ "onUpdate": "no action"
1994
+ }
1995
+ },
1996
+ "compositePrimaryKeys": {
1997
+ "function_tools_tenant_id_project_id_agent_id_id_pk": {
1998
+ "name": "function_tools_tenant_id_project_id_agent_id_id_pk",
1999
+ "columns": [
2000
+ "tenant_id",
2001
+ "project_id",
2002
+ "agent_id",
2003
+ "id"
2004
+ ]
2005
+ }
2006
+ },
2007
+ "uniqueConstraints": {},
2008
+ "policies": {},
2009
+ "checkConstraints": {},
2010
+ "isRLSEnabled": false
2011
+ },
2012
+ "public.functions": {
2013
+ "name": "functions",
2014
+ "schema": "",
2015
+ "columns": {
2016
+ "tenant_id": {
2017
+ "name": "tenant_id",
2018
+ "type": "varchar(256)",
2019
+ "primaryKey": false,
2020
+ "notNull": true
2021
+ },
2022
+ "id": {
2023
+ "name": "id",
2024
+ "type": "varchar(256)",
2025
+ "primaryKey": false,
2026
+ "notNull": true
2027
+ },
2028
+ "project_id": {
2029
+ "name": "project_id",
2030
+ "type": "varchar(256)",
2031
+ "primaryKey": false,
2032
+ "notNull": true
2033
+ },
2034
+ "input_schema": {
2035
+ "name": "input_schema",
2036
+ "type": "jsonb",
2037
+ "primaryKey": false,
2038
+ "notNull": false
2039
+ },
2040
+ "execute_code": {
2041
+ "name": "execute_code",
2042
+ "type": "text",
2043
+ "primaryKey": false,
2044
+ "notNull": true
2045
+ },
2046
+ "dependencies": {
2047
+ "name": "dependencies",
2048
+ "type": "jsonb",
2049
+ "primaryKey": false,
2050
+ "notNull": false
2051
+ },
2052
+ "created_at": {
2053
+ "name": "created_at",
2054
+ "type": "timestamp",
2055
+ "primaryKey": false,
2056
+ "notNull": true,
2057
+ "default": "now()"
2058
+ },
2059
+ "updated_at": {
2060
+ "name": "updated_at",
2061
+ "type": "timestamp",
2062
+ "primaryKey": false,
2063
+ "notNull": true,
2064
+ "default": "now()"
2065
+ }
2066
+ },
2067
+ "indexes": {},
2068
+ "foreignKeys": {
2069
+ "functions_project_fk": {
2070
+ "name": "functions_project_fk",
2071
+ "tableFrom": "functions",
2072
+ "tableTo": "projects",
2073
+ "columnsFrom": [
2074
+ "tenant_id",
2075
+ "project_id"
2076
+ ],
2077
+ "columnsTo": [
2078
+ "tenant_id",
2079
+ "id"
2080
+ ],
2081
+ "onDelete": "cascade",
2082
+ "onUpdate": "no action"
2083
+ }
2084
+ },
2085
+ "compositePrimaryKeys": {
2086
+ "functions_tenant_id_project_id_id_pk": {
2087
+ "name": "functions_tenant_id_project_id_id_pk",
2088
+ "columns": [
2089
+ "tenant_id",
2090
+ "project_id",
2091
+ "id"
2092
+ ]
2093
+ }
2094
+ },
2095
+ "uniqueConstraints": {},
2096
+ "policies": {},
2097
+ "checkConstraints": {},
2098
+ "isRLSEnabled": false
2099
+ },
2100
+ "public.projects": {
2101
+ "name": "projects",
2102
+ "schema": "",
2103
+ "columns": {
2104
+ "tenant_id": {
2105
+ "name": "tenant_id",
2106
+ "type": "varchar(256)",
2107
+ "primaryKey": false,
2108
+ "notNull": true
2109
+ },
2110
+ "id": {
2111
+ "name": "id",
2112
+ "type": "varchar(256)",
2113
+ "primaryKey": false,
2114
+ "notNull": true
2115
+ },
2116
+ "name": {
2117
+ "name": "name",
2118
+ "type": "varchar(256)",
2119
+ "primaryKey": false,
2120
+ "notNull": true
2121
+ },
2122
+ "description": {
2123
+ "name": "description",
2124
+ "type": "text",
2125
+ "primaryKey": false,
2126
+ "notNull": false
2127
+ },
2128
+ "models": {
2129
+ "name": "models",
2130
+ "type": "jsonb",
2131
+ "primaryKey": false,
2132
+ "notNull": false
2133
+ },
2134
+ "stop_when": {
2135
+ "name": "stop_when",
2136
+ "type": "jsonb",
2137
+ "primaryKey": false,
2138
+ "notNull": false
2139
+ },
2140
+ "created_at": {
2141
+ "name": "created_at",
2142
+ "type": "timestamp",
2143
+ "primaryKey": false,
2144
+ "notNull": true,
2145
+ "default": "now()"
2146
+ },
2147
+ "updated_at": {
2148
+ "name": "updated_at",
2149
+ "type": "timestamp",
2150
+ "primaryKey": false,
2151
+ "notNull": true,
2152
+ "default": "now()"
2153
+ }
2154
+ },
2155
+ "indexes": {},
2156
+ "foreignKeys": {},
2157
+ "compositePrimaryKeys": {
2158
+ "projects_tenant_id_id_pk": {
2159
+ "name": "projects_tenant_id_id_pk",
2160
+ "columns": [
2161
+ "tenant_id",
2162
+ "id"
2163
+ ]
2164
+ }
2165
+ },
2166
+ "uniqueConstraints": {},
2167
+ "policies": {},
2168
+ "checkConstraints": {},
2169
+ "isRLSEnabled": false
2170
+ },
2171
+ "public.skill_files": {
2172
+ "name": "skill_files",
2173
+ "schema": "",
2174
+ "columns": {
2175
+ "tenant_id": {
2176
+ "name": "tenant_id",
2177
+ "type": "varchar(256)",
2178
+ "primaryKey": false,
2179
+ "notNull": true
2180
+ },
2181
+ "id": {
2182
+ "name": "id",
2183
+ "type": "varchar(256)",
2184
+ "primaryKey": false,
2185
+ "notNull": true
2186
+ },
2187
+ "project_id": {
2188
+ "name": "project_id",
2189
+ "type": "varchar(256)",
2190
+ "primaryKey": false,
2191
+ "notNull": true
2192
+ },
2193
+ "skill_id": {
2194
+ "name": "skill_id",
2195
+ "type": "varchar(64)",
2196
+ "primaryKey": false,
2197
+ "notNull": true
2198
+ },
2199
+ "file_path": {
2200
+ "name": "file_path",
2201
+ "type": "varchar(1024)",
2202
+ "primaryKey": false,
2203
+ "notNull": true
2204
+ },
2205
+ "content": {
2206
+ "name": "content",
2207
+ "type": "text",
2208
+ "primaryKey": false,
2209
+ "notNull": true
2210
+ },
2211
+ "created_at": {
2212
+ "name": "created_at",
2213
+ "type": "timestamp",
2214
+ "primaryKey": false,
2215
+ "notNull": true,
2216
+ "default": "now()"
2217
+ },
2218
+ "updated_at": {
2219
+ "name": "updated_at",
2220
+ "type": "timestamp",
2221
+ "primaryKey": false,
2222
+ "notNull": true,
2223
+ "default": "now()"
2224
+ }
2225
+ },
2226
+ "indexes": {
2227
+ "skill_files_skill_idx": {
2228
+ "name": "skill_files_skill_idx",
2229
+ "columns": [
2230
+ {
2231
+ "expression": "skill_id",
2232
+ "isExpression": false,
2233
+ "asc": true,
2234
+ "nulls": "last"
2235
+ }
2236
+ ],
2237
+ "isUnique": false,
2238
+ "concurrently": false,
2239
+ "method": "btree",
2240
+ "with": {}
2241
+ }
2242
+ },
2243
+ "foreignKeys": {
2244
+ "skill_files_skill_fk": {
2245
+ "name": "skill_files_skill_fk",
2246
+ "tableFrom": "skill_files",
2247
+ "tableTo": "skills",
2248
+ "columnsFrom": [
2249
+ "tenant_id",
2250
+ "project_id",
2251
+ "skill_id"
2252
+ ],
2253
+ "columnsTo": [
2254
+ "tenant_id",
2255
+ "project_id",
2256
+ "id"
2257
+ ],
2258
+ "onDelete": "cascade",
2259
+ "onUpdate": "no action"
2260
+ }
2261
+ },
2262
+ "compositePrimaryKeys": {
2263
+ "skill_files_tenant_id_project_id_id_pk": {
2264
+ "name": "skill_files_tenant_id_project_id_id_pk",
2265
+ "columns": [
2266
+ "tenant_id",
2267
+ "project_id",
2268
+ "id"
2269
+ ]
2270
+ }
2271
+ },
2272
+ "uniqueConstraints": {
2273
+ "skill_files_skill_path_unique": {
2274
+ "name": "skill_files_skill_path_unique",
2275
+ "nullsNotDistinct": false,
2276
+ "columns": [
2277
+ "tenant_id",
2278
+ "project_id",
2279
+ "skill_id",
2280
+ "file_path"
2281
+ ]
2282
+ }
2283
+ },
2284
+ "policies": {},
2285
+ "checkConstraints": {},
2286
+ "isRLSEnabled": false
2287
+ },
2288
+ "public.skills": {
2289
+ "name": "skills",
2290
+ "schema": "",
2291
+ "columns": {
2292
+ "tenant_id": {
2293
+ "name": "tenant_id",
2294
+ "type": "varchar(256)",
2295
+ "primaryKey": false,
2296
+ "notNull": true
2297
+ },
2298
+ "id": {
2299
+ "name": "id",
2300
+ "type": "varchar(64)",
2301
+ "primaryKey": false,
2302
+ "notNull": true
2303
+ },
2304
+ "project_id": {
2305
+ "name": "project_id",
2306
+ "type": "varchar(256)",
2307
+ "primaryKey": false,
2308
+ "notNull": true
2309
+ },
2310
+ "name": {
2311
+ "name": "name",
2312
+ "type": "varchar(64)",
2313
+ "primaryKey": false,
2314
+ "notNull": true
2315
+ },
2316
+ "description": {
2317
+ "name": "description",
2318
+ "type": "text",
2319
+ "primaryKey": false,
2320
+ "notNull": true
2321
+ },
2322
+ "content": {
2323
+ "name": "content",
2324
+ "type": "text",
2325
+ "primaryKey": false,
2326
+ "notNull": true
2327
+ },
2328
+ "metadata": {
2329
+ "name": "metadata",
2330
+ "type": "jsonb",
2331
+ "primaryKey": false,
2332
+ "notNull": false
2333
+ },
2334
+ "created_at": {
2335
+ "name": "created_at",
2336
+ "type": "timestamp",
2337
+ "primaryKey": false,
2338
+ "notNull": true,
2339
+ "default": "now()"
2340
+ },
2341
+ "updated_at": {
2342
+ "name": "updated_at",
2343
+ "type": "timestamp",
2344
+ "primaryKey": false,
2345
+ "notNull": true,
2346
+ "default": "now()"
2347
+ }
2348
+ },
2349
+ "indexes": {},
2350
+ "foreignKeys": {
2351
+ "skills_project_fk": {
2352
+ "name": "skills_project_fk",
2353
+ "tableFrom": "skills",
2354
+ "tableTo": "projects",
2355
+ "columnsFrom": [
2356
+ "tenant_id",
2357
+ "project_id"
2358
+ ],
2359
+ "columnsTo": [
2360
+ "tenant_id",
2361
+ "id"
2362
+ ],
2363
+ "onDelete": "cascade",
2364
+ "onUpdate": "no action"
2365
+ }
2366
+ },
2367
+ "compositePrimaryKeys": {
2368
+ "skills_tenant_id_project_id_id_pk": {
2369
+ "name": "skills_tenant_id_project_id_id_pk",
2370
+ "columns": [
2371
+ "tenant_id",
2372
+ "project_id",
2373
+ "id"
2374
+ ]
2375
+ }
2376
+ },
2377
+ "uniqueConstraints": {},
2378
+ "policies": {},
2379
+ "checkConstraints": {},
2380
+ "isRLSEnabled": false
2381
+ },
2382
+ "public.sub_agent_artifact_components": {
2383
+ "name": "sub_agent_artifact_components",
2384
+ "schema": "",
2385
+ "columns": {
2386
+ "tenant_id": {
2387
+ "name": "tenant_id",
2388
+ "type": "varchar(256)",
2389
+ "primaryKey": false,
2390
+ "notNull": true
2391
+ },
2392
+ "id": {
2393
+ "name": "id",
2394
+ "type": "varchar(256)",
2395
+ "primaryKey": false,
2396
+ "notNull": true
2397
+ },
2398
+ "project_id": {
2399
+ "name": "project_id",
2400
+ "type": "varchar(256)",
2401
+ "primaryKey": false,
2402
+ "notNull": true
2403
+ },
2404
+ "agent_id": {
2405
+ "name": "agent_id",
2406
+ "type": "varchar(256)",
2407
+ "primaryKey": false,
2408
+ "notNull": true
2409
+ },
2410
+ "sub_agent_id": {
2411
+ "name": "sub_agent_id",
2412
+ "type": "varchar(256)",
2413
+ "primaryKey": false,
2414
+ "notNull": true
2415
+ },
2416
+ "artifact_component_id": {
2417
+ "name": "artifact_component_id",
2418
+ "type": "varchar(256)",
2419
+ "primaryKey": false,
2420
+ "notNull": true
2421
+ },
2422
+ "created_at": {
2423
+ "name": "created_at",
2424
+ "type": "timestamp",
2425
+ "primaryKey": false,
2426
+ "notNull": true,
2427
+ "default": "now()"
2428
+ }
2429
+ },
2430
+ "indexes": {},
2431
+ "foreignKeys": {
2432
+ "sub_agent_artifact_components_sub_agent_fk": {
2433
+ "name": "sub_agent_artifact_components_sub_agent_fk",
2434
+ "tableFrom": "sub_agent_artifact_components",
2435
+ "tableTo": "sub_agents",
2436
+ "columnsFrom": [
2437
+ "tenant_id",
2438
+ "project_id",
2439
+ "agent_id",
2440
+ "sub_agent_id"
2441
+ ],
2442
+ "columnsTo": [
2443
+ "tenant_id",
2444
+ "project_id",
2445
+ "agent_id",
2446
+ "id"
2447
+ ],
2448
+ "onDelete": "cascade",
2449
+ "onUpdate": "no action"
2450
+ },
2451
+ "sub_agent_artifact_components_artifact_component_fk": {
2452
+ "name": "sub_agent_artifact_components_artifact_component_fk",
2453
+ "tableFrom": "sub_agent_artifact_components",
2454
+ "tableTo": "artifact_components",
2455
+ "columnsFrom": [
2456
+ "tenant_id",
2457
+ "project_id",
2458
+ "artifact_component_id"
2459
+ ],
2460
+ "columnsTo": [
2461
+ "tenant_id",
2462
+ "project_id",
2463
+ "id"
2464
+ ],
2465
+ "onDelete": "cascade",
2466
+ "onUpdate": "no action"
2467
+ }
2468
+ },
2469
+ "compositePrimaryKeys": {
2470
+ "sub_agent_artifact_components_pk": {
2471
+ "name": "sub_agent_artifact_components_pk",
2472
+ "columns": [
2473
+ "tenant_id",
2474
+ "project_id",
2475
+ "agent_id",
2476
+ "sub_agent_id",
2477
+ "id"
2478
+ ]
2479
+ }
2480
+ },
2481
+ "uniqueConstraints": {},
2482
+ "policies": {},
2483
+ "checkConstraints": {},
2484
+ "isRLSEnabled": false
2485
+ },
2486
+ "public.sub_agent_data_components": {
2487
+ "name": "sub_agent_data_components",
2488
+ "schema": "",
2489
+ "columns": {
2490
+ "tenant_id": {
2491
+ "name": "tenant_id",
2492
+ "type": "varchar(256)",
2493
+ "primaryKey": false,
2494
+ "notNull": true
2495
+ },
2496
+ "id": {
2497
+ "name": "id",
2498
+ "type": "varchar(256)",
2499
+ "primaryKey": false,
2500
+ "notNull": true
2501
+ },
2502
+ "project_id": {
2503
+ "name": "project_id",
2504
+ "type": "varchar(256)",
2505
+ "primaryKey": false,
2506
+ "notNull": true
2507
+ },
2508
+ "agent_id": {
2509
+ "name": "agent_id",
2510
+ "type": "varchar(256)",
2511
+ "primaryKey": false,
2512
+ "notNull": true
2513
+ },
2514
+ "sub_agent_id": {
2515
+ "name": "sub_agent_id",
2516
+ "type": "varchar(256)",
2517
+ "primaryKey": false,
2518
+ "notNull": true
2519
+ },
2520
+ "data_component_id": {
2521
+ "name": "data_component_id",
2522
+ "type": "varchar(256)",
2523
+ "primaryKey": false,
2524
+ "notNull": true
2525
+ },
2526
+ "created_at": {
2527
+ "name": "created_at",
2528
+ "type": "timestamp",
2529
+ "primaryKey": false,
2530
+ "notNull": true,
2531
+ "default": "now()"
2532
+ }
2533
+ },
2534
+ "indexes": {},
2535
+ "foreignKeys": {
2536
+ "sub_agent_data_components_sub_agent_fk": {
2537
+ "name": "sub_agent_data_components_sub_agent_fk",
2538
+ "tableFrom": "sub_agent_data_components",
2539
+ "tableTo": "sub_agents",
2540
+ "columnsFrom": [
2541
+ "tenant_id",
2542
+ "project_id",
2543
+ "agent_id",
2544
+ "sub_agent_id"
2545
+ ],
2546
+ "columnsTo": [
2547
+ "tenant_id",
2548
+ "project_id",
2549
+ "agent_id",
2550
+ "id"
2551
+ ],
2552
+ "onDelete": "cascade",
2553
+ "onUpdate": "no action"
2554
+ },
2555
+ "sub_agent_data_components_data_component_fk": {
2556
+ "name": "sub_agent_data_components_data_component_fk",
2557
+ "tableFrom": "sub_agent_data_components",
2558
+ "tableTo": "data_components",
2559
+ "columnsFrom": [
2560
+ "tenant_id",
2561
+ "project_id",
2562
+ "data_component_id"
2563
+ ],
2564
+ "columnsTo": [
2565
+ "tenant_id",
2566
+ "project_id",
2567
+ "id"
2568
+ ],
2569
+ "onDelete": "cascade",
2570
+ "onUpdate": "no action"
2571
+ }
2572
+ },
2573
+ "compositePrimaryKeys": {
2574
+ "sub_agent_data_components_tenant_id_project_id_id_pk": {
2575
+ "name": "sub_agent_data_components_tenant_id_project_id_id_pk",
2576
+ "columns": [
2577
+ "tenant_id",
2578
+ "project_id",
2579
+ "id"
2580
+ ]
2581
+ }
2582
+ },
2583
+ "uniqueConstraints": {},
2584
+ "policies": {},
2585
+ "checkConstraints": {},
2586
+ "isRLSEnabled": false
2587
+ },
2588
+ "public.sub_agent_external_agent_relations": {
2589
+ "name": "sub_agent_external_agent_relations",
2590
+ "schema": "",
2591
+ "columns": {
2592
+ "tenant_id": {
2593
+ "name": "tenant_id",
2594
+ "type": "varchar(256)",
2595
+ "primaryKey": false,
2596
+ "notNull": true
2597
+ },
2598
+ "id": {
2599
+ "name": "id",
2600
+ "type": "varchar(256)",
2601
+ "primaryKey": false,
2602
+ "notNull": true
2603
+ },
2604
+ "project_id": {
2605
+ "name": "project_id",
2606
+ "type": "varchar(256)",
2607
+ "primaryKey": false,
2608
+ "notNull": true
2609
+ },
2610
+ "agent_id": {
2611
+ "name": "agent_id",
2612
+ "type": "varchar(256)",
2613
+ "primaryKey": false,
2614
+ "notNull": true
2615
+ },
2616
+ "sub_agent_id": {
2617
+ "name": "sub_agent_id",
2618
+ "type": "varchar(256)",
2619
+ "primaryKey": false,
2620
+ "notNull": true
2621
+ },
2622
+ "external_agent_id": {
2623
+ "name": "external_agent_id",
2624
+ "type": "varchar(256)",
2625
+ "primaryKey": false,
2626
+ "notNull": true
2627
+ },
2628
+ "headers": {
2629
+ "name": "headers",
2630
+ "type": "jsonb",
2631
+ "primaryKey": false,
2632
+ "notNull": false
2633
+ },
2634
+ "created_at": {
2635
+ "name": "created_at",
2636
+ "type": "timestamp",
2637
+ "primaryKey": false,
2638
+ "notNull": true,
2639
+ "default": "now()"
2640
+ },
2641
+ "updated_at": {
2642
+ "name": "updated_at",
2643
+ "type": "timestamp",
2644
+ "primaryKey": false,
2645
+ "notNull": true,
2646
+ "default": "now()"
2647
+ }
2648
+ },
2649
+ "indexes": {},
2650
+ "foreignKeys": {
2651
+ "sub_agent_external_agent_relations_sub_agent_fk": {
2652
+ "name": "sub_agent_external_agent_relations_sub_agent_fk",
2653
+ "tableFrom": "sub_agent_external_agent_relations",
2654
+ "tableTo": "sub_agents",
2655
+ "columnsFrom": [
2656
+ "tenant_id",
2657
+ "project_id",
2658
+ "agent_id",
2659
+ "sub_agent_id"
2660
+ ],
2661
+ "columnsTo": [
2662
+ "tenant_id",
2663
+ "project_id",
2664
+ "agent_id",
2665
+ "id"
2666
+ ],
2667
+ "onDelete": "cascade",
2668
+ "onUpdate": "no action"
2669
+ },
2670
+ "sub_agent_external_agent_relations_external_agent_fk": {
2671
+ "name": "sub_agent_external_agent_relations_external_agent_fk",
2672
+ "tableFrom": "sub_agent_external_agent_relations",
2673
+ "tableTo": "external_agents",
2674
+ "columnsFrom": [
2675
+ "tenant_id",
2676
+ "project_id",
2677
+ "external_agent_id"
2678
+ ],
2679
+ "columnsTo": [
2680
+ "tenant_id",
2681
+ "project_id",
2682
+ "id"
2683
+ ],
2684
+ "onDelete": "cascade",
2685
+ "onUpdate": "no action"
2686
+ }
2687
+ },
2688
+ "compositePrimaryKeys": {
2689
+ "sub_agent_external_agent_relations_pk": {
2690
+ "name": "sub_agent_external_agent_relations_pk",
2691
+ "columns": [
2692
+ "tenant_id",
2693
+ "project_id",
2694
+ "agent_id",
2695
+ "id"
2696
+ ]
2697
+ }
2698
+ },
2699
+ "uniqueConstraints": {},
2700
+ "policies": {},
2701
+ "checkConstraints": {},
2702
+ "isRLSEnabled": false
2703
+ },
2704
+ "public.sub_agent_function_tool_relations": {
2705
+ "name": "sub_agent_function_tool_relations",
2706
+ "schema": "",
2707
+ "columns": {
2708
+ "tenant_id": {
2709
+ "name": "tenant_id",
2710
+ "type": "varchar(256)",
2711
+ "primaryKey": false,
2712
+ "notNull": true
2713
+ },
2714
+ "id": {
2715
+ "name": "id",
2716
+ "type": "varchar(256)",
2717
+ "primaryKey": false,
2718
+ "notNull": true
2719
+ },
2720
+ "project_id": {
2721
+ "name": "project_id",
2722
+ "type": "varchar(256)",
2723
+ "primaryKey": false,
2724
+ "notNull": true
2725
+ },
2726
+ "agent_id": {
2727
+ "name": "agent_id",
2728
+ "type": "varchar(256)",
2729
+ "primaryKey": false,
2730
+ "notNull": true
2731
+ },
2732
+ "sub_agent_id": {
2733
+ "name": "sub_agent_id",
2734
+ "type": "varchar(256)",
2735
+ "primaryKey": false,
2736
+ "notNull": true
2737
+ },
2738
+ "function_tool_id": {
2739
+ "name": "function_tool_id",
2740
+ "type": "varchar(256)",
2741
+ "primaryKey": false,
2742
+ "notNull": true
2743
+ },
2744
+ "tool_policies": {
2745
+ "name": "tool_policies",
2746
+ "type": "jsonb",
2747
+ "primaryKey": false,
2748
+ "notNull": false
2749
+ },
2750
+ "created_at": {
2751
+ "name": "created_at",
2752
+ "type": "timestamp",
2753
+ "primaryKey": false,
2754
+ "notNull": true,
2755
+ "default": "now()"
2756
+ },
2757
+ "updated_at": {
2758
+ "name": "updated_at",
2759
+ "type": "timestamp",
2760
+ "primaryKey": false,
2761
+ "notNull": true,
2762
+ "default": "now()"
2763
+ }
2764
+ },
2765
+ "indexes": {},
2766
+ "foreignKeys": {
2767
+ "sub_agent_function_tool_relations_sub_agent_fk": {
2768
+ "name": "sub_agent_function_tool_relations_sub_agent_fk",
2769
+ "tableFrom": "sub_agent_function_tool_relations",
2770
+ "tableTo": "sub_agents",
2771
+ "columnsFrom": [
2772
+ "tenant_id",
2773
+ "project_id",
2774
+ "agent_id",
2775
+ "sub_agent_id"
2776
+ ],
2777
+ "columnsTo": [
2778
+ "tenant_id",
2779
+ "project_id",
2780
+ "agent_id",
2781
+ "id"
2782
+ ],
2783
+ "onDelete": "cascade",
2784
+ "onUpdate": "no action"
2785
+ },
2786
+ "sub_agent_function_tool_relations_function_tool_fk": {
2787
+ "name": "sub_agent_function_tool_relations_function_tool_fk",
2788
+ "tableFrom": "sub_agent_function_tool_relations",
2789
+ "tableTo": "function_tools",
2790
+ "columnsFrom": [
2791
+ "tenant_id",
2792
+ "project_id",
2793
+ "agent_id",
2794
+ "function_tool_id"
2795
+ ],
2796
+ "columnsTo": [
2797
+ "tenant_id",
2798
+ "project_id",
2799
+ "agent_id",
2800
+ "id"
2801
+ ],
2802
+ "onDelete": "cascade",
2803
+ "onUpdate": "no action"
2804
+ }
2805
+ },
2806
+ "compositePrimaryKeys": {
2807
+ "sub_agent_function_tool_relations_pk": {
2808
+ "name": "sub_agent_function_tool_relations_pk",
2809
+ "columns": [
2810
+ "tenant_id",
2811
+ "project_id",
2812
+ "agent_id",
2813
+ "id"
2814
+ ]
2815
+ }
2816
+ },
2817
+ "uniqueConstraints": {},
2818
+ "policies": {},
2819
+ "checkConstraints": {},
2820
+ "isRLSEnabled": false
2821
+ },
2822
+ "public.sub_agent_relations": {
2823
+ "name": "sub_agent_relations",
2824
+ "schema": "",
2825
+ "columns": {
2826
+ "tenant_id": {
2827
+ "name": "tenant_id",
2828
+ "type": "varchar(256)",
2829
+ "primaryKey": false,
2830
+ "notNull": true
2831
+ },
2832
+ "id": {
2833
+ "name": "id",
2834
+ "type": "varchar(256)",
2835
+ "primaryKey": false,
2836
+ "notNull": true
2837
+ },
2838
+ "project_id": {
2839
+ "name": "project_id",
2840
+ "type": "varchar(256)",
2841
+ "primaryKey": false,
2842
+ "notNull": true
2843
+ },
2844
+ "agent_id": {
2845
+ "name": "agent_id",
2846
+ "type": "varchar(256)",
2847
+ "primaryKey": false,
2848
+ "notNull": true
2849
+ },
2850
+ "source_sub_agent_id": {
2851
+ "name": "source_sub_agent_id",
2852
+ "type": "varchar(256)",
2853
+ "primaryKey": false,
2854
+ "notNull": true
2855
+ },
2856
+ "target_sub_agent_id": {
2857
+ "name": "target_sub_agent_id",
2858
+ "type": "varchar(256)",
2859
+ "primaryKey": false,
2860
+ "notNull": false
2861
+ },
2862
+ "relation_type": {
2863
+ "name": "relation_type",
2864
+ "type": "varchar(256)",
2865
+ "primaryKey": false,
2866
+ "notNull": false
2867
+ },
2868
+ "created_at": {
2869
+ "name": "created_at",
2870
+ "type": "timestamp",
2871
+ "primaryKey": false,
2872
+ "notNull": true,
2873
+ "default": "now()"
2874
+ },
2875
+ "updated_at": {
2876
+ "name": "updated_at",
2877
+ "type": "timestamp",
2878
+ "primaryKey": false,
2879
+ "notNull": true,
2880
+ "default": "now()"
2881
+ }
2882
+ },
2883
+ "indexes": {},
2884
+ "foreignKeys": {
2885
+ "sub_agent_relations_agent_fk": {
2886
+ "name": "sub_agent_relations_agent_fk",
2887
+ "tableFrom": "sub_agent_relations",
2888
+ "tableTo": "agent",
2889
+ "columnsFrom": [
2890
+ "tenant_id",
2891
+ "project_id",
2892
+ "agent_id"
2893
+ ],
2894
+ "columnsTo": [
2895
+ "tenant_id",
2896
+ "project_id",
2897
+ "id"
2898
+ ],
2899
+ "onDelete": "cascade",
2900
+ "onUpdate": "no action"
2901
+ }
2902
+ },
2903
+ "compositePrimaryKeys": {
2904
+ "sub_agent_relations_tenant_id_project_id_agent_id_id_pk": {
2905
+ "name": "sub_agent_relations_tenant_id_project_id_agent_id_id_pk",
2906
+ "columns": [
2907
+ "tenant_id",
2908
+ "project_id",
2909
+ "agent_id",
2910
+ "id"
2911
+ ]
2912
+ }
2913
+ },
2914
+ "uniqueConstraints": {},
2915
+ "policies": {},
2916
+ "checkConstraints": {},
2917
+ "isRLSEnabled": false
2918
+ },
2919
+ "public.sub_agent_skills": {
2920
+ "name": "sub_agent_skills",
2921
+ "schema": "",
2922
+ "columns": {
2923
+ "tenant_id": {
2924
+ "name": "tenant_id",
2925
+ "type": "varchar(256)",
2926
+ "primaryKey": false,
2927
+ "notNull": true
2928
+ },
2929
+ "id": {
2930
+ "name": "id",
2931
+ "type": "varchar(256)",
2932
+ "primaryKey": false,
2933
+ "notNull": true
2934
+ },
2935
+ "project_id": {
2936
+ "name": "project_id",
2937
+ "type": "varchar(256)",
2938
+ "primaryKey": false,
2939
+ "notNull": true
2940
+ },
2941
+ "agent_id": {
2942
+ "name": "agent_id",
2943
+ "type": "varchar(256)",
2944
+ "primaryKey": false,
2945
+ "notNull": true
2946
+ },
2947
+ "sub_agent_id": {
2948
+ "name": "sub_agent_id",
2949
+ "type": "varchar(256)",
2950
+ "primaryKey": false,
2951
+ "notNull": true
2952
+ },
2953
+ "skill_id": {
2954
+ "name": "skill_id",
2955
+ "type": "varchar(64)",
2956
+ "primaryKey": false,
2957
+ "notNull": true
2958
+ },
2959
+ "index": {
2960
+ "name": "index",
2961
+ "type": "numeric",
2962
+ "primaryKey": false,
2963
+ "notNull": true,
2964
+ "default": 0
2965
+ },
2966
+ "always_loaded": {
2967
+ "name": "always_loaded",
2968
+ "type": "boolean",
2969
+ "primaryKey": false,
2970
+ "notNull": true,
2971
+ "default": false
2972
+ },
2973
+ "created_at": {
2974
+ "name": "created_at",
2975
+ "type": "timestamp",
2976
+ "primaryKey": false,
2977
+ "notNull": true,
2978
+ "default": "now()"
2979
+ },
2980
+ "updated_at": {
2981
+ "name": "updated_at",
2982
+ "type": "timestamp",
2983
+ "primaryKey": false,
2984
+ "notNull": true,
2985
+ "default": "now()"
2986
+ }
2987
+ },
2988
+ "indexes": {
2989
+ "sub_agent_skills_skill_idx": {
2990
+ "name": "sub_agent_skills_skill_idx",
2991
+ "columns": [
2992
+ {
2993
+ "expression": "skill_id",
2994
+ "isExpression": false,
2995
+ "asc": true,
2996
+ "nulls": "last"
2997
+ }
2998
+ ],
2999
+ "isUnique": false,
3000
+ "concurrently": false,
3001
+ "method": "btree",
3002
+ "with": {}
3003
+ }
3004
+ },
3005
+ "foreignKeys": {
3006
+ "sub_agent_skills_sub_agent_fk": {
3007
+ "name": "sub_agent_skills_sub_agent_fk",
3008
+ "tableFrom": "sub_agent_skills",
3009
+ "tableTo": "sub_agents",
3010
+ "columnsFrom": [
3011
+ "tenant_id",
3012
+ "project_id",
3013
+ "agent_id",
3014
+ "sub_agent_id"
3015
+ ],
3016
+ "columnsTo": [
3017
+ "tenant_id",
3018
+ "project_id",
3019
+ "agent_id",
3020
+ "id"
3021
+ ],
3022
+ "onDelete": "cascade",
3023
+ "onUpdate": "no action"
3024
+ },
3025
+ "sub_agent_skills_skill_fk": {
3026
+ "name": "sub_agent_skills_skill_fk",
3027
+ "tableFrom": "sub_agent_skills",
3028
+ "tableTo": "skills",
3029
+ "columnsFrom": [
3030
+ "tenant_id",
3031
+ "project_id",
3032
+ "skill_id"
3033
+ ],
3034
+ "columnsTo": [
3035
+ "tenant_id",
3036
+ "project_id",
3037
+ "id"
3038
+ ],
3039
+ "onDelete": "cascade",
3040
+ "onUpdate": "no action"
3041
+ }
3042
+ },
3043
+ "compositePrimaryKeys": {
3044
+ "sub_agent_skills_tenant_id_project_id_agent_id_id_pk": {
3045
+ "name": "sub_agent_skills_tenant_id_project_id_agent_id_id_pk",
3046
+ "columns": [
3047
+ "tenant_id",
3048
+ "project_id",
3049
+ "agent_id",
3050
+ "id"
3051
+ ]
3052
+ }
3053
+ },
3054
+ "uniqueConstraints": {
3055
+ "sub_agent_skills_sub_agent_skill_unique": {
3056
+ "name": "sub_agent_skills_sub_agent_skill_unique",
3057
+ "nullsNotDistinct": false,
3058
+ "columns": [
3059
+ "tenant_id",
3060
+ "project_id",
3061
+ "agent_id",
3062
+ "sub_agent_id",
3063
+ "skill_id"
3064
+ ]
3065
+ }
3066
+ },
3067
+ "policies": {},
3068
+ "checkConstraints": {},
3069
+ "isRLSEnabled": false
3070
+ },
3071
+ "public.sub_agent_team_agent_relations": {
3072
+ "name": "sub_agent_team_agent_relations",
3073
+ "schema": "",
3074
+ "columns": {
3075
+ "tenant_id": {
3076
+ "name": "tenant_id",
3077
+ "type": "varchar(256)",
3078
+ "primaryKey": false,
3079
+ "notNull": true
3080
+ },
3081
+ "id": {
3082
+ "name": "id",
3083
+ "type": "varchar(256)",
3084
+ "primaryKey": false,
3085
+ "notNull": true
3086
+ },
3087
+ "project_id": {
3088
+ "name": "project_id",
3089
+ "type": "varchar(256)",
3090
+ "primaryKey": false,
3091
+ "notNull": true
3092
+ },
3093
+ "agent_id": {
3094
+ "name": "agent_id",
3095
+ "type": "varchar(256)",
3096
+ "primaryKey": false,
3097
+ "notNull": true
3098
+ },
3099
+ "sub_agent_id": {
3100
+ "name": "sub_agent_id",
3101
+ "type": "varchar(256)",
3102
+ "primaryKey": false,
3103
+ "notNull": true
3104
+ },
3105
+ "target_agent_id": {
3106
+ "name": "target_agent_id",
3107
+ "type": "varchar(256)",
3108
+ "primaryKey": false,
3109
+ "notNull": true
3110
+ },
3111
+ "headers": {
3112
+ "name": "headers",
3113
+ "type": "jsonb",
3114
+ "primaryKey": false,
3115
+ "notNull": false
3116
+ },
3117
+ "created_at": {
3118
+ "name": "created_at",
3119
+ "type": "timestamp",
3120
+ "primaryKey": false,
3121
+ "notNull": true,
3122
+ "default": "now()"
3123
+ },
3124
+ "updated_at": {
3125
+ "name": "updated_at",
3126
+ "type": "timestamp",
3127
+ "primaryKey": false,
3128
+ "notNull": true,
3129
+ "default": "now()"
3130
+ }
3131
+ },
3132
+ "indexes": {},
3133
+ "foreignKeys": {
3134
+ "sub_agent_team_agent_relations_sub_agent_fk": {
3135
+ "name": "sub_agent_team_agent_relations_sub_agent_fk",
3136
+ "tableFrom": "sub_agent_team_agent_relations",
3137
+ "tableTo": "sub_agents",
3138
+ "columnsFrom": [
3139
+ "tenant_id",
3140
+ "project_id",
3141
+ "agent_id",
3142
+ "sub_agent_id"
3143
+ ],
3144
+ "columnsTo": [
3145
+ "tenant_id",
3146
+ "project_id",
3147
+ "agent_id",
3148
+ "id"
3149
+ ],
3150
+ "onDelete": "cascade",
3151
+ "onUpdate": "no action"
3152
+ },
3153
+ "sub_agent_team_agent_relations_target_agent_fk": {
3154
+ "name": "sub_agent_team_agent_relations_target_agent_fk",
3155
+ "tableFrom": "sub_agent_team_agent_relations",
3156
+ "tableTo": "agent",
3157
+ "columnsFrom": [
3158
+ "tenant_id",
3159
+ "project_id",
3160
+ "target_agent_id"
3161
+ ],
3162
+ "columnsTo": [
3163
+ "tenant_id",
3164
+ "project_id",
3165
+ "id"
3166
+ ],
3167
+ "onDelete": "cascade",
3168
+ "onUpdate": "no action"
3169
+ }
3170
+ },
3171
+ "compositePrimaryKeys": {
3172
+ "sub_agent_team_agent_relations_pk": {
3173
+ "name": "sub_agent_team_agent_relations_pk",
3174
+ "columns": [
3175
+ "tenant_id",
3176
+ "project_id",
3177
+ "agent_id",
3178
+ "id"
3179
+ ]
3180
+ }
3181
+ },
3182
+ "uniqueConstraints": {},
3183
+ "policies": {},
3184
+ "checkConstraints": {},
3185
+ "isRLSEnabled": false
3186
+ },
3187
+ "public.sub_agent_tool_relations": {
3188
+ "name": "sub_agent_tool_relations",
3189
+ "schema": "",
3190
+ "columns": {
3191
+ "tenant_id": {
3192
+ "name": "tenant_id",
3193
+ "type": "varchar(256)",
3194
+ "primaryKey": false,
3195
+ "notNull": true
3196
+ },
3197
+ "id": {
3198
+ "name": "id",
3199
+ "type": "varchar(256)",
3200
+ "primaryKey": false,
3201
+ "notNull": true
3202
+ },
3203
+ "project_id": {
3204
+ "name": "project_id",
3205
+ "type": "varchar(256)",
3206
+ "primaryKey": false,
3207
+ "notNull": true
3208
+ },
3209
+ "agent_id": {
3210
+ "name": "agent_id",
3211
+ "type": "varchar(256)",
3212
+ "primaryKey": false,
3213
+ "notNull": true
3214
+ },
3215
+ "sub_agent_id": {
3216
+ "name": "sub_agent_id",
3217
+ "type": "varchar(256)",
3218
+ "primaryKey": false,
3219
+ "notNull": true
3220
+ },
3221
+ "tool_id": {
3222
+ "name": "tool_id",
3223
+ "type": "varchar(256)",
3224
+ "primaryKey": false,
3225
+ "notNull": true
3226
+ },
3227
+ "selected_tools": {
3228
+ "name": "selected_tools",
3229
+ "type": "jsonb",
3230
+ "primaryKey": false,
3231
+ "notNull": false
3232
+ },
3233
+ "headers": {
3234
+ "name": "headers",
3235
+ "type": "jsonb",
3236
+ "primaryKey": false,
3237
+ "notNull": false
3238
+ },
3239
+ "tool_policies": {
3240
+ "name": "tool_policies",
3241
+ "type": "jsonb",
3242
+ "primaryKey": false,
3243
+ "notNull": false
3244
+ },
3245
+ "created_at": {
3246
+ "name": "created_at",
3247
+ "type": "timestamp",
3248
+ "primaryKey": false,
3249
+ "notNull": true,
3250
+ "default": "now()"
3251
+ },
3252
+ "updated_at": {
3253
+ "name": "updated_at",
3254
+ "type": "timestamp",
3255
+ "primaryKey": false,
3256
+ "notNull": true,
3257
+ "default": "now()"
3258
+ }
3259
+ },
3260
+ "indexes": {},
3261
+ "foreignKeys": {
3262
+ "sub_agent_tool_relations_agent_fk": {
3263
+ "name": "sub_agent_tool_relations_agent_fk",
3264
+ "tableFrom": "sub_agent_tool_relations",
3265
+ "tableTo": "sub_agents",
3266
+ "columnsFrom": [
3267
+ "tenant_id",
3268
+ "project_id",
3269
+ "agent_id",
3270
+ "sub_agent_id"
3271
+ ],
3272
+ "columnsTo": [
3273
+ "tenant_id",
3274
+ "project_id",
3275
+ "agent_id",
3276
+ "id"
3277
+ ],
3278
+ "onDelete": "cascade",
3279
+ "onUpdate": "no action"
3280
+ },
3281
+ "sub_agent_tool_relations_tool_fk": {
3282
+ "name": "sub_agent_tool_relations_tool_fk",
3283
+ "tableFrom": "sub_agent_tool_relations",
3284
+ "tableTo": "tools",
3285
+ "columnsFrom": [
3286
+ "tenant_id",
3287
+ "project_id",
3288
+ "tool_id"
3289
+ ],
3290
+ "columnsTo": [
3291
+ "tenant_id",
3292
+ "project_id",
3293
+ "id"
3294
+ ],
3295
+ "onDelete": "cascade",
3296
+ "onUpdate": "no action"
3297
+ }
3298
+ },
3299
+ "compositePrimaryKeys": {
3300
+ "sub_agent_tool_relations_tenant_id_project_id_agent_id_id_pk": {
3301
+ "name": "sub_agent_tool_relations_tenant_id_project_id_agent_id_id_pk",
3302
+ "columns": [
3303
+ "tenant_id",
3304
+ "project_id",
3305
+ "agent_id",
3306
+ "id"
3307
+ ]
3308
+ }
3309
+ },
3310
+ "uniqueConstraints": {},
3311
+ "policies": {},
3312
+ "checkConstraints": {},
3313
+ "isRLSEnabled": false
3314
+ },
3315
+ "public.sub_agents": {
3316
+ "name": "sub_agents",
3317
+ "schema": "",
3318
+ "columns": {
3319
+ "tenant_id": {
3320
+ "name": "tenant_id",
3321
+ "type": "varchar(256)",
3322
+ "primaryKey": false,
3323
+ "notNull": true
3324
+ },
3325
+ "id": {
3326
+ "name": "id",
3327
+ "type": "varchar(256)",
3328
+ "primaryKey": false,
3329
+ "notNull": true
3330
+ },
3331
+ "project_id": {
3332
+ "name": "project_id",
3333
+ "type": "varchar(256)",
3334
+ "primaryKey": false,
3335
+ "notNull": true
3336
+ },
3337
+ "agent_id": {
3338
+ "name": "agent_id",
3339
+ "type": "varchar(256)",
3340
+ "primaryKey": false,
3341
+ "notNull": true
3342
+ },
3343
+ "name": {
3344
+ "name": "name",
3345
+ "type": "varchar(256)",
3346
+ "primaryKey": false,
3347
+ "notNull": true
3348
+ },
3349
+ "description": {
3350
+ "name": "description",
3351
+ "type": "text",
3352
+ "primaryKey": false,
3353
+ "notNull": false
3354
+ },
3355
+ "prompt": {
3356
+ "name": "prompt",
3357
+ "type": "text",
3358
+ "primaryKey": false,
3359
+ "notNull": false
3360
+ },
3361
+ "conversation_history_config": {
3362
+ "name": "conversation_history_config",
3363
+ "type": "jsonb",
3364
+ "primaryKey": false,
3365
+ "notNull": false,
3366
+ "default": "'{\"mode\":\"full\",\"limit\":50,\"maxOutputTokens\":4000,\"includeInternal\":false,\"messageTypes\":[\"chat\",\"tool-result\"]}'::jsonb"
3367
+ },
3368
+ "models": {
3369
+ "name": "models",
3370
+ "type": "jsonb",
3371
+ "primaryKey": false,
3372
+ "notNull": false
3373
+ },
3374
+ "stop_when": {
3375
+ "name": "stop_when",
3376
+ "type": "jsonb",
3377
+ "primaryKey": false,
3378
+ "notNull": false
3379
+ },
3380
+ "created_at": {
3381
+ "name": "created_at",
3382
+ "type": "timestamp",
3383
+ "primaryKey": false,
3384
+ "notNull": true,
3385
+ "default": "now()"
3386
+ },
3387
+ "updated_at": {
3388
+ "name": "updated_at",
3389
+ "type": "timestamp",
3390
+ "primaryKey": false,
3391
+ "notNull": true,
3392
+ "default": "now()"
3393
+ }
3394
+ },
3395
+ "indexes": {},
3396
+ "foreignKeys": {
3397
+ "sub_agents_agents_fk": {
3398
+ "name": "sub_agents_agents_fk",
3399
+ "tableFrom": "sub_agents",
3400
+ "tableTo": "agent",
3401
+ "columnsFrom": [
3402
+ "tenant_id",
3403
+ "project_id",
3404
+ "agent_id"
3405
+ ],
3406
+ "columnsTo": [
3407
+ "tenant_id",
3408
+ "project_id",
3409
+ "id"
3410
+ ],
3411
+ "onDelete": "cascade",
3412
+ "onUpdate": "no action"
3413
+ }
3414
+ },
3415
+ "compositePrimaryKeys": {
3416
+ "sub_agents_tenant_id_project_id_agent_id_id_pk": {
3417
+ "name": "sub_agents_tenant_id_project_id_agent_id_id_pk",
3418
+ "columns": [
3419
+ "tenant_id",
3420
+ "project_id",
3421
+ "agent_id",
3422
+ "id"
3423
+ ]
3424
+ }
3425
+ },
3426
+ "uniqueConstraints": {},
3427
+ "policies": {},
3428
+ "checkConstraints": {},
3429
+ "isRLSEnabled": false
3430
+ },
3431
+ "public.tools": {
3432
+ "name": "tools",
3433
+ "schema": "",
3434
+ "columns": {
3435
+ "tenant_id": {
3436
+ "name": "tenant_id",
3437
+ "type": "varchar(256)",
3438
+ "primaryKey": false,
3439
+ "notNull": true
3440
+ },
3441
+ "id": {
3442
+ "name": "id",
3443
+ "type": "varchar(256)",
3444
+ "primaryKey": false,
3445
+ "notNull": true
3446
+ },
3447
+ "project_id": {
3448
+ "name": "project_id",
3449
+ "type": "varchar(256)",
3450
+ "primaryKey": false,
3451
+ "notNull": true
3452
+ },
3453
+ "name": {
3454
+ "name": "name",
3455
+ "type": "varchar(256)",
3456
+ "primaryKey": false,
3457
+ "notNull": true
3458
+ },
3459
+ "description": {
3460
+ "name": "description",
3461
+ "type": "text",
3462
+ "primaryKey": false,
3463
+ "notNull": false
3464
+ },
3465
+ "config": {
3466
+ "name": "config",
3467
+ "type": "jsonb",
3468
+ "primaryKey": false,
3469
+ "notNull": true
3470
+ },
3471
+ "credential_reference_id": {
3472
+ "name": "credential_reference_id",
3473
+ "type": "varchar(256)",
3474
+ "primaryKey": false,
3475
+ "notNull": false
3476
+ },
3477
+ "credential_scope": {
3478
+ "name": "credential_scope",
3479
+ "type": "varchar(50)",
3480
+ "primaryKey": false,
3481
+ "notNull": true,
3482
+ "default": "'project'"
3483
+ },
3484
+ "headers": {
3485
+ "name": "headers",
3486
+ "type": "jsonb",
3487
+ "primaryKey": false,
3488
+ "notNull": false
3489
+ },
3490
+ "image_url": {
3491
+ "name": "image_url",
3492
+ "type": "text",
3493
+ "primaryKey": false,
3494
+ "notNull": false
3495
+ },
3496
+ "capabilities": {
3497
+ "name": "capabilities",
3498
+ "type": "jsonb",
3499
+ "primaryKey": false,
3500
+ "notNull": false
3501
+ },
3502
+ "last_error": {
3503
+ "name": "last_error",
3504
+ "type": "text",
3505
+ "primaryKey": false,
3506
+ "notNull": false
3507
+ },
3508
+ "is_work_app": {
3509
+ "name": "is_work_app",
3510
+ "type": "boolean",
3511
+ "primaryKey": false,
3512
+ "notNull": true,
3513
+ "default": false
3514
+ },
3515
+ "created_at": {
3516
+ "name": "created_at",
3517
+ "type": "timestamp",
3518
+ "primaryKey": false,
3519
+ "notNull": true,
3520
+ "default": "now()"
3521
+ },
3522
+ "updated_at": {
3523
+ "name": "updated_at",
3524
+ "type": "timestamp",
3525
+ "primaryKey": false,
3526
+ "notNull": true,
3527
+ "default": "now()"
3528
+ }
3529
+ },
3530
+ "indexes": {},
3531
+ "foreignKeys": {
3532
+ "tools_project_fk": {
3533
+ "name": "tools_project_fk",
3534
+ "tableFrom": "tools",
3535
+ "tableTo": "projects",
3536
+ "columnsFrom": [
3537
+ "tenant_id",
3538
+ "project_id"
3539
+ ],
3540
+ "columnsTo": [
3541
+ "tenant_id",
3542
+ "id"
3543
+ ],
3544
+ "onDelete": "cascade",
3545
+ "onUpdate": "no action"
3546
+ },
3547
+ "tools_credential_reference_fk": {
3548
+ "name": "tools_credential_reference_fk",
3549
+ "tableFrom": "tools",
3550
+ "tableTo": "credential_references",
3551
+ "columnsFrom": [
3552
+ "credential_reference_id"
3553
+ ],
3554
+ "columnsTo": [
3555
+ "id"
3556
+ ],
3557
+ "onDelete": "set null",
3558
+ "onUpdate": "no action"
3559
+ }
3560
+ },
3561
+ "compositePrimaryKeys": {
3562
+ "tools_tenant_id_project_id_id_pk": {
3563
+ "name": "tools_tenant_id_project_id_id_pk",
3564
+ "columns": [
3565
+ "tenant_id",
3566
+ "project_id",
3567
+ "id"
3568
+ ]
3569
+ }
3570
+ },
3571
+ "uniqueConstraints": {},
3572
+ "policies": {},
3573
+ "checkConstraints": {},
3574
+ "isRLSEnabled": false
3575
+ },
3576
+ "public.trigger_users": {
3577
+ "name": "trigger_users",
3578
+ "schema": "",
3579
+ "columns": {
3580
+ "tenant_id": {
3581
+ "name": "tenant_id",
3582
+ "type": "varchar(256)",
3583
+ "primaryKey": false,
3584
+ "notNull": true
3585
+ },
3586
+ "project_id": {
3587
+ "name": "project_id",
3588
+ "type": "varchar(256)",
3589
+ "primaryKey": false,
3590
+ "notNull": true
3591
+ },
3592
+ "agent_id": {
3593
+ "name": "agent_id",
3594
+ "type": "varchar(256)",
3595
+ "primaryKey": false,
3596
+ "notNull": true
3597
+ },
3598
+ "trigger_id": {
3599
+ "name": "trigger_id",
3600
+ "type": "varchar(256)",
3601
+ "primaryKey": false,
3602
+ "notNull": true
3603
+ },
3604
+ "user_id": {
3605
+ "name": "user_id",
3606
+ "type": "varchar(256)",
3607
+ "primaryKey": false,
3608
+ "notNull": true
3609
+ },
3610
+ "created_at": {
3611
+ "name": "created_at",
3612
+ "type": "timestamp with time zone",
3613
+ "primaryKey": false,
3614
+ "notNull": true,
3615
+ "default": "now()"
3616
+ }
3617
+ },
3618
+ "indexes": {
3619
+ "trigger_users_user_idx": {
3620
+ "name": "trigger_users_user_idx",
3621
+ "columns": [
3622
+ {
3623
+ "expression": "user_id",
3624
+ "isExpression": false,
3625
+ "asc": true,
3626
+ "nulls": "last"
3627
+ }
3628
+ ],
3629
+ "isUnique": false,
3630
+ "concurrently": false,
3631
+ "method": "btree",
3632
+ "with": {}
3633
+ },
3634
+ "trigger_users_trigger_idx": {
3635
+ "name": "trigger_users_trigger_idx",
3636
+ "columns": [
3637
+ {
3638
+ "expression": "tenant_id",
3639
+ "isExpression": false,
3640
+ "asc": true,
3641
+ "nulls": "last"
3642
+ },
3643
+ {
3644
+ "expression": "project_id",
3645
+ "isExpression": false,
3646
+ "asc": true,
3647
+ "nulls": "last"
3648
+ },
3649
+ {
3650
+ "expression": "agent_id",
3651
+ "isExpression": false,
3652
+ "asc": true,
3653
+ "nulls": "last"
3654
+ },
3655
+ {
3656
+ "expression": "trigger_id",
3657
+ "isExpression": false,
3658
+ "asc": true,
3659
+ "nulls": "last"
3660
+ }
3661
+ ],
3662
+ "isUnique": false,
3663
+ "concurrently": false,
3664
+ "method": "btree",
3665
+ "with": {}
3666
+ }
3667
+ },
3668
+ "foreignKeys": {
3669
+ "trigger_users_trigger_fk": {
3670
+ "name": "trigger_users_trigger_fk",
3671
+ "tableFrom": "trigger_users",
3672
+ "tableTo": "triggers",
3673
+ "columnsFrom": [
3674
+ "tenant_id",
3675
+ "project_id",
3676
+ "agent_id",
3677
+ "trigger_id"
3678
+ ],
3679
+ "columnsTo": [
3680
+ "tenant_id",
3681
+ "project_id",
3682
+ "agent_id",
3683
+ "id"
3684
+ ],
3685
+ "onDelete": "cascade",
3686
+ "onUpdate": "no action"
3687
+ }
3688
+ },
3689
+ "compositePrimaryKeys": {
3690
+ "trigger_users_pk": {
3691
+ "name": "trigger_users_pk",
3692
+ "columns": [
3693
+ "tenant_id",
3694
+ "project_id",
3695
+ "agent_id",
3696
+ "trigger_id",
3697
+ "user_id"
3698
+ ]
3699
+ }
3700
+ },
3701
+ "uniqueConstraints": {},
3702
+ "policies": {},
3703
+ "checkConstraints": {},
3704
+ "isRLSEnabled": false
3705
+ },
3706
+ "public.triggers": {
3707
+ "name": "triggers",
3708
+ "schema": "",
3709
+ "columns": {
3710
+ "tenant_id": {
3711
+ "name": "tenant_id",
3712
+ "type": "varchar(256)",
3713
+ "primaryKey": false,
3714
+ "notNull": true
3715
+ },
3716
+ "id": {
3717
+ "name": "id",
3718
+ "type": "varchar(256)",
3719
+ "primaryKey": false,
3720
+ "notNull": true
3721
+ },
3722
+ "project_id": {
3723
+ "name": "project_id",
3724
+ "type": "varchar(256)",
3725
+ "primaryKey": false,
3726
+ "notNull": true
3727
+ },
3728
+ "agent_id": {
3729
+ "name": "agent_id",
3730
+ "type": "varchar(256)",
3731
+ "primaryKey": false,
3732
+ "notNull": true
3733
+ },
3734
+ "name": {
3735
+ "name": "name",
3736
+ "type": "varchar(256)",
3737
+ "primaryKey": false,
3738
+ "notNull": true
3739
+ },
3740
+ "description": {
3741
+ "name": "description",
3742
+ "type": "text",
3743
+ "primaryKey": false,
3744
+ "notNull": false
3745
+ },
3746
+ "enabled": {
3747
+ "name": "enabled",
3748
+ "type": "boolean",
3749
+ "primaryKey": false,
3750
+ "notNull": true,
3751
+ "default": true
3752
+ },
3753
+ "input_schema": {
3754
+ "name": "input_schema",
3755
+ "type": "jsonb",
3756
+ "primaryKey": false,
3757
+ "notNull": false
3758
+ },
3759
+ "output_transform": {
3760
+ "name": "output_transform",
3761
+ "type": "jsonb",
3762
+ "primaryKey": false,
3763
+ "notNull": false
3764
+ },
3765
+ "message_template": {
3766
+ "name": "message_template",
3767
+ "type": "text",
3768
+ "primaryKey": false,
3769
+ "notNull": false
3770
+ },
3771
+ "authentication": {
3772
+ "name": "authentication",
3773
+ "type": "jsonb",
3774
+ "primaryKey": false,
3775
+ "notNull": false
3776
+ },
3777
+ "signing_secret_credential_reference_id": {
3778
+ "name": "signing_secret_credential_reference_id",
3779
+ "type": "varchar(256)",
3780
+ "primaryKey": false,
3781
+ "notNull": false
3782
+ },
3783
+ "signature_verification": {
3784
+ "name": "signature_verification",
3785
+ "type": "jsonb",
3786
+ "primaryKey": false,
3787
+ "notNull": false,
3788
+ "default": "'null'::jsonb"
3789
+ },
3790
+ "run_as_user_id": {
3791
+ "name": "run_as_user_id",
3792
+ "type": "varchar(256)",
3793
+ "primaryKey": false,
3794
+ "notNull": false
3795
+ },
3796
+ "dispatch_delay_ms": {
3797
+ "name": "dispatch_delay_ms",
3798
+ "type": "integer",
3799
+ "primaryKey": false,
3800
+ "notNull": false
3801
+ },
3802
+ "created_by": {
3803
+ "name": "created_by",
3804
+ "type": "varchar(256)",
3805
+ "primaryKey": false,
3806
+ "notNull": false
3807
+ },
3808
+ "created_at": {
3809
+ "name": "created_at",
3810
+ "type": "timestamp",
3811
+ "primaryKey": false,
3812
+ "notNull": true,
3813
+ "default": "now()"
3814
+ },
3815
+ "updated_at": {
3816
+ "name": "updated_at",
3817
+ "type": "timestamp",
3818
+ "primaryKey": false,
3819
+ "notNull": true,
3820
+ "default": "now()"
3821
+ }
3822
+ },
3823
+ "indexes": {},
3824
+ "foreignKeys": {
3825
+ "triggers_agent_fk": {
3826
+ "name": "triggers_agent_fk",
3827
+ "tableFrom": "triggers",
3828
+ "tableTo": "agent",
3829
+ "columnsFrom": [
3830
+ "tenant_id",
3831
+ "project_id",
3832
+ "agent_id"
3833
+ ],
3834
+ "columnsTo": [
3835
+ "tenant_id",
3836
+ "project_id",
3837
+ "id"
3838
+ ],
3839
+ "onDelete": "cascade",
3840
+ "onUpdate": "no action"
3841
+ },
3842
+ "triggers_credential_reference_fk": {
3843
+ "name": "triggers_credential_reference_fk",
3844
+ "tableFrom": "triggers",
3845
+ "tableTo": "credential_references",
3846
+ "columnsFrom": [
3847
+ "signing_secret_credential_reference_id"
3848
+ ],
3849
+ "columnsTo": [
3850
+ "id"
3851
+ ],
3852
+ "onDelete": "set null",
3853
+ "onUpdate": "no action"
3854
+ }
3855
+ },
3856
+ "compositePrimaryKeys": {
3857
+ "triggers_tenant_id_project_id_agent_id_id_pk": {
3858
+ "name": "triggers_tenant_id_project_id_agent_id_id_pk",
3859
+ "columns": [
3860
+ "tenant_id",
3861
+ "project_id",
3862
+ "agent_id",
3863
+ "id"
3864
+ ]
3865
+ }
3866
+ },
3867
+ "uniqueConstraints": {},
3868
+ "policies": {},
3869
+ "checkConstraints": {},
3870
+ "isRLSEnabled": false
3871
+ },
3872
+ "public.webhook_destination_agents": {
3873
+ "name": "webhook_destination_agents",
3874
+ "schema": "",
3875
+ "columns": {
3876
+ "tenant_id": {
3877
+ "name": "tenant_id",
3878
+ "type": "varchar(256)",
3879
+ "primaryKey": false,
3880
+ "notNull": true
3881
+ },
3882
+ "id": {
3883
+ "name": "id",
3884
+ "type": "varchar(256)",
3885
+ "primaryKey": false,
3886
+ "notNull": true
3887
+ },
3888
+ "project_id": {
3889
+ "name": "project_id",
3890
+ "type": "varchar(256)",
3891
+ "primaryKey": false,
3892
+ "notNull": true
3893
+ },
3894
+ "webhook_destination_id": {
3895
+ "name": "webhook_destination_id",
3896
+ "type": "varchar(256)",
3897
+ "primaryKey": false,
3898
+ "notNull": true
3899
+ },
3900
+ "agent_id": {
3901
+ "name": "agent_id",
3902
+ "type": "varchar(256)",
3903
+ "primaryKey": false,
3904
+ "notNull": true
3905
+ },
3906
+ "created_at": {
3907
+ "name": "created_at",
3908
+ "type": "timestamp",
3909
+ "primaryKey": false,
3910
+ "notNull": true,
3911
+ "default": "now()"
3912
+ },
3913
+ "updated_at": {
3914
+ "name": "updated_at",
3915
+ "type": "timestamp",
3916
+ "primaryKey": false,
3917
+ "notNull": true,
3918
+ "default": "now()"
3919
+ }
3920
+ },
3921
+ "indexes": {},
3922
+ "foreignKeys": {
3923
+ "webhook_destination_agents_destination_fk": {
3924
+ "name": "webhook_destination_agents_destination_fk",
3925
+ "tableFrom": "webhook_destination_agents",
3926
+ "tableTo": "webhook_destinations",
3927
+ "columnsFrom": [
3928
+ "tenant_id",
3929
+ "project_id",
3930
+ "webhook_destination_id"
3931
+ ],
3932
+ "columnsTo": [
3933
+ "tenant_id",
3934
+ "project_id",
3935
+ "id"
3936
+ ],
3937
+ "onDelete": "cascade",
3938
+ "onUpdate": "no action"
3939
+ },
3940
+ "webhook_destination_agents_agent_fk": {
3941
+ "name": "webhook_destination_agents_agent_fk",
3942
+ "tableFrom": "webhook_destination_agents",
3943
+ "tableTo": "agent",
3944
+ "columnsFrom": [
3945
+ "tenant_id",
3946
+ "project_id",
3947
+ "agent_id"
3948
+ ],
3949
+ "columnsTo": [
3950
+ "tenant_id",
3951
+ "project_id",
3952
+ "id"
3953
+ ],
3954
+ "onDelete": "cascade",
3955
+ "onUpdate": "no action"
3956
+ }
3957
+ },
3958
+ "compositePrimaryKeys": {
3959
+ "webhook_destination_agents_tenant_id_project_id_id_pk": {
3960
+ "name": "webhook_destination_agents_tenant_id_project_id_id_pk",
3961
+ "columns": [
3962
+ "tenant_id",
3963
+ "project_id",
3964
+ "id"
3965
+ ]
3966
+ }
3967
+ },
3968
+ "uniqueConstraints": {},
3969
+ "policies": {},
3970
+ "checkConstraints": {},
3971
+ "isRLSEnabled": false
3972
+ },
3973
+ "public.webhook_destinations": {
3974
+ "name": "webhook_destinations",
3975
+ "schema": "",
3976
+ "columns": {
3977
+ "tenant_id": {
3978
+ "name": "tenant_id",
3979
+ "type": "varchar(256)",
3980
+ "primaryKey": false,
3981
+ "notNull": true
3982
+ },
3983
+ "id": {
3984
+ "name": "id",
3985
+ "type": "varchar(256)",
3986
+ "primaryKey": false,
3987
+ "notNull": true
3988
+ },
3989
+ "project_id": {
3990
+ "name": "project_id",
3991
+ "type": "varchar(256)",
3992
+ "primaryKey": false,
3993
+ "notNull": true
3994
+ },
3995
+ "name": {
3996
+ "name": "name",
3997
+ "type": "varchar(256)",
3998
+ "primaryKey": false,
3999
+ "notNull": true
4000
+ },
4001
+ "description": {
4002
+ "name": "description",
4003
+ "type": "text",
4004
+ "primaryKey": false,
4005
+ "notNull": false
4006
+ },
4007
+ "enabled": {
4008
+ "name": "enabled",
4009
+ "type": "boolean",
4010
+ "primaryKey": false,
4011
+ "notNull": true,
4012
+ "default": true
4013
+ },
4014
+ "url": {
4015
+ "name": "url",
4016
+ "type": "text",
4017
+ "primaryKey": false,
4018
+ "notNull": true
4019
+ },
4020
+ "event_types": {
4021
+ "name": "event_types",
4022
+ "type": "jsonb",
4023
+ "primaryKey": false,
4024
+ "notNull": true
4025
+ },
4026
+ "created_at": {
4027
+ "name": "created_at",
4028
+ "type": "timestamp",
4029
+ "primaryKey": false,
4030
+ "notNull": true,
4031
+ "default": "now()"
4032
+ },
4033
+ "updated_at": {
4034
+ "name": "updated_at",
4035
+ "type": "timestamp",
4036
+ "primaryKey": false,
4037
+ "notNull": true,
4038
+ "default": "now()"
4039
+ }
4040
+ },
4041
+ "indexes": {},
4042
+ "foreignKeys": {
4043
+ "webhook_destinations_project_fk": {
4044
+ "name": "webhook_destinations_project_fk",
4045
+ "tableFrom": "webhook_destinations",
4046
+ "tableTo": "projects",
4047
+ "columnsFrom": [
4048
+ "tenant_id",
4049
+ "project_id"
4050
+ ],
4051
+ "columnsTo": [
4052
+ "tenant_id",
4053
+ "id"
4054
+ ],
4055
+ "onDelete": "cascade",
4056
+ "onUpdate": "no action"
4057
+ }
4058
+ },
4059
+ "compositePrimaryKeys": {
4060
+ "webhook_destinations_tenant_id_project_id_id_pk": {
4061
+ "name": "webhook_destinations_tenant_id_project_id_id_pk",
4062
+ "columns": [
4063
+ "tenant_id",
4064
+ "project_id",
4065
+ "id"
4066
+ ]
4067
+ }
4068
+ },
4069
+ "uniqueConstraints": {},
4070
+ "policies": {},
4071
+ "checkConstraints": {},
4072
+ "isRLSEnabled": false
4073
+ }
4074
+ },
4075
+ "enums": {},
4076
+ "schemas": {},
4077
+ "sequences": {},
4078
+ "roles": {},
4079
+ "policies": {},
4080
+ "views": {},
4081
+ "_meta": {
4082
+ "columns": {},
4083
+ "schemas": {},
4084
+ "tables": {}
4085
+ }
4086
+ }