mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-22 08:21:13 -05:00
Add created_by_id to jobs table.
The user logged in will be the user marked as creating the job. The admin code already sends the created_by user when creating a job.
This commit is contained in:
@@ -247,6 +247,8 @@ class Job(db.Model):
|
||||
index=False,
|
||||
unique=False,
|
||||
nullable=True)
|
||||
created_by = db.relationship('User')
|
||||
created_by_id = db.Column(UUID(as_uuid=True), db.ForeignKey('users.id'), index=True, nullable=False)
|
||||
|
||||
|
||||
VERIFY_CODE_TYPES = ['email', 'sms']
|
||||
|
||||
Reference in New Issue
Block a user