/*结构物布设图表*/ 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);