create_e703.sql
936 Bytes
CREATE TABLE IF NOT EXISTS public.e703_lotes_activos (
id_snc text,
objectid text,
id_parcela text,
dpto text,
dist text,
padron text,
zona text,
mz text,
lote text,
finca text,
nro_matricula text,
ccatastral text,
obs text,
mz_agr text,
lote_agr text,
tipo_pavim text,
tipo_cuenta integer,
hectareas numeric,
superficie_tierra numeric,
superficie_edificado numeric,
valor_tierra numeric,
valor_edificado numeric,
tipo_parcela integer,
referencia integer,
clave_comparacion text,
snc_cuenta text,
ccc text,
geom geometry(MultiPolygon, 4326) -- SRID 4326 (Regla 28)
);
CREATE INDEX IF NOT EXISTS idx_e703_ccc ON public.e703_lotes_activos (ccc);
CREATE INDEX IF NOT EXISTS idx_e703_snc_cuenta ON public.e703_lotes_activos (snc_cuenta);
CREATE INDEX IF NOT EXISTS idx_e703_geom ON public.e703_lotes_activos USING gist (geom);