portal/db/models/tus_upload.go

14 lines
260 B
Go
Raw Normal View History

2024-01-19 20:49:41 +00:00
package models
import "gorm.io/gorm"
type TusUpload struct {
gorm.Model
Hash string `gorm:"uniqueIndex"`
UploadID string `gorm:"uniqueIndex"`
UploaderID uint
UploaderIP string
Uploader User `gorm:"foreignKey:UploaderID"`
Protocol string
}