33 lines
2.0 KiB
Go
33 lines
2.0 KiB
Go
// 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 TableNameOrderWechat = "order_wechat"
|
|
|
|
// OrderWechat mapped from table <order_wechat>
|
|
type OrderWechat struct {
|
|
ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
|
|
OrderNo string `gorm:"column:order_no;not null;comment:订单号" json:"order_no"` // 订单号
|
|
OutRequestNo string `gorm:"column:out_request_no;not null;comment:请求单号" json:"out_request_no"` // 请求单号
|
|
AppID string `gorm:"column:app_id;not null;comment:微信应用id" json:"app_id"` // 微信应用id
|
|
StockCreatorMchid string `gorm:"column:stock_creator_mchid;not null;comment:批次创建方商户号\n" json:"stock_creator_mchid"` // 批次创建方商户号
|
|
OpenID string `gorm:"column:open_id;not null;comment:微信openid" json:"open_id"` // 微信openid
|
|
StockID string `gorm:"column:stock_id;not null;comment:批次id" json:"stock_id"` // 批次id
|
|
Status uint8 `gorm:"column:status;not null;comment:1:发放中 2:发放成功 3:发放失败" json:"status"` // 1:发放中 2:发放成功 3:发放失败
|
|
CouponID string `gorm:"column:coupon_id;not null;comment:微信为代金券唯一分配的id" json:"coupon_id"` // 微信为代金券唯一分配的id
|
|
Remark string `gorm:"column:remark;not null;comment:备注说明" json:"remark"` // 备注说明
|
|
CreateTime *time.Time `gorm:"column:create_time;not null" json:"create_time"`
|
|
UpdateTime *time.Time `gorm:"column:update_time" json:"update_time"`
|
|
}
|
|
|
|
// TableName OrderWechat's table name
|
|
func (*OrderWechat) TableName() string {
|
|
return TableNameOrderWechat
|
|
}
|