|
|
@ -131,7 +131,7 @@ class Domain(Base):
|
|
|
|
backref=db.backref('manager_of'), lazy='dynamic')
|
|
|
|
backref=db.backref('manager_of'), lazy='dynamic')
|
|
|
|
max_users = db.Column(db.Integer, nullable=False, default=-1)
|
|
|
|
max_users = db.Column(db.Integer, nullable=False, default=-1)
|
|
|
|
max_aliases = db.Column(db.Integer, nullable=False, default=-1)
|
|
|
|
max_aliases = db.Column(db.Integer, nullable=False, default=-1)
|
|
|
|
max_quota_bytes = db.Column(db.Integer(), nullable=False, default=0)
|
|
|
|
max_quota_bytes = db.Column(db.BigInteger(), nullable=False, default=0)
|
|
|
|
signup_enabled = db.Column(db.Boolean(), nullable=False, default=False)
|
|
|
|
signup_enabled = db.Column(db.Boolean(), nullable=False, default=False)
|
|
|
|
|
|
|
|
|
|
|
|
@property
|
|
|
|
@property
|
|
|
@ -307,8 +307,8 @@ class User(Base, Email):
|
|
|
|
domain = db.relationship(Domain,
|
|
|
|
domain = db.relationship(Domain,
|
|
|
|
backref=db.backref('users', cascade='all, delete-orphan'))
|
|
|
|
backref=db.backref('users', cascade='all, delete-orphan'))
|
|
|
|
password = db.Column(db.String(255), nullable=False)
|
|
|
|
password = db.Column(db.String(255), nullable=False)
|
|
|
|
quota_bytes = db.Column(db.Integer(), nullable=False, default=10**9)
|
|
|
|
quota_bytes = db.Column(db.BigInteger(), nullable=False, default=10**9)
|
|
|
|
quota_bytes_used = db.Column(db.Integer(), nullable=False, default=0)
|
|
|
|
quota_bytes_used = db.Column(db.BigInteger(), nullable=False, default=0)
|
|
|
|
global_admin = db.Column(db.Boolean(), nullable=False, default=False)
|
|
|
|
global_admin = db.Column(db.Boolean(), nullable=False, default=False)
|
|
|
|
enabled = db.Column(db.Boolean(), nullable=False, default=True)
|
|
|
|
enabled = db.Column(db.Boolean(), nullable=False, default=True)
|
|
|
|
|
|
|
|
|
|
|
|