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