mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-22 00:11:16 -05:00
[WIP]
Start to add template_version to jobs and notification
This commit is contained in:
@@ -224,6 +224,7 @@ class Job(db.Model):
|
||||
service = db.relationship('Service', backref=db.backref('jobs', lazy='dynamic'))
|
||||
template_id = db.Column(UUID(as_uuid=True), db.ForeignKey('templates.id'), index=True, unique=False)
|
||||
template = db.relationship('Template', backref=db.backref('jobs', lazy='dynamic'))
|
||||
template_version = db.Column(db.Integer, nullable=False)
|
||||
created_at = db.Column(
|
||||
db.DateTime,
|
||||
index=False,
|
||||
@@ -301,6 +302,7 @@ class Notification(db.Model):
|
||||
service = db.relationship('Service')
|
||||
template_id = db.Column(UUID(as_uuid=True), db.ForeignKey('templates.id'), index=True, unique=False)
|
||||
template = db.relationship('Template')
|
||||
template_version = db.Column(db.Integer, nullable=False)
|
||||
content_char_count = db.Column(db.Integer, nullable=True)
|
||||
created_at = db.Column(
|
||||
db.DateTime,
|
||||
|
||||
Reference in New Issue
Block a user