teldrive/models/upload.model.go

19 lines
548 B
Go
Raw Normal View History

2023-08-13 04:15:19 +08:00
package models
import (
"time"
)
type Upload struct {
ID string `gorm:"type:text;primary_key;default:generate_uid(16)"`
UploadId string `gorm:"type:text"`
2023-11-01 02:03:16 +08:00
UserId int64 `gorm:"type:bigint"`
2023-08-13 04:15:19 +08:00
Name string `gorm:"type:text"`
PartNo int `gorm:"type:integer"`
TotalParts int `gorm:"type:integer"`
PartId int `gorm:"type:integer"`
ChannelID int64 `gorm:"type:bigint"`
Size int64 `gorm:"type:bigint"`
CreatedAt time.Time `gorm:"default:timezone('utc'::text, now())"`
}