Declare foreign key for CustData.member_type

This commit is contained in:
Lance Edgar 2020-07-15 22:15:11 -05:00
parent 257ed82d6d
commit 13b8380527

View file

@ -907,6 +907,9 @@ class CustData(Base):
https://github.com/CORE-POS/IS4C/blob/master/fannie/classlib2.0/data/models/op/CustdataModel.php https://github.com/CORE-POS/IS4C/blob/master/fannie/classlib2.0/data/models/op/CustdataModel.php
""" """
__tablename__ = 'custdata' __tablename__ = 'custdata'
__table_args__ = (
sa.ForeignKeyConstraint(['memType'], ['memtype.memtype']),
)
id = sa.Column(sa.Integer(), primary_key=True, autoincrement=True, nullable=False) id = sa.Column(sa.Integer(), primary_key=True, autoincrement=True, nullable=False)