// =================================================================================
// 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"
)

// V1SysUserPayment is the golang structure for table v1sys_user_payment.
type V1SysUserPayment struct {
	Id                    uint            `json:"id"                    orm:"id"                      description:""`
	UserId                string          `json:"userId"                orm:"user_id"                 description:""`
	Balance               decimal.Decimal `json:"balance"               orm:"balance"                 description:"余额"`
	TotalDeposits         decimal.Decimal `json:"totalDeposits"         orm:"total_deposits"          description:"总充值金额"`
	TotalConsumption      decimal.Decimal `json:"totalConsumption"      orm:"total_consumption"       description:"总消耗金额"`
	LastDepositTime       *gtime.Time     `json:"lastDepositTime"       orm:"last_deposit_time"       description:""`
	LastConsumptionTime   *gtime.Time     `json:"lastConsumptionTime"   orm:"last_consumption_time"   description:"上次消耗时间"`
	TotalDepositCount     int             `json:"totalDepositCount"     orm:"total_deposit_count"     description:"总充值次数"`
	TotalConsumptionCount int             `json:"totalConsumptionCount" orm:"total_consumption_count" description:"总消耗次数"`
	Status                string          `json:"status"                orm:"status"                  description:"0.禁用 1.正常 3.关闭"`
	Notes                 string          `json:"notes"                 orm:"notes"                   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:""`
}
