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