using System; using SqlSugar; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Admin.Core.Model { /// ///角色信息表实体类 /// [Table("SysRole")] [SugarTable( "SysRole", "admin_sqlite")] public class SysRole { /// /// 角色ID /// [Key] [SugarColumn(IsPrimaryKey=true,IsIdentity=true)] [Required] public int RoleID { get; set; } /// /// 角色名称 /// public string RoleName { get; set; } /// /// 角色权限字符串 /// public string RoleKey { get; set; } /// /// 显示顺序 /// public string RoleSort { get; set; } /// /// 数据范围(1:全部数据权限 2:自定数据权限 3:本部门数据权限 4:本部门及以下数据权限) /// public string DataScope { get; set; } /// /// 菜单树选择项是否关联显示 /// public bool? MenuCheckStrictly { get; set; } /// /// 部门树选择项是否关联显示 /// public bool? DeptCheckStrictly { get; set; } /// /// 角色状态(0正常 1停用) /// public int? Status { get; set; } /// /// 删除标志(0代表存在 1代表删除) /// public bool? DelFlag { get; set; } /// /// 备注 /// public string Remark { get; set; } /// /// 创建者 /// public string CreateBy { get; set; } /// /// 创建时间 /// public DateTime? CreateTime { get; set; } /// /// 更新者 /// public string UpdateBy { get; set; } /// /// 更新时间 /// public DateTime? UpdateTime { get; set; } } }