photoprism/photo.go

25 lines
520 B
Go
Raw Normal View History

2018-07-18 15:17:56 +02:00
package photoprism
import (
"github.com/jinzhu/gorm"
)
type Photo struct {
gorm.Model
2018-08-03 15:17:13 +02:00
Title string
Description string `gorm:"type:text;"`
2018-07-18 15:17:56 +02:00
CanonicalName string
PerceptualHash string
2018-08-03 15:17:13 +02:00
Tags []Tag `gorm:"many2many:photo_tags;"`
2018-07-18 15:17:56 +02:00
Files []File
Albums []Album `gorm:"many2many:album_photos;"`
Author string
CameraModel string
LocationName string
Lat float64
Long float64
Liked bool
Private bool
Deleted bool
}