type_availability_policy_attachment
描述
表定义
CREATE TABLE "type_availability_policy_attachment" ("scopeId" varchar(36) NOT NULL, "policyId" varchar(36) NOT NULL, "priority" integer NOT NULL, "isFloor" boolean NOT NULL DEFAULT (false), "createdAt" datetime(3) NOT NULL DEFAULT (STRFTIME('%Y-%m-%d %H:%M:%f', 'NOW')), "updatedAt" datetime(3) NOT NULL DEFAULT (STRFTIME('%Y-%m-%d %H:%M:%f', 'NOW')), CONSTRAINT "FK_118709fc9fe21d3406f81665a53" FOREIGN KEY ("scopeId") REFERENCES "type_availability_policy_scope" ("id") ON DELETE CASCADE, CONSTRAINT "FK_674705e4c8a3d3eb0736f8e8eee" FOREIGN KEY ("policyId") REFERENCES "type_availability_policy" ("id") ON DELETE RESTRICT, PRIMARY KEY ("scopeId", "policyId"))
列
约束
索引
关系
erDiagram
"type_availability_policy_attachment" |o--|| "type_availability_policy" : "FOREIGN KEY (policyId) REFERENCES type_availability_policy (id) ON UPDATE NO ACTION ON DELETE RESTRICT MATCH NONE"
"type_availability_policy_attachment" |o--|| "type_availability_policy_scope" : "FOREIGN KEY (scopeId) REFERENCES type_availability_policy_scope (id) ON UPDATE NO ACTION ON DELETE CASCADE MATCH NONE"
"type_availability_policy_attachment" {
datetime_3_ createdAt
boolean isFloor
varchar_36_ policyId PK
INTEGER priority
varchar_36_ scopeId PK
datetime_3_ updatedAt
}
"type_availability_policy" {
datetime_3_ createdAt
varchar_36_ id PK
varchar_64_ kind
TEXT rules
datetime_3_ updatedAt
varchar_36_ updatedBy
INTEGER version
}
"type_availability_policy_scope" {
datetime_3_ createdAt
varchar_16_ defaultAction
varchar_36_ id PK
varchar_64_ kind
varchar_36_ projectId FK
datetime_3_ updatedAt
varchar_36_ updatedBy
INTEGER version
}
由 tbls 生成