diff --git a/corepos/db/office_op/model.py b/corepos/db/office_op/model.py index c7fa505..2e25c34 100644 --- a/corepos/db/office_op/model.py +++ b/corepos/db/office_op/model.py @@ -633,6 +633,7 @@ class ProductLikeCode(Base): """ __tablename__ = 'upcLike' __table_args__ = ( + sa.ForeignKeyConstraint(['upc'], ['products.upc']), sa.ForeignKeyConstraint(['likeCode'], ['likeCodes.likeCode']), )