跳转至

public.folder_tag

列

名称 类型 默认值 可空 子表 父表 备注
folderId varchar(36) false public.folder
tagId varchar(36) false public.tag_entity

约束

名称 类型 定义
FK_94a60854e06f2897b2e0d39edba FOREIGN KEY FOREIGN KEY ("folderId") REFERENCES folder(id) ON DELETE CASCADE
FK_dc88164176283de80af47621746 FOREIGN KEY FOREIGN KEY ("tagId") REFERENCES tag_entity(id) ON DELETE CASCADE
PK_27e4e00852f6b06a925a4d83a3e PRIMARY KEY PRIMARY KEY ("folderId", "tagId")
folder_tag_folderId_not_null n NOT NULL "folderId"
folder_tag_tagId_not_null n NOT NULL "tagId"

索引

名称 定义
PK_27e4e00852f6b06a925a4d83a3e CREATE UNIQUE INDEX "PK_27e4e00852f6b06a925a4d83a3e" ON public.folder_tag USING btree ("folderId", "tagId")

关系

erDiagram

"public.folder_tag" }o--|| "public.folder" : "FOREIGN KEY (#quot;folderId#quot;) REFERENCES folder(id) ON DELETE CASCADE"
"public.folder_tag" }o--|| "public.tag_entity" : "FOREIGN KEY (#quot;tagId#quot;) REFERENCES tag_entity(id) ON DELETE CASCADE"

"public.folder_tag" {
  varchar_36_ folderId FK
  varchar_36_ tagId FK
}
"public.folder" {
  timestamp_3__with_time_zone createdAt
  varchar_36_ id
  varchar_128_ name
  varchar_36_ parentFolderId FK
  varchar_36_ projectId FK
  varchar_16_ resourceType
  timestamp_3__with_time_zone updatedAt
}
"public.tag_entity" {
  timestamp_3__with_time_zone createdAt
  varchar_36_ id
  varchar_24_ name
  timestamp_3__with_time_zone updatedAt
}

由 tbls 生成

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