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