photoprism/internal/models/location.go

31 lines
607 B
Go
Raw Normal View History

2018-09-16 17:09:40 +00:00
package models
import (
"github.com/jinzhu/gorm"
)
2018-11-06 18:02:03 +00:00
// Photo location
2018-09-16 17:09:40 +00: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 17:09:40 +00:00
LocCity string
LocPostcode string
LocCounty string
LocState string
LocCountry string
LocCountryCode string
2018-09-19 07:20:57 +00:00
LocDescription string `gorm:"type:text;"`
LocNotes string `gorm:"type:text;"`
LocPhoto *Photo
LocPhotoID uint
2018-09-16 17:09:40 +00:00
LocFavorite bool
2018-09-17 16:40:57 +00:00
}