2020-02-05 16:14:21 +01:00
|
|
|
package models
|
|
|
|
|
|
|
|
import (
|
2020-11-23 19:59:01 +01:00
|
|
|
"gorm.io/gorm"
|
2020-02-05 16:14:21 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
type Album struct {
|
2020-11-23 19:59:01 +01:00
|
|
|
gorm.Model
|
2020-02-05 16:14:21 +01:00
|
|
|
Title string
|
|
|
|
ParentAlbum *int
|
|
|
|
OwnerID int
|
2020-11-23 19:59:01 +01:00
|
|
|
Owner User
|
2020-02-05 16:14:21 +01:00
|
|
|
Path string
|
2020-06-24 10:43:20 +02:00
|
|
|
PathHash string
|
2020-02-05 16:14:21 +01:00
|
|
|
}
|
|
|
|
|
2020-03-07 16:19:27 +01:00
|
|
|
func (a *Album) FilePath() string {
|
|
|
|
return a.Path
|
|
|
|
}
|