|
|
|
@ -87,6 +87,8 @@ class MasterBase(DefaultBase):
|
|
|
|
category_no: Optional[str] = Field(None, nullable=True)
|
|
|
|
category_no: Optional[str] = Field(None, nullable=True)
|
|
|
|
proportion: Optional[float] = Field(None, nullable=True)
|
|
|
|
proportion: Optional[float] = Field(None, nullable=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class HistoricalBase(MasterBase):
|
|
|
|
|
|
|
|
acquisition_year_ref: Optional[str] = Field(None, nullable=True)
|
|
|
|
|
|
|
|
|
|
|
|
class EquipmentCreate(EquipmentBase):
|
|
|
|
class EquipmentCreate(EquipmentBase):
|
|
|
|
pass
|
|
|
|
pass
|
|
|
|
@ -106,7 +108,7 @@ class EquipmentRead(DefaultBase):
|
|
|
|
maximo_data: Optional[List[dict]] = Field(None, nullable=True)
|
|
|
|
maximo_data: Optional[List[dict]] = Field(None, nullable=True)
|
|
|
|
joined_maximo: Optional[List[dict]] = Field(None, nullable=True)
|
|
|
|
joined_maximo: Optional[List[dict]] = Field(None, nullable=True)
|
|
|
|
min_eac_disposal_cost: Optional[float] = Field(None, nullable=True, le=MAX_PRICE)
|
|
|
|
min_eac_disposal_cost: Optional[float] = Field(None, nullable=True, le=MAX_PRICE)
|
|
|
|
historical_data: Optional[List[MasterBase]] = Field(None, nullable=True)
|
|
|
|
historical_data: Optional[List[HistoricalBase]] = Field(None, nullable=True)
|
|
|
|
|
|
|
|
|
|
|
|
class EquipmentTop10(EquipmentBase):
|
|
|
|
class EquipmentTop10(EquipmentBase):
|
|
|
|
id: UUID
|
|
|
|
id: UUID
|
|
|
|
|