DB integration added, multiple images for equipment
This commit is contained in:
+2
-4
@@ -11,15 +11,13 @@ public class Point
|
||||
[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
|
||||
// Navigation Properties
|
||||
public List<Image> Images { get; set; } = [];
|
||||
public List<Equipment> Equipment { get; set; } = [];
|
||||
public List<Property> Properties { get; set; } = [];
|
||||
|
||||
Reference in New Issue
Block a user