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

33 lines
2.3 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 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 TableNameAccountInfo = "account_info"
// AccountInfo 账户记录表
type AccountInfo struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键,自增" json:"id"` // 主键,自增
Status string `gorm:"column:status;not null;default:active;comment:状态" json:"status"` // 状态
AccountUID string `gorm:"column:account_uid;not null;comment:账户uid对应为merchant_uid或者agent_uid" json:"account_uid"` // 账户uid对应为merchant_uid或者agent_uid
AccountName string `gorm:"column:account_name;not null;comment:账户名称对应的是merchant_name或者agent_name" json:"account_name"` // 账户名称对应的是merchant_name或者agent_name
Balance float64 `gorm:"column:balance;not null;default:0.000;comment:账户余额" json:"balance"` // 账户余额
SettleAmount float64 `gorm:"column:settle_amount;not null;default:0.000;comment:已经结算了的金额" json:"settle_amount"` // 已经结算了的金额
LoanAmount float64 `gorm:"column:loan_amount;not null;default:0.000;comment:押款金额" json:"loan_amount"` // 押款金额
WaitAmount float64 `gorm:"column:wait_amount;not null;default:0.000;comment:待结算资金" json:"wait_amount"` // 待结算资金
FreezeAmount float64 `gorm:"column:freeze_amount;not null;default:0.000;comment:账户冻结金额" json:"freeze_amount"` // 账户冻结金额
PayforAmount float64 `gorm:"column:payfor_amount;not null;default:0.000;comment:账户代付中金额" json:"payfor_amount"` // 账户代付中金额
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"` // 创建时间
}
// TableName AccountInfo's table name
func (*AccountInfo) TableName() string {
return TableNameAccountInfo
}