Files
geointel/prompts/codex/PASS_02_DATABASE_MODELS.md
T
Codex 6ea3586a3e
GeoIntel CI / docs-smoke (push) Has been cancelled
GeoIntel CI / contract-smoke (push) Has been cancelled
Initial GeoIntel V1 foundation
2026-06-16 23:36:32 +02:00

32 lines
723 B
Markdown

# Codex Pass 02 — Database and Models
## Goal
Add SQLAlchemy/Alembic/PostGIS-ready database foundation.
## Must implement
- database session management;
- base model conventions;
- models for Project, Area, Dataset, AnalysisRun, Metric, Export, Job;
- migration scaffold;
- geometry field strategy documented in code comments or docs;
- indexes for FK and future geometry operations;
- tests for model imports.
## Must preserve
- PostGIS as spatial database;
- additive migration approach;
- UUID or chosen ID strategy consistently.
## Must not implement
- destructive migrations;
- live GRB/OSM fetch;
- AI tables beyond V1 scaffold unless already specified.
## Output
Use `docs/M6_FINAL_HANDOFF_TEMPLATE.md`.