// Code generated by gorm.io/gen. DO NOT EDIT. // Code generated by gorm.io/gen. DO NOT EDIT. // Code generated by gorm.io/gen. DO NOT EDIT. package model import ( "time" ) const TableNameServerDeployLog = "server_deploy_log" // ServerDeployLog mapped from table type ServerDeployLog struct { ID int64 `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true" json:"id"` AdminID int64 `gorm:"column:admin_id;type:bigint(20);index:admin_id,priority:1" json:"admin_id"` // 操作管理员ID DeployID int64 `gorm:"column:deploy_id;type:bigint(20);not null" json:"deploy_id"` // 部署ID TraceID string `gorm:"column:trace_id;type:varchar(255);not null" json:"trace_id"` // 链路ID BatchID string `gorm:"column:batch_id;type:varchar(255);not null" json:"batch_id"` // 批量ID ContainerName string `gorm:"column:container_name;type:varchar(255)" json:"container_name"` // 容器名称 Name string `gorm:"column:name;type:varchar(255)" json:"name"` // 应用名称 PublishType int32 `gorm:"column:publish_type;type:int(11);default:1" json:"publish_type"` // 发布类型 Version string `gorm:"column:version;type:varchar(255)" json:"version"` // 版本号 Extra string `gorm:"column:extra;type:json" json:"extra"` // 额外参数 LogFile string `gorm:"column:log_file;type:varchar(255)" json:"log_file"` // 日志路径 ErrorMsg string `gorm:"column:error_msg;type:mediumtext" json:"error_msg"` // 错误提示 Status int32 `gorm:"column:status;type:int(11);not null;default:1" json:"status"` // 部署状态 EndAt time.Time `gorm:"column:end_at;type:datetime" json:"end_at"` // 部署结束时间 CreatedAt time.Time `gorm:"column:created_at;type:datetime;not null" json:"created_at"` // 创建时间 } // TableName ServerDeployLog's table name func (*ServerDeployLog) TableName() string { return TableNameServerDeployLog }