跳转至

public.agent_channel_status

列

名称 类型 默认值 可空 子表 父表 注释
agentId varchar(36) false public.agents 拥有此渠道的 Agent
attempts integer 0 false 此进程连续启动失败的次数,成功时重置
backoffUntil timestamp(3) with time zone true 此进程应重试的最早时间;不需要重试时为 null
createdAt timestamp(3) with time zone CURRENT_TIMESTAMP(3) false
credentialId varchar(36) false 支持此渠道的凭据连接;没有外键,因此凭据被删除后仍可记录失败
errorMessage text true 此进程无法启动渠道的原因;成功后为 null
expiresAt timestamp(3) with time zone true 该行停止计数的截止时间,除非其所有者刷新;为 null 表示永不过期
hostId varchar(128) false 观察到该状态的进程;该行唯一的写入者
integrationType varchar(64) false 此渠道的聊天集成平台
status varchar(16) false 此进程最后观察到的状态:connected 或 error
updatedAt timestamp(3) with time zone CURRENT_TIMESTAMP(3) false

约束

名称 类型 定义
CHK_agent_channel_status_status CHECK CHECK (((status)::text = ANY ((ARRAY['connected'::character varying, 'error'::character varying])::text[])))
FK_7a723e6aad04d88057dea6a21f4 FOREIGN KEY FOREIGN KEY ("agentId") REFERENCES agents(id) ON DELETE CASCADE
PK_4e1ca943734d575679a56f4da90 PRIMARY KEY PRIMARY KEY ("agentId", "integrationType", "credentialId", "hostId")
agent_channel_status_agentId_not_null n NOT NULL "agentId"
agent_channel_status_attempts_not_null n NOT NULL attempts
agent_channel_status_createdAt_not_null n NOT NULL "createdAt"
agent_channel_status_credentialId_not_null n NOT NULL "credentialId"
agent_channel_status_hostId_not_null n NOT NULL "hostId"
agent_channel_status_integrationType_not_null n NOT NULL "integrationType"
agent_channel_status_status_not_null n NOT NULL status
agent_channel_status_updatedAt_not_null n NOT NULL "updatedAt"

索引

名称 定义
IDX_a7c67724df9ef3d12f6da773c1 CREATE INDEX "IDX_a7c67724df9ef3d12f6da773c1" ON public.agent_channel_status USING btree ("expiresAt")
IDX_c75ec632fe0b5b1905edb9cd7f CREATE INDEX "IDX_c75ec632fe0b5b1905edb9cd7f" ON public.agent_channel_status USING btree ("hostId")
PK_4e1ca943734d575679a56f4da90 CREATE UNIQUE INDEX "PK_4e1ca943734d575679a56f4da90" ON public.agent_channel_status USING btree ("agentId", "integrationType", "credentialId", "hostId")

关系

erDiagram

"public.agent_channel_status" }o--|| "public.agents" : "FOREIGN KEY (#quot;agentId#quot;) REFERENCES agents(id) ON DELETE CASCADE"

"public.agent_channel_status" {
  varchar_36_ agentId FK
  integer attempts
  timestamp_3__with_time_zone backoffUntil
  timestamp_3__with_time_zone createdAt
  varchar_36_ credentialId
  text errorMessage
  timestamp_3__with_time_zone expiresAt
  varchar_128_ hostId
  varchar_64_ integrationType
  varchar_16_ status
  timestamp_3__with_time_zone updatedAt
}
"public.agents" {
  varchar_36_ activeVersionId FK
  varchar_36_ approvalWorkflowId FK
  boolean availableInMCP
  timestamp_3__with_time_zone createdAt
  varchar_36_ id
  uuid identityId FK
  json integrations
  boolean isArchived
  varchar_128_ name
  varchar_36_ parentFolderId FK
  varchar_255_ projectId FK
  integer publicationRevision
  integer revision
  json schema
  varchar_16_ scope
  timestamp_3__with_time_zone setupCompletedAt
  json skills
  json tools
  timestamp_3__with_time_zone updatedAt
  varchar_36_ versionId
}

由 tbls 生成

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