using System.ComponentModel.DataAnnotations; namespace Asistencia.Models; public class Profesor { [Key] [MaxLength(20)] public string RutPasaporte { get; set; } = string.Empty; [MaxLength(100)] public string Nombre { get; set; } = string.Empty; [MaxLength(100)] public string ApPaterno { get; set; } = string.Empty; [MaxLength(100)] public string ApMaterno { get; set; } = string.Empty; [MaxLength(200)] public string Email { get; set; } = string.Empty; [MaxLength(20)] public string Fono { get; set; } = string.Empty; [MaxLength(300)] public string Direccion { get; set; } = string.Empty; [MaxLength(500)] public string Clave { get; set; } = string.Empty; public bool CrearClave { get; set; } public bool Activo { get; set; } = true; public string NombreCompleto => $"{Nombre} {ApPaterno} {ApMaterno}".Trim(); }