/
afanasevn
/
MaxSystems
Обзор
Документация
Войти
/
afanasevn
/
MaxSystems
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/MaxSystems.Domain/Entities/User.cs
34 строки
974 B
IBS\NAfanasev
Update documentation and comments
22 июн 2026, 19:13
22 июн 2026, 19:13
ff853a6
Код
Авторство
О чём код?
using MaxSystems.Domain.Enums; namespace MaxSystems.Domain.Entities; /// <summary> /// Пользователь портала. /// </summary> public class User { public Guid Id { get; set; } public string Email { get; set; } = string.Empty; public string Name { get; set; } = string.Empty; public string PasswordHash { get; set; } = string.Empty; /// <summary>Роль определяет права доступа.</summary> public UserRole Role { get; set; } = UserRole.Specialist; public bool Active { get; set; } = true; public DateTime CreatedAt { get; set; } = DateTime.UtcNow; public ICollection<Work> LeadWorks { get; set; } = []; public ICollection<Work> AssignedWorks { get; set; } = []; public ICollection<WarehouseMovement> MovementsGiven { get; set; } = []; public ICollection<WarehouseMovement> MovementsTaken { get; set; } = []; public ICollection<ImportLog> ImportLogs { get; set; } = []; }