feat: add upload model

This commit is contained in:
Derrick Hammer 2023-05-04 04:13:19 -04:00
parent 782ac58ed2
commit f73a04bb2e
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 13 additions and 0 deletions

13
model/upload.go Normal file
View File

@ -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"`
}