package models import ( "time" ) type BotUserStockFundInterestReceipt struct { Capital string `xorm:"not null comment('本金') DECIMAL(36,18)"` CreateTime time.Time `xorm:"not null comment('创建时间') DATETIME"` Id int `xorm:"not null pk autoincr INT"` Interest string `xorm:"not null comment('利息') DECIMAL(36,18)"` OrderId int `xorm:"not null comment('订单ID') index(user_id) INT"` OrderNo string `xorm:"not null default '' comment('订单号') VARCHAR(50)"` PhaseTime int `xorm:"not null comment('第几期') INT"` PreStockId int `xorm:"not null comment('基金ID') index(user_id) INT"` ReturnDate time.Time `xorm:"comment('返款日期') index DATE"` Status int `xorm:"not null default 1 comment('1.待返息 2.已完成') TINYINT"` Unit string `xorm:"not null comment('货币单位') VARCHAR(10)"` UpdateTime time.Time `xorm:"comment('更新时间') DATETIME"` UserId int `xorm:"not null comment('用户ID') index(user_id) INT"` }