@inkeep/agents-core 0.63.1 → 0.63.2

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