You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
1.1 KiB

package coupon
import "github.com/golangkit/formatime"
type ReceiverMid struct {
ID uint `gorm:"column:id;primary_key" json:"id"`
CouponID uint `gorm:"column:coupon_id" json:"couponId"`
UserID uint `gorm:"column:user_id" json:"userId"`
Status uint `gorm:"column:status" json:"status"`
Name string `gorm:"column:name" json:"name"`
Cash uint `gorm:"column:cash" json:"cash"`
Threshold uint `gorm:"column:threshold" json:"threshold"`
Scope uint `gorm:"column:scope" json:"scope"`
BrandID uint `gorm:"column:brand_id" json:"brandId"`
StartTime formatime.Second `gorm:"column:start_time" json:"startTime"`
EndTime formatime.Second `gorm:"column:end_time" json:"endTime"`
Explanation string `gorm:"column:explanation" json:"explanation"`
CreatedAt formatime.Second `gorm:"column:created_at" json:"createdAt"`
}
// TableName sets the insert table name for this struct type
func (r *ReceiverMid) TableName() string {
return "recook_coupon_receiver_mid"
}