You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.2 KiB
C#

using SqlSugar;
namespace CompressorXN_Model
{
/// <summary>
/// 角色表
/// </summary>
[SugarTable("sys_role")]
public class Sys_Role
{
/// <summary>
/// 主键
/// </summary>
[SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)]//数据库是自增才配自增
public int Id { get; set; }
/// <summary>
/// 角色编码
/// </summary>
[SugarColumn(ColumnName = "role_code")]
public string RoleCode { get; set; }
/// <summary>
/// 角色名称
/// </summary>
[SugarColumn(ColumnName = "role_name")]
public string RoleName { get; set; }
/// <summary>
/// 备注
/// </summary>
[SugarColumn(ColumnName = "remark")]
public string Remark { get; set; }
/// <summary>
/// 数据状态
/// 1—可用0—不可用
/// </summary>
[SugarColumn(ColumnName = "isactive")]
public bool IsActive { get; set; }
/// <summary>
/// 是否拥有所有权限
/// </summary>
[SugarColumn(ColumnName = "is_all_author")]
public bool IsAllAuthor { get; set; }
}
}