| using System; | 
| using System.Collections.Generic; | 
| using System.Linq; | 
| using System.Text; | 
| using System.Threading.Tasks; | 
| using SqlSugar; | 
| using WIDESEAWCS_Core.DB.Models; | 
| using WIDESEAWCS_Core.Tenants; | 
|   | 
| namespace WIDESEAWCS_Model.Models | 
| { | 
|     [SugarTable("Sys_Role", "角色表"), MultiTenant] | 
|     public class Sys_Role : BaseEntity | 
|     { | 
|         /// <summary> | 
|         /// 主键 | 
|         /// </summary> | 
|         [SugarColumn(IsIdentity = true, IsPrimaryKey = true, ColumnDescription = "主键")] | 
|         public int RoleId { get; set; } | 
|   | 
|         /// <summary> | 
|         /// 部门名称 | 
|         /// </summary> | 
|         [SugarColumn(IsNullable = true, IsIgnore = true, Length = 50, ColumnDescription = "部门名称")] | 
|         public string DeptName { get; set; } | 
|   | 
|         /// <summary> | 
|         /// 部门主键 | 
|         /// </summary> | 
|         [SugarColumn(IsNullable = true, ColumnDescription = "部门主键")] | 
|         public int? DeptId { get; set; } | 
|   | 
|         /// <summary> | 
|         /// 是否启用 | 
|         /// </summary> | 
|         [SugarColumn(IsNullable = false, ColumnDescription = "是否启用")] | 
|         public byte Enable { get; set; } | 
|   | 
|         /// <summary> | 
|         /// 父ID | 
|         /// </summary> | 
|         [SugarColumn(IsNullable = false, ColumnDescription = "父ID")] | 
|         public int ParentId { get; set; } | 
|   | 
|         /// <summary> | 
|         /// 角色名称 | 
|         /// </summary> | 
|         [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "角色名称")] | 
|         public string RoleName { get; set; } | 
|   | 
|         //[Navigate(NavigateType.OneToMany, nameof(ParentId), nameof(RoleId)), SugarColumn(IsIgnore = true, IsNullable = true)] | 
|         //public List<Sys_Role> Roles { get; set; } | 
|     } | 
| } |