// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================

package entity

import (
	"github.com/gogf/gf/v2/os/gtime"
	"github.com/shopspring/decimal"
)

// V1CamelOilOrder is the golang structure for table v1camel_oil_order.
type V1CamelOilOrder struct {
	Id              int64           `json:"id"              orm:"id"                description:"主键ID"`
	OrderNo         string          `json:"orderNo"         orm:"order_no"          description:"系统订单号"`
	MerchantOrderId string          `json:"merchantOrderId" orm:"merchant_order_id" description:"商户订单号"`
	AccountId       int64           `json:"accountId"       orm:"account_id"        description:"使用的账号ID"`
	AccountName     string          `json:"accountName"     orm:"account_name"      description:"账号名称"`
	PlatformOrderNo string          `json:"platformOrderNo" orm:"platform_order_no" description:"骆驼平台订单号"`
	Amount          decimal.Decimal `json:"amount"          orm:"amount"            description:"订单金额"`
	AlipayUrl       string          `json:"alipayUrl"       orm:"alipay_url"        description:"支付宝支付链接"`
	CardPassword    string          `json:"cardPassword"    orm:"card_password"     description:"卡密"`
	CardNumber      string          `json:"cardNumber"      orm:"card_number"       description:"卡号"`
	Status          int             `json:"status"          orm:"status"            description:"状态：1待支付 2已支付 3支付超时 4下单失败"`
	PayStatus       int             `json:"payStatus"       orm:"pay_status"        description:"支付状态：0未支付 1已支付 2超时"`
	NotifyStatus    int             `json:"notifyStatus"    orm:"notify_status"     description:"回调状态：0未回调 1已回调 2回调失败"`
	NotifyCount     int             `json:"notifyCount"     orm:"notify_count"      description:"回调次数"`
	LastCheckAt     *gtime.Time     `json:"lastCheckAt"     orm:"last_check_at"     description:"最后检测支付时间"`
	PaidAt          *gtime.Time     `json:"paidAt"          orm:"paid_at"           description:"支付完成时间"`
	Attach          string          `json:"attach"          orm:"attach"            description:"附加信息"`
	FailureReason   string          `json:"failureReason"   orm:"failure_reason"    description:"失败原因"`
	CreatedAt       *gtime.Time     `json:"createdAt"       orm:"created_at"        description:"创建时间"`
	UpdatedAt       *gtime.Time     `json:"updatedAt"       orm:"updated_at"        description:"更新时间"`
	DeletedAt       *gtime.Time     `json:"deletedAt"       orm:"deleted_at"        description:"删除时间（软删除）"`
}
