33 lines
992 B
C#
33 lines
992 B
C#
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using YunDa.SOMS.Entities.AuditCommon;
|
|
using YunDa.SOMS.Entities.AuditCommon.IAdudit;
|
|
|
|
namespace YunDa.SOMS.Entities.System
|
|
{
|
|
[Table("sys_role")]
|
|
public class SysRole : SOMSAuditedEntity, ISOMSPassivable
|
|
{
|
|
public const int MaxNameLength = 50;
|
|
public const int MaxRemarkLength = 200;
|
|
public const string AdminRole = "超级管理员";
|
|
/// <summary>
|
|
/// 角色名称
|
|
/// </summary>
|
|
[Required]
|
|
[StringLength(MaxNameLength)]
|
|
public virtual string RoleName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 备注
|
|
/// </summary>
|
|
[StringLength(MaxRemarkLength)]
|
|
public virtual string Remark { get; set; }
|
|
/// <summary>
|
|
/// 是否活动
|
|
/// </summary>
|
|
[DefaultValue(true)]
|
|
public virtual bool IsActive { get; set; }
|
|
}
|
|
} |