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.
23 lines
904 B
23 lines
904 B
package models
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
const AnnexTableName = TableNamePrefix + "annex"
|
|
|
|
//附件
|
|
type Annex struct {
|
|
Id int64 `json:"id" xorm:"not null pk autoincr INT(11)"`
|
|
Path string `json:"path" xorm:"not null comment('路径') VARCHAR(255)"`
|
|
Size int64 `json:"size" xorm:"not null comment('文件得大小') INT(11)"`
|
|
Suffix string `json:"suffix" xorm:"not null comment('文件得后缀') VARCHAR(255)"`
|
|
Md5 string `json:"md5" xorm:"not null comment('文件得md5值') VARCHAR(255)"`
|
|
IsDelete bool `json:"is_delete" xorm:"not null default(0) comment('是否删除') TINYINT(1)"`
|
|
CreatedAt time.Time `json:"created_at" xorm:"not null created comment('创建得时间') DATETIME"`
|
|
UpdatedAt time.Time `json:"updated_at" xorm:"not null updated comment('更新得时间') DATETIME"`
|
|
}
|
|
|
|
func (t *Annex) TableName() string {
|
|
return AnnexTableName
|
|
}
|