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