photoprism/internal/models/location.go

31 lines
607 B
Go
Raw Normal View History

2018-09-16 19:09:40 +02:00
package models
import (
"github.com/jinzhu/gorm"
)
2018-11-06 19:02:03 +01:00
// Photo location
2018-09-16 19:09:40 +02:00
type Location struct {
gorm.Model
LocDisplayName string
LocLat float64
LocLong float64
LocCategory string
LocType string
LocName string
LocHouseNr string
LocStreet string
LocSuburb string
2018-09-16 19:09:40 +02:00
LocCity string
LocPostcode string
LocCounty string
LocState string
LocCountry string
LocCountryCode string
2018-09-19 09:20:57 +02:00
LocDescription string `gorm:"type:text;"`
LocNotes string `gorm:"type:text;"`
LocPhoto *Photo
LocPhotoID uint
2018-09-16 19:09:40 +02:00
LocFavorite bool
2018-09-17 18:40:57 +02:00
}