using SqlSugar;
using QYZH.InteractiveMagazine.Models.Enum;

namespace QYZH.InteractiveMagazine.Models.Entity;

/// <summary>
/// 后台角色表
/// </summary>
[SugarTable("System_AdminRole")]
public partial class AdminRole : SqlSugarBaseEntity
{
    /// <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:角色类型，0=普通角色，1=系统角色
    /// Default:0
    /// Nullable:False
    /// </summary>
    public AdminRoleTypeEnum Type { get; set; } = AdminRoleTypeEnum.Normal;

    /// <summary>
    /// Desc:备注
    /// Default:
    /// Nullable:True
    /// </summary>
    public string? Remark { get; set; }
}
