using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Text.Json.Serialization; namespace GazpromApp.Models; public class Equipment { [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] [JsonIgnore] public int Id { get; set; } [Required] public string? Name { get; set; } = string.Empty; public string? Description { get; set; } = string.Empty; // Foreign keys [Required] [JsonIgnore] public int PointId { get; set; } [JsonIgnore] public List ImageIds { get; set; } = []; [JsonIgnore] public List InspectionIds { get; set; } = []; // Navigation Properties public List Images { get; set; } = []; [JsonIgnore] public Point Point { get; set; } = null!; public List Properties { get; set; } = []; public List Inspections { get; set; } = []; }