namespace Admin.NET.Core; /// /// 系统角色表 /// [SugarTable(null, "系统角色表")] [SystemTable] public class SysRole : EntityTenant { /// /// 名称 /// [SugarColumn(ColumnDescription = "名称", Length = 64)] [Required, MaxLength(64)] public virtual string Name { get; set; } /// /// 编码 /// [SugarColumn(ColumnDescription = "编码", Length = 64)] [MaxLength(64)] public string? Code { get; set; } /// /// 排序 /// [SugarColumn(ColumnDescription = "排序")] public int OrderNo { get; set; } = 100; /// /// 数据范围(1全部数据 2本部门及以下数据 3本部门数据 4仅本人数据 5自定义数据) /// [SugarColumn(ColumnDescription = "数据范围")] public DataScopeEnum DataScope { get; set; } = DataScopeEnum.All; /// /// 备注 /// [SugarColumn(ColumnDescription = "备注", Length = 128)] [MaxLength(128)] public string? Remark { get; set; } /// /// 状态 /// [SugarColumn(ColumnDescription = "状态")] public StatusEnum Status { get; set; } = StatusEnum.Enable; }