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

// V1SysUserPaymentRecords is the golang structure for table v1sys_user_payment_records.
type V1SysUserPaymentRecords struct {
	Id              uint            `json:"id"              orm:"id"               description:"主键"`
	TransactionId   string          `json:"transactionId"   orm:"transaction_id"   description:"交易唯一ID"`
	PaymentId       int             `json:"paymentId"       orm:"payment_id"       description:"钱包ID"`
	DeductionId     string          `json:"deductionId"     orm:"deduction_id"     description:"预扣款ID"`
	UserId          string          `json:"userId"          orm:"user_id"          description:""`
	Amount          decimal.Decimal `json:"amount"          orm:"amount"           description:"操作金额"`
	TransactionType string          `json:"transactionType" orm:"transaction_type" description:"交易类型 1deposit 2.withdrawal"`
	OrderNo         string          `json:"orderNo"         orm:"order_no"         description:"订单号"`
	Status          string          `json:"status"          orm:"status"           description:"交易状态：0.失败 1.成功"`
	Category        string          `json:"category"        orm:"category"         description:""`
	Notes           string          `json:"notes"           orm:"notes"            description:"备注"`
	CreatedAt       *gtime.Time     `json:"createdAt"       orm:"created_at"       description:""`
	DeletedAt       *gtime.Time     `json:"deletedAt"       orm:"deleted_at"       description:""`
	UpdatedAt       *gtime.Time     `json:"updatedAt"       orm:"updated_at"       description:""`
}
