From f662adf237c37b64b2504a7517966b53dbca61fb Mon Sep 17 00:00:00 2001 From: Son NK Date: Sun, 23 Feb 2020 13:39:52 +0700 Subject: [PATCH] Add User.full_mailbox col --- app/models.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/models.py b/app/models.py index f6f92a3b..344d23e8 100644 --- a/app/models.py +++ b/app/models.py @@ -137,6 +137,14 @@ class User(db.Model, ModelMixin, UserMixin): db.Boolean, default=False, nullable=False, server_default="0" ) + # only use mailbox instead of default to user email + # this requires a migration before to: + # 1. create default mailbox for the user email address + # 2. assign existing aliases to this default mailbox + full_mailbox = db.Column( + db.Boolean, default=False, nullable=False, server_default="0" + ) + profile_picture = db.relationship(File) @classmethod