mirror of
https://git.oceanpay.cc/danial/kami_scripts.git
synced 2025-12-18 22:49:25 +00:00
33 lines
2.3 KiB
Go
33 lines
2.3 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 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
|
||
}
|