Initial commit

This commit is contained in:
2026-06-01 16:48:21 +02:00
commit 53d157535a
159 changed files with 13641 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
"""Domain entity: BreakPeriod.
A user-defined window the family wants to be home together (e.g. summer, winter
holidays). Drives the parent-swap tip. Lengths and dates are entirely family-specific;
seeded with editable defaults.
"""
from dataclasses import dataclass
from datetime import date, datetime
from uuid import UUID
@dataclass
class BreakPeriod:
"""A user-defined window for the family to be home together."""
id: UUID
workspace_id: UUID
name: str # 'Summer', 'Winter holidays', ...
start_date: date
end_date: date
target_weeks: int # desired weeks home together for this break
created_at: datetime | None = None
updated_at: datetime | None = None