Files
F-r-ldraledigplannerare/backend/app/repositories/user_repository.py
T
2026-06-01 16:48:21 +02:00

13 lines
358 B
Python

"""Abstract repository for User (login accounts)."""
from abc import abstractmethod
from app.entities.user import User
from app.repositories.base import Repository
class UserRepository(Repository[User]):
@abstractmethod
async def get_by_email(self, email: str) -> User | None:
"""Return the user with this email, or None if not found."""