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") ) ;