// 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 models import ( "platform/web/common" "gorm.io/gorm" ) const TableNameRefund = "refund" // Refund mapped from table type Refund struct { ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:退款ID" json:"id"` // 退款ID ProductID int32 `gorm:"column:product_id;comment:产品ID" json:"product_id"` // 产品ID Amount float64 `gorm:"column:amount;not null;comment:退款金额" json:"amount"` // 退款金额 CreatedAt common.LocalDateTime `gorm:"column:created_at;default:CURRENT_TIMESTAMP;comment:创建时间" json:"created_at"` // 创建时间 UpdatedAt common.LocalDateTime `gorm:"column:updated_at;default:CURRENT_TIMESTAMP;comment:更新时间" json:"updated_at"` // 更新时间 DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;comment:删除时间" json:"deleted_at"` // 删除时间 TradeID int32 `gorm:"column:trade_id;not null" json:"trade_id"` Reason string `gorm:"column:reason" json:"reason"` Status int32 `gorm:"column:status;not null" json:"status"` } // TableName Refund's table name func (*Refund) TableName() string { return TableNameRefund }