portal/model/upload.go

14 lines
203 B
Go
Raw Normal View History

2023-05-04 08:13:19 +00:00
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"`
}