Declare foreign key for CustData.member_type
This commit is contained in:
parent
257ed82d6d
commit
13b8380527
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue