Skip to content

Commit

Permalink
mend
Browse files Browse the repository at this point in the history
  • Loading branch information
hanaawad24 committed Nov 27, 2024
1 parent 1713a05 commit 339e816
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pvsite_datamodel/sqlmodels.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ class SiteSQL(Base, CreatedMixin):
index=True,
comment="The UUID of the client this site belongs to",
)
model_uuid = sa.Column(UUID(as_uuid=True), sa.ForeignKey("ml_model.model_uuid"))

forecasts: Mapped[List["ForecastSQL"]] = relationship("ForecastSQL", back_populates="site")
generation: Mapped[List["GenerationSQL"]] = relationship("GenerationSQL")
Expand All @@ -193,9 +194,6 @@ class SiteSQL(Base, CreatedMixin):
client: Mapped[List["ClientSQL"]] = relationship("ClientSQL", back_populates="sites")
ml_model: Mapped[Optional[MLModelSQL]] = relationship("MLModelSQL", back_populates="sites")

model_uuid = sa.Column(UUID(as_uuid=True), sa.ForeignKey("ml_model.model_uuid"))
ml_model: Mapped[Optional[MLModelSQL]] = relationship("MLModelSQL", back_populates="sites")


class ClientSQL(Base, CreatedMixin):
"""Class representing the client table.
Expand Down

0 comments on commit 339e816

Please sign in to comment.