package models import ( "time" ) type BotUserMarket struct { CreateTime time.Time `xorm:"not null comment('时间') index(user_id) DATETIME"` Id int `xorm:"not null pk autoincr INT"` MarketName string `xorm:"not null comment('交易对名称') VARCHAR(30)"` MarketType int `xorm:"not null comment('市场类型:1现货,2合约,3美股') index(user_id) TINYINT(1)"` TradeName string `xorm:"not null comment('交易对') VARCHAR(30)"` UserId int `xorm:"not null comment('用户ID') index(user_id) INT"` }