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 }