| 68 | |
| 69 | |
| 70 | class WeatherLocation(Base): |
| 71 | __tablename__ = "weather_locations" |
| 72 | |
| 73 | id: Mapped[int] = mapped_column(primary_key=True) |
| 74 | continent: Mapped[str] |
| 75 | city: Mapped[str] |
| 76 | |
| 77 | reports: Mapped[list[Report]] = relationship(back_populates="location") |
| 78 | |
| 79 | def __init__(self, continent: str, city: str): |
| 80 | self.continent = continent |
| 81 | self.city = city |
| 82 | |
| 83 | |
| 84 | class Report(Base): |
no test coverage detected