// 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 TableNameLotteryRefundLogs = "lottery_refund_logs"

// LotteryRefundLogs mapped from table <lottery_refund_logs>
type LotteryRefundLogs struct {
	ID           int64     `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	IssueID      int64     `gorm:"column:issue_id;not null" json:"issue_id"`
	OrderID      int64     `gorm:"column:order_id;not null" json:"order_id"`
	UserID       int64     `gorm:"column:user_id;not null" json:"user_id"`
	Amount       int64     `gorm:"column:amount;not null" json:"amount"`
	CouponType   string    `gorm:"column:coupon_type" json:"coupon_type"`
	CouponAmount int64     `gorm:"column:coupon_amount" json:"coupon_amount"`
	Reason       string    `gorm:"column:reason" json:"reason"`
	Status       string    `gorm:"column:status" json:"status"`
	CreatedAt    time.Time `gorm:"column:created_at;default:CURRENT_TIMESTAMP" json:"created_at"`
	UpdatedAt    time.Time `gorm:"column:updated_at;default:CURRENT_TIMESTAMP" json:"updated_at"`
}

// TableName LotteryRefundLogs's table name
func (*LotteryRefundLogs) TableName() string {
	return TableNameLotteryRefundLogs
}
