public.instance_ai_thread_tabs¶
列¶
| 名称 | 类型 | 默认值 | 可空 | 子表 | 父表 | 注释 |
|---|---|---|---|---|---|---|
| createdAt | timestamp(3) with time zone | CURRENT_TIMESTAMP(3) | false | |||
| state | json | false | 用户在该会话中打开的标签页:{ tabs, closedTabs, activeTab, previewOpen }。“tabs” 按显示顺序排列。“closedTabs” 保存已关闭的工件,使其不会重新打开。“previewOpen” 指示预览面板是否打开。 | |||
| threadId | uuid | false | public.instance_ai_threads | |||
| updatedAt | timestamp(3) with time zone | CURRENT_TIMESTAMP(3) | false | |||
| userId | uuid | false | public.user |
约束¶
| 名称 | 类型 | 定义 |
|---|---|---|
| FK_1087a0774e95922e3b5c9af8dd0 | FOREIGN KEY | FOREIGN KEY ("threadId") REFERENCES instance_ai_threads(id) ON DELETE CASCADE |
| FK_4109834dc3cb1c77748ed11e13a | FOREIGN KEY | FOREIGN KEY ("userId") REFERENCES "user"(id) ON DELETE CASCADE |
| PK_61fc902b3494c9b06fbb86a7664 | PRIMARY KEY | PRIMARY KEY ("threadId", "userId") |
| instance_ai_thread_tabs_createdAt_not_null | n | NOT NULL "createdAt" |
| instance_ai_thread_tabs_state_not_null | n | NOT NULL state |
| instance_ai_thread_tabs_threadId_not_null | n | NOT NULL "threadId" |
| instance_ai_thread_tabs_updatedAt_not_null | n | NOT NULL "updatedAt" |
| instance_ai_thread_tabs_userId_not_null | n | NOT NULL "userId" |
索引¶
| 名称 | 定义 |
|---|---|
| IDX_4109834dc3cb1c77748ed11e13 | CREATE INDEX "IDX_4109834dc3cb1c77748ed11e13" ON public.instance_ai_thread_tabs USING btree ("userId") |
| PK_61fc902b3494c9b06fbb86a7664 | CREATE UNIQUE INDEX "PK_61fc902b3494c9b06fbb86a7664" ON public.instance_ai_thread_tabs USING btree ("threadId", "userId") |
关系¶
erDiagram
"public.instance_ai_thread_tabs" }o--|| "public.instance_ai_threads" : "FOREIGN KEY (#quot;threadId#quot;) REFERENCES instance_ai_threads(id) ON DELETE CASCADE"
"public.instance_ai_thread_tabs" }o--|| "public.user" : "FOREIGN KEY (#quot;userId#quot;) REFERENCES #quot;user#quot;(id) ON DELETE CASCADE"
"public.instance_ai_thread_tabs" {
timestamp_3__with_time_zone createdAt
json state
uuid threadId FK
timestamp_3__with_time_zone updatedAt
uuid userId FK
}
"public.instance_ai_threads" {
timestamp_3__with_time_zone createdAt
uuid id
json metadata
varchar_36_ projectId FK
varchar_255_ resourceId
text title
timestamp_3__with_time_zone updatedAt
}
"public.user" {
timestamp_3__with_time_zone createdAt
boolean disabled
varchar_255_ email
varchar_32_ firstName
uuid id
varchar_16_ kind
date lastActiveAt
varchar_32_ lastName
boolean mfaEnabled
text mfaRecoveryCodes
text mfaSecret
varchar_255_ password
json personalizationAnswers
varchar_128_ roleSlug FK
json settings
timestamp_3__with_time_zone updatedAt
}由 tbls 生成
本页原文 Markdown:在 AtomGit 查看·内容源自开源项目 n8/n8n