Files
kami_scripts/order/model/account_history_info.gen.go

31 lines
1.9 KiB
Go

// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
import (
"time"
)
const TableNameAccountHistoryInfo = "account_history_info"
// AccountHistoryInfo 账户账户资金动向表
type AccountHistoryInfo struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键,自增" json:"id"` // 主键,自增
AccountUID string `gorm:"column:account_uid;not null;comment:账号uid" json:"account_uid"` // 账号uid
AccountName string `gorm:"column:account_name;not null;comment:账户名称" json:"account_name"` // 账户名称
Type string `gorm:"column:type;not null;comment:减款,加款" json:"type"` // 减款,加款
Amount float64 `gorm:"column:amount;not null;default:0.000;comment:操作对应金额对应的金额" json:"amount"` // 操作对应金额对应的金额
Balance float64 `gorm:"column:balance;not null;default:0.000;comment:操作后的当前余额" json:"balance"` // 操作后的当前余额
OrderID string `gorm:"column:order_id;comment:订单ID" json:"order_id"` // 订单ID
UpdateTime time.Time `gorm:"column:update_time;not null;default:CURRENT_TIMESTAMP;comment:更新时间" json:"update_time"` // 更新时间
CreateTime time.Time `gorm:"column:create_time;comment:创建时间" json:"create_time"` // 创建时间
FeeAmount float32 `gorm:"column:fee_amount;comment:系统扣除的手续费金额" json:"fee_amount"` // 系统扣除的手续费金额
}
// TableName AccountHistoryInfo's table name
func (*AccountHistoryInfo) TableName() string {
return TableNameAccountHistoryInfo
}