it's getting late+
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2022-02-13 21:36:07 +01:00
parent f533ca0743
commit 4150471b75
2 changed files with 2 additions and 2 deletions

View File

@ -7,4 +7,4 @@ class Ingredient(db.Model):
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(255), nullable=False, unique=True)
meal_id = db.Column(db.Integer, db.ForeignKey('Meal.id'))
meal = db.relationship('Meal', back_populates='ingredients', lazy='dynamic')
meal = db.relationship('Meal', back_populates='ingredients')

View File

@ -12,4 +12,4 @@ class Meal(db.Model):
spicy = db.Column(db.Boolean, nullable=True, default=False)
vegan = db.Column(db.Boolean, nullable=True, default=False)
glutenfree = db.Column(db.Boolean, nullable=True, default=False)
ingredients = db.relationship('Ingredient', back_populates='meal')
ingredients = db.relationship('Ingredient', back_populates='meal', lazy='dynamic')