Files
hapi/.scratch/mvp-issues/02b-users-auth-tokens-schema.md
T
2026-11-17 14:39:40 -05:00

14 lines
613 B
Markdown

# 02b: Users Table & Auth Tokens Schema
**What to build:** Database schema for users and authentication tokens with JWT support.
**Blocked by:** 02a (Alembic Migration Framework)
**Status:** ready-for-agent
- [ ] `users` table created with columns: id, email, hashed_password, is_active, created_at, updated_at
- [ ] `auth_tokens` table created with columns: id, user_id, token, token_type, expires_at, revoked_at
- [ ] Indexes added for common queries (email lookup, token expiration)
- [ ] Migration applied to staging and production
- [ ] Database constraints verified (unique email, foreign key to users)