mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 07:35:34 -05:00
Add notification_type to notification table.
It seems like an oversight not to include the notification type in the notifcation. When updating statistics a query to the template table is required to get the type, this update will mean that query does not have to happen.
This commit is contained in:
@@ -345,6 +345,7 @@ class Notification(db.Model):
|
||||
api_key = db.relationship('ApiKey')
|
||||
key_type = db.Column(db.String, db.ForeignKey('key_types.name'), index=True, unique=False)
|
||||
content_char_count = db.Column(db.Integer, nullable=True)
|
||||
notification_type = db.Column(db.String(), nullable=False)
|
||||
created_at = db.Column(
|
||||
db.DateTime,
|
||||
index=False,
|
||||
|
||||
Reference in New Issue
Block a user