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

@@ -8,13 +8,13 @@ import (
type MachineTermOp struct {
model.DeletedModel
MachineId uint64 `json:"machineId"`
Username string `json:"username"`
FileKey string `json:"fileKey"` // 文件key
ExecCmds string `json:"execCmds"` // 执行的命令
MachineId uint64 `json:"machineId" gorm:"not null;comment:机器id"` // 机器id
Username string `json:"username" gorm:"size:60;comment:登录用户名"` // 登录用户名
FileKey string `json:"fileKey" gorm:"size:36;comment:文件"` // 文件key
ExecCmds string `json:"execCmds" gorm:"type:text;comment:执行的命令记录"` // 执行的命令
CreateTime *time.Time `json:"createTime"`
CreatorId uint64 `json:"creatorId"`
Creator string `json:"creator"`
EndTime *time.Time `json:"endTime"`
CreateTime *time.Time `json:"createTime" gorm:"not null;comment:创建时间"` // 创建时间
CreatorId uint64 `json:"creatorId" gorm:"comment:创建人ID"`
Creator string `json:"creator" gorm:"size:50;comment:创建人"` // 创建人
EndTime *time.Time `json:"endTime" gorm:"comment:结束时间"` // 结束时间
}