lots of things

This commit is contained in:
2025-06-06 22:02:44 -05:00
parent 9daee50a3a
commit 96c634897b
30 changed files with 1120 additions and 182 deletions

View File

@ -25,5 +25,6 @@ class PlantUpdate(db.Model):
update_type = db.Column(db.String(50), nullable=False)
description = db.Column(db.Text, nullable=True)
created_at = db.Column(db.DateTime, default=datetime.utcnow)
media_items = db.relationship('Media', back_populates='update', lazy=True)
# Link to Media.update_id (must match the FK defined there)
media_items = db.relationship('Media', back_populates='update', lazy=True)