class AddAutoMeterSnapshotModel(make_add_model(sqlalchemy_to_pydantic(MeterSnapshot), fields_to_remove=['automatic', 'meter_id'])): heat: Optional[AddHeatMeterSnapshotModel] electricity: Optional[AddElectricityMeterSnapshotModel]
connection_type: str transformation_coefficient: str ChangeElectricityMeterModel = make_change_model(AddElectricityMeterModel) class ChangeMeterModel(make_change_model(sqlalchemy_to_pydantic(Meter))): electricity: Optional[AddElectricityMeterModel] class AddMeterModel(make_add_model(sqlalchemy_to_pydantic(Meter))): electricity: Optional[AddElectricityMeterModel] AddHeatMeterSnapshotModel = make_add_model(sqlalchemy_to_pydantic(HeatMeterSnapshot)) AddElectricityMeterSnapshotModel = make_add_model(sqlalchemy_to_pydantic(ElectricityMeterSnapshot)) AddEnvironmentalReadingModel = make_add_model(sqlalchemy_to_pydantic(EnvironmentalReading), fields_to_remove=['automatic']) class AddMeterSnapshotModel(make_add_model(sqlalchemy_to_pydantic(MeterSnapshot), fields_to_remove=['automatic'])): heat: Optional[AddHeatMeterSnapshotModel] electricity: Optional[AddElectricityMeterSnapshotModel] class AddAutoMeterSnapshotModel(make_add_model(sqlalchemy_to_pydantic(MeterSnapshot), fields_to_remove=['automatic', 'meter_id'])): heat: Optional[AddHeatMeterSnapshotModel] electricity: Optional[AddElectricityMeterSnapshotModel]
class AddMeterModel(make_add_model(sqlalchemy_to_pydantic(Meter))): electricity: Optional[AddElectricityMeterModel]
floors: List[FloorModel] meters: List[MeterModel] building_type: sqlalchemy_to_pydantic(BuildingType) location: sqlalchemy_to_pydantic(Location) responsible_people: Any class LocationModel(sqlalchemy_to_pydantic(Location)): buildings: List[BuildingModel] class BuildingTypeModel(sqlalchemy_to_pydantic(BuildingType)): pass AddResponsibleUserModel = make_add_model( sqlalchemy_to_pydantic(ResponsibleUser)) AddLocationModel = make_add_model(sqlalchemy_to_pydantic(Location)) AddBuildingTypeModel = make_add_model(sqlalchemy_to_pydantic(BuildingType)) AddBuildingModel = make_add_model(sqlalchemy_to_pydantic(Building)) AddFloorModel = make_add_model(sqlalchemy_to_pydantic(Floor)) AddFloorPlanItemModel = make_add_model(sqlalchemy_to_pydantic(FloorPlanItem)) AddRoomModel = make_add_model(sqlalchemy_to_pydantic(Room)) ChangeResponsibleUserModel = make_change_model( sqlalchemy_to_pydantic(ResponsibleUser)) ChangeLocationModel = make_change_model(sqlalchemy_to_pydantic(Location)) ChangeBuildingTypeModel = make_change_model( sqlalchemy_to_pydantic(BuildingType)) ChangeBuildingModel = make_change_model(sqlalchemy_to_pydantic(Building)) ChangeFloorModel = make_change_model(sqlalchemy_to_pydantic(Floor)) ChangeRoomModel = make_change_model(sqlalchemy_to_pydantic(Room))