mirror of
https://github.com/sstent/AICyclingCoach.git
synced 2026-02-04 13:31:44 +00:00
sync
This commit is contained in:
@@ -11,5 +11,6 @@ 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")
|
||||
analyses = relationship("Analysis", back_populates="plan", lazy="selectin")
|
||||
workouts = relationship("Workout", back_populates="plan", cascade="all, delete-orphan", lazy="selectin")
|
||||
rules = relationship("Rule", secondary="plan_rules", back_populates="plans", lazy="selectin")
|
||||
Reference in New Issue
Block a user