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,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:路径"` // 路径
}