import Foundation import SwiftData /// Persists the GPS coordinate at which each photo was captured, keyed by /// the backend's photo URL path. Lives only on this device — backend has no /// concept of photo geolocations. @Model final class PhotoLocation { var routeId: Int var photoUrl: String var lat: Double var lon: Double var createdAt: Date init(routeId: Int, photoUrl: String, lat: Double, lon: Double) { self.routeId = routeId self.photoUrl = photoUrl self.lat = lat self.lon = lon self.createdAt = .now } }