Fix User-Chore relationship with lazy loading

This commit is contained in:
2026-01-28 08:23:46 +11:00
parent fb53891bc2
commit 7eb45c8b93

View File

@@ -18,5 +18,5 @@ class User(Base):
created_at = Column(DateTime, default=datetime.utcnow) created_at = Column(DateTime, default=datetime.utcnow)
updated_at = Column(DateTime, default=datetime.utcnow, onupdate=datetime.utcnow) updated_at = Column(DateTime, default=datetime.utcnow, onupdate=datetime.utcnow)
# Relationships # Relationships (lazy loaded to avoid circular imports)
chores = relationship("Chore", back_populates="assigned_user") chores = relationship("Chore", back_populates="assigned_user", lazy="select")