teldrive/pkg/models/upload.go

19 lines
502 B
Go
Raw Normal View History

2023-08-13 04:15:19 +08:00
package models
import (
"time"
)
type Upload struct {
2023-12-03 14:52:25 +08:00
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"`
2023-12-08 06:05:40 +08:00
Encrypted bool `gorm:"default:false"`
Salt string `gorm:"type:text"`
2023-12-03 14:52:25 +08:00
ChannelID int64 `gorm:"type:bigint"`
Size int64 `gorm:"type:bigint"`
CreatedAt time.Time `gorm:"default:timezone('utc'::text, now())"`
2023-08-13 04:15:19 +08:00
}