diff --git a/model/upload.go b/model/upload.go new file mode 100644 index 0000000..0b70a14 --- /dev/null +++ b/model/upload.go @@ -0,0 +1,13 @@ +package model + +import ( + "gorm.io/gorm" +) + +type Upload struct { + gorm.Model + ID uint `gorm:"primaryKey"` + AccountID uint `gorm:"index"` + Account Account + Hash string `gorm:"uniqueIndex"` +}