mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-03 16:00:25 +08:00
feat: 系统升级支持数据库自动迁移,避免手动执行升级脚本
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user