feat(db): 头像链接可为空

This commit is contained in:
xingc
2025-04-24 17:36:58 +08:00
parent af5f4d61b8
commit 840b2a7760
2 changed files with 2 additions and 2 deletions

View File

@@ -69,7 +69,7 @@ class User(BaseModel, DateModel):
)
nickname: Mapped[str] = mapped_column(String(20), comment='昵称')
gender: Mapped[int] = mapped_column(Integer, nullable=True, comment='性别')
avatar_url: Mapped[str] = mapped_column(String(500), comment='头像链接')
avatar_url: Mapped[str] = mapped_column(String(500), nullable=True, comment='头像链接')
wechat_openid: Mapped[str] = mapped_column(String(100), comment='微信openid')
wechat_union_id: Mapped[str] = mapped_column(String(100), nullable=True, comment='微信unionid')
phone: Mapped[str] = mapped_column(String(11), nullable=True, comment='手机号码')