| | | 1 | | using System.ComponentModel.DataAnnotations; |
| | | 2 | | using System.ComponentModel.DataAnnotations.Schema; |
| | | 3 | | |
| | | 4 | | namespace FAU.Entidades; |
| | | 5 | | |
| | | 6 | | [Table("form3100_personas_cargo")] |
| | | 7 | | public class Form3100PersonaACargo |
| | | 8 | | { |
| | | 9 | | [Key] |
| | | 10 | | [Column("id")] |
| | 10 | 11 | | public long Id { get; set; } |
| | | 12 | | |
| | | 13 | | [Required] |
| | | 14 | | [Column("form3100_id")] |
| | 11 | 15 | | public long Form3100Id { get; set; } |
| | | 16 | | |
| | | 17 | | [Required] |
| | | 18 | | [MaxLength(100)] |
| | | 19 | | [Column("nombre")] |
| | 19 | 20 | | public string Nombre { get; set; } = string.Empty; |
| | | 21 | | |
| | | 22 | | [Required] |
| | | 23 | | [MaxLength(100)] |
| | | 24 | | [Column("apellido")] |
| | 19 | 25 | | public string Apellido { get; set; } = string.Empty; |
| | | 26 | | |
| | | 27 | | [Required] |
| | | 28 | | [Column("fecha_nacimiento", TypeName = "date")] |
| | 8 | 29 | | public DateTime FechaNacimiento { get; set; } |
| | | 30 | | |
| | | 31 | | [MaxLength(20)] |
| | | 32 | | [Column("cedula")] |
| | 2 | 33 | | public string? Cedula { get; set; } |
| | | 34 | | |
| | | 35 | | [Required] |
| | | 36 | | [MaxLength(1)] |
| | | 37 | | [Column("sexo")] |
| | 19 | 38 | | public string Sexo { get; set; } = string.Empty; |
| | | 39 | | |
| | | 40 | | [Required] |
| | | 41 | | [Column("porcentaje_atribucion")] |
| | 15 | 42 | | public short PorcentajeAtribucion { get; set; } |
| | | 43 | | |
| | | 44 | | [Required] |
| | | 45 | | [MaxLength(100)] |
| | | 46 | | [Column("relacion")] |
| | 22 | 47 | | public string Relacion { get; set; } = string.Empty; |
| | | 48 | | |
| | | 49 | | [Column("discapacidad")] |
| | 5 | 50 | | public bool Discapacidad { get; set; } = false; |
| | | 51 | | |
| | | 52 | | [ForeignKey("Form3100Id")] |
| | 0 | 53 | | public virtual Form3100 Form3100 { get; set; } = null!; |
| | | 54 | | } |