MenuDbEntity.cs 1.25 KB
using SqlSugar;

namespace FoodLabeling.Application.Services.DbModels;

/// <summary>
/// menu 表映射(兼容数字/字符串类型的 Id、ParentId)
/// </summary>
[SugarTable("menu")]
public class MenuDbEntity
{
    [SugarColumn(IsPrimaryKey = true)]
    public string Id { get; set; } = string.Empty;

    public bool IsDeleted { get; set; }

    public DateTime CreationTime { get; set; }

    public string? CreatorId { get; set; }

    public string? LastModifierId { get; set; }

    public DateTime? LastModificationTime { get; set; }

    public int OrderNum { get; set; }

    public bool State { get; set; }

    public string MenuName { get; set; } = string.Empty;

    public string? RouterName { get; set; }

    public int MenuType { get; set; }

    public string? PermissionCode { get; set; }

    public string ParentId { get; set; } = "0";

    public string? MenuIcon { get; set; }

    public string? Router { get; set; }

    public bool IsLink { get; set; }

    public bool IsCache { get; set; }

    public bool IsShow { get; set; }

    public string? Remark { get; set; }

    public string? Component { get; set; }

    public int MenuSource { get; set; }

    public string? Query { get; set; }

    public string? ConcurrencyStamp { get; set; }
}