跳转至

public.chat_hub_agent_tools

列

名称 类型 默认值 可空 子表 父表 注释
agentId uuid false public.chat_hub_agents
toolId uuid false public.chat_hub_tools

约束

名称 类型 定义
FK_2b53d796b3dbae91b1a9553c048 FOREIGN KEY FOREIGN KEY ("agentId") REFERENCES chat_hub_agents(id) ON DELETE CASCADE
FK_43e70f04c53344f82483d0570f6 FOREIGN KEY FOREIGN KEY ("toolId") REFERENCES chat_hub_tools(id) ON DELETE CASCADE
PK_cc8806fdea48297a7d497035d72 PRIMARY KEY PRIMARY KEY ("agentId", "toolId")
chat_hub_agent_tools_agentId_not_null n NOT NULL "agentId"
chat_hub_agent_tools_toolId_not_null n NOT NULL "toolId"

索引

名称 定义
PK_cc8806fdea48297a7d497035d72 CREATE UNIQUE INDEX "PK_cc8806fdea48297a7d497035d72" ON public.chat_hub_agent_tools USING btree ("agentId", "toolId")

关系

erDiagram

"public.chat_hub_agent_tools" }o--|| "public.chat_hub_agents" : "FOREIGN KEY (#quot;agentId#quot;) REFERENCES chat_hub_agents(id) ON DELETE CASCADE"
"public.chat_hub_agent_tools" }o--|| "public.chat_hub_tools" : "FOREIGN KEY (#quot;toolId#quot;) REFERENCES chat_hub_tools(id) ON DELETE CASCADE"

"public.chat_hub_agent_tools" {
  uuid agentId FK
  uuid toolId FK
}
"public.chat_hub_agents" {
  timestamp_3__with_time_zone createdAt
  varchar_36_ credentialId FK
  varchar_512_ description
  json files
  json icon
  uuid id
  varchar_64_ model
  varchar_256_ name
  uuid ownerId FK
  varchar_16_ provider
  json suggestedPrompts
  text systemPrompt
  timestamp_3__with_time_zone updatedAt
}
"public.chat_hub_tools" {
  timestamp_3__with_time_zone createdAt
  json definition
  boolean enabled
  uuid id
  varchar_255_ name
  uuid ownerId FK
  varchar_255_ type
  double_precision typeVersion
  timestamp_3__with_time_zone updatedAt
}

由 tbls 生成

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