34 lines
975 B
C#
34 lines
975 B
C#
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace BibliotecaAPI.Models
|
|
{
|
|
public class Prestamo
|
|
{
|
|
/*
|
|
[Key]
|
|
public int Id { get; set; }
|
|
|
|
[ForeignKey("Usuario")]
|
|
public int UsuarioId { get; set; }
|
|
public Usuario? Usuario { get; set; }
|
|
|
|
[ForeignKey("Libro")]
|
|
public int LibroId { get; set; }
|
|
public Libro? Libro { get; set; }
|
|
|
|
public DateTime FechaPrestamo { get; set; } = DateTime.Now;
|
|
public DateTime? FechaDevolucion { get; set; }
|
|
public bool Devuelto { get; set; } = false;*/
|
|
public int IdPrestamo { get; set; }
|
|
public int IdUsuario { get; set; }
|
|
public int IdLibro { get; set; }
|
|
public DateTime FechaPrestamo { get; set; }
|
|
public bool Devuelto {get;set;}
|
|
|
|
public Usuario Usuario { get; set; }
|
|
public Libro Libro { get; set; }
|
|
}
|
|
}
|