From 9c61a10d901cfcd7adcdd5f182324ebc4cbdba91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Sun, 13 Feb 2022 23:01:47 +0100 Subject: [PATCH] non unique memes --- mealapi/model/ingredient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')