server_deploy_log.gen.go 2.2 KB

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