"""Domain entity: Workspace (shared planning space for 1–2 parents).""" from dataclasses import dataclass from datetime import datetime from uuid import UUID @dataclass class Workspace: id: UUID name: str created_at: datetime | None = None # §todo item 2 — per-workspace opt-in, default False: allow the planning # engine to fund a free day (Saturday, Sunday, public holiday) with a # parental-benefit day instead of leaving it unpaid. Never vacation (see # `app.services.allocation_service.REASON_FP_RED_DAY`). Threaded into the # allocator by `AllocationInputLoader.load` as `AllocationInput.take_pl_on_red_days`. take_pl_on_red_days: bool = False