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.
10 lines
418 B
10 lines
418 B
2 years ago
|
DROP TABLE IF EXISTS "public"."patrol_plan_user";
|
||
|
CREATE TABLE "public"."patrol_plan_user" (
|
||
|
"id" serial,
|
||
|
"patrol_plan_id" int4 NOT NULL,
|
||
|
"user_id" int4 NOT NULL,
|
||
|
PRIMARY KEY ("id"),
|
||
|
CONSTRAINT "patrol_plan_user_patrol_plan_id_fk" FOREIGN KEY ("patrol_plan_id") REFERENCES "public"."patrol_plan" ("id"),
|
||
|
CONSTRAINT "patrol_plan_user_user_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."user" ("id")
|
||
|
)
|
||
|
;
|