| | | 1 | | using System.ComponentModel.DataAnnotations; |
| | | 2 | | using System.ComponentModel.DataAnnotations.Schema; |
| | | 3 | | |
| | | 4 | | namespace FAU.Entidades; |
| | | 5 | | |
| | | 6 | | [Table("form3100")] |
| | | 7 | | public class Form3100 |
| | | 8 | | { |
| | | 9 | | [Key] |
| | | 10 | | [Column("id")] |
| | 16 | 11 | | public long Id { get; set; } |
| | | 12 | | |
| | | 13 | | [Required] |
| | | 14 | | [Column("persona_id")] |
| | 11 | 15 | | public long PersonaId { get; set; } |
| | | 16 | | |
| | | 17 | | // Sección 3 — Deducciones profesionales |
| | | 18 | | [Column("cappu_categoria")] |
| | 5 | 19 | | public short? CappuCategoria { get; set; } |
| | | 20 | | |
| | | 21 | | [MaxLength(10)] |
| | | 22 | | [Column("fondo_solidaridad")] |
| | 5 | 23 | | public string? FondoSolidaridad { get; set; } |
| | | 24 | | |
| | | 25 | | [Column("adicional_fondo_solidaridad")] |
| | 5 | 26 | | public bool AdicionalFondoSolidaridad { get; set; } = false; |
| | | 27 | | |
| | | 28 | | // Sección 4 — Mínimo no imponible |
| | | 29 | | [Column("aplica_minimo_no_imponible")] |
| | 5 | 30 | | public bool AplicaMinimoNoImponible { get; set; } = false; |
| | | 31 | | |
| | | 32 | | // Sección 5 — Cónyuge/Concubino |
| | | 33 | | [MaxLength(100)] |
| | | 34 | | [Column("conyuge_nombre")] |
| | 5 | 35 | | public string? ConyugeNombre { get; set; } |
| | | 36 | | |
| | | 37 | | [MaxLength(100)] |
| | | 38 | | [Column("conyuge_apellido")] |
| | 5 | 39 | | public string? ConyugeApellido { get; set; } |
| | | 40 | | |
| | | 41 | | [Column("conyuge_fecha_nacimiento", TypeName = "date")] |
| | 5 | 42 | | public DateTime? ConyugeFechaNacimiento { get; set; } |
| | | 43 | | |
| | | 44 | | [MaxLength(20)] |
| | | 45 | | [Column("conyuge_cedula")] |
| | 5 | 46 | | public string? ConyugeCedula { get; set; } |
| | | 47 | | |
| | | 48 | | [MaxLength(1)] |
| | | 49 | | [Column("conyuge_sexo")] |
| | 5 | 50 | | public string? ConyugeSexo { get; set; } |
| | | 51 | | |
| | | 52 | | [MaxLength(100)] |
| | | 53 | | [Column("conyuge_nacionalidad")] |
| | 5 | 54 | | public string? ConyugeNacionalidad { get; set; } |
| | | 55 | | |
| | | 56 | | // Sección 6 — Vigencia |
| | | 57 | | [Required] |
| | | 58 | | [Column("vigente_desde_mes")] |
| | 13 | 59 | | public short VigenteDesde_Mes { get; set; } |
| | | 60 | | |
| | | 61 | | [Required] |
| | | 62 | | [Column("vigente_desde_anio")] |
| | 13 | 63 | | public short VigenteDesde_Anio { get; set; } |
| | | 64 | | |
| | | 65 | | // Archivo escaneado |
| | | 66 | | [Column("documento_id")] |
| | 2 | 67 | | public long? DocumentoId { get; set; } |
| | | 68 | | |
| | | 69 | | // Auditoría |
| | | 70 | | [Column("fecha_creacion")] |
| | 18 | 71 | | public DateTime FechaCreacion { get; set; } = DateTime.Now; |
| | | 72 | | |
| | | 73 | | [Column("usuario_creacion_id")] |
| | 4 | 74 | | public long? UsuarioCreacionId { get; set; } |
| | | 75 | | |
| | | 76 | | // Navegación |
| | | 77 | | [ForeignKey("PersonaId")] |
| | 0 | 78 | | public virtual Persona Persona { get; set; } = null!; |
| | | 79 | | |
| | | 80 | | [ForeignKey("DocumentoId")] |
| | 0 | 81 | | public virtual Documento? Documento { get; set; } |
| | | 82 | | |
| | | 83 | | [ForeignKey("UsuarioCreacionId")] |
| | 0 | 84 | | public virtual Usuario? UsuarioCreacion { get; set; } |
| | | 85 | | |
| | 19 | 86 | | public virtual ICollection<Form3100PersonaACargo> PersonasACargo { get; set; } = new List<Form3100PersonaACargo>(); |
| | | 87 | | } |