Skip to content

Commit 0225493

Browse files
authored
Update the length of the user email column (#878)
1 parent 054ff0c commit 0225493

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/app/admin/model/user.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class User(Base):
2727
nickname: Mapped[str] = mapped_column(sa.String(20), comment='昵称')
2828
password: Mapped[str | None] = mapped_column(sa.String(255), comment='密码')
2929
salt: Mapped[bytes | None] = mapped_column(sa.LargeBinary(255), comment='加密盐')
30-
email: Mapped[str | None] = mapped_column(sa.String(50), default=None, unique=True, index=True, comment='邮箱')
30+
email: Mapped[str | None] = mapped_column(sa.String(255), default=None, unique=True, index=True, comment='邮箱')
3131
phone: Mapped[str | None] = mapped_column(sa.String(11), default=None, comment='手机号')
3232
avatar: Mapped[str | None] = mapped_column(sa.String(255), default=None, comment='头像')
3333
status: Mapped[int] = mapped_column(default=1, index=True, comment='用户账号状态(0停用 1正常)')

0 commit comments

Comments
 (0)