ui enhancement company
This commit is contained in:
parent
cc3f3f3de5
commit
c01914736b
14 changed files with 876 additions and 159 deletions
|
|
@ -136,6 +136,26 @@ class SmtpCredential(Base):
|
|||
domain: Mapped[MailDomain] = relationship(back_populates="smtp_credentials")
|
||||
|
||||
|
||||
class OrgSecuritySettings(Base):
|
||||
__tablename__ = "org_security_settings"
|
||||
|
||||
id: Mapped[uuid.UUID] = mapped_column(
|
||||
UUID(as_uuid=True),
|
||||
primary_key=True,
|
||||
default=uuid.uuid4,
|
||||
)
|
||||
company_domain: Mapped[str] = mapped_column(String(253), unique=True, index=True)
|
||||
require_strong_passwords: Mapped[bool] = mapped_column(Boolean, default=True)
|
||||
require_mfa_admins: Mapped[bool] = mapped_column(Boolean, default=True)
|
||||
require_mfa_all_users: Mapped[bool] = mapped_column(Boolean, default=False)
|
||||
session_timeout_minutes: Mapped[int] = mapped_column(Integer, default=60)
|
||||
updated_at: Mapped[datetime] = mapped_column(
|
||||
DateTime(timezone=True),
|
||||
server_default=func.now(),
|
||||
onupdate=func.now(),
|
||||
)
|
||||
|
||||
|
||||
class MailGroup(Base):
|
||||
__tablename__ = "mail_groups"
|
||||
__table_args__ = (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue