From ad5cefe55962c1e635afccc8c2ac352b9eda42a4 Mon Sep 17 00:00:00 2001 From: saravanpa-aot Date: Wed, 13 Sep 2023 09:10:59 -0700 Subject: [PATCH] Fix for New Staff users were getting blank status (#2179) --- met-api/src/met_api/models/staff_user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/met-api/src/met_api/models/staff_user.py b/met-api/src/met_api/models/staff_user.py index ae3fc6d25..7cd058d98 100644 --- a/met-api/src/met_api/models/staff_user.py +++ b/met-api/src/met_api/models/staff_user.py @@ -33,7 +33,7 @@ class StaffUser(BaseModel): email_address = Column(db.String(100), nullable=True) contact_number = Column(db.String(50), nullable=True) external_id = Column(db.String(50), nullable=False, unique=True) - status_id = db.Column(db.Integer, ForeignKey('user_status.id'), nullable=False, server_default='1') + status_id = db.Column(db.Integer, ForeignKey('user_status.id'), nullable=False, default=1) tenant_id = db.Column(db.Integer, db.ForeignKey('tenant.id'), nullable=True) @classmethod