diff --git a/mealapi/model/ingredient.py b/mealapi/model/ingredient.py index 16a2dff..ff3c2a2 100644 --- a/mealapi/model/ingredient.py +++ b/mealapi/model/ingredient.py @@ -5,6 +5,6 @@ from .db import db class Ingredient(db.Model): __tablename__ = 'Ingredient' id = db.Column(db.Integer, primary_key=True) - name = db.Column(db.String(255), nullable=False, unique=True) + name = db.Column(db.String(255), nullable=False) meal_id = db.Column(db.Integer, db.ForeignKey('Meal.id')) meal = db.relationship('Meal', back_populates='ingredients')