feat: 系统升级支持数据库自动迁移,避免手动执行升级脚本

This commit is contained in:
meilin.huang
2025-02-13 21:11:23 +08:00
parent efb2b7368c
commit aa393590b2
78 changed files with 1965 additions and 1827 deletions

View File

@@ -5,9 +5,9 @@ import "mayfly-go/pkg/model"
type File struct {
model.Model
FileKey string `json:"fikeKey"` // 文件key
Filename string `json:"filename"` // 文件名
Path string `json:"path" ` // 文件路径
FileKey string `json:"fikeKey" gorm:"size:32;not null;"` // 文件key
Filename string `json:"filename" gorm:"size:255;not null;"` // 文件名
Path string `json:"path" gorm:"size:500;"` // 文件路径
Size int64 `json:"size"`
}