mantimon-tcg/backend/app/repositories/postgres
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
..
__init__.py Implement UserRepository pattern with dependency injection 2026-01-30 07:30:16 -06:00
collection.py Phase 3: Collections + Decks - Services and DI architecture 2026-01-28 11:27:14 -06:00
deck.py Fix medium priority issues from code review 2026-01-28 14:32:08 -06:00
linked_account.py Implement UserRepository pattern with dependency injection 2026-01-30 07:30:16 -06:00
user.py Implement UserRepository pattern with dependency injection 2026-01-30 07:30:16 -06:00