This commit is contained in:
36
Api/Dilon.Core/Entity/SysUserRole.cs
Normal file
36
Api/Dilon.Core/Entity/SysUserRole.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using Furion.DatabaseAccessor;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Dilon.Core
|
||||
{
|
||||
/// <summary>
|
||||
/// 用户角色表
|
||||
/// </summary>
|
||||
[Table("sys_user_role")]
|
||||
[Comment("用户角色表")]
|
||||
public class SysUserRole : IEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// 用户Id
|
||||
/// </summary>
|
||||
[Comment("用户Id")]
|
||||
public long SysUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 一对一引用(系统用户)
|
||||
/// </summary>
|
||||
public SysUser SysUser { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 系统角色Id
|
||||
/// </summary>
|
||||
[Comment("角色Id")]
|
||||
public long SysRoleId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 一对一引用(系统角色)
|
||||
/// </summary>
|
||||
public SysRole SysRole { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user