diff --git a/internal/models/photo.go b/internal/models/photo.go index 0337032b8..3978b1566 100644 --- a/internal/models/photo.go +++ b/internal/models/photo.go @@ -22,8 +22,8 @@ type Photo struct { PhotoPrivate bool PhotoSensitive bool PhotoStory bool - PhotoLat float64 - PhotoLong float64 + PhotoLat float64 `gorm:"type:index;"` + PhotoLong float64 `gorm:"type:index;"` PhotoAltitude int PhotoFocalLength int PhotoIso int @@ -41,7 +41,7 @@ type Photo struct { LocationID uint LocationChanged bool LocationEstimated bool - TakenAt time.Time + TakenAt time.Time `gorm:"type:index;"` TakenAtChanged bool TimeZone string Labels []*PhotoLabel