37 lines
862 B
C#
37 lines
862 B
C#
|
|
namespace SIGCM2.Domain.Entities;
|
||
|
|
|
||
|
|
public sealed class Usuario
|
||
|
|
{
|
||
|
|
public int Id { get; }
|
||
|
|
public string Username { get; }
|
||
|
|
public string PasswordHash { get; }
|
||
|
|
public string Nombre { get; }
|
||
|
|
public string Apellido { get; }
|
||
|
|
public string? Email { get; }
|
||
|
|
public string Rol { get; }
|
||
|
|
public string PermisosJson { get; }
|
||
|
|
public bool Activo { get; }
|
||
|
|
|
||
|
|
public Usuario(
|
||
|
|
int id,
|
||
|
|
string username,
|
||
|
|
string passwordHash,
|
||
|
|
string nombre,
|
||
|
|
string apellido,
|
||
|
|
string? email,
|
||
|
|
string rol,
|
||
|
|
string permisosJson,
|
||
|
|
bool activo)
|
||
|
|
{
|
||
|
|
Id = id;
|
||
|
|
Username = username;
|
||
|
|
PasswordHash = passwordHash;
|
||
|
|
Nombre = nombre;
|
||
|
|
Apellido = apellido;
|
||
|
|
Email = email;
|
||
|
|
Rol = rol;
|
||
|
|
PermisosJson = permisosJson;
|
||
|
|
Activo = activo;
|
||
|
|
}
|
||
|
|
}
|