package models import ( "time" ) type SysFile struct { Id int64 `xorm:"pk autoincr BIGINT(20)"` Uuid string `xorm:"not null pk VARCHAR(64)"` Types string `xorm:"comment('类型') VARCHAR(50)"` Uid string `xorm:"VARCHAR(64)"` Toid string `xorm:"VARCHAR(64)"` Extion string `xorm:"VARCHAR(50)"` Name string `xorm:"not null pk VARCHAR(50)"` Size int64 `xorm:"BIGINT(20)"` Filename string `xorm:"VARCHAR(255)"` Descpt string `xorm:"VARCHAR(500)"` Status int `xorm:"INT(2)"` Times time.Time `xorm:"default 'CURRENT_TIMESTAMP' TIMESTAMP"` Downtm time.Time `xorm:"comment('最近下载时间') TIMESTAMP"` Downs int64 `xorm:"default 0 BIGINT(20)"` }