package models import ( "time" ) type BotUserForexLog 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账户转入') index(user_id) TINYINT(1)"` ContractId string `xorm:"not null comment('合约交易对ID') index(user_id) VARCHAR(15)"` CreateTime time.Time `xorm:"not null comment('创建时间') DATETIME"` Id int `xorm:"not null pk autoincr INT"` OrderId string `xorm:"comment('订单号') VARCHAR(60)"` UpdateTime time.Time `xorm:"comment('更新时间') DATETIME"` UserId int `xorm:"not null comment('用户ID') index(user_id) INT"` }