package models import ( "time" ) type BotUserBrokerage struct { BackType int `xorm:"not null comment('返佣类型:0注册,1现货,2合约,3美股') TINYINT(1)"` BrokerageNum string `xorm:"not null comment('佣金金额') DECIMAL(36,18)"` CreateTime time.Time `xorm:"not null comment('时间') index(u_l_c) DATETIME"` Id int `xorm:"not null pk autoincr INT"` LevelType int `xorm:"not null comment('返佣级别:1子级,2孙级,3曾孙级') index(u_l_c) TINYINT(1)"` OrderId string `xorm:"comment('订单号') VARCHAR(60)"` ServiceFee string `xorm:"not null comment('手续费') DECIMAL(36,18)"` UserId int `xorm:"not null comment('用户ID') index(u_l_c) INT"` }