mirror of
https://github.com/fastapi-practices/fastapi-best-architecture.git
synced 2026-09-21 21:15:13 +00:00
Update the length style of the model columns (#883)
* Update the length style of the model columns * Fix opera log table username column length * Fix login log table username column length
This commit is contained in:
@@ -11,7 +11,7 @@ class Notice(Base):
|
||||
__tablename__ = 'sys_notice'
|
||||
|
||||
id: Mapped[id_key] = mapped_column(init=False)
|
||||
title: Mapped[str] = mapped_column(sa.String(50), comment='标题')
|
||||
title: Mapped[str] = mapped_column(sa.String(64), comment='标题')
|
||||
type: Mapped[int] = mapped_column(comment='类型(0:通知、1:公告)')
|
||||
status: Mapped[int] = mapped_column(comment='状态(0:隐藏、1:显示)')
|
||||
content: Mapped[str] = mapped_column(UniversalText, comment='内容')
|
||||
|
||||
Reference in New Issue
Block a user