From 5214db0a83208e37bd85c81e635807fbe6489b36 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 13 Sep 2023 16:23:33 -0500 Subject: [PATCH] Add model for `CustomerNotifications` table --- corepos/db/office_op/model.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/corepos/db/office_op/model.py b/corepos/db/office_op/model.py index 7328525..68d69d9 100644 --- a/corepos/db/office_op/model.py +++ b/corepos/db/office_op/model.py @@ -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.