26 lines
1.2 KiB
C#
26 lines
1.2 KiB
C#
namespace Inventario.API.Models
|
|
{
|
|
public class Equipo
|
|
{
|
|
public int Id { get; set; }
|
|
public string Hostname { get; set; } = string.Empty;
|
|
public string Ip { get; set; } = string.Empty;
|
|
public string? Mac { get; set; } // Mac puede ser nulo, así que usamos string?
|
|
public string Motherboard { get; set; } = string.Empty;
|
|
public string Cpu { get; set; } = string.Empty;
|
|
public int Ram_installed { get; set; }
|
|
public int? Ram_slots { get; set; } // Puede ser nulo
|
|
public string Os { get; set; } = string.Empty;
|
|
public string Architecture { get; set; } = string.Empty;
|
|
public DateTime Created_at { get; set; }
|
|
public DateTime Updated_at { get; set; }
|
|
public int? Sector_id { get; set; } // Puede ser nulo
|
|
|
|
// Propiedades de navegación (no mapeadas directamente a la BD)
|
|
public Sector? Sector { get; set; }
|
|
public List<Usuario> Usuarios { get; set; } = new();
|
|
public List<Disco> Discos { get; set; } = new();
|
|
public List<MemoriaRamDetalle> MemoriasRam { get; set; } = new();
|
|
public List<HistorialEquipo> Historial { get; set; } = new();
|
|
}
|
|
} |