Files
RadioTestApi/sql/init.sql
T
2026-06-17 13:26:35 +03:00

11 lines
293 B
SQL

CREATE EXTENSION IF NOT EXISTS postgis;
CREATE TABLE IF NOT EXISTS buildings (
id BIGSERIAL PRIMARY KEY,
osm_id BIGINT,
height_m REAL NOT NULL DEFAULT 10,
geom GEOMETRY(Polygon, 4326) NOT NULL
);
CREATE INDEX IF NOT EXISTS buildings_geom_gist ON buildings USING GIST (geom);