photoprism/internal/models/album.go
2018-11-06 19:02:03 +01:00

17 lines
350 B
Go

package models
import (
"github.com/jinzhu/gorm"
)
// Photo album
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;"`
}