@inkeep/agents-core 0.33.2 → 0.34.1
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.
- package/dist/{chunk-62UIQW4L.js → chunk-4VUM4EJL.js} +1 -1
- package/dist/{chunk-MQTANAMG.js → chunk-7CLFCY6J.js} +2 -0
- package/dist/{chunk-S75NGJ6E.js → chunk-EKV6C5GS.js} +1 -1
- package/dist/{chunk-6MC5N2NE.js → chunk-UMFCT6A6.js} +3 -2
- package/dist/client-exports.cjs +3 -2
- package/dist/client-exports.d.cts +5 -5
- package/dist/client-exports.d.ts +5 -5
- package/dist/client-exports.js +2 -2
- package/dist/constants/models.cjs +2 -0
- package/dist/constants/models.d.cts +2 -0
- package/dist/constants/models.d.ts +2 -0
- package/dist/constants/models.js +1 -1
- package/dist/db/schema.cjs +1 -1
- package/dist/db/schema.d.cts +2 -2
- package/dist/db/schema.d.ts +2 -2
- package/dist/db/schema.js +1 -1
- package/dist/index.cjs +42 -7
- package/dist/index.d.cts +251 -245
- package/dist/index.d.ts +251 -245
- package/dist/index.js +46 -14
- package/dist/{schema-DYCQuSqA.d.ts → schema-CaEvIRdT.d.cts} +2 -2
- package/dist/{schema-dODUpZEu.d.cts → schema-DvYv9PQ1.d.ts} +2 -2
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/{utility-B73oHEd8.d.cts → utility-htaewQEL.d.cts} +246 -242
- package/dist/{utility-B73oHEd8.d.ts → utility-htaewQEL.d.ts} +246 -242
- package/dist/validation/index.cjs +3 -2
- package/dist/validation/index.d.cts +2 -2
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js +2 -2
- package/drizzle/meta/0000_snapshot.json +93 -459
- package/drizzle/meta/_journal.json +1 -1
- package/package.json +1 -1
|
@@ -95,14 +95,8 @@
|
|
|
95
95
|
"name": "agent_project_fk",
|
|
96
96
|
"tableFrom": "agent",
|
|
97
97
|
"tableTo": "projects",
|
|
98
|
-
"columnsFrom": [
|
|
99
|
-
|
|
100
|
-
"project_id"
|
|
101
|
-
],
|
|
102
|
-
"columnsTo": [
|
|
103
|
-
"tenant_id",
|
|
104
|
-
"id"
|
|
105
|
-
],
|
|
98
|
+
"columnsFrom": ["tenant_id", "project_id"],
|
|
99
|
+
"columnsTo": ["tenant_id", "id"],
|
|
106
100
|
"onDelete": "cascade",
|
|
107
101
|
"onUpdate": "no action"
|
|
108
102
|
}
|
|
@@ -110,11 +104,7 @@
|
|
|
110
104
|
"compositePrimaryKeys": {
|
|
111
105
|
"agent_tenant_id_project_id_id_pk": {
|
|
112
106
|
"name": "agent_tenant_id_project_id_id_pk",
|
|
113
|
-
"columns": [
|
|
114
|
-
"tenant_id",
|
|
115
|
-
"project_id",
|
|
116
|
-
"id"
|
|
117
|
-
]
|
|
107
|
+
"columns": ["tenant_id", "project_id", "id"]
|
|
118
108
|
}
|
|
119
109
|
},
|
|
120
110
|
"uniqueConstraints": {},
|
|
@@ -259,14 +249,8 @@
|
|
|
259
249
|
"name": "api_keys_project_fk",
|
|
260
250
|
"tableFrom": "api_keys",
|
|
261
251
|
"tableTo": "projects",
|
|
262
|
-
"columnsFrom": [
|
|
263
|
-
|
|
264
|
-
"project_id"
|
|
265
|
-
],
|
|
266
|
-
"columnsTo": [
|
|
267
|
-
"tenant_id",
|
|
268
|
-
"id"
|
|
269
|
-
],
|
|
252
|
+
"columnsFrom": ["tenant_id", "project_id"],
|
|
253
|
+
"columnsTo": ["tenant_id", "id"],
|
|
270
254
|
"onDelete": "cascade",
|
|
271
255
|
"onUpdate": "no action"
|
|
272
256
|
},
|
|
@@ -274,16 +258,8 @@
|
|
|
274
258
|
"name": "api_keys_agent_fk",
|
|
275
259
|
"tableFrom": "api_keys",
|
|
276
260
|
"tableTo": "agent",
|
|
277
|
-
"columnsFrom": [
|
|
278
|
-
|
|
279
|
-
"project_id",
|
|
280
|
-
"agent_id"
|
|
281
|
-
],
|
|
282
|
-
"columnsTo": [
|
|
283
|
-
"tenant_id",
|
|
284
|
-
"project_id",
|
|
285
|
-
"id"
|
|
286
|
-
],
|
|
261
|
+
"columnsFrom": ["tenant_id", "project_id", "agent_id"],
|
|
262
|
+
"columnsTo": ["tenant_id", "project_id", "id"],
|
|
287
263
|
"onDelete": "cascade",
|
|
288
264
|
"onUpdate": "no action"
|
|
289
265
|
}
|
|
@@ -293,9 +269,7 @@
|
|
|
293
269
|
"api_keys_public_id_unique": {
|
|
294
270
|
"name": "api_keys_public_id_unique",
|
|
295
271
|
"nullsNotDistinct": false,
|
|
296
|
-
"columns": [
|
|
297
|
-
"public_id"
|
|
298
|
-
]
|
|
272
|
+
"columns": ["public_id"]
|
|
299
273
|
}
|
|
300
274
|
},
|
|
301
275
|
"policies": {},
|
|
@@ -363,14 +337,8 @@
|
|
|
363
337
|
"name": "artifact_components_project_fk",
|
|
364
338
|
"tableFrom": "artifact_components",
|
|
365
339
|
"tableTo": "projects",
|
|
366
|
-
"columnsFrom": [
|
|
367
|
-
|
|
368
|
-
"project_id"
|
|
369
|
-
],
|
|
370
|
-
"columnsTo": [
|
|
371
|
-
"tenant_id",
|
|
372
|
-
"id"
|
|
373
|
-
],
|
|
340
|
+
"columnsFrom": ["tenant_id", "project_id"],
|
|
341
|
+
"columnsTo": ["tenant_id", "id"],
|
|
374
342
|
"onDelete": "cascade",
|
|
375
343
|
"onUpdate": "no action"
|
|
376
344
|
}
|
|
@@ -378,11 +346,7 @@
|
|
|
378
346
|
"compositePrimaryKeys": {
|
|
379
347
|
"artifact_components_tenant_id_project_id_id_pk": {
|
|
380
348
|
"name": "artifact_components_tenant_id_project_id_id_pk",
|
|
381
|
-
"columns": [
|
|
382
|
-
"tenant_id",
|
|
383
|
-
"project_id",
|
|
384
|
-
"id"
|
|
385
|
-
]
|
|
349
|
+
"columns": ["tenant_id", "project_id", "id"]
|
|
386
350
|
}
|
|
387
351
|
},
|
|
388
352
|
"uniqueConstraints": {},
|
|
@@ -510,14 +474,8 @@
|
|
|
510
474
|
"name": "context_cache_project_fk",
|
|
511
475
|
"tableFrom": "context_cache",
|
|
512
476
|
"tableTo": "projects",
|
|
513
|
-
"columnsFrom": [
|
|
514
|
-
|
|
515
|
-
"project_id"
|
|
516
|
-
],
|
|
517
|
-
"columnsTo": [
|
|
518
|
-
"tenant_id",
|
|
519
|
-
"id"
|
|
520
|
-
],
|
|
477
|
+
"columnsFrom": ["tenant_id", "project_id"],
|
|
478
|
+
"columnsTo": ["tenant_id", "id"],
|
|
521
479
|
"onDelete": "cascade",
|
|
522
480
|
"onUpdate": "no action"
|
|
523
481
|
}
|
|
@@ -525,11 +483,7 @@
|
|
|
525
483
|
"compositePrimaryKeys": {
|
|
526
484
|
"context_cache_tenant_id_project_id_id_pk": {
|
|
527
485
|
"name": "context_cache_tenant_id_project_id_id_pk",
|
|
528
|
-
"columns": [
|
|
529
|
-
"tenant_id",
|
|
530
|
-
"project_id",
|
|
531
|
-
"id"
|
|
532
|
-
]
|
|
486
|
+
"columns": ["tenant_id", "project_id", "id"]
|
|
533
487
|
}
|
|
534
488
|
},
|
|
535
489
|
"uniqueConstraints": {},
|
|
@@ -598,16 +552,8 @@
|
|
|
598
552
|
"name": "context_configs_agent_fk",
|
|
599
553
|
"tableFrom": "context_configs",
|
|
600
554
|
"tableTo": "agent",
|
|
601
|
-
"columnsFrom": [
|
|
602
|
-
|
|
603
|
-
"project_id",
|
|
604
|
-
"agent_id"
|
|
605
|
-
],
|
|
606
|
-
"columnsTo": [
|
|
607
|
-
"tenant_id",
|
|
608
|
-
"project_id",
|
|
609
|
-
"id"
|
|
610
|
-
],
|
|
555
|
+
"columnsFrom": ["tenant_id", "project_id", "agent_id"],
|
|
556
|
+
"columnsTo": ["tenant_id", "project_id", "id"],
|
|
611
557
|
"onDelete": "cascade",
|
|
612
558
|
"onUpdate": "no action"
|
|
613
559
|
}
|
|
@@ -615,12 +561,7 @@
|
|
|
615
561
|
"compositePrimaryKeys": {
|
|
616
562
|
"context_configs_tenant_id_project_id_agent_id_id_pk": {
|
|
617
563
|
"name": "context_configs_tenant_id_project_id_agent_id_id_pk",
|
|
618
|
-
"columns": [
|
|
619
|
-
"tenant_id",
|
|
620
|
-
"project_id",
|
|
621
|
-
"agent_id",
|
|
622
|
-
"id"
|
|
623
|
-
]
|
|
564
|
+
"columns": ["tenant_id", "project_id", "agent_id", "id"]
|
|
624
565
|
}
|
|
625
566
|
},
|
|
626
567
|
"uniqueConstraints": {},
|
|
@@ -701,14 +642,8 @@
|
|
|
701
642
|
"name": "conversations_project_fk",
|
|
702
643
|
"tableFrom": "conversations",
|
|
703
644
|
"tableTo": "projects",
|
|
704
|
-
"columnsFrom": [
|
|
705
|
-
|
|
706
|
-
"project_id"
|
|
707
|
-
],
|
|
708
|
-
"columnsTo": [
|
|
709
|
-
"tenant_id",
|
|
710
|
-
"id"
|
|
711
|
-
],
|
|
645
|
+
"columnsFrom": ["tenant_id", "project_id"],
|
|
646
|
+
"columnsTo": ["tenant_id", "id"],
|
|
712
647
|
"onDelete": "cascade",
|
|
713
648
|
"onUpdate": "no action"
|
|
714
649
|
}
|
|
@@ -716,11 +651,7 @@
|
|
|
716
651
|
"compositePrimaryKeys": {
|
|
717
652
|
"conversations_tenant_id_project_id_id_pk": {
|
|
718
653
|
"name": "conversations_tenant_id_project_id_id_pk",
|
|
719
|
-
"columns": [
|
|
720
|
-
"tenant_id",
|
|
721
|
-
"project_id",
|
|
722
|
-
"id"
|
|
723
|
-
]
|
|
654
|
+
"columns": ["tenant_id", "project_id", "id"]
|
|
724
655
|
}
|
|
725
656
|
},
|
|
726
657
|
"uniqueConstraints": {},
|
|
@@ -795,14 +726,8 @@
|
|
|
795
726
|
"name": "credential_references_project_fk",
|
|
796
727
|
"tableFrom": "credential_references",
|
|
797
728
|
"tableTo": "projects",
|
|
798
|
-
"columnsFrom": [
|
|
799
|
-
|
|
800
|
-
"project_id"
|
|
801
|
-
],
|
|
802
|
-
"columnsTo": [
|
|
803
|
-
"tenant_id",
|
|
804
|
-
"id"
|
|
805
|
-
],
|
|
729
|
+
"columnsFrom": ["tenant_id", "project_id"],
|
|
730
|
+
"columnsTo": ["tenant_id", "id"],
|
|
806
731
|
"onDelete": "cascade",
|
|
807
732
|
"onUpdate": "no action"
|
|
808
733
|
}
|
|
@@ -810,11 +735,7 @@
|
|
|
810
735
|
"compositePrimaryKeys": {
|
|
811
736
|
"credential_references_tenant_id_project_id_id_pk": {
|
|
812
737
|
"name": "credential_references_tenant_id_project_id_id_pk",
|
|
813
|
-
"columns": [
|
|
814
|
-
"tenant_id",
|
|
815
|
-
"project_id",
|
|
816
|
-
"id"
|
|
817
|
-
]
|
|
738
|
+
"columns": ["tenant_id", "project_id", "id"]
|
|
818
739
|
}
|
|
819
740
|
},
|
|
820
741
|
"uniqueConstraints": {},
|
|
@@ -889,14 +810,8 @@
|
|
|
889
810
|
"name": "data_components_project_fk",
|
|
890
811
|
"tableFrom": "data_components",
|
|
891
812
|
"tableTo": "projects",
|
|
892
|
-
"columnsFrom": [
|
|
893
|
-
|
|
894
|
-
"project_id"
|
|
895
|
-
],
|
|
896
|
-
"columnsTo": [
|
|
897
|
-
"tenant_id",
|
|
898
|
-
"id"
|
|
899
|
-
],
|
|
813
|
+
"columnsFrom": ["tenant_id", "project_id"],
|
|
814
|
+
"columnsTo": ["tenant_id", "id"],
|
|
900
815
|
"onDelete": "cascade",
|
|
901
816
|
"onUpdate": "no action"
|
|
902
817
|
}
|
|
@@ -904,11 +819,7 @@
|
|
|
904
819
|
"compositePrimaryKeys": {
|
|
905
820
|
"data_components_tenant_id_project_id_id_pk": {
|
|
906
821
|
"name": "data_components_tenant_id_project_id_id_pk",
|
|
907
|
-
"columns": [
|
|
908
|
-
"tenant_id",
|
|
909
|
-
"project_id",
|
|
910
|
-
"id"
|
|
911
|
-
]
|
|
822
|
+
"columns": ["tenant_id", "project_id", "id"]
|
|
912
823
|
}
|
|
913
824
|
},
|
|
914
825
|
"uniqueConstraints": {},
|
|
@@ -983,14 +894,8 @@
|
|
|
983
894
|
"name": "external_agents_project_fk",
|
|
984
895
|
"tableFrom": "external_agents",
|
|
985
896
|
"tableTo": "projects",
|
|
986
|
-
"columnsFrom": [
|
|
987
|
-
|
|
988
|
-
"project_id"
|
|
989
|
-
],
|
|
990
|
-
"columnsTo": [
|
|
991
|
-
"tenant_id",
|
|
992
|
-
"id"
|
|
993
|
-
],
|
|
897
|
+
"columnsFrom": ["tenant_id", "project_id"],
|
|
898
|
+
"columnsTo": ["tenant_id", "id"],
|
|
994
899
|
"onDelete": "cascade",
|
|
995
900
|
"onUpdate": "no action"
|
|
996
901
|
},
|
|
@@ -998,16 +903,8 @@
|
|
|
998
903
|
"name": "external_agents_credential_reference_fk",
|
|
999
904
|
"tableFrom": "external_agents",
|
|
1000
905
|
"tableTo": "credential_references",
|
|
1001
|
-
"columnsFrom": [
|
|
1002
|
-
|
|
1003
|
-
"project_id",
|
|
1004
|
-
"credential_reference_id"
|
|
1005
|
-
],
|
|
1006
|
-
"columnsTo": [
|
|
1007
|
-
"tenant_id",
|
|
1008
|
-
"project_id",
|
|
1009
|
-
"id"
|
|
1010
|
-
],
|
|
906
|
+
"columnsFrom": ["tenant_id", "project_id", "credential_reference_id"],
|
|
907
|
+
"columnsTo": ["tenant_id", "project_id", "id"],
|
|
1011
908
|
"onDelete": "cascade",
|
|
1012
909
|
"onUpdate": "no action"
|
|
1013
910
|
}
|
|
@@ -1015,11 +912,7 @@
|
|
|
1015
912
|
"compositePrimaryKeys": {
|
|
1016
913
|
"external_agents_tenant_id_project_id_id_pk": {
|
|
1017
914
|
"name": "external_agents_tenant_id_project_id_id_pk",
|
|
1018
|
-
"columns": [
|
|
1019
|
-
"tenant_id",
|
|
1020
|
-
"project_id",
|
|
1021
|
-
"id"
|
|
1022
|
-
]
|
|
915
|
+
"columns": ["tenant_id", "project_id", "id"]
|
|
1023
916
|
}
|
|
1024
917
|
},
|
|
1025
918
|
"uniqueConstraints": {},
|
|
@@ -1094,16 +987,8 @@
|
|
|
1094
987
|
"name": "function_tools_agent_fk",
|
|
1095
988
|
"tableFrom": "function_tools",
|
|
1096
989
|
"tableTo": "agent",
|
|
1097
|
-
"columnsFrom": [
|
|
1098
|
-
|
|
1099
|
-
"project_id",
|
|
1100
|
-
"agent_id"
|
|
1101
|
-
],
|
|
1102
|
-
"columnsTo": [
|
|
1103
|
-
"tenant_id",
|
|
1104
|
-
"project_id",
|
|
1105
|
-
"id"
|
|
1106
|
-
],
|
|
990
|
+
"columnsFrom": ["tenant_id", "project_id", "agent_id"],
|
|
991
|
+
"columnsTo": ["tenant_id", "project_id", "id"],
|
|
1107
992
|
"onDelete": "cascade",
|
|
1108
993
|
"onUpdate": "no action"
|
|
1109
994
|
},
|
|
@@ -1111,16 +996,8 @@
|
|
|
1111
996
|
"name": "function_tools_function_fk",
|
|
1112
997
|
"tableFrom": "function_tools",
|
|
1113
998
|
"tableTo": "functions",
|
|
1114
|
-
"columnsFrom": [
|
|
1115
|
-
|
|
1116
|
-
"project_id",
|
|
1117
|
-
"function_id"
|
|
1118
|
-
],
|
|
1119
|
-
"columnsTo": [
|
|
1120
|
-
"tenant_id",
|
|
1121
|
-
"project_id",
|
|
1122
|
-
"id"
|
|
1123
|
-
],
|
|
999
|
+
"columnsFrom": ["tenant_id", "project_id", "function_id"],
|
|
1000
|
+
"columnsTo": ["tenant_id", "project_id", "id"],
|
|
1124
1001
|
"onDelete": "cascade",
|
|
1125
1002
|
"onUpdate": "no action"
|
|
1126
1003
|
}
|
|
@@ -1128,12 +1005,7 @@
|
|
|
1128
1005
|
"compositePrimaryKeys": {
|
|
1129
1006
|
"function_tools_tenant_id_project_id_agent_id_id_pk": {
|
|
1130
1007
|
"name": "function_tools_tenant_id_project_id_agent_id_id_pk",
|
|
1131
|
-
"columns": [
|
|
1132
|
-
"tenant_id",
|
|
1133
|
-
"project_id",
|
|
1134
|
-
"agent_id",
|
|
1135
|
-
"id"
|
|
1136
|
-
]
|
|
1008
|
+
"columns": ["tenant_id", "project_id", "agent_id", "id"]
|
|
1137
1009
|
}
|
|
1138
1010
|
},
|
|
1139
1011
|
"uniqueConstraints": {},
|
|
@@ -1202,14 +1074,8 @@
|
|
|
1202
1074
|
"name": "functions_project_fk",
|
|
1203
1075
|
"tableFrom": "functions",
|
|
1204
1076
|
"tableTo": "projects",
|
|
1205
|
-
"columnsFrom": [
|
|
1206
|
-
|
|
1207
|
-
"project_id"
|
|
1208
|
-
],
|
|
1209
|
-
"columnsTo": [
|
|
1210
|
-
"tenant_id",
|
|
1211
|
-
"id"
|
|
1212
|
-
],
|
|
1077
|
+
"columnsFrom": ["tenant_id", "project_id"],
|
|
1078
|
+
"columnsTo": ["tenant_id", "id"],
|
|
1213
1079
|
"onDelete": "cascade",
|
|
1214
1080
|
"onUpdate": "no action"
|
|
1215
1081
|
}
|
|
@@ -1217,11 +1083,7 @@
|
|
|
1217
1083
|
"compositePrimaryKeys": {
|
|
1218
1084
|
"functions_tenant_id_project_id_id_pk": {
|
|
1219
1085
|
"name": "functions_tenant_id_project_id_id_pk",
|
|
1220
|
-
"columns": [
|
|
1221
|
-
"tenant_id",
|
|
1222
|
-
"project_id",
|
|
1223
|
-
"id"
|
|
1224
|
-
]
|
|
1086
|
+
"columns": ["tenant_id", "project_id", "id"]
|
|
1225
1087
|
}
|
|
1226
1088
|
},
|
|
1227
1089
|
"uniqueConstraints": {},
|
|
@@ -1398,14 +1260,8 @@
|
|
|
1398
1260
|
"name": "ledger_artifacts_project_fk",
|
|
1399
1261
|
"tableFrom": "ledger_artifacts",
|
|
1400
1262
|
"tableTo": "projects",
|
|
1401
|
-
"columnsFrom": [
|
|
1402
|
-
|
|
1403
|
-
"project_id"
|
|
1404
|
-
],
|
|
1405
|
-
"columnsTo": [
|
|
1406
|
-
"tenant_id",
|
|
1407
|
-
"id"
|
|
1408
|
-
],
|
|
1263
|
+
"columnsFrom": ["tenant_id", "project_id"],
|
|
1264
|
+
"columnsTo": ["tenant_id", "id"],
|
|
1409
1265
|
"onDelete": "cascade",
|
|
1410
1266
|
"onUpdate": "no action"
|
|
1411
1267
|
}
|
|
@@ -1413,23 +1269,14 @@
|
|
|
1413
1269
|
"compositePrimaryKeys": {
|
|
1414
1270
|
"ledger_artifacts_tenant_id_project_id_id_task_id_pk": {
|
|
1415
1271
|
"name": "ledger_artifacts_tenant_id_project_id_id_task_id_pk",
|
|
1416
|
-
"columns": [
|
|
1417
|
-
"tenant_id",
|
|
1418
|
-
"project_id",
|
|
1419
|
-
"id",
|
|
1420
|
-
"task_id"
|
|
1421
|
-
]
|
|
1272
|
+
"columns": ["tenant_id", "project_id", "id", "task_id"]
|
|
1422
1273
|
}
|
|
1423
1274
|
},
|
|
1424
1275
|
"uniqueConstraints": {
|
|
1425
1276
|
"ledger_artifacts_task_context_name_unique": {
|
|
1426
1277
|
"name": "ledger_artifacts_task_context_name_unique",
|
|
1427
1278
|
"nullsNotDistinct": false,
|
|
1428
|
-
"columns": [
|
|
1429
|
-
"task_id",
|
|
1430
|
-
"context_id",
|
|
1431
|
-
"name"
|
|
1432
|
-
]
|
|
1279
|
+
"columns": ["task_id", "context_id", "name"]
|
|
1433
1280
|
}
|
|
1434
1281
|
},
|
|
1435
1282
|
"policies": {},
|
|
@@ -1577,14 +1424,8 @@
|
|
|
1577
1424
|
"name": "messages_project_fk",
|
|
1578
1425
|
"tableFrom": "messages",
|
|
1579
1426
|
"tableTo": "projects",
|
|
1580
|
-
"columnsFrom": [
|
|
1581
|
-
|
|
1582
|
-
"project_id"
|
|
1583
|
-
],
|
|
1584
|
-
"columnsTo": [
|
|
1585
|
-
"tenant_id",
|
|
1586
|
-
"id"
|
|
1587
|
-
],
|
|
1427
|
+
"columnsFrom": ["tenant_id", "project_id"],
|
|
1428
|
+
"columnsTo": ["tenant_id", "id"],
|
|
1588
1429
|
"onDelete": "cascade",
|
|
1589
1430
|
"onUpdate": "no action"
|
|
1590
1431
|
}
|
|
@@ -1592,11 +1433,7 @@
|
|
|
1592
1433
|
"compositePrimaryKeys": {
|
|
1593
1434
|
"messages_tenant_id_project_id_id_pk": {
|
|
1594
1435
|
"name": "messages_tenant_id_project_id_id_pk",
|
|
1595
|
-
"columns": [
|
|
1596
|
-
"tenant_id",
|
|
1597
|
-
"project_id",
|
|
1598
|
-
"id"
|
|
1599
|
-
]
|
|
1436
|
+
"columns": ["tenant_id", "project_id", "id"]
|
|
1600
1437
|
}
|
|
1601
1438
|
},
|
|
1602
1439
|
"uniqueConstraints": {},
|
|
@@ -1664,10 +1501,7 @@
|
|
|
1664
1501
|
"compositePrimaryKeys": {
|
|
1665
1502
|
"projects_tenant_id_id_pk": {
|
|
1666
1503
|
"name": "projects_tenant_id_id_pk",
|
|
1667
|
-
"columns": [
|
|
1668
|
-
"tenant_id",
|
|
1669
|
-
"id"
|
|
1670
|
-
]
|
|
1504
|
+
"columns": ["tenant_id", "id"]
|
|
1671
1505
|
}
|
|
1672
1506
|
},
|
|
1673
1507
|
"uniqueConstraints": {},
|
|
@@ -1729,18 +1563,8 @@
|
|
|
1729
1563
|
"name": "sub_agent_artifact_components_sub_agent_fk",
|
|
1730
1564
|
"tableFrom": "sub_agent_artifact_components",
|
|
1731
1565
|
"tableTo": "sub_agents",
|
|
1732
|
-
"columnsFrom": [
|
|
1733
|
-
|
|
1734
|
-
"project_id",
|
|
1735
|
-
"agent_id",
|
|
1736
|
-
"sub_agent_id"
|
|
1737
|
-
],
|
|
1738
|
-
"columnsTo": [
|
|
1739
|
-
"tenant_id",
|
|
1740
|
-
"project_id",
|
|
1741
|
-
"agent_id",
|
|
1742
|
-
"id"
|
|
1743
|
-
],
|
|
1566
|
+
"columnsFrom": ["tenant_id", "project_id", "agent_id", "sub_agent_id"],
|
|
1567
|
+
"columnsTo": ["tenant_id", "project_id", "agent_id", "id"],
|
|
1744
1568
|
"onDelete": "cascade",
|
|
1745
1569
|
"onUpdate": "no action"
|
|
1746
1570
|
},
|
|
@@ -1748,16 +1572,8 @@
|
|
|
1748
1572
|
"name": "sub_agent_artifact_components_artifact_component_fk",
|
|
1749
1573
|
"tableFrom": "sub_agent_artifact_components",
|
|
1750
1574
|
"tableTo": "artifact_components",
|
|
1751
|
-
"columnsFrom": [
|
|
1752
|
-
|
|
1753
|
-
"project_id",
|
|
1754
|
-
"artifact_component_id"
|
|
1755
|
-
],
|
|
1756
|
-
"columnsTo": [
|
|
1757
|
-
"tenant_id",
|
|
1758
|
-
"project_id",
|
|
1759
|
-
"id"
|
|
1760
|
-
],
|
|
1575
|
+
"columnsFrom": ["tenant_id", "project_id", "artifact_component_id"],
|
|
1576
|
+
"columnsTo": ["tenant_id", "project_id", "id"],
|
|
1761
1577
|
"onDelete": "cascade",
|
|
1762
1578
|
"onUpdate": "no action"
|
|
1763
1579
|
}
|
|
@@ -1765,13 +1581,7 @@
|
|
|
1765
1581
|
"compositePrimaryKeys": {
|
|
1766
1582
|
"sub_agent_artifact_components_tenant_id_project_id_agent_id_sub_agent_id_id_pk": {
|
|
1767
1583
|
"name": "sub_agent_artifact_components_tenant_id_project_id_agent_id_sub_agent_id_id_pk",
|
|
1768
|
-
"columns": [
|
|
1769
|
-
"tenant_id",
|
|
1770
|
-
"project_id",
|
|
1771
|
-
"agent_id",
|
|
1772
|
-
"sub_agent_id",
|
|
1773
|
-
"id"
|
|
1774
|
-
]
|
|
1584
|
+
"columns": ["tenant_id", "project_id", "agent_id", "sub_agent_id", "id"]
|
|
1775
1585
|
}
|
|
1776
1586
|
},
|
|
1777
1587
|
"uniqueConstraints": {},
|
|
@@ -1833,18 +1643,8 @@
|
|
|
1833
1643
|
"name": "sub_agent_data_components_sub_agent_fk",
|
|
1834
1644
|
"tableFrom": "sub_agent_data_components",
|
|
1835
1645
|
"tableTo": "sub_agents",
|
|
1836
|
-
"columnsFrom": [
|
|
1837
|
-
|
|
1838
|
-
"project_id",
|
|
1839
|
-
"agent_id",
|
|
1840
|
-
"sub_agent_id"
|
|
1841
|
-
],
|
|
1842
|
-
"columnsTo": [
|
|
1843
|
-
"tenant_id",
|
|
1844
|
-
"project_id",
|
|
1845
|
-
"agent_id",
|
|
1846
|
-
"id"
|
|
1847
|
-
],
|
|
1646
|
+
"columnsFrom": ["tenant_id", "project_id", "agent_id", "sub_agent_id"],
|
|
1647
|
+
"columnsTo": ["tenant_id", "project_id", "agent_id", "id"],
|
|
1848
1648
|
"onDelete": "cascade",
|
|
1849
1649
|
"onUpdate": "no action"
|
|
1850
1650
|
},
|
|
@@ -1852,16 +1652,8 @@
|
|
|
1852
1652
|
"name": "sub_agent_data_components_data_component_fk",
|
|
1853
1653
|
"tableFrom": "sub_agent_data_components",
|
|
1854
1654
|
"tableTo": "data_components",
|
|
1855
|
-
"columnsFrom": [
|
|
1856
|
-
|
|
1857
|
-
"project_id",
|
|
1858
|
-
"data_component_id"
|
|
1859
|
-
],
|
|
1860
|
-
"columnsTo": [
|
|
1861
|
-
"tenant_id",
|
|
1862
|
-
"project_id",
|
|
1863
|
-
"id"
|
|
1864
|
-
],
|
|
1655
|
+
"columnsFrom": ["tenant_id", "project_id", "data_component_id"],
|
|
1656
|
+
"columnsTo": ["tenant_id", "project_id", "id"],
|
|
1865
1657
|
"onDelete": "cascade",
|
|
1866
1658
|
"onUpdate": "no action"
|
|
1867
1659
|
}
|
|
@@ -1869,11 +1661,7 @@
|
|
|
1869
1661
|
"compositePrimaryKeys": {
|
|
1870
1662
|
"sub_agent_data_components_tenant_id_project_id_id_pk": {
|
|
1871
1663
|
"name": "sub_agent_data_components_tenant_id_project_id_id_pk",
|
|
1872
|
-
"columns": [
|
|
1873
|
-
"tenant_id",
|
|
1874
|
-
"project_id",
|
|
1875
|
-
"id"
|
|
1876
|
-
]
|
|
1664
|
+
"columns": ["tenant_id", "project_id", "id"]
|
|
1877
1665
|
}
|
|
1878
1666
|
},
|
|
1879
1667
|
"uniqueConstraints": {},
|
|
@@ -1948,18 +1736,8 @@
|
|
|
1948
1736
|
"name": "sub_agent_external_agent_relations_sub_agent_fk",
|
|
1949
1737
|
"tableFrom": "sub_agent_external_agent_relations",
|
|
1950
1738
|
"tableTo": "sub_agents",
|
|
1951
|
-
"columnsFrom": [
|
|
1952
|
-
|
|
1953
|
-
"project_id",
|
|
1954
|
-
"agent_id",
|
|
1955
|
-
"sub_agent_id"
|
|
1956
|
-
],
|
|
1957
|
-
"columnsTo": [
|
|
1958
|
-
"tenant_id",
|
|
1959
|
-
"project_id",
|
|
1960
|
-
"agent_id",
|
|
1961
|
-
"id"
|
|
1962
|
-
],
|
|
1739
|
+
"columnsFrom": ["tenant_id", "project_id", "agent_id", "sub_agent_id"],
|
|
1740
|
+
"columnsTo": ["tenant_id", "project_id", "agent_id", "id"],
|
|
1963
1741
|
"onDelete": "cascade",
|
|
1964
1742
|
"onUpdate": "no action"
|
|
1965
1743
|
},
|
|
@@ -1967,16 +1745,8 @@
|
|
|
1967
1745
|
"name": "sub_agent_external_agent_relations_external_agent_fk",
|
|
1968
1746
|
"tableFrom": "sub_agent_external_agent_relations",
|
|
1969
1747
|
"tableTo": "external_agents",
|
|
1970
|
-
"columnsFrom": [
|
|
1971
|
-
|
|
1972
|
-
"project_id",
|
|
1973
|
-
"external_agent_id"
|
|
1974
|
-
],
|
|
1975
|
-
"columnsTo": [
|
|
1976
|
-
"tenant_id",
|
|
1977
|
-
"project_id",
|
|
1978
|
-
"id"
|
|
1979
|
-
],
|
|
1748
|
+
"columnsFrom": ["tenant_id", "project_id", "external_agent_id"],
|
|
1749
|
+
"columnsTo": ["tenant_id", "project_id", "id"],
|
|
1980
1750
|
"onDelete": "cascade",
|
|
1981
1751
|
"onUpdate": "no action"
|
|
1982
1752
|
}
|
|
@@ -1984,12 +1754,7 @@
|
|
|
1984
1754
|
"compositePrimaryKeys": {
|
|
1985
1755
|
"sub_agent_external_agent_relations_tenant_id_project_id_agent_id_id_pk": {
|
|
1986
1756
|
"name": "sub_agent_external_agent_relations_tenant_id_project_id_agent_id_id_pk",
|
|
1987
|
-
"columns": [
|
|
1988
|
-
"tenant_id",
|
|
1989
|
-
"project_id",
|
|
1990
|
-
"agent_id",
|
|
1991
|
-
"id"
|
|
1992
|
-
]
|
|
1757
|
+
"columns": ["tenant_id", "project_id", "agent_id", "id"]
|
|
1993
1758
|
}
|
|
1994
1759
|
},
|
|
1995
1760
|
"uniqueConstraints": {},
|
|
@@ -2058,18 +1823,8 @@
|
|
|
2058
1823
|
"name": "sub_agent_function_tool_relations_sub_agent_fk",
|
|
2059
1824
|
"tableFrom": "sub_agent_function_tool_relations",
|
|
2060
1825
|
"tableTo": "sub_agents",
|
|
2061
|
-
"columnsFrom": [
|
|
2062
|
-
|
|
2063
|
-
"project_id",
|
|
2064
|
-
"agent_id",
|
|
2065
|
-
"sub_agent_id"
|
|
2066
|
-
],
|
|
2067
|
-
"columnsTo": [
|
|
2068
|
-
"tenant_id",
|
|
2069
|
-
"project_id",
|
|
2070
|
-
"agent_id",
|
|
2071
|
-
"id"
|
|
2072
|
-
],
|
|
1826
|
+
"columnsFrom": ["tenant_id", "project_id", "agent_id", "sub_agent_id"],
|
|
1827
|
+
"columnsTo": ["tenant_id", "project_id", "agent_id", "id"],
|
|
2073
1828
|
"onDelete": "cascade",
|
|
2074
1829
|
"onUpdate": "no action"
|
|
2075
1830
|
},
|
|
@@ -2077,18 +1832,8 @@
|
|
|
2077
1832
|
"name": "sub_agent_function_tool_relations_function_tool_fk",
|
|
2078
1833
|
"tableFrom": "sub_agent_function_tool_relations",
|
|
2079
1834
|
"tableTo": "function_tools",
|
|
2080
|
-
"columnsFrom": [
|
|
2081
|
-
|
|
2082
|
-
"project_id",
|
|
2083
|
-
"agent_id",
|
|
2084
|
-
"function_tool_id"
|
|
2085
|
-
],
|
|
2086
|
-
"columnsTo": [
|
|
2087
|
-
"tenant_id",
|
|
2088
|
-
"project_id",
|
|
2089
|
-
"agent_id",
|
|
2090
|
-
"id"
|
|
2091
|
-
],
|
|
1835
|
+
"columnsFrom": ["tenant_id", "project_id", "agent_id", "function_tool_id"],
|
|
1836
|
+
"columnsTo": ["tenant_id", "project_id", "agent_id", "id"],
|
|
2092
1837
|
"onDelete": "cascade",
|
|
2093
1838
|
"onUpdate": "no action"
|
|
2094
1839
|
}
|
|
@@ -2096,12 +1841,7 @@
|
|
|
2096
1841
|
"compositePrimaryKeys": {
|
|
2097
1842
|
"sub_agent_function_tool_relations_tenant_id_project_id_agent_id_id_pk": {
|
|
2098
1843
|
"name": "sub_agent_function_tool_relations_tenant_id_project_id_agent_id_id_pk",
|
|
2099
|
-
"columns": [
|
|
2100
|
-
"tenant_id",
|
|
2101
|
-
"project_id",
|
|
2102
|
-
"agent_id",
|
|
2103
|
-
"id"
|
|
2104
|
-
]
|
|
1844
|
+
"columns": ["tenant_id", "project_id", "agent_id", "id"]
|
|
2105
1845
|
}
|
|
2106
1846
|
},
|
|
2107
1847
|
"uniqueConstraints": {},
|
|
@@ -2176,16 +1916,8 @@
|
|
|
2176
1916
|
"name": "sub_agent_relations_agent_fk",
|
|
2177
1917
|
"tableFrom": "sub_agent_relations",
|
|
2178
1918
|
"tableTo": "agent",
|
|
2179
|
-
"columnsFrom": [
|
|
2180
|
-
|
|
2181
|
-
"project_id",
|
|
2182
|
-
"agent_id"
|
|
2183
|
-
],
|
|
2184
|
-
"columnsTo": [
|
|
2185
|
-
"tenant_id",
|
|
2186
|
-
"project_id",
|
|
2187
|
-
"id"
|
|
2188
|
-
],
|
|
1919
|
+
"columnsFrom": ["tenant_id", "project_id", "agent_id"],
|
|
1920
|
+
"columnsTo": ["tenant_id", "project_id", "id"],
|
|
2189
1921
|
"onDelete": "cascade",
|
|
2190
1922
|
"onUpdate": "no action"
|
|
2191
1923
|
}
|
|
@@ -2193,12 +1925,7 @@
|
|
|
2193
1925
|
"compositePrimaryKeys": {
|
|
2194
1926
|
"sub_agent_relations_tenant_id_project_id_agent_id_id_pk": {
|
|
2195
1927
|
"name": "sub_agent_relations_tenant_id_project_id_agent_id_id_pk",
|
|
2196
|
-
"columns": [
|
|
2197
|
-
"tenant_id",
|
|
2198
|
-
"project_id",
|
|
2199
|
-
"agent_id",
|
|
2200
|
-
"id"
|
|
2201
|
-
]
|
|
1928
|
+
"columns": ["tenant_id", "project_id", "agent_id", "id"]
|
|
2202
1929
|
}
|
|
2203
1930
|
},
|
|
2204
1931
|
"uniqueConstraints": {},
|
|
@@ -2273,18 +2000,8 @@
|
|
|
2273
2000
|
"name": "sub_agent_team_agent_relations_sub_agent_fk",
|
|
2274
2001
|
"tableFrom": "sub_agent_team_agent_relations",
|
|
2275
2002
|
"tableTo": "sub_agents",
|
|
2276
|
-
"columnsFrom": [
|
|
2277
|
-
|
|
2278
|
-
"project_id",
|
|
2279
|
-
"agent_id",
|
|
2280
|
-
"sub_agent_id"
|
|
2281
|
-
],
|
|
2282
|
-
"columnsTo": [
|
|
2283
|
-
"tenant_id",
|
|
2284
|
-
"project_id",
|
|
2285
|
-
"agent_id",
|
|
2286
|
-
"id"
|
|
2287
|
-
],
|
|
2003
|
+
"columnsFrom": ["tenant_id", "project_id", "agent_id", "sub_agent_id"],
|
|
2004
|
+
"columnsTo": ["tenant_id", "project_id", "agent_id", "id"],
|
|
2288
2005
|
"onDelete": "cascade",
|
|
2289
2006
|
"onUpdate": "no action"
|
|
2290
2007
|
},
|
|
@@ -2292,16 +2009,8 @@
|
|
|
2292
2009
|
"name": "sub_agent_team_agent_relations_target_agent_fk",
|
|
2293
2010
|
"tableFrom": "sub_agent_team_agent_relations",
|
|
2294
2011
|
"tableTo": "agent",
|
|
2295
|
-
"columnsFrom": [
|
|
2296
|
-
|
|
2297
|
-
"project_id",
|
|
2298
|
-
"target_agent_id"
|
|
2299
|
-
],
|
|
2300
|
-
"columnsTo": [
|
|
2301
|
-
"tenant_id",
|
|
2302
|
-
"project_id",
|
|
2303
|
-
"id"
|
|
2304
|
-
],
|
|
2012
|
+
"columnsFrom": ["tenant_id", "project_id", "target_agent_id"],
|
|
2013
|
+
"columnsTo": ["tenant_id", "project_id", "id"],
|
|
2305
2014
|
"onDelete": "cascade",
|
|
2306
2015
|
"onUpdate": "no action"
|
|
2307
2016
|
}
|
|
@@ -2309,12 +2018,7 @@
|
|
|
2309
2018
|
"compositePrimaryKeys": {
|
|
2310
2019
|
"sub_agent_team_agent_relations_tenant_id_project_id_agent_id_id_pk": {
|
|
2311
2020
|
"name": "sub_agent_team_agent_relations_tenant_id_project_id_agent_id_id_pk",
|
|
2312
|
-
"columns": [
|
|
2313
|
-
"tenant_id",
|
|
2314
|
-
"project_id",
|
|
2315
|
-
"agent_id",
|
|
2316
|
-
"id"
|
|
2317
|
-
]
|
|
2021
|
+
"columns": ["tenant_id", "project_id", "agent_id", "id"]
|
|
2318
2022
|
}
|
|
2319
2023
|
},
|
|
2320
2024
|
"uniqueConstraints": {},
|
|
@@ -2395,18 +2099,8 @@
|
|
|
2395
2099
|
"name": "sub_agent_tool_relations_agent_fk",
|
|
2396
2100
|
"tableFrom": "sub_agent_tool_relations",
|
|
2397
2101
|
"tableTo": "sub_agents",
|
|
2398
|
-
"columnsFrom": [
|
|
2399
|
-
|
|
2400
|
-
"project_id",
|
|
2401
|
-
"agent_id",
|
|
2402
|
-
"sub_agent_id"
|
|
2403
|
-
],
|
|
2404
|
-
"columnsTo": [
|
|
2405
|
-
"tenant_id",
|
|
2406
|
-
"project_id",
|
|
2407
|
-
"agent_id",
|
|
2408
|
-
"id"
|
|
2409
|
-
],
|
|
2102
|
+
"columnsFrom": ["tenant_id", "project_id", "agent_id", "sub_agent_id"],
|
|
2103
|
+
"columnsTo": ["tenant_id", "project_id", "agent_id", "id"],
|
|
2410
2104
|
"onDelete": "cascade",
|
|
2411
2105
|
"onUpdate": "no action"
|
|
2412
2106
|
},
|
|
@@ -2414,16 +2108,8 @@
|
|
|
2414
2108
|
"name": "sub_agent_tool_relations_tool_fk",
|
|
2415
2109
|
"tableFrom": "sub_agent_tool_relations",
|
|
2416
2110
|
"tableTo": "tools",
|
|
2417
|
-
"columnsFrom": [
|
|
2418
|
-
|
|
2419
|
-
"project_id",
|
|
2420
|
-
"tool_id"
|
|
2421
|
-
],
|
|
2422
|
-
"columnsTo": [
|
|
2423
|
-
"tenant_id",
|
|
2424
|
-
"project_id",
|
|
2425
|
-
"id"
|
|
2426
|
-
],
|
|
2111
|
+
"columnsFrom": ["tenant_id", "project_id", "tool_id"],
|
|
2112
|
+
"columnsTo": ["tenant_id", "project_id", "id"],
|
|
2427
2113
|
"onDelete": "cascade",
|
|
2428
2114
|
"onUpdate": "no action"
|
|
2429
2115
|
}
|
|
@@ -2431,12 +2117,7 @@
|
|
|
2431
2117
|
"compositePrimaryKeys": {
|
|
2432
2118
|
"sub_agent_tool_relations_tenant_id_project_id_agent_id_id_pk": {
|
|
2433
2119
|
"name": "sub_agent_tool_relations_tenant_id_project_id_agent_id_id_pk",
|
|
2434
|
-
"columns": [
|
|
2435
|
-
"tenant_id",
|
|
2436
|
-
"project_id",
|
|
2437
|
-
"agent_id",
|
|
2438
|
-
"id"
|
|
2439
|
-
]
|
|
2120
|
+
"columns": ["tenant_id", "project_id", "agent_id", "id"]
|
|
2440
2121
|
}
|
|
2441
2122
|
},
|
|
2442
2123
|
"uniqueConstraints": {},
|
|
@@ -2529,16 +2210,8 @@
|
|
|
2529
2210
|
"name": "sub_agents_agents_fk",
|
|
2530
2211
|
"tableFrom": "sub_agents",
|
|
2531
2212
|
"tableTo": "agent",
|
|
2532
|
-
"columnsFrom": [
|
|
2533
|
-
|
|
2534
|
-
"project_id",
|
|
2535
|
-
"agent_id"
|
|
2536
|
-
],
|
|
2537
|
-
"columnsTo": [
|
|
2538
|
-
"tenant_id",
|
|
2539
|
-
"project_id",
|
|
2540
|
-
"id"
|
|
2541
|
-
],
|
|
2213
|
+
"columnsFrom": ["tenant_id", "project_id", "agent_id"],
|
|
2214
|
+
"columnsTo": ["tenant_id", "project_id", "id"],
|
|
2542
2215
|
"onDelete": "cascade",
|
|
2543
2216
|
"onUpdate": "no action"
|
|
2544
2217
|
}
|
|
@@ -2546,12 +2219,7 @@
|
|
|
2546
2219
|
"compositePrimaryKeys": {
|
|
2547
2220
|
"sub_agents_tenant_id_project_id_agent_id_id_pk": {
|
|
2548
2221
|
"name": "sub_agents_tenant_id_project_id_agent_id_id_pk",
|
|
2549
|
-
"columns": [
|
|
2550
|
-
"tenant_id",
|
|
2551
|
-
"project_id",
|
|
2552
|
-
"agent_id",
|
|
2553
|
-
"id"
|
|
2554
|
-
]
|
|
2222
|
+
"columns": ["tenant_id", "project_id", "agent_id", "id"]
|
|
2555
2223
|
}
|
|
2556
2224
|
},
|
|
2557
2225
|
"uniqueConstraints": {},
|
|
@@ -2621,14 +2289,8 @@
|
|
|
2621
2289
|
"name": "task_relations_project_fk",
|
|
2622
2290
|
"tableFrom": "task_relations",
|
|
2623
2291
|
"tableTo": "projects",
|
|
2624
|
-
"columnsFrom": [
|
|
2625
|
-
|
|
2626
|
-
"project_id"
|
|
2627
|
-
],
|
|
2628
|
-
"columnsTo": [
|
|
2629
|
-
"tenant_id",
|
|
2630
|
-
"id"
|
|
2631
|
-
],
|
|
2292
|
+
"columnsFrom": ["tenant_id", "project_id"],
|
|
2293
|
+
"columnsTo": ["tenant_id", "id"],
|
|
2632
2294
|
"onDelete": "cascade",
|
|
2633
2295
|
"onUpdate": "no action"
|
|
2634
2296
|
}
|
|
@@ -2636,11 +2298,7 @@
|
|
|
2636
2298
|
"compositePrimaryKeys": {
|
|
2637
2299
|
"task_relations_tenant_id_project_id_id_pk": {
|
|
2638
2300
|
"name": "task_relations_tenant_id_project_id_id_pk",
|
|
2639
|
-
"columns": [
|
|
2640
|
-
"tenant_id",
|
|
2641
|
-
"project_id",
|
|
2642
|
-
"id"
|
|
2643
|
-
]
|
|
2301
|
+
"columns": ["tenant_id", "project_id", "id"]
|
|
2644
2302
|
}
|
|
2645
2303
|
},
|
|
2646
2304
|
"uniqueConstraints": {},
|
|
@@ -2721,18 +2379,8 @@
|
|
|
2721
2379
|
"name": "tasks_sub_agent_fk",
|
|
2722
2380
|
"tableFrom": "tasks",
|
|
2723
2381
|
"tableTo": "sub_agents",
|
|
2724
|
-
"columnsFrom": [
|
|
2725
|
-
|
|
2726
|
-
"project_id",
|
|
2727
|
-
"agent_id",
|
|
2728
|
-
"sub_agent_id"
|
|
2729
|
-
],
|
|
2730
|
-
"columnsTo": [
|
|
2731
|
-
"tenant_id",
|
|
2732
|
-
"project_id",
|
|
2733
|
-
"agent_id",
|
|
2734
|
-
"id"
|
|
2735
|
-
],
|
|
2382
|
+
"columnsFrom": ["tenant_id", "project_id", "agent_id", "sub_agent_id"],
|
|
2383
|
+
"columnsTo": ["tenant_id", "project_id", "agent_id", "id"],
|
|
2736
2384
|
"onDelete": "cascade",
|
|
2737
2385
|
"onUpdate": "no action"
|
|
2738
2386
|
}
|
|
@@ -2740,11 +2388,7 @@
|
|
|
2740
2388
|
"compositePrimaryKeys": {
|
|
2741
2389
|
"tasks_tenant_id_project_id_id_pk": {
|
|
2742
2390
|
"name": "tasks_tenant_id_project_id_id_pk",
|
|
2743
|
-
"columns": [
|
|
2744
|
-
"tenant_id",
|
|
2745
|
-
"project_id",
|
|
2746
|
-
"id"
|
|
2747
|
-
]
|
|
2391
|
+
"columns": ["tenant_id", "project_id", "id"]
|
|
2748
2392
|
}
|
|
2749
2393
|
},
|
|
2750
2394
|
"uniqueConstraints": {},
|
|
@@ -2843,14 +2487,8 @@
|
|
|
2843
2487
|
"name": "tools_project_fk",
|
|
2844
2488
|
"tableFrom": "tools",
|
|
2845
2489
|
"tableTo": "projects",
|
|
2846
|
-
"columnsFrom": [
|
|
2847
|
-
|
|
2848
|
-
"project_id"
|
|
2849
|
-
],
|
|
2850
|
-
"columnsTo": [
|
|
2851
|
-
"tenant_id",
|
|
2852
|
-
"id"
|
|
2853
|
-
],
|
|
2490
|
+
"columnsFrom": ["tenant_id", "project_id"],
|
|
2491
|
+
"columnsTo": ["tenant_id", "id"],
|
|
2854
2492
|
"onDelete": "cascade",
|
|
2855
2493
|
"onUpdate": "no action"
|
|
2856
2494
|
}
|
|
@@ -2858,11 +2496,7 @@
|
|
|
2858
2496
|
"compositePrimaryKeys": {
|
|
2859
2497
|
"tools_tenant_id_project_id_id_pk": {
|
|
2860
2498
|
"name": "tools_tenant_id_project_id_id_pk",
|
|
2861
|
-
"columns": [
|
|
2862
|
-
"tenant_id",
|
|
2863
|
-
"project_id",
|
|
2864
|
-
"id"
|
|
2865
|
-
]
|
|
2499
|
+
"columns": ["tenant_id", "project_id", "id"]
|
|
2866
2500
|
}
|
|
2867
2501
|
},
|
|
2868
2502
|
"uniqueConstraints": {},
|
|
@@ -2882,4 +2516,4 @@
|
|
|
2882
2516
|
"schemas": {},
|
|
2883
2517
|
"tables": {}
|
|
2884
2518
|
}
|
|
2885
|
-
}
|
|
2519
|
+
}
|