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

@@ -4,13 +4,13 @@ import (
"mayfly-go/pkg/model"
)
// 机器命令过滤配置
// MachineCmdConf 机器命令过滤配置
type MachineCmdConf struct {
model.Model
Name string `json:"name"`
Cmds model.Slice[string] `json:"cmds"` // 命令配置
Status int8 `json:"execCmds"` // 状态
Stratege string `json:"stratege"` // 策略,空禁用
Remark string `json:"remark"` // 备注
Name string `json:"name" gorm:"size:100;comment:名称"` // 名称
Cmds model.Slice[string] `json:"cmds" gorm:"type:varchar(500);comment:命令配置"` // 命令配置
Status int8 `json:"status" gorm:"comment:状态"` // 状态
Stratege string `json:"stratege" gorm:"size:100;comment:策略"` // 策略,空禁用
Remark string `json:"remark" gorm:"size:50;comment:备注"` // 备注
}