public.agent_attention_flags¶
列¶
| 名称 | 类型 | 默认值 | 可空 | 子表 | 父表 | 备注 |
|---|---|---|---|---|---|---|
| createdAt | timestamp(3) with time zone | CURRENT_TIMESTAMP(3) | false | |||
| id | uuid | false | 返回给客户端的 UUIDv7,用于显式解除 | |||
| sessionId | varchar(128) | false | public.agent_execution_threads | 需要管理员关注的会话 | ||
| type | varchar(32) | false | 关注原因:session-error | |||
| updatedAt | timestamp(3) with time zone | CURRENT_TIMESTAMP(3) | false |
约束¶
| 名称 | 类型 | 定义 |
|---|---|---|
| CHK_agent_attention_flags_type | CHECK | CHECK (((type)::text = 'session-error'::text)) |
| FK_c4a1e0092b90219a7c4b951d7eb | FOREIGN KEY | FOREIGN KEY ("sessionId") REFERENCES agent_execution_threads(id) ON DELETE CASCADE |
| PK_1ffaef9b58ace90e2e2f817c04e | PRIMARY KEY | PRIMARY KEY (id) |
| agent_attention_flags_createdAt_not_null | n | NOT NULL "createdAt" |
| agent_attention_flags_id_not_null | n | NOT NULL id |
| agent_attention_flags_sessionId_not_null | n | NOT NULL "sessionId" |
| agent_attention_flags_type_not_null | n | NOT NULL type |
| agent_attention_flags_updatedAt_not_null | n | NOT NULL "updatedAt" |
索引¶
| 名称 | 定义 |
|---|---|
| IDX_b9b809f51859fe693ada9a29dd | CREATE UNIQUE INDEX "IDX_b9b809f51859fe693ada9a29dd" ON public.agent_attention_flags USING btree ("sessionId", type) |
| PK_1ffaef9b58ace90e2e2f817c04e | CREATE UNIQUE INDEX "PK_1ffaef9b58ace90e2e2f817c04e" ON public.agent_attention_flags USING btree (id) |
关系¶
erDiagram
"public.agent_attention_flags" }o--|| "public.agent_execution_threads" : "FOREIGN KEY (#quot;sessionId#quot;) REFERENCES agent_execution_threads(id) ON DELETE CASCADE"
"public.agent_attention_flags" {
timestamp_3__with_time_zone createdAt
uuid id
varchar_128_ sessionId FK
varchar_32_ type
timestamp_3__with_time_zone updatedAt
}
"public.agent_execution_threads" {
varchar_16_ accessScope
varchar_36_ agentId FK
varchar_255_ agentName
timestamp_3__with_time_zone createdAt
varchar_8_ emoji
varchar_128_ id
boolean isTestChat
uuid ownerId FK
varchar_36_ parentAgentId
varchar_128_ parentThreadId
varchar_255_ projectId FK
integer sessionNumber
varchar_32_ taskId
json taskStop
varchar_36_ taskVersionId FK
varchar_255_ title
integer totalCompletionTokens
double_precision totalCost
integer totalDuration
integer totalPromptTokens
timestamp_3__with_time_zone updatedAt
}由 tbls 生成
本页原文 Markdown:在 AtomGit 查看·内容源自开源项目 n8/n8n