mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/1Panel-dev/1Panel.git
synced 2026-09-21 00:24:12 +08:00
15 lines
490 B
Go
15 lines
490 B
Go
package model
|
|
|
|
type FileShare struct {
|
|
BaseModel
|
|
Path string `gorm:"not null;uniqueIndex" json:"path"`
|
|
Token string `gorm:"not null;uniqueIndex" json:"token"`
|
|
FileName string `gorm:"not null" json:"fileName"`
|
|
ExpiresUnix int64 `json:"expiresUnix"`
|
|
PasswordEnc string `json:"-"`
|
|
PasswordSalt string `json:"passwordSalt"`
|
|
PasswordHash string `json:"passwordHash"`
|
|
MaxDownloads int `json:"maxDownloads"`
|
|
DownloadCount int `json:"downloadCount"`
|
|
}
|