// 自动生成模板RedPackageTx
package airDrop

import (
	"courseSign/server/global"
)

const (
	TxCommon   = iota
	TxSend     //已发送
	TxSendFail //发送失败
	TxSendOk   //发送成功
)

// RedPackageTx 结构体
type RedPackageTx struct {
	global.GVA_MODEL
	Height    int   `json:"height" form:"height" gorm:"column:height;comment:;size:10;"`
	Hash      string `json:"hash" form:"hash" gorm:"column:hash;comment:;size:72;"`
	Amount    int64   `json:"amount" form:"amount" gorm:"column:amount;comment:;size:19;"`
	Blocktime int   `json:"blocktime" form:"blocktime" gorm:"column:blocktime;comment:;size:10;"`
	Addr      string `json:"addr" form:"addr" gorm:"column:addr;comment:;size:64;"`
	Feature      string `json:"feature" form:"feature" gorm:"column:feature;comment:;size:64;index;"` //声纹标识
	Status    int   `json:"status" form:"status" gorm:"column:status;comment:;size:2;"`
	Pid    int   `json:"pid" form:"pid" gorm:"column:pid;comment:;size:11;"`
	Ip    string   `json:"ip" form:"ip" gorm:"column:ip;comment:;size:24;"`
	Source string `json:"source" form:"source" gorm:"column:source;size:72;"`
}

// TableName RedPackageTx 表名
func (RedPackageTx) TableName() string {
	return "red_package_tx"
}
