using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace GazpromApp.Models; public class Equipment { [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int Id { get; set; } [Required] public string? Name { get; set; } = string.Empty; [Required] public string? Description { get; set; } = string.Empty; [Required] public int PointId { get; set; } public int ImageId { get; set; } public List InspectionIds { get; set; } = []; // EF stuff public Image? Image { get; set; } public Point? Point { get; set; } public List Properties { get; set; } = []; public List Inspections { get; set; } = []; }