You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1019 B
39 lines
1019 B
5 months ago
|
// 大名科技(天津)有限公司版权所有 电话:18020030720 QQ:515096995
|
||
|
//
|
||
|
// 此源代码遵循位于源代码树根目录中的 LICENSE 文件的许可证
|
||
|
|
||
|
namespace Admin.NET.Core;
|
||
|
|
||
|
/// <summary>
|
||
|
/// 系统用户角色表
|
||
|
/// </summary>
|
||
|
[SugarTable(null, "系统用户角色表")]
|
||
|
[SysTable]
|
||
|
public class SysUserRole : EntityBaseId
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 用户Id
|
||
|
/// </summary>
|
||
|
[SugarColumn(ColumnDescription = "用户Id")]
|
||
|
public long UserId { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 用户
|
||
|
/// </summary>
|
||
|
[Newtonsoft.Json.JsonIgnore]
|
||
|
[System.Text.Json.Serialization.JsonIgnore]
|
||
|
[Navigate(NavigateType.OneToOne, nameof(UserId))]
|
||
|
public SysUser SysUser { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 角色Id
|
||
|
/// </summary>
|
||
|
[SugarColumn(ColumnDescription = "角色Id")]
|
||
|
public long RoleId { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 角色
|
||
|
/// </summary>
|
||
|
[Navigate(NavigateType.OneToOne, nameof(RoleId))]
|
||
|
public SysRole SysRole { get; set; }
|
||
|
}
|