Files
SkyArtShop/Models/MenuItem.cs

32 lines
678 B
C#
Raw Normal View History

using System;
using System.ComponentModel.DataAnnotations;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
namespace SkyArtShop.Models;
public class MenuItem
{
[BsonId]
[BsonRepresentation(BsonType.ObjectId)]
public string? Id { get; set; }
[Required]
public string Label { get; set; } = string.Empty;
[Required]
public string Url { get; set; } = string.Empty;
public int DisplayOrder { get; set; }
public bool IsActive { get; set; } = true;
public bool ShowInNavbar { get; set; } = true;
public bool ShowInDropdown { get; set; } = true;
public bool OpenInNewTab { get; set; }
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
}