mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-21 12:52:26 +00:00
feat: 添加部门字段显示并优化用户界面
fix(service): 修复创建时编码重复检查问题 refactor(middleware): 优化CORS中间件配置 style(model): 更新用户模型默认性别值 perf(request): 增强前端请求错误处理 docs(cli): 改进命令行帮助文本 chore: 清理无用配置并更新依赖
This commit is contained in:
@@ -78,7 +78,7 @@ class UserModel(MappedBase):
|
||||
status: Mapped[bool] = mapped_column(Boolean(), default=True, nullable=False, comment="是否启用(True:启用 False:禁用)")
|
||||
mobile: Mapped[Optional[str]] = mapped_column(String(20),nullable=True,unique=True,comment="手机号")
|
||||
email: Mapped[Optional[str]] = mapped_column(String(64),nullable=True,unique=True,comment="邮箱")
|
||||
gender: Mapped[Optional[str]] = mapped_column(String(1), default='0',nullable=True,comment="性别(0:男 1:女 2:未知)")
|
||||
gender: Mapped[Optional[str]] = mapped_column(String(1), default='2',nullable=True,comment="性别(0:男 1:女 2:未知)")
|
||||
avatar: Mapped[Optional[str]] = mapped_column(String(500),nullable=True,comment="头像URL地址")
|
||||
is_superuser: Mapped[bool] = mapped_column(Boolean,default=False,nullable=False,comment="是否超管")
|
||||
last_login: Mapped[Optional[datetime]] = mapped_column(DateTime(timezone=True),nullable=True,comment="最后登录时间")
|
||||
|
||||
Reference in New Issue
Block a user