# 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`)