54 lines
1.6 KiB
C#
54 lines
1.6 KiB
C#
// 大名科技(天津)有限公司版权所有 电话:18020030720 QQ:515096995
|
||
//
|
||
// 此源代码遵循位于源代码树根目录中的 LICENSE 文件的许可证
|
||
|
||
namespace Admin.NET.Core;
|
||
|
||
/// <summary>
|
||
/// 系统角色表
|
||
/// </summary>
|
||
[SugarTable(null, "系统角色表")]
|
||
[SysTable]
|
||
[SugarIndex("index_{table}_N", nameof(Name), OrderByType.Asc)]
|
||
[SugarIndex("index_{table}_C", nameof(Code), OrderByType.Asc)]
|
||
public class SysRole : EntityTenant
|
||
{
|
||
/// <summary>
|
||
/// 名称
|
||
/// </summary>
|
||
[SugarColumn(ColumnDescription = "名称", Length = 64)]
|
||
[Required, MaxLength(64)]
|
||
public virtual string Name { get; set; }
|
||
|
||
/// <summary>
|
||
/// 编码
|
||
/// </summary>
|
||
[SugarColumn(ColumnDescription = "编码", Length = 64)]
|
||
[MaxLength(64)]
|
||
public string? Code { get; set; }
|
||
|
||
/// <summary>
|
||
/// 排序
|
||
/// </summary>
|
||
[SugarColumn(ColumnDescription = "排序")]
|
||
public int OrderNo { get; set; } = 100;
|
||
|
||
/// <summary>
|
||
/// 数据范围(1全部数据 2本部门及以下数据 3本部门数据 4仅本人数据 5自定义数据)
|
||
/// </summary>
|
||
[SugarColumn(ColumnDescription = "数据范围")]
|
||
public DataScopeEnum DataScope { get; set; } = DataScopeEnum.Self;
|
||
|
||
/// <summary>
|
||
/// 备注
|
||
/// </summary>
|
||
[SugarColumn(ColumnDescription = "备注", Length = 128)]
|
||
[MaxLength(128)]
|
||
public string? Remark { get; set; }
|
||
|
||
/// <summary>
|
||
/// 状态
|
||
/// </summary>
|
||
[SugarColumn(ColumnDescription = "状态")]
|
||
public StatusEnum Status { get; set; } = StatusEnum.Enable;
|
||
} |