server_deploy_stat.gen.go 1.6 KB

123456789101112131415161718192021222324252627282930
  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 TableNameServerDeployStat = "server_deploy_stat"
  9. // ServerDeployStat mapped from table <server_deploy_stat>
  10. type ServerDeployStat 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. BatchID string `gorm:"column:batch_id;type:varchar(255);not null" json:"batch_id"` // 批量ID
  14. Total int64 `gorm:"column:total;type:bigint(20)" json:"total"` // 总数
  15. Success int64 `gorm:"column:success;type:bigint(20)" json:"success"` // 成功
  16. Fail int64 `gorm:"column:fail;type:bigint(20)" json:"fail"` // 失败
  17. Timeout int64 `gorm:"column:timeout;type:bigint(20)" json:"timeout"` // 超时
  18. IsNotify int64 `gorm:"column:is_notify;type:bigint(20);not null;default:1" json:"is_notify"` // 是否通知
  19. NotifyAt time.Time `gorm:"column:notify_at;type:datetime" json:"notify_at"` // 通知时间
  20. CreatedAt time.Time `gorm:"column:created_at;type:datetime;not null" json:"created_at"` // 创建时间
  21. }
  22. // TableName ServerDeployStat's table name
  23. func (*ServerDeployStat) TableName() string {
  24. return TableNameServerDeployStat
  25. }