Skip to content

Commit

Permalink
Update models.py
Browse files Browse the repository at this point in the history
  • Loading branch information
neilshaabi committed Feb 25, 2024
1 parent 69d58bc commit e02f94d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,5 +222,7 @@ class Unavailability(db.Model):
start_date: so.Mapped[date] = so.mapped_column(sa.Date)
end_date: so.Mapped[date] = so.mapped_column(sa.Date)
reason: so.Mapped[Optional[str]] = so.mapped_column(sa.Text)

therapist: so.Mapped["Therapist"] = so.relationship(back_populates="unavailabilities")

therapist: so.Mapped["Therapist"] = so.relationship(
back_populates="unavailabilities"
)

0 comments on commit e02f94d

Please sign in to comment.