Role.cs 589 Bytes
using FreeSql.DataAnnotations;
using HHECS.DataContract;
using NotMapped = System.ComponentModel.DataAnnotations.Schema.NotMappedAttribute;

namespace HHECS.RobotTool.Model
{
    /// <summary>
    /// 角色表
    /// </summary>
    [Index($"idx_{nameof(Role)}_{nameof(Code)}", $"{nameof(Code)}", true)]
    public class Role : BaseEntityCU<int>
    {
        public string Code { get; set; } = null!;

        public string Name { get; set; } = null!;

        public string Description { get; set; } = null!;

        [NotMapped]
        public bool IsSelected { get; set; }
    }
}