portal/model/upload.go

14 lines
225 B
Go
Raw Permalink 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" gorm:"AUTO_INCREMENT"`
2023-05-04 08:13:19 +00:00
AccountID uint `gorm:"index"`
Account Account
Hash string `gorm:"uniqueIndex"`
}