using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Text.Json.Serialization; namespace GazpromApp.Models; public class Point { [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] [JsonIgnore] public int Id { get; set; } [Required] public string? Name { get; set; } = string.Empty; [Required] public string? Description { get; set; } = string.Empty; [Required] public double Latitude { get; set; } [Required] public double Longitude { get; set; } // EF stuff public List Images { get; set; } = []; public List Equipment { get; set; } = []; public List Properties { get; set; } = []; }