2022-03-18 12:47:34 +04:00
|
|
|
|
using CoreModels.Tools;
|
|
|
|
|
using ModuleTools.Attributes;
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace CoreModels.ModelsSecurity
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Модель, описывающиая пользователя системы
|
|
|
|
|
/// </summary>
|
|
|
|
|
[EntityDescription("User", "Пользователи системы")]
|
|
|
|
|
public interface IUserModel : IId
|
|
|
|
|
{
|
|
|
|
|
string UserName { get; }
|
|
|
|
|
|
2022-03-18 13:27:14 +04:00
|
|
|
|
[CheckRigthForMap]
|
2022-03-18 12:47:34 +04:00
|
|
|
|
string PasswordHash { get; }
|
|
|
|
|
|
|
|
|
|
byte[] Avatar { get; }
|
|
|
|
|
|
|
|
|
|
DateTime? DateLastVisit { get; }
|
|
|
|
|
|
2022-03-18 13:27:14 +04:00
|
|
|
|
[CheckRigthForMap]
|
2022-03-18 12:47:34 +04:00
|
|
|
|
bool IsBanned { get; }
|
|
|
|
|
|
2022-03-18 13:27:14 +04:00
|
|
|
|
[CheckRigthForMap]
|
2022-03-18 12:47:34 +04:00
|
|
|
|
DateTime? DateBanned { get; }
|
|
|
|
|
|
2022-03-18 13:27:14 +04:00
|
|
|
|
[CheckRigthForMap]
|
2022-03-18 12:47:34 +04:00
|
|
|
|
int CountAttempt { get; }
|
|
|
|
|
}
|
|
|
|
|
}
|