public.agent_file_grants¶
列¶
| 名称 | 类型 | 默认值 | 可空 | 子表 | 父表 | 注释 |
|---|---|---|---|---|---|---|
| attachmentId | varchar(16) | false | public.agent_chat_attachments | 被授予的文件 | ||
| createdAt | timestamp(3) with time zone | CURRENT_TIMESTAMP(3) | false | |||
| threadId | varchar(128) | false | 可以读取该文件的线程 | |||
| updatedAt | timestamp(3) with time zone | CURRENT_TIMESTAMP(3) | false |
约束¶
| 名称 | 类型 | 定义 |
|---|---|---|
| FK_10af5c940fc14c3637358924508 | FOREIGN KEY | FOREIGN KEY ("attachmentId") REFERENCES agent_chat_attachments(id) ON DELETE CASCADE |
| PK_921dd394e419fc4b733dc242922 | PRIMARY KEY | PRIMARY KEY ("attachmentId", "threadId") |
| agent_file_grants_attachmentId_not_null | n | NOT NULL "attachmentId" |
| agent_file_grants_createdAt_not_null | n | NOT NULL "createdAt" |
| agent_file_grants_threadId_not_null | n | NOT NULL "threadId" |
| agent_file_grants_updatedAt_not_null | n | NOT NULL "updatedAt" |
索引¶
| 名称 | 定义 |
|---|---|
| PK_921dd394e419fc4b733dc242922 | CREATE UNIQUE INDEX "PK_921dd394e419fc4b733dc242922" ON public.agent_file_grants USING btree ("attachmentId", "threadId") |
关系¶
erDiagram
"public.agent_file_grants" }o--|| "public.agent_chat_attachments" : "FOREIGN KEY (#quot;attachmentId#quot;) REFERENCES agent_chat_attachments(id) ON DELETE CASCADE"
"public.agent_file_grants" {
varchar_16_ attachmentId FK
timestamp_3__with_time_zone createdAt
varchar_128_ threadId
timestamp_3__with_time_zone updatedAt
}
"public.agent_chat_attachments" {
varchar_36_ agentId FK
text binaryDataId
varchar_64_ contentHash
timestamp_3__with_time_zone createdAt
varchar_128_ createdByThreadId
varchar_255_ fileName
integer fileSizeBytes
varchar_16_ id
varchar_255_ mimeType
varchar_36_ projectId FK
varchar_255_ resourceId
varchar_32_ source
varchar_128_ threadId
timestamp_3__with_time_zone updatedAt
}由 tbls 生成
本页原文 Markdown:在 AtomGit 查看·内容源自开源项目 n8/n8n