You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
397 B
15 lines
397 B
DROP TABLE IF EXISTS "public"."check_items_group";
|
|
CREATE TABLE "public"."check_items_group" (
|
|
"id" serial,
|
|
"name" varchar(255) NOT NULL,
|
|
PRIMARY KEY ("id")
|
|
);
|
|
|
|
DROP TABLE IF EXISTS "public"."check_items";
|
|
CREATE TABLE "public"."check_items" (
|
|
"id" serial,
|
|
"name" varchar(255) NOT NULL,
|
|
"group_id" int,
|
|
PRIMARY KEY ("id"),
|
|
FOREIGN KEY (group_id) REFERENCES check_items_group(id)
|
|
);
|