fix: wrong tag option for unique index

This commit is contained in:
Derrick Hammer 2024-03-02 06:19:31 -05:00
parent f98b0f48bd
commit 2e9694149b
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ func init() {
type Upload struct { type Upload struct {
gorm.Model gorm.Model
UserID uint UserID uint
Hash []byte `gorm:"type:binary(32);unique_index"` Hash []byte `gorm:"type:binary(32);uniqueIndex"`
MimeType string MimeType string
Protocol string Protocol string
User User User User