跳转至

public.agent_task_snapshot

列

名称 类型 默认值 可空 子表 父表 注释
createdAt timestamp(3) with time zone CURRENT_TIMESTAMP(3) false
cronExpression varchar(128) false Cron 调度(使用实例时区计算)
enabled boolean false 发布时该任务的启用状态
name varchar(128) false
objective text false 该任务运行时发送给 agent 的用户编写指令
taskId varchar(32) false 从已发布的 agent JSON 配置中引用的稳定任务 ID
timezone varchar(64) true Cron 评估使用的 IANA 时区;为 null 时回退到实例时区
updatedAt timestamp(3) with time zone CURRENT_TIMESTAMP(3) false
versionId varchar(36) false public.agent_history 此任务快照所属的已发布 agent_history 版本

约束

名称 类型 定义
FK_1acedce6690392ef1611cca8b88 FOREIGN KEY FOREIGN KEY ("versionId") REFERENCES agent_history("versionId") ON DELETE CASCADE
PK_2142a8bcda2360c3c5e34f82640 PRIMARY KEY PRIMARY KEY ("versionId", "taskId")
agent_task_snapshot_createdAt_not_null n NOT NULL "createdAt"
agent_task_snapshot_cronExpression_not_null n NOT NULL "cronExpression"
agent_task_snapshot_enabled_not_null n NOT NULL enabled
agent_task_snapshot_name_not_null n NOT NULL name
agent_task_snapshot_objective_not_null n NOT NULL objective
agent_task_snapshot_taskId_not_null n NOT NULL "taskId"
agent_task_snapshot_updatedAt_not_null n NOT NULL "updatedAt"
agent_task_snapshot_versionId_not_null n NOT NULL "versionId"

索引

名称 定义
PK_2142a8bcda2360c3c5e34f82640 CREATE UNIQUE INDEX "PK_2142a8bcda2360c3c5e34f82640" ON public.agent_task_snapshot USING btree ("versionId", "taskId")

关系

erDiagram

"public.agent_task_snapshot" }o--|| "public.agent_history" : "FOREIGN KEY (#quot;versionId#quot;) REFERENCES agent_history(#quot;versionId#quot;) ON DELETE CASCADE"

"public.agent_task_snapshot" {
  timestamp_3__with_time_zone createdAt
  varchar_128_ cronExpression
  boolean enabled
  varchar_128_ name
  text objective
  varchar_32_ taskId
  varchar_64_ timezone
  timestamp_3__with_time_zone updatedAt
  varchar_36_ versionId FK
}
"public.agent_history" {
  varchar_36_ agentId FK
  varchar_255_ author
  timestamp_3__with_time_zone createdAt
  text description
  text name
  uuid publishedById FK
  json schema
  json skills
  json tools
  timestamp_3__with_time_zone updatedAt
  varchar_36_ versionId
}

由 tbls 生成

本页原文 Markdown:在 AtomGit 查看·内容源自开源项目 n8/n8n