// 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

const TableNameRedeemReceived = "redeem_received"

// RedeemReceived mapped from table <redeem_received>
type RedeemReceived struct {
	ID        int64  `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true" json:"id"`
	Cid       int64  `gorm:"column:cid;type:bigint(20);not null;index:cid,priority:1" json:"cid"` // 兑换码ID
	Playerid  int64  `gorm:"column:playerid;type:bigint(20);not null" json:"playerid"`            // 玩家ID
	Openid    string `gorm:"column:openid;type:varchar(128);not null" json:"openid"`              // openid
	CreatedAt int64  `gorm:"column:created_at;type:bigint(20);not null" json:"created_at"`        // 领取时间
}

// TableName RedeemReceived's table name
func (*RedeemReceived) TableName() string {
	return TableNameRedeemReceived
}
