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.
33 lines
734 B
33 lines
734 B
/*结构物布设图表*/
|
|
create table project_graph
|
|
(
|
|
id serial not null,
|
|
project_id int not null,
|
|
graph varchar(255) not null
|
|
);
|
|
|
|
create unique index project_graph_id_uindex
|
|
on project_graph (id);
|
|
|
|
alter table project_graph
|
|
add constraint project_graph_pk
|
|
primary key (id);
|
|
|
|
|
|
|
|
|
|
/*点位布设表*/
|
|
create table project_points_deploy
|
|
(
|
|
id serial not null,
|
|
point_id int not null,
|
|
graph_id int not null,
|
|
position varchar(1000) not null
|
|
);
|
|
|
|
create unique index project_points_deploy_id_uindex
|
|
on project_points_deploy (id);
|
|
|
|
alter table project_points_deploy
|
|
add constraint project_points_deploy_pk
|
|
primary key (id);
|