diff --git a/mealapi/model/ingredient.py b/mealapi/model/ingredient.py index 1524f22..8dc4c28 100644 --- a/mealapi/model/ingredient.py +++ b/mealapi/model/ingredient.py @@ -6,3 +6,4 @@ class Ingredient(db.Model): __tablename__ = 'Ingredient' id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String, nullable=False, unique=True) + meal_id = db.Column(db.Integer, db.ForeignKey('Meal.id'))