30 lines
673 B
C#
30 lines
673 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 string StoredHtml { get; set; }
|
|
|
|
public Guid? QdrantPointId { get; set; }
|
|
|
|
[ForeignKey("SiteInfo")]
|
|
public int SiteInfoId { get; set; }
|
|
public SiteInfo SiteInfo { get; set; } = null!;
|
|
}
|
|
|
|
}
|