bindbox-game/internal/repository/mysql/model/audit_rollback_logs.gen.go

35 lines
2.6 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 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 TableNameAuditRollbackLogs = "audit_rollback_logs"
// AuditRollbackLogs 审计回滚操作日志
type AuditRollbackLogs struct {
ID int64 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键ID" json:"id"` // 主键ID
CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP(3);comment:创建时间" json:"created_at"` // 创建时间
OrderID int64 `gorm:"column:order_id;not null;comment:订单ID" json:"order_id"` // 订单ID
OrderNo string `gorm:"column:order_no;not null;comment:订单号" json:"order_no"` // 订单号
UserID int64 `gorm:"column:user_id;not null;comment:用户ID" json:"user_id"` // 用户ID
OperatorID int64 `gorm:"column:operator_id;not null;comment:操作人ID(管理员)" json:"operator_id"` // 操作人ID(管理员)
OperatorName string `gorm:"column:operator_name;comment:操作人名称" json:"operator_name"` // 操作人名称
RollbackType int32 `gorm:"column:rollback_type;not null;default:1;comment:回滚类型1=完整回滚" json:"rollback_type"` // 回滚类型1=完整回滚
BeforeSnapshotID int64 `gorm:"column:before_snapshot_id;comment:回滚前快照ID(消费后快照)" json:"before_snapshot_id"` // 回滚前快照ID(消费后快照)
AfterSnapshotID int64 `gorm:"column:after_snapshot_id;comment:回滚目标快照ID(消费前快照)" json:"after_snapshot_id"` // 回滚目标快照ID(消费前快照)
ChangesApplied string `gorm:"column:changes_applied;comment:实际执行的变更明细" json:"changes_applied"` // 实际执行的变更明细
Reason string `gorm:"column:reason;comment:回滚原因" json:"reason"` // 回滚原因
Status int32 `gorm:"column:status;not null;default:1;comment:状态1=成功 2=失败" json:"status"` // 状态1=成功 2=失败
ErrorMsg string `gorm:"column:error_msg;comment:失败原因" json:"error_msg"` // 失败原因
}
// TableName AuditRollbackLogs's table name
func (*AuditRollbackLogs) TableName() string {
return TableNameAuditRollbackLogs
}