from pydantic import BaseModel class CityWeatherBase(BaseModel): city_name: str temperature: float weather: str | None = None other_info: str | None = None class CityWeatherCreate(CityWeatherBase): pass class CityWeather(CityWeatherBase): id: int class Config: orm_mode = True