描述
表定义
CREATE TABLE "execution_annotation_tags" ("annotationId" integer NOT NULL, "tagId" varchar(24) NOT NULL, CONSTRAINT "FK_c1519757391996eb06064f0e7c8" FOREIGN KEY ("annotationId") REFERENCES "execution_annotations" ("id") ON DELETE CASCADE, CONSTRAINT "FK_a3697779b366e131b2bbdae2976" FOREIGN KEY ("tagId") REFERENCES "annotation_tag_entity" ("id") ON DELETE CASCADE, PRIMARY KEY ("annotationId", "tagId"))
列
约束
索引
关系
erDiagram
"execution_annotation_tags" |o--|| "execution_annotations" : "FOREIGN KEY (annotationId) REFERENCES execution_annotations (id) ON UPDATE NO ACTION ON DELETE CASCADE MATCH NONE"
"execution_annotation_tags" |o--|| "annotation_tag_entity" : "FOREIGN KEY (tagId) REFERENCES annotation_tag_entity (id) ON UPDATE NO ACTION ON DELETE CASCADE MATCH NONE"
"execution_annotation_tags" {
INTEGER annotationId PK
varchar_24_ tagId PK
}
"execution_annotations" {
datetime_3_ createdAt
INTEGER executionId FK
INTEGER id
TEXT note
datetime_3_ updatedAt
varchar_6_ vote
}
"annotation_tag_entity" {
datetime_3_ createdAt
varchar_16_ id PK
varchar_24_ name
datetime_3_ updatedAt
}
由 tbls 生成