-
Notifications
You must be signed in to change notification settings - Fork 0
/
pay_supplier_account.gen.go
27 lines (22 loc) · 1.72 KB
/
pay_supplier_account.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
// 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 TableNamePaySupplierAccount = "pay_supplier_account"
// PaySupplierAccount mapped from table <pay_supplier_account>
type PaySupplierAccount struct {
ID int64 `gorm:"column:id;primaryKey;autoIncrement:true;comment:ID" json:"id"` // ID
SupplierID int64 `gorm:"column:supplier_id;not null;comment:供应商 id" json:"supplier_id"` // 供应商 id
Currency string `gorm:"column:currency;not null;comment:货币代码:三字母大写" json:"currency"` // 货币代码:三字母大写
Balance float64 `gorm:"column:balance;not null;default:0.00;comment:可用余额" json:"balance"` // 可用余额
Frozen float64 `gorm:"column:frozen;not null;default:0.00;comment:冻结余额" json:"frozen"` // 冻结余额
Profit float64 `gorm:"column:profit;not null;default:0.00;comment:收益余额" json:"profit"` // 收益余额
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 PaySupplierAccount's table name
func (*PaySupplierAccount) TableName() string {
return TableNamePaySupplierAccount
}