跳转至

public.agent_chat_subscriptions

列

名称 类型 默认值 可空 子表 父表 注释
agentId varchar(36) false public.agents 拥有此订阅的 Agent
createdAt timestamp(3) with time zone CURRENT_TIMESTAMP(3) false
credentialId varchar(255) false 拥有此订阅的凭据连接
integrationType varchar(64) false 此订阅的聊天集成平台
threadId varchar(255) false Agent 订阅的平台线程 ID
updatedAt timestamp(3) with time zone CURRENT_TIMESTAMP(3) false

约束

名称 类型 定义
CHK_agent_chat_subscriptions_integrationType CHECK CHECK ((("integrationType")::text = ANY ((ARRAY['telegram'::character varying, 'slack'::character varying, 'linear'::character varying, 'discord'::character varying, 'teams'::character varying, 'whatsapp'::character varying])::text[])))
FK_e79153bd179c011e779d5016796 FOREIGN KEY FOREIGN KEY ("agentId") REFERENCES agents(id) ON DELETE CASCADE
PK_76598cf91038bee1f3ac94c94bc PRIMARY KEY PRIMARY KEY ("agentId", "integrationType", "credentialId", "threadId")
agent_chat_subscriptions_agentId_not_null n NOT NULL "agentId"
agent_chat_subscriptions_createdAt_not_null n NOT NULL "createdAt"
agent_chat_subscriptions_credentialId_not_null n NOT NULL "credentialId"
agent_chat_subscriptions_integrationType_not_null n NOT NULL "integrationType"
agent_chat_subscriptions_threadId_not_null n NOT NULL "threadId"
agent_chat_subscriptions_updatedAt_not_null n NOT NULL "updatedAt"

索引

名称 定义
PK_76598cf91038bee1f3ac94c94bc CREATE UNIQUE INDEX "PK_76598cf91038bee1f3ac94c94bc" ON public.agent_chat_subscriptions USING btree ("agentId", "integrationType", "credentialId", "threadId")

关系

erDiagram

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

"public.agent_chat_subscriptions" {
  varchar_36_ agentId FK
  timestamp_3__with_time_zone createdAt
  varchar_255_ credentialId
  varchar_64_ integrationType
  varchar_255_ threadId
  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