mirror of
https://github.com/tgdrive/teldrive.git
synced 2025-01-05 06:43:12 +08:00
18 lines
502 B
Go
18 lines
502 B
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type Upload struct {
|
|
UploadId string `gorm:"type:text"`
|
|
UserId int64 `gorm:"type:bigint"`
|
|
Name string `gorm:"type:text"`
|
|
PartNo int `gorm:"type:integer"`
|
|
PartId int `gorm:"type:integer"`
|
|
Encrypted bool `gorm:"default:false"`
|
|
Salt string `gorm:"type:text"`
|
|
ChannelID int64 `gorm:"type:bigint"`
|
|
Size int64 `gorm:"type:bigint"`
|
|
CreatedAt time.Time `gorm:"default:timezone('utc'::text, now())"`
|
|
}
|