feat: add model for MemberContactPreference (op.memContactPrefs)

This commit is contained in:
Lance Edgar 2024-08-06 11:34:07 -05:00
parent 27a46ed18f
commit b5b29cdcf1

View file

@ -1378,7 +1378,7 @@ class MemberDate(Base):
class MemberContact(Base):
"""
Contact preferences for members
Member contacts
"""
__tablename__ = 'memContact'
@ -1405,6 +1405,19 @@ class MemberContact(Base):
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):
"""
Additional barcode for a member.