Add User.full_mailbox col

This commit is contained in:
Son NK 2020-02-23 13:39:52 +07:00
parent 773e24dd9a
commit f662adf237
1 changed files with 8 additions and 0 deletions

View File

@ -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