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

