using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace MieSystem.Models; [Table("Personas", Schema = "public")] public class Persona { [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] [Column("Id")] public int Id { get; set; } [Required] [StringLength(250)] [Column("Nombres")] public string Nombres { get; set; } = string.Empty; [Required] [StringLength(250)] [Column("Apellidos")] public string Apellidos { get; set; } = string.Empty; [StringLength(50)] [Column("DUI")] public string? Dui { get; set; } [StringLength(1000)] [Column("Direccion")] public string? Direccion { get; set; } [Required] [Column("sexo")] public char Sexo { get; set; } [Required] [Column("FechaNacimiento")] public DateTime FechaNacimiento { get; set; } [StringLength(1000)] [Column("FotoUrl")] public string? FotoUrl { get; set; } }