// =================================================================================
// 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"
)

// V1CamelOilPrefetchOrder is the golang structure for table v1camel_oil_prefetch_order.
type V1CamelOilPrefetchOrder struct {
	Id              int64           `json:"id"              orm:"id"                description:"主键ID"`
	AccountId       int64           `json:"accountId"       orm:"account_id"        description:"拉取时使用的账号ID"`
	AccountName     string          `json:"accountName"     orm:"account_name"      description:"账号名称"`
	Amount          decimal.Decimal `json:"amount"          orm:"amount"            description:"预拉取订单金额"`
	PlatformOrderNo string          `json:"platformOrderNo" orm:"platform_order_no" description:"骆驼平台订单号"`
	AlipayUrl       string          `json:"alipayUrl"       orm:"alipay_url"        description:"支付宝支付链接"`
	Status          int             `json:"status"          orm:"status"            description:"预拉取订单状态：1待匹配 2已匹配 3已过期 4已失效"`
	OrderNo         string          `json:"orderNo"         orm:"order_no"          description:"匹配后的订单号（关联camel_oil_order表的order_no字段）"`
	MatchedAt       *gtime.Time     `json:"matchedAt"       orm:"matched_at"        description:"匹配时间"`
	ExpireAt        *gtime.Time     `json:"expireAt"        orm:"expire_at"         description:"预拉取订单过期时间（通常为24小时后）"`
	FailureReason   string          `json:"failureReason"   orm:"failure_reason"    description:"失败原因"`
	Remark          string          `json:"remark"          orm:"remark"            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:"删除时间（软删除）"`
}
