voucher/internal/data/model/use_log.gen.go

27 lines
858 B
Go

// 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 TableNameUseLog = "use_log"
// UseLog mapped from table <user_log>
type UseLog struct {
ID uint64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
OrderNo string `gorm:"column:order_no;not null" json:"order_no"`
Amount int64 `gorm:"column:amount;not null;comment:核销金额" json:"amount"`
Type uint8 `gorm:"column:type;not null;comment:1:核销 2:退款" json:"type"`
UseTime *time.Time `gorm:"column:use_time;not null" json:"use_time"`
CreateTime *time.Time `gorm:"column:create_time;not null" json:"create_time"`
}
// TableName UseLog's table name
func (*UseLog) TableName() string {
return TableNameUseLog
}