using System.ComponentModel.DataAnnotations; namespace BibliotecaAPI.Models { public class Libro { [Key] public int Id { get; set; } public string Titulo { get; set; } = string.Empty; public string Autor { get; set; } = string.Empty; public string ISBN { get; set; } = string.Empty; public int Año { get; set; } public string Categoria { get; set; } = string.Empty; public int CopiasDisponibles { get; set; } } }