2024-05-16 13:30:30 +08:00
|
|
|
|
using SqlSugar;
|
|
|
|
|
|
|
2024-07-01 16:04:10 +08:00
|
|
|
|
namespace DOAN.Model.System
|
2024-05-16 13:30:30 +08:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 用户角色关联表 用户N-1 角色
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarTable("sys_user_role", "用户和角色关联表")]
|
|
|
|
|
|
[Tenant("0")]
|
|
|
|
|
|
public class SysUserRole
|
|
|
|
|
|
{
|
|
|
|
|
|
[SugarColumn(ColumnName = "user_id", IsPrimaryKey = true)]
|
|
|
|
|
|
public long UserId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[SugarColumn(ColumnName = "role_id", IsPrimaryKey = true)]
|
|
|
|
|
|
public long RoleId { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|