// 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 TableNamePayOrderIos = "wxpay_iosorder"

// PayOrderIos mapped from table <wxpay_iosorder>
type PayOrderIos struct {
	ID            int64     `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true" json:"id"`
	PlayerID      int64     `gorm:"column:playerId;type:bigint(20);index:IDX_wxpay_iosorder_playerId,priority:1" json:"playerId"`
	GoodsID       int32     `gorm:"column:goodsID;type:int(11)" json:"goodsID"`
	OpenID        string    `gorm:"column:openId;type:varchar(255)" json:"openId"`
	OutTradeNo    string    `gorm:"column:outTradeNo;type:varchar(100)" json:"outTradeNo"`
	Total         int32     `gorm:"column:total;type:int(11)" json:"total"`
	TradeState    string    `gorm:"column:tradeState;type:varchar(32)" json:"tradeState"`
	TransactionID string    `gorm:"column:transactionId;type:varchar(255)" json:"transactionId"`
	PayerTotal    int64     `gorm:"column:payerTotal;type:bigint(20)" json:"payerTotal"`
	SuccessTime   string    `gorm:"column:successTime;type:varchar(255)" json:"successTime"`
	PrepayID      string    `gorm:"column:prepayId;type:varchar(255)" json:"prepayId"`
	State         int32     `gorm:"column:state;type:int(11)" json:"state"`
	CreateTime    time.Time `gorm:"column:create_time;type:datetime" json:"create_time"`
	Platform      int32     `gorm:"column:platform;type:int(11)" json:"platform"` // 1 微信 2抖音
	Phone         int32     `gorm:"column:phone;type:int(11)" json:"phone"`
}

// TableName PayOrderIos's table name
func (*PayOrderIos) TableName() string {
	return TableNamePayOrderIos
}
