# 2026-06-14-completed-specs-archive/database-models dir: 2026-06-14-completed-specs-archive/database-models index: 2026-06-14-completed-specs-archive/database-models/.pi-map.index.md ## role Defines the database schema, SQLAlchemy 2.0 async ORM models, Alembic migrations, and seeding logic for six core entities in the Headquarter platform. ## 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 Async SQLAlchemy 2.0 declarative ORM with Alembic for migrations, supporting PostgreSQL with structured seeding and six interconnected domain entities. ## tags alembic, spec, define, database, schema, sqlalchemy, async, models ## symbols - ## workflows - ## dirty -