¶Ô±ÈÐÂÎļþ |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using SqlSugar; |
| | | using WIDESEA_Core.DB.Models; |
| | | using WIDESEA_Core.Tenants; |
| | | |
| | | namespace WIDESEA_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; } |
| | | } |
| | | } |