photoprism/internal/models/album.go
Michael Mayer 10859ee695 Moved perceptual hash from photo to file model; code clean-up (go fmt)
- Files might show different details of the full photo
2018-09-27 08:59:53 +02:00

17 lines
335 B
Go

package models
import (
"github.com/jinzhu/gorm"
)
type Album struct {
gorm.Model
AlbumSlug string
AlbumName string
AlbumDescription string `gorm:"type:text;"`
AlbumNotes string `gorm:"type:text;"`
AlbumPhoto *Photo
AlbumPhotoID uint
Photos []Photo `gorm:"many2many:album_photos;"`
}