Proof of concept for variable album covers - GQL playground working.

This commit is contained in:
Peter - Ubuntu dual boot
2021-09-17 15:35:01 +01:00
parent 193e05e7e0
commit 6408b2c0d0
2 changed files with 1 additions and 4 deletions

View File

@@ -17,7 +17,7 @@ type Album struct {
Owners []User `gorm:"many2many:user_albums;constraint:OnDelete:CASCADE;"`
Path string `gorm:"not null"`
PathHash string `gorm:"unique"`
CoverID int `gorm:"index;default:-1;"`
CoverID int `gorm:"index;default:-1;"`
}
func (a *Album) FilePath() string {