From 9702e802218796431c1ab29ed197b9e8f863a616 Mon Sep 17 00:00:00 2001 From: Clayton Craft Date: Sun, 14 Mar 2021 23:20:58 -0700 Subject: [PATCH] models: add 'enabled' column to User table This flag will be used to block login to an account, for example when the account is scheduled for deletion. --- ridecasa/models/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ridecasa/models/models.py b/ridecasa/models/models.py index 3fc3637..19b632f 100644 --- a/ridecasa/models/models.py +++ b/ridecasa/models/models.py @@ -17,6 +17,7 @@ class User(db.Entity, UserMixin): username = orm.Required(str, unique=True) password = orm.Required(str) email = orm.Required(str) + enabled = orm.Required(bool) last_login = orm.Optional(datetime.datetime) activities = orm.Set('Activity') prefs = orm.Optional('UserPref', cascade_delete=True) -- 2.45.2