feat: add mimetype column to tus_upload and upload
This commit is contained in:
parent
541fcff779
commit
00a58a3b98
|
@ -5,6 +5,7 @@ import "gorm.io/gorm"
|
|||
type TusUpload struct {
|
||||
gorm.Model
|
||||
Hash string `gorm:"uniqueIndex:idx_hash_deleted"`
|
||||
MimeType string
|
||||
UploadID string `gorm:"uniqueIndex"`
|
||||
UploaderID uint
|
||||
UploaderIP string
|
||||
|
|
|
@ -6,6 +6,7 @@ type Upload struct {
|
|||
gorm.Model
|
||||
UserID uint
|
||||
Hash string
|
||||
MimeType string
|
||||
Protocol string
|
||||
User User
|
||||
UploaderIP string
|
||||
|
|
Loading…
Reference in New Issue