portal/db/models/upload.go

15 lines
241 B
Go

package models
import "gorm.io/gorm"
type Upload struct {
gorm.Model
UserID uint
Hash []byte `gorm:"type:binary(32);unique_index"`
MimeType string
Protocol string
User User
UploaderIP string
Size uint64
}