setting, session and profile
This commit is contained in:
parent
48eea5d201
commit
4a563f4f34
31 changed files with 1797 additions and 159 deletions
|
|
@ -39,7 +39,8 @@ class Account(Base):
|
|||
first_name: Mapped[str] = mapped_column(String(80))
|
||||
last_name: Mapped[str] = mapped_column(String(80))
|
||||
date_of_birth: Mapped[date] = mapped_column(Date)
|
||||
phone_number: Mapped[str] = mapped_column(String(24), unique=True)
|
||||
phone_number: Mapped[str] = mapped_column(String(24))
|
||||
profile_picture_url: Mapped[str | None] = mapped_column(Text, nullable=True)
|
||||
company_domain: Mapped[str | None] = mapped_column(String(253), nullable=True)
|
||||
org_role: Mapped[str] = mapped_column(String(20), default="user")
|
||||
member_status: Mapped[str] = mapped_column(String(20), default="active")
|
||||
|
|
@ -50,6 +51,8 @@ class Account(Base):
|
|||
)
|
||||
invitation_email: Mapped[str | None] = mapped_column(String(320), nullable=True)
|
||||
must_change_password: Mapped[bool] = mapped_column(Boolean, default=False)
|
||||
mfa_enabled: Mapped[bool] = mapped_column(Boolean, default=False)
|
||||
session_timeout_minutes: Mapped[int] = mapped_column(Integer, default=10080)
|
||||
section_id: Mapped[uuid.UUID | None] = mapped_column(
|
||||
UUID(as_uuid=True),
|
||||
ForeignKey("org_sections.id"),
|
||||
|
|
@ -198,7 +201,7 @@ class OrgSecuritySettings(Base):
|
|||
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)
|
||||
session_timeout_minutes: Mapped[int] = mapped_column(Integer, default=10080)
|
||||
updated_at: Mapped[datetime] = mapped_column(
|
||||
DateTime(timezone=True),
|
||||
server_default=func.now(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue