portal/db/models/upload.go

19 lines
284 B
Go
Raw Normal View History

package models
import "gorm.io/gorm"
func init() {
registerModel(&Upload{})
}
type Upload struct {
gorm.Model
2024-01-16 05:53:39 +00:00
UserID uint
Hash []byte `gorm:"type:binary(32);unique_index"`
MimeType string
2024-01-16 05:53:39 +00:00
Protocol string
User User
UploaderIP string
2024-01-16 05:54:32 +00:00
Size uint64
}