feat: add model for MemberContactPreference
(op.memContactPrefs
)
This commit is contained in:
parent
27a46ed18f
commit
b5b29cdcf1
|
@ -1378,7 +1378,7 @@ class MemberDate(Base):
|
||||||
|
|
||||||
class MemberContact(Base):
|
class MemberContact(Base):
|
||||||
"""
|
"""
|
||||||
Contact preferences for members
|
Member contacts
|
||||||
"""
|
"""
|
||||||
__tablename__ = 'memContact'
|
__tablename__ = 'memContact'
|
||||||
|
|
||||||
|
@ -1405,6 +1405,19 @@ class MemberContact(Base):
|
||||||
return str(self.preference)
|
return str(self.preference)
|
||||||
|
|
||||||
|
|
||||||
|
class MemberContactPreference(Base):
|
||||||
|
"""
|
||||||
|
Member contact preferences
|
||||||
|
"""
|
||||||
|
__tablename__ = 'memContactPrefs'
|
||||||
|
|
||||||
|
id = sa.Column('pref_id', sa.Integer(), primary_key=True, autoincrement=False, nullable=False)
|
||||||
|
description = sa.Column('pref_description', sa.String(length=50), nullable=True)
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return self.description or ""
|
||||||
|
|
||||||
|
|
||||||
class MemberBarcode(Base):
|
class MemberBarcode(Base):
|
||||||
"""
|
"""
|
||||||
Additional barcode for a member.
|
Additional barcode for a member.
|
||||||
|
|
Loading…
Reference in a new issue