first commit
This commit is contained in:
28
src/App.Core/Entities/Team/User.cs
Normal file
28
src/App.Core/Entities/Team/User.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
namespace App.Core.Entities.Team;
|
||||
|
||||
/// <summary>
|
||||
/// Compte utilisateur local (authentification par mot de passe haché, Argon2id).
|
||||
/// </summary>
|
||||
public class User
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public required string Username { get; set; }
|
||||
|
||||
/// <summary>Hash Argon2id du mot de passe. Jamais le mot de passe en clair.</summary>
|
||||
public required string PasswordHash { get; set; }
|
||||
|
||||
public required string FullName { get; set; }
|
||||
|
||||
public string? Email { get; set; }
|
||||
|
||||
public UserRole Role { get; set; }
|
||||
|
||||
public bool IsActive { get; set; } = true;
|
||||
|
||||
public DateTime CreatedAtUtc { get; set; }
|
||||
|
||||
public DateTime? LastLoginAtUtc { get; set; }
|
||||
|
||||
public TechnicianProfile? TechnicianProfile { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user