// 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 TableNamePayOrderAndriod = "virtualpayorder"

// PayOrderAndriod mapped from table <virtualpayorder>
type PayOrderAndriod struct {
	ID           int64     `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true" json:"id"`
	Playerid     int64     `gorm:"column:playerid;type:bigint(20);index:IDX_virtualpayorder_playerid,priority:1" json:"playerid"`
	Balance      int32     `gorm:"column:balance;type:int(11)" json:"balance"`
	GenBalance   int32     `gorm:"column:genBalance;type:int(11)" json:"genBalance"`
	SaveSum      int32     `gorm:"column:saveSum;type:int(11)" json:"saveSum"`
	SaveAmt      int32     `gorm:"column:saveAmt;type:int(11)" json:"saveAmt"`
	CostSum      int32     `gorm:"column:costSum;type:int(11)" json:"costSum"`
	PresentSum   int32     `gorm:"column:presentSum;type:int(11)" json:"presentSum"`
	Operation    string    `gorm:"column:operation;type:varchar(255)" json:"operation"`
	BillNo       string    `gorm:"column:billNo;type:varchar(255)" json:"billNo"`
	PayedBalance int32     `gorm:"column:payedBalance;type:int(11)" json:"payedBalance"`
	UsedGenAmt   int32     `gorm:"column:usedGenAmt;type:int(11)" json:"usedGenAmt"`
	State        int32     `gorm:"column:state;type:int(11)" json:"state"`
	GoodsID      int64     `gorm:"column:goodsId;type:bigint(20)" json:"goodsId"`
	Platform     int64     `gorm:"column:platform;type:bigint(20)" json:"platform"`                   // 1 微信 2抖音
	PayMethod    int32     `gorm:"column:payMethod;type:int(11);not null;default:1" json:"payMethod"` // 0：苹果游戏外微信支付 1:安卓游戏内支付 2：安卓游戏外微信支付 3:苹果游戏内支付
	CreateTime   time.Time `gorm:"column:create_time;type:datetime" json:"create_time"`
}

// TableName PayOrderAndriod's table name
func (*PayOrderAndriod) TableName() string {
	return TableNamePayOrderAndriod
}
