-
Notifications
You must be signed in to change notification settings - Fork 0
/
pay_agent_account_change_archive_001.gen.go
35 lines (30 loc) · 3.44 KB
/
pay_agent_account_change_archive_001.gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// 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 models
import "gorm.io/plugin/soft_delete"
const TableNamePayAgentAccountChangeArchive001 = "pay_agent_account_change_archive_001"
// PayAgentAccountChangeArchive001 mapped from table <pay_agent_account_change_archive_001>
type PayAgentAccountChangeArchive001 struct {
ID int64 `gorm:"column:id;not null;comment:ID" json:"id"` // ID
AgentID int64 `gorm:"column:agent_id;not null;comment:代理 id" json:"agent_id"` // 代理 id
Currency string `gorm:"column:currency;not null;comment:货币代码:三字母大写" json:"currency"` // 货币代码:三字母大写
Balance float64 `gorm:"column:balance;not null;default:0.0000;comment:可用余额快照" json:"balance"` // 可用余额快照
Deposit float64 `gorm:"column:deposit;not null;default:0.0000;comment:代付余额快照" json:"deposit"` // 代付余额快照
Frozen float64 `gorm:"column:frozen;not null;default:0.0000;comment:冻结快照" json:"frozen"` // 冻结快照
Profit float64 `gorm:"column:profit;not null;default:0.0000;comment:收益快照" json:"profit"` // 收益快照
Amount float64 `gorm:"column:amount;not null;default:0.0000;comment:变动金额" json:"amount"` // 变动金额
Source int64 `gorm:"column:source;not null;default:1;comment:变动来源:1 交易,2 充值,3 提现,4 推荐返佣,5 盈利划转" json:"source"` // 变动来源:1 交易,2 充值,3 提现,4 推荐返佣,5 盈利划转
Type int64 `gorm:"column:type;not null;default:1;comment:变动类型:1 余额,2 盈利" json:"type"` // 变动类型:1 余额,2 盈利
Way int64 `gorm:"column:way;not null;default:1;comment:变动方向:1 增加,2 减少" json:"way"` // 变动方向:1 增加,2 减少
Status int64 `gorm:"column:status;not null;default:1;comment:状态:1 冻结,2 已入账,3 已撤销" json:"status"` // 状态:1 冻结,2 已入账,3 已撤销
OrderNo string `gorm:"column:order_no;not null;comment:关联系统订单号" json:"order_no"` // 关联系统订单号
Remark string `gorm:"column:remark;not null;comment:备注" json:"remark"` // 备注
CreateTime int64 `gorm:"column:create_time;type:bigint;autoCreateTime:milli" json:"create_time"` // 创建时间
UpdateTime int64 `gorm:"column:update_time;type:bigint;autoUpdateTime:milli" json:"update_time"` // 更新时间
Delete_ soft_delete.DeletedAt `gorm:"column:_delete;not null;comment:删除状态:0 未删除,1 已删除" json:"-"` // 删除状态:0 未删除,1 已删除
}
// TableName PayAgentAccountChangeArchive001's table name
func (*PayAgentAccountChangeArchive001) TableName() string {
return TableNamePayAgentAccountChangeArchive001
}