feat: add upload model
This commit is contained in:
parent
782ac58ed2
commit
f73a04bb2e
|
@ -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"`
|
||||
}
|
Loading…
Reference in New Issue