FalconSSO/FAuth.Database/Tables/Roles.cs

29 lines
686 B
C#
Raw Normal View History

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace FAuth.DataBase.Tables
{
/// <summary>
/// 角色定义
/// </summary>
[Table("Roles")]
public class Roles
{
/// <summary>
/// 角色编号
/// </summary>
[Key]
public int Id { get; set; }
/// <summary>
/// 角色名称
/// </summary>
[MaxLength(50), Required]
public string Name { get; set; }
/// <summary>
/// 角色说明
/// </summary>
[MaxLength(50)]
public string Description { get; set; }
}
}