using System.ComponentModel.DataAnnotations;

namespace Domain.Entities
{
    public class EProfessional
    {
        public int Id { get; set; }
        [Required(ErrorMessage = "Debe ingresar el nombre del profesional.")]
        public string Fullname { get; set; } = null!;
        public string? Address { get; set; }
        public string? City { get; set; }
        [Required(ErrorMessage = "Debe seleccionar una provincia.")]
        public string? Province { get; set; }
        public string? Postalcode { get; set; }
        public string? Phone1 { get; set; }
        public string? Phone2 { get; set; }
        public string? License { get; set; }
        public string? Email { get; set; }
        public string? DocumenttypeName { get; set; }
        public string? DocumentNumber { get; set; }
        [Required(ErrorMessage = "Debe seleccionar un tipo de documento.")]
        public string? Type { get; set; }
        [Required(ErrorMessage = "Debe seleccionar la especialidad del profesional.")]
        public int? SpecialtyId { get; set; }
        public bool Active { get; set; } = true;
        public DateTime Createdat { get; set; }
        public virtual EProfessionalSpecialty? Specialty { get; set; }
    }

}
