Nueva mejoras Y estabilidad
This commit is contained in:
43
MieSystem/Models/Persona.cs
Normal file
43
MieSystem/Models/Persona.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
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; }
|
||||
}
|
||||
Reference in New Issue
Block a user