互动
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.

34 lines
1.8 KiB

package models
import (
"time"
)
const OrderDrawRecordTableName = TableNamePrefix + "order_draw_record"
type OrderDrawRecord struct {
Id int64 `json:"id" xorm:"not null pk autoincr"`
UserPrizeId int64 `json:"user_prize_id" xorm:"not null comment('用户奖品表id') INT(11)"`
ActivityId int64 `json:"activity_id" xorm:"not null comment('主活动id')"`
RehearsalId int64 `json:"rehearsal_id" xorm:"not null default(0) comment('彩排id/0正式')"`
OrderDrawActivityId int64 `json:"order_draw_activity_id" xorm:"not null comment('订单抽奖活动id')"`
OrderDrawRuleId int64 `json:"order_draw_rule_id" xorm:"not null comment('订单抽奖规则id')"`
OrderDrawRuleLadderId int64 `json:"order_draw_rule_ladder_id" xorm:"not null comment('订单规则阶梯id')"`
OrderDrawRuleLadder *OrderDrawRuleLadder `json:"order_draw_rule_ladder" xorm:"-"`
UserId int64 `json:"user_id" xorm:"not null comment('用户id')"`
User *User `json:"user" xorm:"-"`
PrizeName string `json:"prize_name" xorm:"not null comment('奖品名字')"`
AreaId int64 `json:"area_id" xorm:"not null default(0) comment('地区id') BIGINT(20)"`
AreaName string `json:"area_name" xorm:"not null default('') comment('地区id')"`
IsDelete bool `json:"-" xorm:"default(0)"`
CreatedAt time.Time `json:"-" xorm:"created"`
UpdatedAt time.Time `json:"-" xorm:"updated"`
}
func (t *OrderDrawRecord) TableName() string {
return OrderDrawRecordTableName
}
func (t *OrderDrawRecord) Count() {
}