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.
 
 
 
 

20 lines
576 B

DROP SEQUENCE if EXISTS "public"."patrol_plan_id_seq";
CREATE SEQUENCE "public"."patrol_plan_id_seq"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
DROP TABLE IF EXISTS "public"."patrol_plan";
CREATE TABLE "public"."patrol_plan" (
"id" int4 NOT NULL PRIMARY KEY DEFAULT nextval('patrol_plan_id_seq'::regclass),
"name" varchar(128) NOT NULL,
"way" varchar(128),
"structure_id" int4,
"start_time" timestamp(6),
"end_time" timestamp(6),
"frequency" varchar(64),
"points" jsonb,
"user_id" int4,
"patrol_count" int4 NOT NULL DEFAULT 0
);