运维服务中台
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.

23 lines
647 B

1 year ago
create table if not exists t_structure_off
(
id serial not null
constraint t_structure_off_pk
primary key,
structure integer not null,
offline integer not null,
offtime varchar not null,
state integer not null
);
comment on column t_structure_off.structure is '结构物id';
comment on column t_structure_off.offline is '离线时长(分钟)';
comment on column t_structure_off.offtime is '最后数据时间';
comment on column t_structure_off.state is '数据状态( 0:有效,1:无效)';
create unique index if not exists t_structure_off_id_uindex
on t_structure_off (id);