Files
TJWaterServer/script/sql/create/24.coordinates.sql
2022-12-17 11:10:15 +08:00

13 lines
284 B
SQL

-- [COORDINATES]
create table coordinates
(
node varchar(32) primary key references _node(id)
, coord point not null
);
-- delete when delete node
create index coordinates_spgist on coordinates using spgist(coord);
create index coordinates_gist on coordinates using gist(coord);