namespace Admin.NET.Core;
///
/// 系统用户角色表
///
[SugarTable(null, "系统用户角色表")]
[SystemTable]
public class SysUserRole : EntityBaseId
{
///
/// 用户Id
///
[SugarColumn(ColumnDescription = "用户Id")]
public long UserId { get; set; }
///
/// 角色Id
///
[SugarColumn(ColumnDescription = "角色Id")]
public long RoleId { get; set; }
///
/// 角色
///
[SugarColumn(IsIgnore = true)]
[Navigate(NavigateType.OneToOne, nameof(RoleId))]
public SysRole SysRole { get; set; }
}