You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
691 B
21 lines
691 B
package models
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type SysFile struct {
|
|
Id int64 `xorm:"pk autoincr BIGINT(20)"`
|
|
Xid 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)"`
|
|
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)"`
|
|
}
|