using System.ComponentModel.DataAnnotations;

namespace Domain.Entities
{
    public class EPatient
    {
        public int Id { get; set; }
        [Required(ErrorMessage = "Debe ingresar un nombre.")]
        public string Firstname { get; set; } = null!;
        public string Lastname { get; set; } = null!;
        [Required(ErrorMessage = "Debe ingresar un tipo de documento.")]
        public int? DocumenttypesId { get; set; }
        [Required(ErrorMessage = "Debe ingresar un numero de documento.")]
        public string? DocumentNumber { get; set; }
        public string? AffiliateNumber { get; set; }
        public DateOnly? Birthdate { get; set; }
        [Required(ErrorMessage = "Debe seleccionar un genero.")]
        public string? Gender { get; set; }
        public string? Phone { get; set; }
        public string? Email { get; set; }
        public string? Address { get; set; }
        public string? Notes { get; set; }
        public int? CustomerId { get; set; }
        public DateTime Createdat { get; set; }
        public DateTime? Modifiedat { get; set; }
    }
}
