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

@@ -58,7 +58,7 @@ def upgrade() -> None:
sa.Column('user_id', sa.Integer(), autoincrement=True, nullable=False, comment='用户id'),
sa.Column('nickname', sa.String(length=20), nullable=False, comment='昵称'),
sa.Column('gender', sa.Integer(), nullable=True, comment='性别'),
sa.Column('avatar_url', sa.String(length=500), nullable=False, comment='头像链接'),
sa.Column('avatar_url', sa.String(length=500), nullable=True, comment='头像链接'),
sa.Column('wechat_openid', sa.String(length=100), nullable=False, comment='微信openid'),
sa.Column('wechat_union_id', sa.String(length=100), nullable=True, comment='微信unionid'),
sa.Column('phone', sa.String(length=11), nullable=True, comment='手机号码'),