Email supports password login, and the system configuration has added a new email login switch.

This commit is contained in:
Liujian committed 2025-07-23 15:50:14 +08:00
1 parent 3e9f0fcf43
commit 4d4f63a911
12 files changed
+278 -27

No files matched your search

@@ -0,0 +1,32 @@
from sqlalchemy import BigInteger, String, DateTime
from sqlalchemy.sql import func
from sqlalchemy.orm import Mapped, mapped_column
from services.common.models.base import Base
from datetime import datetime
class SysConfigLarge(Base):
__tablename__ = "sys_config_large"
id: Mapped[str] = mapped_column(
String(36),
primary_key=True,
autoincrement=False,
comment="Primary key",
)
key: Mapped[str] = mapped_column(String(255), unique=True, nullable=False, comment="Configuration key")
value: Mapped[str] = mapped_column(String, nullable=False, comment="Configuration value")
description: Mapped[str] = mapped_column(String, nullable=False, comment="Configuration description")
created_at: Mapped[datetime] = mapped_column(
DateTime,
nullable=True,
server_default=func.current_timestamp(),
comment="Creation timestamp",
)
updated_at: Mapped[datetime] = mapped_column(
DateTime,
nullable=True,
server_default=func.current_timestamp(),
server_onupdate=func.current_timestamp(),
comment="Last update timestamp",
)