create table if not exists point_device ( id serial not null constraint point_device_pk primary key, point_id integer not null, device_id integer ); comment on table point_device is '点位-设备关联表'; create unique index if not exists point_device_id_uindex on point_device (id);