2024-01-16 01:58:20 +00:00
|
|
|
package models
|
|
|
|
|
|
|
|
import "gorm.io/gorm"
|
|
|
|
|
|
|
|
type Upload struct {
|
|
|
|
gorm.Model
|
2024-01-16 05:53:39 +00:00
|
|
|
UserID uint
|
2024-02-18 04:06:27 +00:00
|
|
|
Hash []byte `gorm:"type:binary(32);unique_index"`
|
2024-01-25 23:58:56 +00:00
|
|
|
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
|
2024-01-16 01:58:20 +00:00
|
|
|
}
|