fix: wrong tag option for unique index
This commit is contained in:
parent
f98b0f48bd
commit
2e9694149b
|
@ -9,7 +9,7 @@ func init() {
|
|||
type Upload struct {
|
||||
gorm.Model
|
||||
UserID uint
|
||||
Hash []byte `gorm:"type:binary(32);unique_index"`
|
||||
Hash []byte `gorm:"type:binary(32);uniqueIndex"`
|
||||
MimeType string
|
||||
Protocol string
|
||||
User User
|
||||
|
|
Loading…
Reference in New Issue