Add model for CustomerNotifications table

This commit is contained in:
Lance Edgar 2023-09-13 16:23:33 -05:00
parent 0dda359094
commit 5214db0a83

View file

@ -1450,6 +1450,26 @@ class MemberNote(Base):
return self.note or ""
class CustomerNotification(Base):
"""
Represents a customer notification for display at the lane.
https://github.com/CORE-POS/IS4C/blob/master/fannie/classlib2.0/data/models/op/CustomerNotificationsModel.php
"""
__tablename__ = 'CustomerNotifications'
id = sa.Column('customerNotificationID', sa.Integer(), primary_key=True, autoincrement=True, nullable=False)
card_number = sa.Column('cardNo', sa.Integer(), nullable=True)
customer_id = sa.Column('customerID', sa.Integer(), nullable=True)
source = sa.Column(sa.String(length=50), nullable=True)
type = sa.Column(sa.String(length=50), nullable=True)
message = sa.Column(sa.String(length=255), nullable=True)
modifier_module = sa.Column('modifierModule', sa.String(length=50), nullable=True)
def __str__(self):
return self.message or ''
class ReasonCode(Base):
"""
Reason codes for legacy account suspensions.