From 570ee6cd86654e33c19344e622b22bf995cff886 Mon Sep 17 00:00:00 2001 From: Cliff Hill Date: Tue, 7 Nov 2023 12:47:18 -0500 Subject: [PATCH] Updating the InvitedUser model to have the expired flag. Signed-off-by: Cliff Hill --- app/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/models.py b/app/models.py index 557d63569..f0bca7dcb 100644 --- a/app/models.py +++ b/app/models.py @@ -1887,7 +1887,8 @@ class NotificationHistory(db.Model, HistoryModel): INVITE_PENDING = "pending" INVITE_ACCEPTED = "accepted" INVITE_CANCELLED = "cancelled" -INVITED_USER_STATUS_TYPES = [INVITE_PENDING, INVITE_ACCEPTED, INVITE_CANCELLED] +INVITE_EXPIRED = "expired" +INVITED_USER_STATUS_TYPES = [INVITE_PENDING, INVITE_ACCEPTED, INVITE_CANCELLED, INVITE_EXPIRED] class InviteStatusType(db.Model): @@ -1930,6 +1931,7 @@ class InvitedUser(db.Model): default=SMS_AUTH_TYPE, ) folder_permissions = db.Column(JSONB(none_as_null=True), nullable=False, default=[]) + expired = db.Column(db.Boolean, nullable=False, default=False) # would like to have used properties for this but haven't found a way to make them # play nice with marshmallow yet