// 自动生成模板BrcLock
package brc

import (
	"ffie-admin/server/global"
	"time"
)

// BrcLock 结构体
type BrcLock struct {
	global.GVA_MODEL
	Period    *int       `json:"period" form:"period" gorm:"column:period;comment:锁仓周期;size:10;"`
	Amount    *int       `json:"amount" form:"amount" gorm:"column:amount;comment:;size:19;"`
	StartTime *time.Time `json:"startTime" form:"startTime" gorm:"column:start_time;comment:;"`
	Status    *int       `json:"status" form:"status" gorm:"column:status;comment:0 后台提交 1 上链 2 上链成功质押中 3 上链失败 4 申请解压 5 已解压;"`
	Addr      string     `json:"addr" form:"addr" gorm:"column:addr;comment:;size:72;"`
	LockAddr  string     `json:"lockAddr" form:"lockAddr" gorm:"column:lock_addr;comment:;size:72;"`
	Hash      string     `json:"hash" form:"hash" gorm:"column:hash;comment:;size:96;"`
	UnsignTx  string     `json:"unsignTx" form:"unsignTx" gorm:"column:unsign_tx;comment:;"`
}

// TableName BrcLock 表名
func (BrcLock) TableName() string {
	return "brc_lock"
}
