lots of things
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user