namespace PlotLine.Models; public sealed record GeographicRoot(string CountryCode, string? SubdivisionCode = null); public sealed record GeographicQuery(string Name, string CountryCode, string? SubdivisionCode, string[] Ancestors, bool RelaxedContext = false); public sealed record GeographicCandidate(string Provider, string PlaceID, string Name, double Latitude, double Longitude, string CountryCode, string[] AdministrativeNames, string Attribution, bool UniqueWithinContext = false); public sealed class LocationGeography { public int LocationID { get; set; } public long Generation { get; set; } public string Status { get; set; } = "Pending"; public string JobState { get; set; } = "Awaiting hierarchy request"; public int Attempts { get; set; } public DateTime NextAttempt { get; set; } public DateTime? LeaseUntil { get; set; } public string? CandidatesJson { get; set; } public string? MatchJson { get; set; } public bool Confirmed { get; set; } public bool IsExcluded { get; set; } public string? Message { get; set; } } public sealed class GeographicJob { public int LocationID { get; set; } public Guid Lease { get; set; } public long Generation { get; set; } public int Attempts { get; set; } public bool RelaxedContext { get; set; } } public sealed record GeographicLookupRequest(int LocationID,long Generation,string RequestKey); public sealed class GeographicSubmission { public int Queued { get; set; } public int Cached { get; set; } public int Charged { get; set; } }