Adding equipment works

This commit is contained in:
retr0volkov
2025-07-04 15:29:23 +03:00 Unverified
parent e4c1ded6ae
commit c0178625cd
31 changed files with 510 additions and 18 deletions
+4 -2
View File
@@ -10,15 +10,17 @@ public class Equipment
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
[Required]
public string Name { get; set; } = string.Empty;
public string? Name { get; set; } = string.Empty;
[Required]
public string Description { get; set; } = string.Empty;
public string? Description { get; set; } = string.Empty;
[Required]
public int PointId { get; set; }
public int ImageId { get; set; }
public List<int> InspectionIds { get; set; } = [];
// EF stuff
public Image? Image { get; set; }
public Models.Point? Point { get; set; }
public List<Property> Properties { get; } = [];
public List<Inspection> Inspections { get; } = [];
}