using System.ComponentModel.DataAnnotations; namespace LocationTrackerApp.Models; /// /// Represents a location data point stored in the database /// public class LocationData { /// /// Unique identifier for the location data point /// [Key] public int Id { get; set; } /// /// Latitude coordinate of the location /// [Required] public double Latitude { get; set; } /// /// Longitude coordinate of the location /// [Required] public double Longitude { get; set; } /// /// Accuracy of the location reading in meters /// public double Accuracy { get; set; } /// /// Altitude of the location in meters above sea level /// public double? Altitude { get; set; } /// /// Speed of the device at the time of recording in meters per second /// public double? Speed { get; set; } /// /// Timestamp when the location was recorded /// [Required] public DateTime Timestamp { get; set; } /// /// Session identifier to group related location points /// public string? SessionId { get; set; } /// /// Additional metadata or notes for this location point /// public string? Notes { get; set; } }