public.agent_execution_message_links
Columns
| Name |
Type |
Default |
Nullable |
Children |
Parents |
Comment |
| createdAt |
timestamp(3) with time zone |
CURRENT_TIMESTAMP(3) |
false |
|
|
|
| direction |
varchar(6) |
|
false |
|
|
Input consumed by the execution or output written by it |
| executionId |
varchar(36) |
|
false |
|
public.agent_execution |
Execution that consumed or wrote the message |
| messageId |
varchar(36) |
|
false |
|
public.agents_messages |
Canonical conversation message ID |
| position |
integer |
|
false |
|
|
Input message IDs in consumption order. Steering can add messages to the same execution. |
Constraints
| Name |
Type |
Definition |
| CHK_agent_execution_message_links_direction |
CHECK |
CHECK (((direction)::text = ANY ((ARRAY['input'::character varying, 'output'::character varying])::text[]))) |
| FK_be7d0a2fd1360c9fa09baf84f60 |
FOREIGN KEY |
FOREIGN KEY ("messageId") REFERENCES agents_messages(id) ON DELETE CASCADE |
| FK_e78f470a036d01f9e395d53bb59 |
FOREIGN KEY |
FOREIGN KEY ("executionId") REFERENCES agent_execution(id) ON DELETE CASCADE |
| PK_cf07f3f98aad61dbb08fac1cdb9 |
PRIMARY KEY |
PRIMARY KEY ("executionId", "messageId") |
| agent_execution_message_links_createdAt_not_null |
n |
NOT NULL "createdAt" |
| agent_execution_message_links_direction_not_null |
n |
NOT NULL direction |
| agent_execution_message_links_executionId_not_null |
n |
NOT NULL "executionId" |
| agent_execution_message_links_messageId_not_null |
n |
NOT NULL "messageId" |
| agent_execution_message_links_position_not_null |
n |
NOT NULL "position" |
Indexes
| Name |
Definition |
| IDX_10fe500ee8877351841799369b |
CREATE UNIQUE INDEX "IDX_10fe500ee8877351841799369b" ON public.agent_execution_message_links USING btree ("executionId", direction, "position") |
| IDX_be7d0a2fd1360c9fa09baf84f6 |
CREATE INDEX "IDX_be7d0a2fd1360c9fa09baf84f6" ON public.agent_execution_message_links USING btree ("messageId") |
| PK_cf07f3f98aad61dbb08fac1cdb9 |
CREATE UNIQUE INDEX "PK_cf07f3f98aad61dbb08fac1cdb9" ON public.agent_execution_message_links USING btree ("executionId", "messageId") |
Relations
erDiagram
"public.agent_execution_message_links" }o--|| "public.agent_execution" : "FOREIGN KEY (#quot;executionId#quot;) REFERENCES agent_execution(id) ON DELETE CASCADE"
"public.agent_execution_message_links" }o--|| "public.agents_messages" : "FOREIGN KEY (#quot;messageId#quot;) REFERENCES agents_messages(id) ON DELETE CASCADE"
"public.agent_execution_message_links" {
timestamp_3__with_time_zone createdAt
varchar_6_ direction
varchar_36_ executionId FK
varchar_36_ messageId FK
integer position
}
"public.agent_execution" {
boolean acceptsSteering
json attachments
json author
integer cacheReadTokens
integer cacheWriteTokens
integer completionTokens
double_precision cost
timestamp_3__with_time_zone createdAt
integer duration
text error
json failureSummary
varchar_32_ finishReason
varchar_64_ guardrailCode
varchar_16_ hitlStatus
varchar_36_ id
varchar_255_ model
varchar_36_ parentExecutionId FK
integer promptTokens
varchar_32_ source
timestamp_3__with_time_zone startedAt
varchar_16_ status
timestamp_3__with_time_zone stoppedAt
varchar_2_ storedAt
varchar_128_ threadId FK
json timeline
integer totalTokens
timestamp_3__with_time_zone updatedAt
text userMessage
}
"public.agents_messages" {
json author
json content
timestamp_3__with_time_zone createdAt
varchar_36_ id
json modelContent
timestamp_3__with_time_zone modelContextAt
json origin
varchar_255_ resourceId
varchar_36_ role
varchar_255_ threadId FK
varchar_36_ type
timestamp_3__with_time_zone updatedAt
}
Generated by tbls