mirror of
https://github.com/sstent/aicyclingcoach-go.git
synced 2026-02-14 11:22:35 +00:00
sync
This commit is contained in:
@@ -11,4 +11,5 @@ class Plan(BaseModel):
|
||||
parent_plan_id = Column(Integer, ForeignKey('plans.id'), nullable=True)
|
||||
|
||||
parent_plan = relationship("Plan", remote_side="Plan.id", backref="child_plans")
|
||||
analyses = relationship("Analysis", back_populates="plan")
|
||||
workouts = relationship("Workout", back_populates="plan", cascade="all, delete-orphan")
|
||||
Reference in New Issue
Block a user