Files
GazpromApp/Models/Point.cs
T
2025-06-30 20:13:36 +03:00

24 lines
730 B
C#

using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace GazpromApp.Models;
public class Point
{
[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 double Latitude { get; set; } = 0;
[Required]
public double Longitude { get; set; } = 0;
// EF stuff
public List<Image> Images { get; set; } = [];
public List<Equipment> Equipment { get; set; } = [];
public List<Property> Properties { get; } = [];
}