using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;

namespace Marco.Pms.Model.AppMenu
{
    public class SubMenuItem
    {
        [BsonId]
        [BsonRepresentation(BsonType.String)]
        public Guid Id { get; set; } = Guid.NewGuid();

        public string? Text { get; set; }
        public bool Available { get; set; } = true;

        public string Link { get; set; } = string.Empty;
        public string MobileLink { get; set; } = string.Empty;

        // Changed from string → List<string>
        public List<string> PermissionIds { get; set; } = new List<string>();
    }
}
