indexer support

This commit is contained in:
Sotirios Pupakis
2025-09-06 02:24:49 +02:00
parent 092c1a4080
commit 1dd8b1105e
9 changed files with 191 additions and 4 deletions

View File

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

View File

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