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

24 lines
675 B
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Collections.Generic;
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; }
// EF stuff
public Image? Image { get; set; }
public Models.Point? Point { get; set; }
public List<Property> Properties { get; } = [];
}