2018-09-16 19:09:40 +02:00
|
|
|
package models
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/jinzhu/gorm"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Location struct {
|
|
|
|
gorm.Model
|
|
|
|
LocDisplayName string
|
|
|
|
LocLat float64
|
|
|
|
LocLong float64
|
|
|
|
LocCategory string
|
|
|
|
LocType string
|
|
|
|
LocName string
|
2018-09-26 15:00:12 +02:00
|
|
|
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
|
|
|
}
|