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);