You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
909 B
18 lines
909 B
2 months ago
|
package models
|
||
|
|
||
|
import (
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
type BotUserStockInLog struct {
|
||
|
BeforeNum string `xorm:"not null comment('变动前余额') DECIMAL(36,18)"`
|
||
|
ChangeNum string `xorm:"not null comment('变动资产数量') DECIMAL(36,18)"`
|
||
|
ChangeType int `xorm:"not null default 0 comment('变动类型:1-充值,2-提现,3-买入,4-卖出,5-冻结,6-解冻,7-注册返佣,8-开仓返佣,9-平仓返佣') index(user_id) TINYINT(1)"`
|
||
|
CreateTime time.Time `xorm:"not null comment('创建时间') DATETIME"`
|
||
|
Id int `xorm:"not null pk autoincr INT"`
|
||
|
OrderId string `xorm:"comment('订单号') VARCHAR(60)"`
|
||
|
StockId string `xorm:"not null comment('股票类型ID:INR代表卢比,其他代表股票代码') index(user_id) VARCHAR(100)"`
|
||
|
UpdateTime time.Time `xorm:"comment('更新时间') DATETIME"`
|
||
|
UserId int `xorm:"not null comment('用户ID') index(user_id) INT"`
|
||
|
}
|