Add general region table

This commit is contained in:
WQY\qiong
2023-04-29 14:25:43 +08:00
parent c6518cbae1
commit 12150ef57e
5 changed files with 12 additions and 14 deletions

View File

@@ -0,0 +1,7 @@
create table region
(
id text primary key
, boundary geometry not null unique
);
create index region_gist on region using gist(boundary);

View File

@@ -1,9 +0,0 @@
create table virtual_district
(
id text primary key
, center varchar(32) references _node(id) not null unique
, boundary geometry unique
, nodes varchar(32)[]
);
create index virtual_district_gist on virtual_district using gist(boundary);