增加对上传图片文件名称的校验
This commit is contained in:
@ -38,6 +38,7 @@ class ProjectLabel(DbCommon):
|
||||
class ProjectImage(DbCommon):
|
||||
"""项目图片表"""
|
||||
__tablename__ = "project_image"
|
||||
file_name: Mapped[str] = mapped_column(String(64), nullable=False)
|
||||
image_url: Mapped[str] = mapped_column(String(255), nullable=False)
|
||||
thumb_image_url: Mapped[str] = mapped_column(String(255), nullable=False)
|
||||
project_id: Mapped[int] = mapped_column(Integer)
|
||||
|
Reference in New Issue
Block a user