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