This commit is contained in:
2025-09-09 06:04:29 -07:00
parent a62b4e8c12
commit 1c69424fff
133 changed files with 190095 additions and 322 deletions

View File

@@ -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")