get initial scanner up and running

This commit is contained in:
viktorstrate
2020-12-22 01:14:43 +01:00
parent 732ccd05ab
commit aeb05bca49
12 changed files with 211 additions and 59 deletions

View File

@@ -12,10 +12,11 @@ type Album struct {
Title string `gorm:"not null"`
ParentAlbumID *int
ParentAlbum *Album
OwnerID int `gorm:"not null"`
Owner User
Path string `gorm:"not null"`
PathHash string `gorm:"unique"`
// OwnerID int `gorm:"not null"`
// Owner User
Owners []User `gorm:"many2many:user_albums"`
Path string `gorm:"not null"`
PathHash string `gorm:"unique"`
}
func (a *Album) FilePath() string {