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.
43 lines
1.1 KiB
43 lines
1.1 KiB
1 year ago
|
create table t_pump_information
|
||
|
(
|
||
|
id serial not null,
|
||
|
structure_id int not null,
|
||
|
area varchar(255),
|
||
|
scale varchar(255),
|
||
|
water_type varchar(255),
|
||
|
elc_type varchar(255),
|
||
|
by_type varchar(255),
|
||
|
func varchar(255),
|
||
|
num int,
|
||
|
start_time varchar(255),
|
||
|
reinforce_time varchar(255)
|
||
|
);
|
||
|
|
||
|
comment on column t_pump_information.structure_id is '结构物id';
|
||
|
|
||
|
comment on column t_pump_information.area is '所属区域';
|
||
|
|
||
|
comment on column t_pump_information.scale is '泵站规模';
|
||
|
|
||
|
comment on column t_pump_information.water_type is '水泵型号';
|
||
|
|
||
|
comment on column t_pump_information.elc_type is '电机型号';
|
||
|
|
||
|
comment on column t_pump_information.by_type is '变压器型号';
|
||
|
|
||
|
comment on column t_pump_information.func is '类型';
|
||
|
|
||
|
comment on column t_pump_information.num is '机组数量';
|
||
|
|
||
|
comment on column t_pump_information.start_time is '泵站建成时间';
|
||
|
|
||
|
comment on column t_pump_information.reinforce_time is '泵站除险加固时间';
|
||
|
|
||
|
create unique index t_pump_information_id_uindex
|
||
|
on t_pump_information (id);
|
||
|
|
||
|
alter table t_pump_information
|
||
|
add constraint t_pump_information_pk
|
||
|
primary key (id);
|
||
|
|