@inkeep/agents-core 0.59.4 → 0.61.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/dist/auth/auth-validation-schemas.d.ts +154 -154
  2. package/dist/auth/init.js +42 -0
  3. package/dist/auth/wait-for-spicedb.d.ts +1 -0
  4. package/dist/auth/wait-for-spicedb.js +51 -0
  5. package/dist/client-exports.d.ts +4 -107
  6. package/dist/client-exports.js +3 -61
  7. package/dist/constants/context-breakdown.js +5 -0
  8. package/dist/constants/otel-attributes.d.ts +25 -1
  9. package/dist/constants/otel-attributes.js +25 -1
  10. package/dist/data-access/index.d.ts +4 -3
  11. package/dist/data-access/index.js +4 -3
  12. package/dist/data-access/manage/agentFull.js +15 -10
  13. package/dist/data-access/manage/agents.d.ts +69 -63
  14. package/dist/data-access/manage/agents.js +2 -0
  15. package/dist/data-access/manage/artifactComponents.d.ts +12 -12
  16. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  17. package/dist/data-access/manage/dataComponents.d.ts +6 -6
  18. package/dist/data-access/manage/functionTools.d.ts +18 -18
  19. package/dist/data-access/manage/functionTools.js +2 -2
  20. package/dist/data-access/manage/projectFull.js +24 -3
  21. package/dist/data-access/manage/skills.d.ts +14 -14
  22. package/dist/data-access/manage/skills.js +2 -3
  23. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +27 -27
  24. package/dist/data-access/manage/subAgentExternalAgentRelations.js +2 -2
  25. package/dist/data-access/manage/subAgentRelations.d.ts +29 -29
  26. package/dist/data-access/manage/subAgentRelations.js +2 -2
  27. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +30 -30
  28. package/dist/data-access/manage/subAgentTeamAgentRelations.js +2 -2
  29. package/dist/data-access/manage/subAgents.d.ts +36 -36
  30. package/dist/data-access/manage/tools.d.ts +21 -21
  31. package/dist/data-access/manage/tools.js +2 -2
  32. package/dist/data-access/manage/triggers.d.ts +2 -2
  33. package/dist/data-access/runtime/apiKeys.d.ts +16 -16
  34. package/dist/data-access/runtime/apps.d.ts +61 -13
  35. package/dist/data-access/runtime/apps.js +15 -1
  36. package/dist/data-access/runtime/conversations.d.ts +23 -23
  37. package/dist/data-access/runtime/conversations.js +18 -1
  38. package/dist/data-access/runtime/ledgerArtifacts.d.ts +11 -2
  39. package/dist/data-access/runtime/ledgerArtifacts.js +12 -1
  40. package/dist/data-access/runtime/messages.d.ts +18 -18
  41. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
  42. package/dist/data-access/runtime/tasks.d.ts +4 -4
  43. package/dist/data-access/runtime/workflowExecutions.d.ts +25 -0
  44. package/dist/data-access/runtime/workflowExecutions.js +32 -0
  45. package/dist/db/manage/manage-schema.d.ts +495 -475
  46. package/dist/db/manage/manage-schema.js +1 -0
  47. package/dist/db/runtime/runtime-schema.d.ts +568 -334
  48. package/dist/db/runtime/runtime-schema.js +19 -2
  49. package/dist/dolt/fk-map.d.ts +5 -0
  50. package/dist/dolt/fk-map.js +34 -0
  51. package/dist/dolt/index.d.ts +3 -2
  52. package/dist/dolt/index.js +3 -2
  53. package/dist/dolt/resolve-conflicts.d.ts +11 -1
  54. package/dist/dolt/resolve-conflicts.js +105 -47
  55. package/dist/index.d.ts +15 -10
  56. package/dist/index.js +13 -8
  57. package/dist/types/entities.d.ts +5 -2
  58. package/dist/types/index.d.ts +3 -3
  59. package/dist/types/utility.d.ts +11 -3
  60. package/dist/utils/apiKeys.js +1 -1
  61. package/dist/utils/conversations.d.ts +10 -1
  62. package/dist/utils/conversations.js +19 -1
  63. package/dist/utils/error.d.ts +51 -51
  64. package/dist/utils/index.d.ts +7 -2
  65. package/dist/utils/index.js +5 -2
  66. package/dist/utils/model-factory.js +35 -10
  67. package/dist/utils/token-estimator.d.ts +19 -0
  68. package/dist/utils/token-estimator.js +17 -0
  69. package/dist/utils/usage-cost-middleware.d.ts +13 -0
  70. package/dist/utils/usage-cost-middleware.js +60 -0
  71. package/dist/utils/usage-tracker.d.ts +2 -0
  72. package/dist/utils/usage-tracker.js +1 -0
  73. package/dist/utils/validate-public-key.d.ts +10 -0
  74. package/dist/utils/validate-public-key.js +89 -0
  75. package/dist/validation/agentFull.js +0 -1
  76. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  77. package/dist/validation/index.d.ts +2 -2
  78. package/dist/validation/index.js +2 -2
  79. package/dist/validation/schemas.d.ts +3518 -2682
  80. package/dist/validation/schemas.js +104 -36
  81. package/drizzle/manage/0013_gorgeous_umar.sql +1 -0
  82. package/drizzle/manage/meta/0013_snapshot.json +3704 -0
  83. package/drizzle/manage/meta/_journal.json +7 -0
  84. package/drizzle/runtime/0025_faulty_kylun.sql +1 -0
  85. package/drizzle/runtime/0026_graceful_scorpion.sql +15 -0
  86. package/drizzle/runtime/meta/0026_snapshot.json +4389 -0
  87. package/drizzle/runtime/meta/_journal.json +14 -0
  88. package/package.json +1 -1
@@ -0,0 +1,3704 @@
1
+ {
2
+ "id": "b555284f-8ae7-4f48-820c-83ceed35c7b2",
3
+ "prevId": "abc7a103-dd2c-4112-987f-c0e6750fb068",
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.skills": {
2245
+ "name": "skills",
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(64)",
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
+ "name": {
2267
+ "name": "name",
2268
+ "type": "varchar(64)",
2269
+ "primaryKey": false,
2270
+ "notNull": true
2271
+ },
2272
+ "description": {
2273
+ "name": "description",
2274
+ "type": "text",
2275
+ "primaryKey": false,
2276
+ "notNull": true
2277
+ },
2278
+ "content": {
2279
+ "name": "content",
2280
+ "type": "text",
2281
+ "primaryKey": false,
2282
+ "notNull": true
2283
+ },
2284
+ "metadata": {
2285
+ "name": "metadata",
2286
+ "type": "jsonb",
2287
+ "primaryKey": false,
2288
+ "notNull": false
2289
+ },
2290
+ "created_at": {
2291
+ "name": "created_at",
2292
+ "type": "timestamp",
2293
+ "primaryKey": false,
2294
+ "notNull": true,
2295
+ "default": "now()"
2296
+ },
2297
+ "updated_at": {
2298
+ "name": "updated_at",
2299
+ "type": "timestamp",
2300
+ "primaryKey": false,
2301
+ "notNull": true,
2302
+ "default": "now()"
2303
+ }
2304
+ },
2305
+ "indexes": {},
2306
+ "foreignKeys": {
2307
+ "skills_project_fk": {
2308
+ "name": "skills_project_fk",
2309
+ "tableFrom": "skills",
2310
+ "tableTo": "projects",
2311
+ "columnsFrom": [
2312
+ "tenant_id",
2313
+ "project_id"
2314
+ ],
2315
+ "columnsTo": [
2316
+ "tenant_id",
2317
+ "id"
2318
+ ],
2319
+ "onDelete": "cascade",
2320
+ "onUpdate": "no action"
2321
+ }
2322
+ },
2323
+ "compositePrimaryKeys": {
2324
+ "skills_tenant_id_project_id_id_pk": {
2325
+ "name": "skills_tenant_id_project_id_id_pk",
2326
+ "columns": [
2327
+ "tenant_id",
2328
+ "project_id",
2329
+ "id"
2330
+ ]
2331
+ }
2332
+ },
2333
+ "uniqueConstraints": {},
2334
+ "policies": {},
2335
+ "checkConstraints": {},
2336
+ "isRLSEnabled": false
2337
+ },
2338
+ "public.sub_agent_artifact_components": {
2339
+ "name": "sub_agent_artifact_components",
2340
+ "schema": "",
2341
+ "columns": {
2342
+ "tenant_id": {
2343
+ "name": "tenant_id",
2344
+ "type": "varchar(256)",
2345
+ "primaryKey": false,
2346
+ "notNull": true
2347
+ },
2348
+ "id": {
2349
+ "name": "id",
2350
+ "type": "varchar(256)",
2351
+ "primaryKey": false,
2352
+ "notNull": true
2353
+ },
2354
+ "project_id": {
2355
+ "name": "project_id",
2356
+ "type": "varchar(256)",
2357
+ "primaryKey": false,
2358
+ "notNull": true
2359
+ },
2360
+ "agent_id": {
2361
+ "name": "agent_id",
2362
+ "type": "varchar(256)",
2363
+ "primaryKey": false,
2364
+ "notNull": true
2365
+ },
2366
+ "sub_agent_id": {
2367
+ "name": "sub_agent_id",
2368
+ "type": "varchar(256)",
2369
+ "primaryKey": false,
2370
+ "notNull": true
2371
+ },
2372
+ "artifact_component_id": {
2373
+ "name": "artifact_component_id",
2374
+ "type": "varchar(256)",
2375
+ "primaryKey": false,
2376
+ "notNull": true
2377
+ },
2378
+ "created_at": {
2379
+ "name": "created_at",
2380
+ "type": "timestamp",
2381
+ "primaryKey": false,
2382
+ "notNull": true,
2383
+ "default": "now()"
2384
+ }
2385
+ },
2386
+ "indexes": {},
2387
+ "foreignKeys": {
2388
+ "sub_agent_artifact_components_sub_agent_fk": {
2389
+ "name": "sub_agent_artifact_components_sub_agent_fk",
2390
+ "tableFrom": "sub_agent_artifact_components",
2391
+ "tableTo": "sub_agents",
2392
+ "columnsFrom": [
2393
+ "tenant_id",
2394
+ "project_id",
2395
+ "agent_id",
2396
+ "sub_agent_id"
2397
+ ],
2398
+ "columnsTo": [
2399
+ "tenant_id",
2400
+ "project_id",
2401
+ "agent_id",
2402
+ "id"
2403
+ ],
2404
+ "onDelete": "cascade",
2405
+ "onUpdate": "no action"
2406
+ },
2407
+ "sub_agent_artifact_components_artifact_component_fk": {
2408
+ "name": "sub_agent_artifact_components_artifact_component_fk",
2409
+ "tableFrom": "sub_agent_artifact_components",
2410
+ "tableTo": "artifact_components",
2411
+ "columnsFrom": [
2412
+ "tenant_id",
2413
+ "project_id",
2414
+ "artifact_component_id"
2415
+ ],
2416
+ "columnsTo": [
2417
+ "tenant_id",
2418
+ "project_id",
2419
+ "id"
2420
+ ],
2421
+ "onDelete": "cascade",
2422
+ "onUpdate": "no action"
2423
+ }
2424
+ },
2425
+ "compositePrimaryKeys": {
2426
+ "sub_agent_artifact_components_pk": {
2427
+ "name": "sub_agent_artifact_components_pk",
2428
+ "columns": [
2429
+ "tenant_id",
2430
+ "project_id",
2431
+ "agent_id",
2432
+ "sub_agent_id",
2433
+ "id"
2434
+ ]
2435
+ }
2436
+ },
2437
+ "uniqueConstraints": {},
2438
+ "policies": {},
2439
+ "checkConstraints": {},
2440
+ "isRLSEnabled": false
2441
+ },
2442
+ "public.sub_agent_data_components": {
2443
+ "name": "sub_agent_data_components",
2444
+ "schema": "",
2445
+ "columns": {
2446
+ "tenant_id": {
2447
+ "name": "tenant_id",
2448
+ "type": "varchar(256)",
2449
+ "primaryKey": false,
2450
+ "notNull": true
2451
+ },
2452
+ "id": {
2453
+ "name": "id",
2454
+ "type": "varchar(256)",
2455
+ "primaryKey": false,
2456
+ "notNull": true
2457
+ },
2458
+ "project_id": {
2459
+ "name": "project_id",
2460
+ "type": "varchar(256)",
2461
+ "primaryKey": false,
2462
+ "notNull": true
2463
+ },
2464
+ "agent_id": {
2465
+ "name": "agent_id",
2466
+ "type": "varchar(256)",
2467
+ "primaryKey": false,
2468
+ "notNull": true
2469
+ },
2470
+ "sub_agent_id": {
2471
+ "name": "sub_agent_id",
2472
+ "type": "varchar(256)",
2473
+ "primaryKey": false,
2474
+ "notNull": true
2475
+ },
2476
+ "data_component_id": {
2477
+ "name": "data_component_id",
2478
+ "type": "varchar(256)",
2479
+ "primaryKey": false,
2480
+ "notNull": true
2481
+ },
2482
+ "created_at": {
2483
+ "name": "created_at",
2484
+ "type": "timestamp",
2485
+ "primaryKey": false,
2486
+ "notNull": true,
2487
+ "default": "now()"
2488
+ }
2489
+ },
2490
+ "indexes": {},
2491
+ "foreignKeys": {
2492
+ "sub_agent_data_components_sub_agent_fk": {
2493
+ "name": "sub_agent_data_components_sub_agent_fk",
2494
+ "tableFrom": "sub_agent_data_components",
2495
+ "tableTo": "sub_agents",
2496
+ "columnsFrom": [
2497
+ "tenant_id",
2498
+ "project_id",
2499
+ "agent_id",
2500
+ "sub_agent_id"
2501
+ ],
2502
+ "columnsTo": [
2503
+ "tenant_id",
2504
+ "project_id",
2505
+ "agent_id",
2506
+ "id"
2507
+ ],
2508
+ "onDelete": "cascade",
2509
+ "onUpdate": "no action"
2510
+ },
2511
+ "sub_agent_data_components_data_component_fk": {
2512
+ "name": "sub_agent_data_components_data_component_fk",
2513
+ "tableFrom": "sub_agent_data_components",
2514
+ "tableTo": "data_components",
2515
+ "columnsFrom": [
2516
+ "tenant_id",
2517
+ "project_id",
2518
+ "data_component_id"
2519
+ ],
2520
+ "columnsTo": [
2521
+ "tenant_id",
2522
+ "project_id",
2523
+ "id"
2524
+ ],
2525
+ "onDelete": "cascade",
2526
+ "onUpdate": "no action"
2527
+ }
2528
+ },
2529
+ "compositePrimaryKeys": {
2530
+ "sub_agent_data_components_tenant_id_project_id_id_pk": {
2531
+ "name": "sub_agent_data_components_tenant_id_project_id_id_pk",
2532
+ "columns": [
2533
+ "tenant_id",
2534
+ "project_id",
2535
+ "id"
2536
+ ]
2537
+ }
2538
+ },
2539
+ "uniqueConstraints": {},
2540
+ "policies": {},
2541
+ "checkConstraints": {},
2542
+ "isRLSEnabled": false
2543
+ },
2544
+ "public.sub_agent_external_agent_relations": {
2545
+ "name": "sub_agent_external_agent_relations",
2546
+ "schema": "",
2547
+ "columns": {
2548
+ "tenant_id": {
2549
+ "name": "tenant_id",
2550
+ "type": "varchar(256)",
2551
+ "primaryKey": false,
2552
+ "notNull": true
2553
+ },
2554
+ "id": {
2555
+ "name": "id",
2556
+ "type": "varchar(256)",
2557
+ "primaryKey": false,
2558
+ "notNull": true
2559
+ },
2560
+ "project_id": {
2561
+ "name": "project_id",
2562
+ "type": "varchar(256)",
2563
+ "primaryKey": false,
2564
+ "notNull": true
2565
+ },
2566
+ "agent_id": {
2567
+ "name": "agent_id",
2568
+ "type": "varchar(256)",
2569
+ "primaryKey": false,
2570
+ "notNull": true
2571
+ },
2572
+ "sub_agent_id": {
2573
+ "name": "sub_agent_id",
2574
+ "type": "varchar(256)",
2575
+ "primaryKey": false,
2576
+ "notNull": true
2577
+ },
2578
+ "external_agent_id": {
2579
+ "name": "external_agent_id",
2580
+ "type": "varchar(256)",
2581
+ "primaryKey": false,
2582
+ "notNull": true
2583
+ },
2584
+ "headers": {
2585
+ "name": "headers",
2586
+ "type": "jsonb",
2587
+ "primaryKey": false,
2588
+ "notNull": false
2589
+ },
2590
+ "created_at": {
2591
+ "name": "created_at",
2592
+ "type": "timestamp",
2593
+ "primaryKey": false,
2594
+ "notNull": true,
2595
+ "default": "now()"
2596
+ },
2597
+ "updated_at": {
2598
+ "name": "updated_at",
2599
+ "type": "timestamp",
2600
+ "primaryKey": false,
2601
+ "notNull": true,
2602
+ "default": "now()"
2603
+ }
2604
+ },
2605
+ "indexes": {},
2606
+ "foreignKeys": {
2607
+ "sub_agent_external_agent_relations_sub_agent_fk": {
2608
+ "name": "sub_agent_external_agent_relations_sub_agent_fk",
2609
+ "tableFrom": "sub_agent_external_agent_relations",
2610
+ "tableTo": "sub_agents",
2611
+ "columnsFrom": [
2612
+ "tenant_id",
2613
+ "project_id",
2614
+ "agent_id",
2615
+ "sub_agent_id"
2616
+ ],
2617
+ "columnsTo": [
2618
+ "tenant_id",
2619
+ "project_id",
2620
+ "agent_id",
2621
+ "id"
2622
+ ],
2623
+ "onDelete": "cascade",
2624
+ "onUpdate": "no action"
2625
+ },
2626
+ "sub_agent_external_agent_relations_external_agent_fk": {
2627
+ "name": "sub_agent_external_agent_relations_external_agent_fk",
2628
+ "tableFrom": "sub_agent_external_agent_relations",
2629
+ "tableTo": "external_agents",
2630
+ "columnsFrom": [
2631
+ "tenant_id",
2632
+ "project_id",
2633
+ "external_agent_id"
2634
+ ],
2635
+ "columnsTo": [
2636
+ "tenant_id",
2637
+ "project_id",
2638
+ "id"
2639
+ ],
2640
+ "onDelete": "cascade",
2641
+ "onUpdate": "no action"
2642
+ }
2643
+ },
2644
+ "compositePrimaryKeys": {
2645
+ "sub_agent_external_agent_relations_pk": {
2646
+ "name": "sub_agent_external_agent_relations_pk",
2647
+ "columns": [
2648
+ "tenant_id",
2649
+ "project_id",
2650
+ "agent_id",
2651
+ "id"
2652
+ ]
2653
+ }
2654
+ },
2655
+ "uniqueConstraints": {},
2656
+ "policies": {},
2657
+ "checkConstraints": {},
2658
+ "isRLSEnabled": false
2659
+ },
2660
+ "public.sub_agent_function_tool_relations": {
2661
+ "name": "sub_agent_function_tool_relations",
2662
+ "schema": "",
2663
+ "columns": {
2664
+ "tenant_id": {
2665
+ "name": "tenant_id",
2666
+ "type": "varchar(256)",
2667
+ "primaryKey": false,
2668
+ "notNull": true
2669
+ },
2670
+ "id": {
2671
+ "name": "id",
2672
+ "type": "varchar(256)",
2673
+ "primaryKey": false,
2674
+ "notNull": true
2675
+ },
2676
+ "project_id": {
2677
+ "name": "project_id",
2678
+ "type": "varchar(256)",
2679
+ "primaryKey": false,
2680
+ "notNull": true
2681
+ },
2682
+ "agent_id": {
2683
+ "name": "agent_id",
2684
+ "type": "varchar(256)",
2685
+ "primaryKey": false,
2686
+ "notNull": true
2687
+ },
2688
+ "sub_agent_id": {
2689
+ "name": "sub_agent_id",
2690
+ "type": "varchar(256)",
2691
+ "primaryKey": false,
2692
+ "notNull": true
2693
+ },
2694
+ "function_tool_id": {
2695
+ "name": "function_tool_id",
2696
+ "type": "varchar(256)",
2697
+ "primaryKey": false,
2698
+ "notNull": true
2699
+ },
2700
+ "tool_policies": {
2701
+ "name": "tool_policies",
2702
+ "type": "jsonb",
2703
+ "primaryKey": false,
2704
+ "notNull": false
2705
+ },
2706
+ "created_at": {
2707
+ "name": "created_at",
2708
+ "type": "timestamp",
2709
+ "primaryKey": false,
2710
+ "notNull": true,
2711
+ "default": "now()"
2712
+ },
2713
+ "updated_at": {
2714
+ "name": "updated_at",
2715
+ "type": "timestamp",
2716
+ "primaryKey": false,
2717
+ "notNull": true,
2718
+ "default": "now()"
2719
+ }
2720
+ },
2721
+ "indexes": {},
2722
+ "foreignKeys": {
2723
+ "sub_agent_function_tool_relations_sub_agent_fk": {
2724
+ "name": "sub_agent_function_tool_relations_sub_agent_fk",
2725
+ "tableFrom": "sub_agent_function_tool_relations",
2726
+ "tableTo": "sub_agents",
2727
+ "columnsFrom": [
2728
+ "tenant_id",
2729
+ "project_id",
2730
+ "agent_id",
2731
+ "sub_agent_id"
2732
+ ],
2733
+ "columnsTo": [
2734
+ "tenant_id",
2735
+ "project_id",
2736
+ "agent_id",
2737
+ "id"
2738
+ ],
2739
+ "onDelete": "cascade",
2740
+ "onUpdate": "no action"
2741
+ },
2742
+ "sub_agent_function_tool_relations_function_tool_fk": {
2743
+ "name": "sub_agent_function_tool_relations_function_tool_fk",
2744
+ "tableFrom": "sub_agent_function_tool_relations",
2745
+ "tableTo": "function_tools",
2746
+ "columnsFrom": [
2747
+ "tenant_id",
2748
+ "project_id",
2749
+ "agent_id",
2750
+ "function_tool_id"
2751
+ ],
2752
+ "columnsTo": [
2753
+ "tenant_id",
2754
+ "project_id",
2755
+ "agent_id",
2756
+ "id"
2757
+ ],
2758
+ "onDelete": "cascade",
2759
+ "onUpdate": "no action"
2760
+ }
2761
+ },
2762
+ "compositePrimaryKeys": {
2763
+ "sub_agent_function_tool_relations_pk": {
2764
+ "name": "sub_agent_function_tool_relations_pk",
2765
+ "columns": [
2766
+ "tenant_id",
2767
+ "project_id",
2768
+ "agent_id",
2769
+ "id"
2770
+ ]
2771
+ }
2772
+ },
2773
+ "uniqueConstraints": {},
2774
+ "policies": {},
2775
+ "checkConstraints": {},
2776
+ "isRLSEnabled": false
2777
+ },
2778
+ "public.sub_agent_relations": {
2779
+ "name": "sub_agent_relations",
2780
+ "schema": "",
2781
+ "columns": {
2782
+ "tenant_id": {
2783
+ "name": "tenant_id",
2784
+ "type": "varchar(256)",
2785
+ "primaryKey": false,
2786
+ "notNull": true
2787
+ },
2788
+ "id": {
2789
+ "name": "id",
2790
+ "type": "varchar(256)",
2791
+ "primaryKey": false,
2792
+ "notNull": true
2793
+ },
2794
+ "project_id": {
2795
+ "name": "project_id",
2796
+ "type": "varchar(256)",
2797
+ "primaryKey": false,
2798
+ "notNull": true
2799
+ },
2800
+ "agent_id": {
2801
+ "name": "agent_id",
2802
+ "type": "varchar(256)",
2803
+ "primaryKey": false,
2804
+ "notNull": true
2805
+ },
2806
+ "source_sub_agent_id": {
2807
+ "name": "source_sub_agent_id",
2808
+ "type": "varchar(256)",
2809
+ "primaryKey": false,
2810
+ "notNull": true
2811
+ },
2812
+ "target_sub_agent_id": {
2813
+ "name": "target_sub_agent_id",
2814
+ "type": "varchar(256)",
2815
+ "primaryKey": false,
2816
+ "notNull": false
2817
+ },
2818
+ "relation_type": {
2819
+ "name": "relation_type",
2820
+ "type": "varchar(256)",
2821
+ "primaryKey": false,
2822
+ "notNull": false
2823
+ },
2824
+ "created_at": {
2825
+ "name": "created_at",
2826
+ "type": "timestamp",
2827
+ "primaryKey": false,
2828
+ "notNull": true,
2829
+ "default": "now()"
2830
+ },
2831
+ "updated_at": {
2832
+ "name": "updated_at",
2833
+ "type": "timestamp",
2834
+ "primaryKey": false,
2835
+ "notNull": true,
2836
+ "default": "now()"
2837
+ }
2838
+ },
2839
+ "indexes": {},
2840
+ "foreignKeys": {
2841
+ "sub_agent_relations_agent_fk": {
2842
+ "name": "sub_agent_relations_agent_fk",
2843
+ "tableFrom": "sub_agent_relations",
2844
+ "tableTo": "agent",
2845
+ "columnsFrom": [
2846
+ "tenant_id",
2847
+ "project_id",
2848
+ "agent_id"
2849
+ ],
2850
+ "columnsTo": [
2851
+ "tenant_id",
2852
+ "project_id",
2853
+ "id"
2854
+ ],
2855
+ "onDelete": "cascade",
2856
+ "onUpdate": "no action"
2857
+ }
2858
+ },
2859
+ "compositePrimaryKeys": {
2860
+ "sub_agent_relations_tenant_id_project_id_agent_id_id_pk": {
2861
+ "name": "sub_agent_relations_tenant_id_project_id_agent_id_id_pk",
2862
+ "columns": [
2863
+ "tenant_id",
2864
+ "project_id",
2865
+ "agent_id",
2866
+ "id"
2867
+ ]
2868
+ }
2869
+ },
2870
+ "uniqueConstraints": {},
2871
+ "policies": {},
2872
+ "checkConstraints": {},
2873
+ "isRLSEnabled": false
2874
+ },
2875
+ "public.sub_agent_skills": {
2876
+ "name": "sub_agent_skills",
2877
+ "schema": "",
2878
+ "columns": {
2879
+ "tenant_id": {
2880
+ "name": "tenant_id",
2881
+ "type": "varchar(256)",
2882
+ "primaryKey": false,
2883
+ "notNull": true
2884
+ },
2885
+ "id": {
2886
+ "name": "id",
2887
+ "type": "varchar(256)",
2888
+ "primaryKey": false,
2889
+ "notNull": true
2890
+ },
2891
+ "project_id": {
2892
+ "name": "project_id",
2893
+ "type": "varchar(256)",
2894
+ "primaryKey": false,
2895
+ "notNull": true
2896
+ },
2897
+ "agent_id": {
2898
+ "name": "agent_id",
2899
+ "type": "varchar(256)",
2900
+ "primaryKey": false,
2901
+ "notNull": true
2902
+ },
2903
+ "sub_agent_id": {
2904
+ "name": "sub_agent_id",
2905
+ "type": "varchar(256)",
2906
+ "primaryKey": false,
2907
+ "notNull": true
2908
+ },
2909
+ "skill_id": {
2910
+ "name": "skill_id",
2911
+ "type": "varchar(64)",
2912
+ "primaryKey": false,
2913
+ "notNull": true
2914
+ },
2915
+ "index": {
2916
+ "name": "index",
2917
+ "type": "numeric",
2918
+ "primaryKey": false,
2919
+ "notNull": true,
2920
+ "default": 0
2921
+ },
2922
+ "always_loaded": {
2923
+ "name": "always_loaded",
2924
+ "type": "boolean",
2925
+ "primaryKey": false,
2926
+ "notNull": true,
2927
+ "default": false
2928
+ },
2929
+ "created_at": {
2930
+ "name": "created_at",
2931
+ "type": "timestamp",
2932
+ "primaryKey": false,
2933
+ "notNull": true,
2934
+ "default": "now()"
2935
+ },
2936
+ "updated_at": {
2937
+ "name": "updated_at",
2938
+ "type": "timestamp",
2939
+ "primaryKey": false,
2940
+ "notNull": true,
2941
+ "default": "now()"
2942
+ }
2943
+ },
2944
+ "indexes": {
2945
+ "sub_agent_skills_skill_idx": {
2946
+ "name": "sub_agent_skills_skill_idx",
2947
+ "columns": [
2948
+ {
2949
+ "expression": "skill_id",
2950
+ "isExpression": false,
2951
+ "asc": true,
2952
+ "nulls": "last"
2953
+ }
2954
+ ],
2955
+ "isUnique": false,
2956
+ "concurrently": false,
2957
+ "method": "btree",
2958
+ "with": {}
2959
+ }
2960
+ },
2961
+ "foreignKeys": {
2962
+ "sub_agent_skills_sub_agent_fk": {
2963
+ "name": "sub_agent_skills_sub_agent_fk",
2964
+ "tableFrom": "sub_agent_skills",
2965
+ "tableTo": "sub_agents",
2966
+ "columnsFrom": [
2967
+ "tenant_id",
2968
+ "project_id",
2969
+ "agent_id",
2970
+ "sub_agent_id"
2971
+ ],
2972
+ "columnsTo": [
2973
+ "tenant_id",
2974
+ "project_id",
2975
+ "agent_id",
2976
+ "id"
2977
+ ],
2978
+ "onDelete": "cascade",
2979
+ "onUpdate": "no action"
2980
+ },
2981
+ "sub_agent_skills_skill_fk": {
2982
+ "name": "sub_agent_skills_skill_fk",
2983
+ "tableFrom": "sub_agent_skills",
2984
+ "tableTo": "skills",
2985
+ "columnsFrom": [
2986
+ "tenant_id",
2987
+ "project_id",
2988
+ "skill_id"
2989
+ ],
2990
+ "columnsTo": [
2991
+ "tenant_id",
2992
+ "project_id",
2993
+ "id"
2994
+ ],
2995
+ "onDelete": "cascade",
2996
+ "onUpdate": "no action"
2997
+ }
2998
+ },
2999
+ "compositePrimaryKeys": {
3000
+ "sub_agent_skills_tenant_id_project_id_agent_id_id_pk": {
3001
+ "name": "sub_agent_skills_tenant_id_project_id_agent_id_id_pk",
3002
+ "columns": [
3003
+ "tenant_id",
3004
+ "project_id",
3005
+ "agent_id",
3006
+ "id"
3007
+ ]
3008
+ }
3009
+ },
3010
+ "uniqueConstraints": {
3011
+ "sub_agent_skills_sub_agent_skill_unique": {
3012
+ "name": "sub_agent_skills_sub_agent_skill_unique",
3013
+ "nullsNotDistinct": false,
3014
+ "columns": [
3015
+ "tenant_id",
3016
+ "project_id",
3017
+ "agent_id",
3018
+ "sub_agent_id",
3019
+ "skill_id"
3020
+ ]
3021
+ }
3022
+ },
3023
+ "policies": {},
3024
+ "checkConstraints": {},
3025
+ "isRLSEnabled": false
3026
+ },
3027
+ "public.sub_agent_team_agent_relations": {
3028
+ "name": "sub_agent_team_agent_relations",
3029
+ "schema": "",
3030
+ "columns": {
3031
+ "tenant_id": {
3032
+ "name": "tenant_id",
3033
+ "type": "varchar(256)",
3034
+ "primaryKey": false,
3035
+ "notNull": true
3036
+ },
3037
+ "id": {
3038
+ "name": "id",
3039
+ "type": "varchar(256)",
3040
+ "primaryKey": false,
3041
+ "notNull": true
3042
+ },
3043
+ "project_id": {
3044
+ "name": "project_id",
3045
+ "type": "varchar(256)",
3046
+ "primaryKey": false,
3047
+ "notNull": true
3048
+ },
3049
+ "agent_id": {
3050
+ "name": "agent_id",
3051
+ "type": "varchar(256)",
3052
+ "primaryKey": false,
3053
+ "notNull": true
3054
+ },
3055
+ "sub_agent_id": {
3056
+ "name": "sub_agent_id",
3057
+ "type": "varchar(256)",
3058
+ "primaryKey": false,
3059
+ "notNull": true
3060
+ },
3061
+ "target_agent_id": {
3062
+ "name": "target_agent_id",
3063
+ "type": "varchar(256)",
3064
+ "primaryKey": false,
3065
+ "notNull": true
3066
+ },
3067
+ "headers": {
3068
+ "name": "headers",
3069
+ "type": "jsonb",
3070
+ "primaryKey": false,
3071
+ "notNull": false
3072
+ },
3073
+ "created_at": {
3074
+ "name": "created_at",
3075
+ "type": "timestamp",
3076
+ "primaryKey": false,
3077
+ "notNull": true,
3078
+ "default": "now()"
3079
+ },
3080
+ "updated_at": {
3081
+ "name": "updated_at",
3082
+ "type": "timestamp",
3083
+ "primaryKey": false,
3084
+ "notNull": true,
3085
+ "default": "now()"
3086
+ }
3087
+ },
3088
+ "indexes": {},
3089
+ "foreignKeys": {
3090
+ "sub_agent_team_agent_relations_sub_agent_fk": {
3091
+ "name": "sub_agent_team_agent_relations_sub_agent_fk",
3092
+ "tableFrom": "sub_agent_team_agent_relations",
3093
+ "tableTo": "sub_agents",
3094
+ "columnsFrom": [
3095
+ "tenant_id",
3096
+ "project_id",
3097
+ "agent_id",
3098
+ "sub_agent_id"
3099
+ ],
3100
+ "columnsTo": [
3101
+ "tenant_id",
3102
+ "project_id",
3103
+ "agent_id",
3104
+ "id"
3105
+ ],
3106
+ "onDelete": "cascade",
3107
+ "onUpdate": "no action"
3108
+ },
3109
+ "sub_agent_team_agent_relations_target_agent_fk": {
3110
+ "name": "sub_agent_team_agent_relations_target_agent_fk",
3111
+ "tableFrom": "sub_agent_team_agent_relations",
3112
+ "tableTo": "agent",
3113
+ "columnsFrom": [
3114
+ "tenant_id",
3115
+ "project_id",
3116
+ "target_agent_id"
3117
+ ],
3118
+ "columnsTo": [
3119
+ "tenant_id",
3120
+ "project_id",
3121
+ "id"
3122
+ ],
3123
+ "onDelete": "cascade",
3124
+ "onUpdate": "no action"
3125
+ }
3126
+ },
3127
+ "compositePrimaryKeys": {
3128
+ "sub_agent_team_agent_relations_pk": {
3129
+ "name": "sub_agent_team_agent_relations_pk",
3130
+ "columns": [
3131
+ "tenant_id",
3132
+ "project_id",
3133
+ "agent_id",
3134
+ "id"
3135
+ ]
3136
+ }
3137
+ },
3138
+ "uniqueConstraints": {},
3139
+ "policies": {},
3140
+ "checkConstraints": {},
3141
+ "isRLSEnabled": false
3142
+ },
3143
+ "public.sub_agent_tool_relations": {
3144
+ "name": "sub_agent_tool_relations",
3145
+ "schema": "",
3146
+ "columns": {
3147
+ "tenant_id": {
3148
+ "name": "tenant_id",
3149
+ "type": "varchar(256)",
3150
+ "primaryKey": false,
3151
+ "notNull": true
3152
+ },
3153
+ "id": {
3154
+ "name": "id",
3155
+ "type": "varchar(256)",
3156
+ "primaryKey": false,
3157
+ "notNull": true
3158
+ },
3159
+ "project_id": {
3160
+ "name": "project_id",
3161
+ "type": "varchar(256)",
3162
+ "primaryKey": false,
3163
+ "notNull": true
3164
+ },
3165
+ "agent_id": {
3166
+ "name": "agent_id",
3167
+ "type": "varchar(256)",
3168
+ "primaryKey": false,
3169
+ "notNull": true
3170
+ },
3171
+ "sub_agent_id": {
3172
+ "name": "sub_agent_id",
3173
+ "type": "varchar(256)",
3174
+ "primaryKey": false,
3175
+ "notNull": true
3176
+ },
3177
+ "tool_id": {
3178
+ "name": "tool_id",
3179
+ "type": "varchar(256)",
3180
+ "primaryKey": false,
3181
+ "notNull": true
3182
+ },
3183
+ "selected_tools": {
3184
+ "name": "selected_tools",
3185
+ "type": "jsonb",
3186
+ "primaryKey": false,
3187
+ "notNull": false
3188
+ },
3189
+ "headers": {
3190
+ "name": "headers",
3191
+ "type": "jsonb",
3192
+ "primaryKey": false,
3193
+ "notNull": false
3194
+ },
3195
+ "tool_policies": {
3196
+ "name": "tool_policies",
3197
+ "type": "jsonb",
3198
+ "primaryKey": false,
3199
+ "notNull": false
3200
+ },
3201
+ "created_at": {
3202
+ "name": "created_at",
3203
+ "type": "timestamp",
3204
+ "primaryKey": false,
3205
+ "notNull": true,
3206
+ "default": "now()"
3207
+ },
3208
+ "updated_at": {
3209
+ "name": "updated_at",
3210
+ "type": "timestamp",
3211
+ "primaryKey": false,
3212
+ "notNull": true,
3213
+ "default": "now()"
3214
+ }
3215
+ },
3216
+ "indexes": {},
3217
+ "foreignKeys": {
3218
+ "sub_agent_tool_relations_agent_fk": {
3219
+ "name": "sub_agent_tool_relations_agent_fk",
3220
+ "tableFrom": "sub_agent_tool_relations",
3221
+ "tableTo": "sub_agents",
3222
+ "columnsFrom": [
3223
+ "tenant_id",
3224
+ "project_id",
3225
+ "agent_id",
3226
+ "sub_agent_id"
3227
+ ],
3228
+ "columnsTo": [
3229
+ "tenant_id",
3230
+ "project_id",
3231
+ "agent_id",
3232
+ "id"
3233
+ ],
3234
+ "onDelete": "cascade",
3235
+ "onUpdate": "no action"
3236
+ },
3237
+ "sub_agent_tool_relations_tool_fk": {
3238
+ "name": "sub_agent_tool_relations_tool_fk",
3239
+ "tableFrom": "sub_agent_tool_relations",
3240
+ "tableTo": "tools",
3241
+ "columnsFrom": [
3242
+ "tenant_id",
3243
+ "project_id",
3244
+ "tool_id"
3245
+ ],
3246
+ "columnsTo": [
3247
+ "tenant_id",
3248
+ "project_id",
3249
+ "id"
3250
+ ],
3251
+ "onDelete": "cascade",
3252
+ "onUpdate": "no action"
3253
+ }
3254
+ },
3255
+ "compositePrimaryKeys": {
3256
+ "sub_agent_tool_relations_tenant_id_project_id_agent_id_id_pk": {
3257
+ "name": "sub_agent_tool_relations_tenant_id_project_id_agent_id_id_pk",
3258
+ "columns": [
3259
+ "tenant_id",
3260
+ "project_id",
3261
+ "agent_id",
3262
+ "id"
3263
+ ]
3264
+ }
3265
+ },
3266
+ "uniqueConstraints": {},
3267
+ "policies": {},
3268
+ "checkConstraints": {},
3269
+ "isRLSEnabled": false
3270
+ },
3271
+ "public.sub_agents": {
3272
+ "name": "sub_agents",
3273
+ "schema": "",
3274
+ "columns": {
3275
+ "tenant_id": {
3276
+ "name": "tenant_id",
3277
+ "type": "varchar(256)",
3278
+ "primaryKey": false,
3279
+ "notNull": true
3280
+ },
3281
+ "id": {
3282
+ "name": "id",
3283
+ "type": "varchar(256)",
3284
+ "primaryKey": false,
3285
+ "notNull": true
3286
+ },
3287
+ "project_id": {
3288
+ "name": "project_id",
3289
+ "type": "varchar(256)",
3290
+ "primaryKey": false,
3291
+ "notNull": true
3292
+ },
3293
+ "agent_id": {
3294
+ "name": "agent_id",
3295
+ "type": "varchar(256)",
3296
+ "primaryKey": false,
3297
+ "notNull": true
3298
+ },
3299
+ "name": {
3300
+ "name": "name",
3301
+ "type": "varchar(256)",
3302
+ "primaryKey": false,
3303
+ "notNull": true
3304
+ },
3305
+ "description": {
3306
+ "name": "description",
3307
+ "type": "text",
3308
+ "primaryKey": false,
3309
+ "notNull": false
3310
+ },
3311
+ "prompt": {
3312
+ "name": "prompt",
3313
+ "type": "text",
3314
+ "primaryKey": false,
3315
+ "notNull": false
3316
+ },
3317
+ "conversation_history_config": {
3318
+ "name": "conversation_history_config",
3319
+ "type": "jsonb",
3320
+ "primaryKey": false,
3321
+ "notNull": false,
3322
+ "default": "'{\"mode\":\"full\",\"limit\":50,\"maxOutputTokens\":4000,\"includeInternal\":false,\"messageTypes\":[\"chat\",\"tool-result\"]}'::jsonb"
3323
+ },
3324
+ "models": {
3325
+ "name": "models",
3326
+ "type": "jsonb",
3327
+ "primaryKey": false,
3328
+ "notNull": false
3329
+ },
3330
+ "stop_when": {
3331
+ "name": "stop_when",
3332
+ "type": "jsonb",
3333
+ "primaryKey": false,
3334
+ "notNull": false
3335
+ },
3336
+ "created_at": {
3337
+ "name": "created_at",
3338
+ "type": "timestamp",
3339
+ "primaryKey": false,
3340
+ "notNull": true,
3341
+ "default": "now()"
3342
+ },
3343
+ "updated_at": {
3344
+ "name": "updated_at",
3345
+ "type": "timestamp",
3346
+ "primaryKey": false,
3347
+ "notNull": true,
3348
+ "default": "now()"
3349
+ }
3350
+ },
3351
+ "indexes": {},
3352
+ "foreignKeys": {
3353
+ "sub_agents_agents_fk": {
3354
+ "name": "sub_agents_agents_fk",
3355
+ "tableFrom": "sub_agents",
3356
+ "tableTo": "agent",
3357
+ "columnsFrom": [
3358
+ "tenant_id",
3359
+ "project_id",
3360
+ "agent_id"
3361
+ ],
3362
+ "columnsTo": [
3363
+ "tenant_id",
3364
+ "project_id",
3365
+ "id"
3366
+ ],
3367
+ "onDelete": "cascade",
3368
+ "onUpdate": "no action"
3369
+ }
3370
+ },
3371
+ "compositePrimaryKeys": {
3372
+ "sub_agents_tenant_id_project_id_agent_id_id_pk": {
3373
+ "name": "sub_agents_tenant_id_project_id_agent_id_id_pk",
3374
+ "columns": [
3375
+ "tenant_id",
3376
+ "project_id",
3377
+ "agent_id",
3378
+ "id"
3379
+ ]
3380
+ }
3381
+ },
3382
+ "uniqueConstraints": {},
3383
+ "policies": {},
3384
+ "checkConstraints": {},
3385
+ "isRLSEnabled": false
3386
+ },
3387
+ "public.tools": {
3388
+ "name": "tools",
3389
+ "schema": "",
3390
+ "columns": {
3391
+ "tenant_id": {
3392
+ "name": "tenant_id",
3393
+ "type": "varchar(256)",
3394
+ "primaryKey": false,
3395
+ "notNull": true
3396
+ },
3397
+ "id": {
3398
+ "name": "id",
3399
+ "type": "varchar(256)",
3400
+ "primaryKey": false,
3401
+ "notNull": true
3402
+ },
3403
+ "project_id": {
3404
+ "name": "project_id",
3405
+ "type": "varchar(256)",
3406
+ "primaryKey": false,
3407
+ "notNull": true
3408
+ },
3409
+ "name": {
3410
+ "name": "name",
3411
+ "type": "varchar(256)",
3412
+ "primaryKey": false,
3413
+ "notNull": true
3414
+ },
3415
+ "description": {
3416
+ "name": "description",
3417
+ "type": "text",
3418
+ "primaryKey": false,
3419
+ "notNull": false
3420
+ },
3421
+ "config": {
3422
+ "name": "config",
3423
+ "type": "jsonb",
3424
+ "primaryKey": false,
3425
+ "notNull": true
3426
+ },
3427
+ "credential_reference_id": {
3428
+ "name": "credential_reference_id",
3429
+ "type": "varchar(256)",
3430
+ "primaryKey": false,
3431
+ "notNull": false
3432
+ },
3433
+ "credential_scope": {
3434
+ "name": "credential_scope",
3435
+ "type": "varchar(50)",
3436
+ "primaryKey": false,
3437
+ "notNull": true,
3438
+ "default": "'project'"
3439
+ },
3440
+ "headers": {
3441
+ "name": "headers",
3442
+ "type": "jsonb",
3443
+ "primaryKey": false,
3444
+ "notNull": false
3445
+ },
3446
+ "image_url": {
3447
+ "name": "image_url",
3448
+ "type": "text",
3449
+ "primaryKey": false,
3450
+ "notNull": false
3451
+ },
3452
+ "capabilities": {
3453
+ "name": "capabilities",
3454
+ "type": "jsonb",
3455
+ "primaryKey": false,
3456
+ "notNull": false
3457
+ },
3458
+ "last_error": {
3459
+ "name": "last_error",
3460
+ "type": "text",
3461
+ "primaryKey": false,
3462
+ "notNull": false
3463
+ },
3464
+ "is_work_app": {
3465
+ "name": "is_work_app",
3466
+ "type": "boolean",
3467
+ "primaryKey": false,
3468
+ "notNull": true,
3469
+ "default": false
3470
+ },
3471
+ "created_at": {
3472
+ "name": "created_at",
3473
+ "type": "timestamp",
3474
+ "primaryKey": false,
3475
+ "notNull": true,
3476
+ "default": "now()"
3477
+ },
3478
+ "updated_at": {
3479
+ "name": "updated_at",
3480
+ "type": "timestamp",
3481
+ "primaryKey": false,
3482
+ "notNull": true,
3483
+ "default": "now()"
3484
+ }
3485
+ },
3486
+ "indexes": {},
3487
+ "foreignKeys": {
3488
+ "tools_project_fk": {
3489
+ "name": "tools_project_fk",
3490
+ "tableFrom": "tools",
3491
+ "tableTo": "projects",
3492
+ "columnsFrom": [
3493
+ "tenant_id",
3494
+ "project_id"
3495
+ ],
3496
+ "columnsTo": [
3497
+ "tenant_id",
3498
+ "id"
3499
+ ],
3500
+ "onDelete": "cascade",
3501
+ "onUpdate": "no action"
3502
+ },
3503
+ "tools_credential_reference_fk": {
3504
+ "name": "tools_credential_reference_fk",
3505
+ "tableFrom": "tools",
3506
+ "tableTo": "credential_references",
3507
+ "columnsFrom": [
3508
+ "credential_reference_id"
3509
+ ],
3510
+ "columnsTo": [
3511
+ "id"
3512
+ ],
3513
+ "onDelete": "set null",
3514
+ "onUpdate": "no action"
3515
+ }
3516
+ },
3517
+ "compositePrimaryKeys": {
3518
+ "tools_tenant_id_project_id_id_pk": {
3519
+ "name": "tools_tenant_id_project_id_id_pk",
3520
+ "columns": [
3521
+ "tenant_id",
3522
+ "project_id",
3523
+ "id"
3524
+ ]
3525
+ }
3526
+ },
3527
+ "uniqueConstraints": {},
3528
+ "policies": {},
3529
+ "checkConstraints": {},
3530
+ "isRLSEnabled": false
3531
+ },
3532
+ "public.triggers": {
3533
+ "name": "triggers",
3534
+ "schema": "",
3535
+ "columns": {
3536
+ "tenant_id": {
3537
+ "name": "tenant_id",
3538
+ "type": "varchar(256)",
3539
+ "primaryKey": false,
3540
+ "notNull": true
3541
+ },
3542
+ "id": {
3543
+ "name": "id",
3544
+ "type": "varchar(256)",
3545
+ "primaryKey": false,
3546
+ "notNull": true
3547
+ },
3548
+ "project_id": {
3549
+ "name": "project_id",
3550
+ "type": "varchar(256)",
3551
+ "primaryKey": false,
3552
+ "notNull": true
3553
+ },
3554
+ "agent_id": {
3555
+ "name": "agent_id",
3556
+ "type": "varchar(256)",
3557
+ "primaryKey": false,
3558
+ "notNull": true
3559
+ },
3560
+ "name": {
3561
+ "name": "name",
3562
+ "type": "varchar(256)",
3563
+ "primaryKey": false,
3564
+ "notNull": true
3565
+ },
3566
+ "description": {
3567
+ "name": "description",
3568
+ "type": "text",
3569
+ "primaryKey": false,
3570
+ "notNull": false
3571
+ },
3572
+ "enabled": {
3573
+ "name": "enabled",
3574
+ "type": "boolean",
3575
+ "primaryKey": false,
3576
+ "notNull": true,
3577
+ "default": true
3578
+ },
3579
+ "input_schema": {
3580
+ "name": "input_schema",
3581
+ "type": "jsonb",
3582
+ "primaryKey": false,
3583
+ "notNull": false
3584
+ },
3585
+ "output_transform": {
3586
+ "name": "output_transform",
3587
+ "type": "jsonb",
3588
+ "primaryKey": false,
3589
+ "notNull": false
3590
+ },
3591
+ "message_template": {
3592
+ "name": "message_template",
3593
+ "type": "text",
3594
+ "primaryKey": false,
3595
+ "notNull": false
3596
+ },
3597
+ "authentication": {
3598
+ "name": "authentication",
3599
+ "type": "jsonb",
3600
+ "primaryKey": false,
3601
+ "notNull": false
3602
+ },
3603
+ "signing_secret_credential_reference_id": {
3604
+ "name": "signing_secret_credential_reference_id",
3605
+ "type": "varchar(256)",
3606
+ "primaryKey": false,
3607
+ "notNull": false
3608
+ },
3609
+ "signature_verification": {
3610
+ "name": "signature_verification",
3611
+ "type": "jsonb",
3612
+ "primaryKey": false,
3613
+ "notNull": false,
3614
+ "default": "'null'::jsonb"
3615
+ },
3616
+ "run_as_user_id": {
3617
+ "name": "run_as_user_id",
3618
+ "type": "varchar(256)",
3619
+ "primaryKey": false,
3620
+ "notNull": false
3621
+ },
3622
+ "created_by": {
3623
+ "name": "created_by",
3624
+ "type": "varchar(256)",
3625
+ "primaryKey": false,
3626
+ "notNull": false
3627
+ },
3628
+ "created_at": {
3629
+ "name": "created_at",
3630
+ "type": "timestamp",
3631
+ "primaryKey": false,
3632
+ "notNull": true,
3633
+ "default": "now()"
3634
+ },
3635
+ "updated_at": {
3636
+ "name": "updated_at",
3637
+ "type": "timestamp",
3638
+ "primaryKey": false,
3639
+ "notNull": true,
3640
+ "default": "now()"
3641
+ }
3642
+ },
3643
+ "indexes": {},
3644
+ "foreignKeys": {
3645
+ "triggers_agent_fk": {
3646
+ "name": "triggers_agent_fk",
3647
+ "tableFrom": "triggers",
3648
+ "tableTo": "agent",
3649
+ "columnsFrom": [
3650
+ "tenant_id",
3651
+ "project_id",
3652
+ "agent_id"
3653
+ ],
3654
+ "columnsTo": [
3655
+ "tenant_id",
3656
+ "project_id",
3657
+ "id"
3658
+ ],
3659
+ "onDelete": "cascade",
3660
+ "onUpdate": "no action"
3661
+ },
3662
+ "triggers_credential_reference_fk": {
3663
+ "name": "triggers_credential_reference_fk",
3664
+ "tableFrom": "triggers",
3665
+ "tableTo": "credential_references",
3666
+ "columnsFrom": [
3667
+ "signing_secret_credential_reference_id"
3668
+ ],
3669
+ "columnsTo": [
3670
+ "id"
3671
+ ],
3672
+ "onDelete": "set null",
3673
+ "onUpdate": "no action"
3674
+ }
3675
+ },
3676
+ "compositePrimaryKeys": {
3677
+ "triggers_tenant_id_project_id_agent_id_id_pk": {
3678
+ "name": "triggers_tenant_id_project_id_agent_id_id_pk",
3679
+ "columns": [
3680
+ "tenant_id",
3681
+ "project_id",
3682
+ "agent_id",
3683
+ "id"
3684
+ ]
3685
+ }
3686
+ },
3687
+ "uniqueConstraints": {},
3688
+ "policies": {},
3689
+ "checkConstraints": {},
3690
+ "isRLSEnabled": false
3691
+ }
3692
+ },
3693
+ "enums": {},
3694
+ "schemas": {},
3695
+ "sequences": {},
3696
+ "roles": {},
3697
+ "policies": {},
3698
+ "views": {},
3699
+ "_meta": {
3700
+ "columns": {},
3701
+ "schemas": {},
3702
+ "tables": {}
3703
+ }
3704
+ }