CasaOS/service/model/o_download.go
2022-03-18 11:13:07 +08:00

22 lines
736 B
Go

package model
type PersionDownloadDBModel struct {
UUID string `gorm:"column:uuid;primary_key" json:"uuid"`
State int `json:"state"` //
Type int `json:"type"` //defult 1
Name string `json:"name"` //file name
Size int64 `json:"size"` //file size
BlockSize int `json:"block_size"`
Length int `json:"length"` //slice length
Hash string `json:"hash"`
Error string `json:"error"`
From string `json:"from"`
Already int `json:"already" gorm:"-"`
CreatedAt int64 `gorm:"autoCreateTime" json:"created_at"`
UpdatedAt int64 `gorm:"autoCreateTime;autoUpdateTime" json:"updated_at"`
}
func (p *PersionDownloadDBModel) TableName() string {
return "o_persion_download"
}