using SqlSugar;

namespace QYZH.InteractiveMagazine.Models.Entity;

/// <summary>
/// 后台菜单表
/// </summary>
[SugarTable("AdminMenu")]
public partial class AdminMenu : SqlSugarBaseEntity
{
    /// <summary>
    /// Desc:父级菜单ID，根节点为0
    /// Default:0
    /// Nullable:False
    /// </summary>
    public long ParentId { get; set; }

    /// <summary>
    /// Desc:菜单名称
    /// Default:
    /// Nullable:False
    /// </summary>
    public string Name { get; set; } = string.Empty;

    /// <summary>
    /// Desc:权限编码
    /// Default:
    /// Nullable:False
    /// </summary>
    public string Code { get; set; } = string.Empty;

    /// <summary>
    /// Desc:前端路由路径
    /// Default:
    /// Nullable:True
    /// </summary>
    public string? Path { get; set; }

    /// <summary>
    /// Desc:前端组件路径
    /// Default:
    /// Nullable:True
    /// </summary>
    public string? Component { get; set; }

    /// <summary>
    /// Desc:菜单图标
    /// Default:
    /// Nullable:True
    /// </summary>
    public string? Icon { get; set; }

    /// <summary>
    /// Desc:排序值
    /// Default:0
    /// Nullable:False
    /// </summary>
    public int Sort { get; set; }

    /// <summary>
    /// Desc:是否显示在菜单
    /// Default:b'1'
    /// Nullable:False
    /// </summary>
    public bool IsVisible { get; set; } = true;
}
