14 lines
613 B
Markdown
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)
|