mirror of
https://github.com/fastapi-practices/fastapi_best_architecture.git
synced 2025-08-26 04:33:09 +08:00
Fix the merge issues (#87)
* Fix the login log status value. * Fix config information interface constants * Add fuzzy paging query for login logs * Fix fuzzy paging query for query user interface * Fix jwt middleware internal exception not caught
This commit is contained in:
@ -16,7 +16,7 @@ class LoginLog(DataClassBase):
|
||||
id: Mapped[id_key] = mapped_column(init=False)
|
||||
user_uuid: Mapped[str] = mapped_column(String(50), nullable=False, comment='用户UUID')
|
||||
username: Mapped[str] = mapped_column(String(20), nullable=False, comment='用户名')
|
||||
status: Mapped[int] = mapped_column(insert_default=0, comment='登录状态(0失败 1成功)')
|
||||
status: Mapped[bool] = mapped_column(insert_default=0, comment='登录状态(0失败 1成功)')
|
||||
ipaddr: Mapped[str] = mapped_column(String(50), nullable=False, comment='登录IP地址')
|
||||
location: Mapped[str] = mapped_column(String(255), nullable=False, comment='归属地')
|
||||
browser: Mapped[str] = mapped_column(String(255), nullable=False, comment='浏览器')
|
||||
|
Reference in New Issue
Block a user