peng.peng
1 year ago
2 changed files with 41 additions and 1 deletions
@ -0,0 +1,38 @@ |
|||
create table fire_alarm |
|||
( |
|||
id serial |
|||
constraint fire_alarm_pk |
|||
primary key, |
|||
"createTime" timestamp(6) with time zone, |
|||
location text, |
|||
scene varchar(255), |
|||
fire_material varchar(255), |
|||
level varchar(255), |
|||
state integer default 1, |
|||
longitude varchar(50), |
|||
latitude varchar(50), |
|||
type varchar(50), |
|||
type_param varchar(50) |
|||
); |
|||
|
|||
comment on table fire_alarm is '智慧消防大屏 告警上报表'; |
|||
|
|||
comment on column fire_alarm."createTime" is '创建时间'; |
|||
|
|||
comment on column fire_alarm.location is '地点'; |
|||
|
|||
comment on column fire_alarm.scene is '场所'; |
|||
|
|||
comment on column fire_alarm.fire_material is '燃烧物质'; |
|||
|
|||
comment on column fire_alarm.level is '危险等级'; |
|||
|
|||
comment on column fire_alarm.state is '事件状态:1 进行中 2已结束'; |
|||
|
|||
comment on column fire_alarm.type is '警情类型'; |
|||
|
|||
comment on column fire_alarm.type_param is '警情类型对应的不同属性 '; |
|||
|
|||
create unique index fire_alarm_id_uindex |
|||
on fire_alarm (id); |
|||
|
Loading…
Reference in new issue