28 lines
625 B
C#
28 lines
625 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace BLAIzor.Models
|
|
{
|
|
|
|
public class MenuItem
|
|
{
|
|
[Key]
|
|
public int Id { get; set; }
|
|
|
|
[Required]
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
public int PointId { get; set; }
|
|
public int SortOrder { get; set; }
|
|
|
|
public bool ShowInMainMenu { get; set; } = false;
|
|
|
|
public Guid? QdrantPointId { get; set; }
|
|
|
|
[ForeignKey("SiteInfo")]
|
|
public int SiteInfoId { get; set; }
|
|
public SiteInfo SiteInfo { get; set; } = null!;
|
|
}
|
|
|
|
}
|