18 lines
549 B
Python
18 lines
549 B
Python
"""Abstract repository interface for BreakPeriod.
|
|
|
|
Adds entity-specific queries on top of the generic CRUD contract. Concrete
|
|
implementations live in app/repositories_impl/<backend>/.
|
|
"""
|
|
|
|
from abc import abstractmethod
|
|
from uuid import UUID
|
|
|
|
from app.entities.break_period import BreakPeriod
|
|
from app.repositories.base import Repository
|
|
|
|
|
|
class BreakPeriodRepository(Repository[BreakPeriod]):
|
|
@abstractmethod
|
|
async def get_by_workspace(self, workspace_id: UUID) -> list[BreakPeriod]:
|
|
"""Return all break periods for a workspace."""
|