mantimon-tcg/backend/app/db
Cal Corum ca3aca2b38 Add has_starter_deck to user profile API response
The frontend routing guard checks has_starter_deck to decide whether to
redirect users to starter selection. The field was missing from the API
response, causing authenticated users with a starter deck to be
incorrectly redirected to /starter on page refresh.

- Add has_starter_deck computed property to User model
- Add has_starter_deck field to UserResponse schema
- Add unit tests for User model properties
- Add API tests for has_starter_deck in profile response

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 23:14:04 -06:00
..
migrations Fix security and validation issues from code review 2026-01-28 14:16:07 -06:00
models Add has_starter_deck to user profile API response 2026-01-30 23:14:04 -06:00
__init__.py Add FastAPI lifespan hooks and fix Phase 1 gaps 2026-01-27 15:37:19 -06:00
base.py Add database infrastructure with SQLAlchemy models and test suite 2026-01-27 10:17:30 -06:00
redis.py Add database infrastructure with SQLAlchemy models and test suite 2026-01-27 10:17:30 -06:00
session.py Add database infrastructure with SQLAlchemy models and test suite 2026-01-27 10:17:30 -06:00