// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

#nullable disable

namespace Biblioteca.Datos.Contexto.Repositorio
{
    public partial class PrestamosUsuarios
    {
        [Key]
        public int IdTiquetePrestamo { get; set; }
        public int? IdLibro { get; set; }
        public int? IdUsuario { get; set; }
        [Column(TypeName = "date")]
        public DateTime? FechaPrestamo { get; set; }
        [Column(TypeName = "date")]
        public DateTime? FechaDevolucion { get; set; }
        public bool? EstadoPrestamo { get; set; }

        [ForeignKey(nameof(IdLibro))]
        [InverseProperty(nameof(Libros.PrestamosUsuarios))]
        public virtual Libros IdLibroNavigation { get; set; }
        [ForeignKey(nameof(IdUsuario))]
        [InverseProperty(nameof(Usuarios.PrestamosUsuarios))]
        public virtual Usuarios IdUsuarioNavigation { get; set; }
    }
}