Skip to main content

Overview

The CE_usuarios entity represents a system user who has access to manage the sports court reservation system. Users can create and manage reservations on behalf of clients.
The class name uses lowercase ‘usuarios’ (CE_usuarios) in the source code, which differs from the Pascal case naming convention used in other entities.

Properties

Entity Definition

public class CE_usuarios
{
    public int IdUsuario { get; set; }
    public string? Nombre { get; set; }
    public string? Clave { get; set; }
    public bool Estado { get; set; }
}

Usage Example

// Creating a new user
var usuario = new CE_usuarios
{
    IdUsuario = 1,
    Nombre = "admin",
    Clave = "hashed_password_here",
    Estado = true
};

Security Considerations

The Clave property stores password information. Ensure that passwords are properly hashed using secure hashing algorithms (e.g., bcrypt, PBKDF2) before storing them in the database. Never store plain-text passwords.

Build docs developers (and LLMs) love