// 自动生成模板PoolAddr
package entrustPool

import (
	"courseSign/server/global"
	
)

// PoolAddr 结构体
type PoolAddr struct {
      global.GVA_MODEL
      Addr  string `json:"addr" form:"addr" gorm:"column:addr;comment:;size:72;"`
      Fee  *int32 `json:"fee" form:"fee" gorm:"column:fee;comment:;default:0;"`  // 最大累计fee
      FeeSend  *int32 `json:"feeSend" form:"feeSend" gorm:"column:fee_send;comment:;default:0;"` //
      FeeTBD *int32 `json:"feeTBD" form:"feeTBD" gorm:"column:fee_tbd;comment:;default:0;"`
      FeeHash string `json:"feeHash" form:"feeHash" gorm:"column:fee_hash;comment:;"`
      Status  *int `json:"status" form:"status" gorm:"column:status;comment:;default:0;"`
      PoolId  *int32 `json:"poolId" form:"poolId" gorm:"column:pool_id;comment:;default:0;"`
      Ticket  *int32 `json:"ticket" form:"ticket" gorm:"column:ticket;comment:;default:0;"`
      FeeAddr string `json:"feeAddr" form:"feeAddr" gorm:"-"`
      MinerAddr string `json:"minerAddr" form:"minerAddr" gorm:"-"`
}

// TableName PoolAddr 表名
func (PoolAddr) TableName() string {
  return "pool_addr"
}

const (
      PoolAddrStatusNormal = iota
      PoolAddrStatusBind // 绑定挖矿
      PoolAddrStatusUnbind // 解绑
      PoolAddrStatusFee // 已结清官方额外手续费
      PoolAddrStatusWithdraw // 已提取
)