// <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 Usuarios
    {
        public Usuarios()
        {
            PrestamosUsuarios = new HashSet<PrestamosUsuarios>();
        }

        [Key]
        public int IdUsuario { get; set; }
        public int? IdTipoDocumento { get; set; }
        public int? IdEstado { get; set; }
        public int? Cedula { get; set; }
        [StringLength(30)]
        public string Nombre { get; set; }
        [StringLength(30)]
        public string Dirección { get; set; }
        public int? Telefono { get; set; }

        [ForeignKey(nameof(IdEstado))]
        [InverseProperty(nameof(Estados.Usuarios))]
        public virtual Estados IdEstadoNavigation { get; set; }
        [ForeignKey(nameof(IdTipoDocumento))]
        [InverseProperty(nameof(TiposDocumento.Usuarios))]
        public virtual TiposDocumento IdTipoDocumentoNavigation { get; set; }
        [InverseProperty("IdUsuarioNavigation")]
        public virtual ICollection<PrestamosUsuarios> PrestamosUsuarios { get; set; }
    }
}