| 87 | |
| 88 | |
| 89 | class WeatherLocation(Base): |
| 90 | __tablename__ = "_prefix__weather_locations" |
| 91 | |
| 92 | id: Mapped[int] = mapped_column(primary_key=True, default=id_generator) |
| 93 | continent: Mapped[str] |
| 94 | city: Mapped[str] |
| 95 | |
| 96 | reports: Mapped[list[Report]] = relationship(back_populates="location") |
| 97 | |
| 98 | def __init__(self, continent: str, city: str): |
| 99 | self.continent = continent |
| 100 | self.city = city |
| 101 | |
| 102 | |
| 103 | class Report(Base): |
no test coverage detected