diff --git a/corepos/db/office_op/model.py b/corepos/db/office_op/model.py index 400c4a6..3684d39 100644 --- a/corepos/db/office_op/model.py +++ b/corepos/db/office_op/model.py @@ -907,6 +907,9 @@ class CustData(Base): https://github.com/CORE-POS/IS4C/blob/master/fannie/classlib2.0/data/models/op/CustdataModel.php """ __tablename__ = 'custdata' + __table_args__ = ( + sa.ForeignKeyConstraint(['memType'], ['memtype.memtype']), + ) id = sa.Column(sa.Integer(), primary_key=True, autoincrement=True, nullable=False)