Model/backend/condition/domain/asset_condition.py
2026-01-21 12:36:35 +00:00

15 lines
565 B
Python

from dataclasses import dataclass
from typing import Optional
from datetime import date
from backend.condition.domain.element import Element
@dataclass
class AssetCondition:
uprn: int
element: Element # TODO: should HHSRS elements be handled differently?
condition_description: str # TODO: this probably needs to be some sort of enum so it's searchable/filterable on the frontend. Could be hard to map from string though
quantity: int
renewal_year: Optional[int] = None
source: Optional[str] = None
install_date: Optional[date] = None