Files
hapi/.scratch/mvp-issues/02-database-schema-migrations.md
T
2026-11-17 14:39:40 -05:00

16 lines
705 B
Markdown

# 02: Database Schema & Migrations
**What to build:** PostgreSQL database initialized with Alembic migrations. First schema includes users table, auth tokens, and basic metadata. CI runs migrations on deploy.
**Blocked by:** 01 (Infrastructure Setup)
**Status:** ready-for-agent
- [ ] Alembic migrations configured and running
- [ ] Users table with JWT token support created
- [ ] Auth tokens table for API key rotation created
- [ ] Migrations applied in staging environment
- [ ] Migrations applied in production environment
- [ ] CI workflow runs migrations on deploy (staging on push to `main`, production on tags)
- [ ] Migration rollback capability tested (e.g., `alembic downgrade + upgrade`)