fusenapi/model/gmodel/fs_order_trade_gen.go
2023-09-14 18:43:10 +08:00

37 lines
2.0 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package gmodel
import (
"gorm.io/gorm"
"time"
)
// fs_order_trade 订单交易表
type FsOrderTrade struct {
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // 订单交易ID
UserId *int64 `gorm:"index;default:0;" json:"user_id"` // 用户ID
OrderNo *string `gorm:"default:'';" json:"order_no"` //
OrderSource *string `gorm:"default:'';" json:"order_source"` //
TradeNo *string `gorm:"index;default:'';" json:"trade_no"` //
PayAmount *int64 `gorm:"default:0;" json:"pay_amount"` // 支付金额 (分)
PayStatus *int64 `gorm:"default:0;" json:"pay_status"` // 支付状态1=未成功2=已成功
PaymentMethod *int64 `gorm:"default:0;" json:"payment_method"` // 支付方式1=stripe2=paypal
PayStage *int64 `gorm:"default:0;" json:"pay_stage"` // 支付阶段1=首付2=尾款
RefundStatus *int64 `gorm:"default:0;" json:"refund_status"` // 退款状态1=未退款2=已退款
CardNo *string `gorm:"default:'';" json:"card_no"` //
CardBrand *string `gorm:"default:'';" json:"card_brand"` //
Country *string `gorm:"default:'';" json:"country"` //
Currency *string `gorm:"default:'';" json:"currency"` //
Metadata *[]byte `gorm:"default:'';" json:"metadata"` //
Ctime *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"ctime"` //
Utime *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"utime"` //
PayTitle *string `gorm:"default:'';" json:"pay_title"` //
}
type FsOrderTradeModel struct {
db *gorm.DB
name string
}
func NewFsOrderTradeModel(db *gorm.DB) *FsOrderTradeModel {
return &FsOrderTradeModel{db: db, name: "fs_order_trade"}
}