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