mantimon-tcg/backend/app
Cal Corum 7fcb86ff51 Implement UserRepository pattern with dependency injection
- Add UserRepository and LinkedAccountRepository protocols to protocols.py
- Add UserEntry and LinkedAccountEntry DTOs for service layer decoupling
- Implement PostgresUserRepository and PostgresLinkedAccountRepository
- Refactor UserService to use constructor-injected repositories
- Add get_user_service factory and UserServiceDep to API deps
- Update auth.py and users.py endpoints to use UserServiceDep
- Rewrite tests to use FastAPI dependency overrides (no monkey patching)

This follows the established repository pattern used by DeckService and
CollectionService, enabling future offline fork support.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 07:30:16 -06:00
..
api Implement UserRepository pattern with dependency injection 2026-01-30 07:30:16 -06:00
core Implement GameService.execute_action enhancements (GS-003) 2026-01-29 15:15:34 -06:00
data Phase 3: Collections + Decks - Services and DI architecture 2026-01-28 11:27:14 -06:00
db Fix security and validation issues from code review 2026-01-28 14:16:07 -06:00
repositories Implement UserRepository pattern with dependency injection 2026-01-30 07:30:16 -06:00
schemas Implement REST endpoints for game management (API-001) 2026-01-29 23:09:12 -06:00
services Implement UserRepository pattern with dependency injection 2026-01-30 07:30:16 -06:00
socketio Implement /game namespace event handlers (WS-005, WS-006) 2026-01-29 20:40:06 -06:00
__init__.py Add backend foundation with uv, Black, and pre-commit hooks 2026-01-24 00:12:33 -06:00
config.py Fix security and validation issues from code review 2026-01-28 14:16:07 -06:00
main.py Implement REST endpoints for game management (API-001) 2026-01-29 23:09:12 -06:00