fix: 修复注册异常,删除用户异常,调整用户信息存储时间

This commit is contained in:
2025-02-23 03:58:38 +08:00
parent 5be35d8231
commit df5f2977d4
10 changed files with 984 additions and 32 deletions

View File

@@ -17,13 +17,11 @@ class User(BaseModel):
username = fields.CharField(
max_length=255,
unique=True,
description="用户名",
source_field="username" # 映射到数据库字段 username
)
"""
用户名。
- 必须唯一。
- 最大长度为 255 个字符。
- 映射到数据库字段 username。
"""