// 自动生成模板PoolRewardList
package entrustPool

import (
	"courseSign/server/global"
	
)

// PoolRewardList 结构体
type PoolRewardList struct {
      global.GVA_MODEL
      Type  *int `json:"type" form:"type" gorm:"column:type;comment:奖励类型 0 推广奖励 1 投票奖励;"`
      UserId  *int `json:"userId" form:"userId" gorm:"column:user_id;comment:对应users表编号;size:10;"`
      Amount  *float64 `json:"amount" form:"amount" gorm:"column:amount;comment:;size:8;"`
      InvitorId  *int `json:"invitorId" form:"invitorId" gorm:"column:invitor_id;comment:;size:10;"`
      Status  *int `json:"status" form:"status" gorm:"column:status;comment:0 未发送 1 已发送 2 发送失败 3 发送成功;"`
      RewardId *int `json:"rewardId" form:"rewardId" gorm:"column:reward_id;comment:;"`
      Hash string `json:"hash" form:"hash" gorm:"column:hash;null;comment:;size:76;"`
      Address string `json:"address" form:"address" gorm:"-"`
      Invitor string `json:"invitor" form:"invitor" gorm:"-"`
}


// TableName PoolRewardList 表名
func (PoolRewardList) TableName() string {
  return "pool_reward_list"
}

const (
      PoolRewardTypeNormal = iota  // 推广奖励
      PoolRewardTypeTickets         // 投票奖励
)