Files
geointel/prompts/codex/final/PASS_02_DOMAIN_DATABASE_FINAL.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

690 B

Pass 02 — Domain and Database Foundation Final Prompt

Implement database/domain foundation after backend health is stable.

Required deliverables:

  • SQLAlchemy setup;
  • Alembic setup;
  • PostGIS-compatible geometry model strategy;
  • models for Project, Area, Dataset, AnalysisRun, Detection, Metric, Export;
  • Pydantic schemas;
  • migration instructions;
  • tests for model import and schema validation.

Rules:

  • Follow CANONICAL_DOMAIN_MODELS.md.
  • Follow STATE_MACHINES.md.
  • Do not store geospatial data as arbitrary JSON when a PostGIS geometry column is the correct target.
  • If local PostGIS is unavailable, provide graceful test fallback but keep production target PostGIS.