24 lines
754 B
C#
24 lines
754 B
C#
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace GazpromApp.Models;
|
|
|
|
public class Point
|
|
{
|
|
[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;
|
|
public double Latitude { get; set; }
|
|
public double Longitude { get; set; }
|
|
// Navigation Properties
|
|
public List<Image> Images { get; set; } = [];
|
|
public List<Equipment> Equipment { get; set; } = [];
|
|
public List<Property> Properties { get; set; } = [];
|
|
} |