mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-04 00:10:25 +08:00
feat: 系统升级支持数据库自动迁移,避免手动执行升级脚本
This commit is contained in:
@@ -5,10 +5,8 @@ import "mayfly-go/pkg/model"
|
||||
type MachineFile struct {
|
||||
model.Model
|
||||
|
||||
Name string `json:"name"`
|
||||
// 机器id
|
||||
MachineId uint64 `json:"machineId"`
|
||||
Type int `json:"type"`
|
||||
// 路径
|
||||
Path string `json:"path"`
|
||||
Name string `json:"name" gorm:"not null;size:50;comment:机器文件配置(linux一切皆文件,故也可以表示目录)"` // 机器文件配置(linux一切皆文件,故也可以表示目录)
|
||||
MachineId uint64 `json:"machineId" gorm:"not null;comment:机器id"` // 机器id
|
||||
Type string `json:"type" gorm:"not null;size:32;comment:1:目录;2:文件"` // 1:目录;2:文件
|
||||
Path string `json:"path" gorm:"not null;size:150;comment:路径"` // 路径
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user