# -*- coding: utf-8 -*- from pydantic import BaseModel # Shared properties class SpaceWeightBase(BaseModel): project_id: str | None space_id: str | None vav_box_id: str | None default_weight: float | None = 0.0 # Properties to receive via API to creation class SpaceWeightCreate(SpaceWeightBase): pass # Properties to receive via API on update class SpaceWeightUpdate(SpaceWeightBase): temporary_weight: float | None = 0.0 temporary_weight_update_time: str | None class SpaceWeightInDBBase(SpaceWeightUpdate): id: int | None class Config: orm_mode = True # Additional properties to return vai API class SpaceWeight(SpaceWeightInDBBase): pass # Additional properties stored in DB class SpaceWeightInDB(SpaceWeightInDBBase): pass