mirror of
https://github.com/simple-login/app.git
synced 2024-09-20 23:16:00 +08:00
Add User.full_mailbox col
This commit is contained in:
parent
773e24dd9a
commit
f662adf237
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue