Browse Source

创建任务表和user添加isadmin字段

dev
zhaobing 1 year ago
parent
commit
eb44e6d749
  1. 2
      scripts/1.2.0/data/1.alter_user.sql
  2. 16
      scripts/1.2.0/data/2.create_task_manage.sql

2
scripts/1.2.0/data/1.alter_user.sql

@ -0,0 +1,2 @@
ALTER TABLE public."user"
ADD COLUMN isadmin boolean;

16
scripts/1.2.0/data/2.create_task_manage.sql

@ -0,0 +1,16 @@
create table public.task_manage(
id SERIAL PRIMARY KEY ,
roadId integer not null references public.road(id),
danger_description char(300),
issuance_time timestamp,
userId integer NOT NULL references public.user(id),
isdanger boolean,
report_time timestamp
);
comment on column public.task_manage.id is 'id';
comment on column public.task_manage.roadId is '道路id';
comment on column public.task_manage.danger_description is '隐患说明';
comment on column public.task_manage.issuance_time is '下发时间';
comment on column public.task_manage.userId is '用户id';
comment on column public.task_manage.isdanger is '是否存在安全隐患,flase(不存在)';
comment on column public.task_manage.report_time is '上报时间';
Loading…
Cancel
Save