// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================

package entity

import (
	"github.com/gogf/gf/v2/os/gtime"
	"github.com/shopspring/decimal"
)

// V1CamelOilToken is the golang structure for table v1camel_oil_token.
type V1CamelOilToken struct {
	Id                  int64           `json:"id"                  orm:"id"                     description:"主键ID"`
	UserId              string          `json:"userId"              orm:"user_id"                description:"用户ID，空字符串表示管理员创建"`
	Name                string          `json:"name"                orm:"name"                   description:"名称"`
	Phone               string          `json:"phone"               orm:"phone"                  description:"绑定的手机号"`
	Status              int             `json:"status"              orm:"status"                 description:"状态：0待验证码 1可用 2已禁用 3已过期 4登录失败"`
	LoginToken          string          `json:"loginToken"          orm:"login_token"            description:"登录后获取的token"`
	LoginTokenExpiresAt *gtime.Time     `json:"loginTokenExpiresAt" orm:"login_token_expires_at" description:"登录token过期时间"`
	LastLoginAt         *gtime.Time     `json:"lastLoginAt"         orm:"last_login_at"          description:"最后登录时间"`
	BindCount           int             `json:"bindCount"           orm:"bind_count"             description:"已绑定卡密数量"`
	TotalBindAmount     decimal.Decimal `json:"totalBindAmount"     orm:"total_bind_amount"      description:"累计绑定金额"`
	LastBindAt          *gtime.Time     `json:"lastBindAt"          orm:"last_bind_at"           description:"最后绑定时间"`
	LastUsedAt          *gtime.Time     `json:"lastUsedAt"          orm:"last_used_at"           description:"最后使用时间"`
	Remark              string          `json:"remark"              orm:"remark"                 description:"备注"`
	CreatedAt           *gtime.Time     `json:"createdAt"           orm:"created_at"             description:"创建时间"`
	UpdatedAt           *gtime.Time     `json:"updatedAt"           orm:"updated_at"             description:"更新时间"`
	DeletedAt           *gtime.Time     `json:"deletedAt"           orm:"deleted_at"             description:"删除时间（软删除）"`
	RechargeLimitAmount decimal.Decimal `json:"rechargeLimitAmount" orm:"recharge_limit_amount"  description:"充值金额限制"`
	RechargeLimitCount  int             `json:"rechargeLimitCount"  orm:"recharge_limit_count"   description:"充值次数限制"`
	TotalRechargeAmount decimal.Decimal `json:"totalRechargeAmount" orm:"total_recharge_amount"  description:"总充值金额"`
}
