46 lines
1011 B
C#
46 lines
1011 B
C#
using SqlSugar;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace New_College.Model.Models
|
|
{
|
|
/// <summary>
|
|
/// 用户跟角色关联表
|
|
/// </summary>
|
|
public class UserRole : DEntityRootTenant
|
|
{
|
|
public UserRole() { }
|
|
|
|
public UserRole(int uid, int rid)
|
|
{
|
|
UserId = uid;
|
|
RoleId = rid;
|
|
CreateTime = DateTime.Now;
|
|
IsDeleted = false;
|
|
CreateId = uid;
|
|
CreateTime = DateTime.Now;
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
///获取或设置是否禁用,逻辑上的删除,非物理删除
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true)]
|
|
public bool? IsDeleted { get; set; }
|
|
/// <summary>
|
|
/// 用户ID
|
|
/// </summary>
|
|
public int UserId { get; set; }
|
|
/// <summary>
|
|
/// 角色ID
|
|
/// </summary>
|
|
public int RoleId { get; set; }
|
|
|
|
|
|
}
|
|
}
|