testing db connection and table creation

This commit is contained in:
2022-09-18 14:40:54 -04:00
parent 082c342256
commit 754cb1235c
2 changed files with 40 additions and 4 deletions

View File

@@ -60,10 +60,8 @@ class IngredientConnection(Base):
__tablename__ = 'IngredientConnection'
ingredient_a = Column(String,
ForeignKey("RecipeIngredientParts.ingredient"),
primary_key = True)
ingredient_b = Column(String,
ForeignKey("RecipeIngredientParts.ingredient"),
primary_key = True)
recipe_count = Column(Integer)
UniqueConstraint(ingredient_a, ingredient_b)