public.agent_plan_history¶
列¶
| 名称 | 类型 | 默认值 | 可空 | 子表 | 父表 | 注释 |
|---|---|---|---|---|---|---|
| closedAt | timestamp(3) with time zone | true | 此修订版本的计划关闭时间 | |||
| createdAt | timestamp(3) with time zone | CURRENT_TIMESTAMP(3) | false | |||
| data | json | false | 此更改后的完整计划文档 | |||
| formatVersion | integer | false | 快照 JSON 格式的版本 | |||
| planId | uuid | false | public.agent_plan | 拥有此快照的计划 | ||
| revision | integer | false | 此快照捕获的文档修订版本 |
约束¶
| 名称 | 类型 | 定义 |
|---|---|---|
| CHK_agent_plan_history_format_version | CHECK | CHECK (("formatVersion" > 0)) |
| CHK_agent_plan_history_revision | CHECK | CHECK ((revision > 0)) |
| FK_ff6ebe6c2b329aba472095b4a5d | FOREIGN KEY | FOREIGN KEY ("planId") REFERENCES agent_plan(id) ON DELETE CASCADE |
| PK_a643cfc7a42df9e579ab05a7950 | PRIMARY KEY | PRIMARY KEY ("planId", revision) |
| agent_plan_history_createdAt_not_null | n | NOT NULL "createdAt" |
| agent_plan_history_data_not_null | n | NOT NULL data |
| agent_plan_history_formatVersion_not_null | n | NOT NULL "formatVersion" |
| agent_plan_history_planId_not_null | n | NOT NULL "planId" |
| agent_plan_history_revision_not_null | n | NOT NULL revision |
索引¶
| 名称 | 定义 |
|---|---|
| PK_a643cfc7a42df9e579ab05a7950 | CREATE UNIQUE INDEX "PK_a643cfc7a42df9e579ab05a7950" ON public.agent_plan_history USING btree ("planId", revision) |
关系¶
erDiagram
"public.agent_plan_history" }o--|| "public.agent_plan" : "FOREIGN KEY (#quot;planId#quot;) REFERENCES agent_plan(id) ON DELETE CASCADE"
"public.agent_plan_history" {
timestamp_3__with_time_zone closedAt
timestamp_3__with_time_zone createdAt
json data
integer formatVersion
uuid planId FK
integer revision
}
"public.agent_plan" {
timestamp_3__with_time_zone closedAt
timestamp_3__with_time_zone createdAt
json data
integer formatVersion
uuid id
integer revision
varchar_128_ threadId FK
timestamp_3__with_time_zone updatedAt
}由 tbls 生成
本页原文 Markdown:在 AtomGit 查看·内容源自开源项目 n8/n8n