clean scan

This commit is contained in:
sentriz
2019-05-07 14:10:47 +01:00
parent c9b0157333
commit 342928d608
4 changed files with 102 additions and 54 deletions

View File

@@ -47,11 +47,14 @@ type Track struct {
// Cover represents the covers table
type Cover struct {
IDBase
CrudBase
AlbumID int `gorm:"primary_key;auto_increment:false"`
Album Album
Image []byte
Path string `gorm:"not null;unique_index"`
AlbumID int `gorm:"index"`
Album Album
FolderID int `gorm:"index"`
Folder Folder
Image []byte
Path string `gorm:"not null;unique_index"`
}
// User represents the users table