using Common.Enum;
using Entity.Base;
using SqlSugar;
namespace Entity.DbModel.System
{
///
/// 系统角色表
///
[SugarTable("sys_role")]
public partial class SysRole : EntityBase
{
///
/// 名称
///
[SugarColumn(ColumnName = "name")]
public virtual string Name { get; set; }
///
/// 编码
///
[SugarColumn(ColumnName = "code")]
public string? Code { get; set; }
///
/// 排序
///
[SugarColumn(ColumnName = "order_no")]
public int OrderNo { get; set; } = 100;
///
/// 数据范围(1全部数据 2本部门及以下数据 3本部门数据 4仅本人数据 5自定义数据)
///
[SugarColumn(ColumnName = "data_scope")]
public DataScopeEnum DataScope { get; set; } = DataScopeEnum.Self;
///
/// 备注
///
[SugarColumn(ColumnName = "remark")]
public string? Remark { get; set; }
///
/// 状态
///
[SugarColumn(ColumnName = "status")]
public StatusEnum Status { get; set; } = StatusEnum.Enable;
}
}