portal/db/models/upload.go

15 lines
241 B
Go
Raw Normal View History

package models
import "gorm.io/gorm"
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
}