non unique memes
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2022-02-13 23:01:47 +01:00
parent db93e9578c
commit 9c61a10d90

View File

@ -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')