# openspec/specs/database-models dir: openspec/specs/database-models index: openspec/specs/database-models/.pi-map.index.md ## role Defines the database schema, SQLAlchemy 2.0 async ORM models, and migration infrastructure for the Headquarter platform's six core entities. ## files - spec.md | Define database schema and SQLAlchemy 2.0 async models for the Headquarter platform with six core entities, Alembic migrations, and seeding. | dep: PostgreSQL, SQLAlchemy 2.0, asyncpg, Alembic, Fernet, pytest, mypy, ruff ## arch Specification-driven architecture using SQLAlchemy 2.0 async declarative models with Alembic for migrations, seeding support, and strict separation between schema definition and implementation. ## tags alembic, spec, define, database, schema, sqlalchemy, async, models ## symbols - ## workflows - ## dirty -