mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-23 08:51:30 -05:00
Updated model with a new table notification_to_email_sender and created db migration script
This commit is contained in:
@@ -1414,3 +1414,24 @@ class ServiceLetterContact(db.Model):
|
||||
'created_at': self.created_at.strftime(DATETIME_FORMAT),
|
||||
'updated_at': self.updated_at.strftime(DATETIME_FORMAT) if self.updated_at else None
|
||||
}
|
||||
|
||||
|
||||
class NotificationSmsSender(db.Model):
|
||||
__tablename__ = "notification_to_email_sender"
|
||||
|
||||
notification_id = db.Column(
|
||||
UUID(as_uuid=True),
|
||||
db.ForeignKey('notifications.id'),
|
||||
unique=False,
|
||||
index=True,
|
||||
nullable=False,
|
||||
primary_key=True
|
||||
)
|
||||
service_email_reply_to_id = db.Column(
|
||||
UUID(as_uuid=True),
|
||||
db.ForeignKey('service_email_reply_to.id'),
|
||||
unique=False,
|
||||
index=True,
|
||||
nullable=False,
|
||||
primary_key=True
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user