teldrive/pkg/models/upload.go
2023-12-03 12:22:25 +05:30

16 lines
418 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"`
ChannelID int64 `gorm:"type:bigint"`
Size int64 `gorm:"type:bigint"`
CreatedAt time.Time `gorm:"default:timezone('utc'::text, now())"`
}