import Foundation

struct FavoriteRoute: Codable, Identifiable, Hashable, Sendable {
    var id: String { "\(departure.iata)-\(arrival.iata)" }
    let departure: Airport
    let arrival: Airport
    let addedDate: Date

    enum CodingKeys: String, CodingKey {
        case departure, arrival, addedDate
    }
}
