indexer support
This commit is contained in:
@@ -24,6 +24,6 @@ type Addon struct {
|
||||
PriorityIndexing bool `json:"priorityIndexing" gorm:"default:false"`
|
||||
AddonFiles []AddonFile `json:"addonFiles"`
|
||||
|
||||
Previews string `json:"preview"`
|
||||
Preview string `json:"preview"`
|
||||
Author string `json:"author"`
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ import "gorm.io/gorm"
|
||||
type AddonFile struct {
|
||||
gorm.Model
|
||||
Path string `json:"path"`
|
||||
Hash string `json:"hash"`
|
||||
Hash string `json:"hash" gorm:"index"`
|
||||
AddonID string `json:"-"`
|
||||
VersionID int `json:"versionId"`
|
||||
Version string `json:"version"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user