mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
15 lines
565 B
Python
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
|