| | | 1 | | using System.ComponentModel.DataAnnotations; |
| | | 2 | | using System.ComponentModel.DataAnnotations.Schema; |
| | | 3 | | |
| | | 4 | | namespace FAU.Entidades; |
| | | 5 | | |
| | | 6 | | [Table("beneficios_sociales")] |
| | | 7 | | public class BeneficioSocial |
| | | 8 | | { |
| | | 9 | | [Key] |
| | | 10 | | [Column("id")] |
| | 104 | 11 | | public long Id { get; set; } |
| | | 12 | | |
| | | 13 | | [Required] |
| | | 14 | | [Column("persona_id")] |
| | 117 | 15 | | public long PersonaId { get; set; } |
| | | 16 | | |
| | | 17 | | [Required] |
| | | 18 | | [Column("tipo_beneficio_id")] |
| | 114 | 19 | | public long TipoBeneficioId { get; set; } |
| | | 20 | | |
| | | 21 | | [Required] |
| | | 22 | | [Column("cantidad")] |
| | 229 | 23 | | public short Cantidad { get; set; } = 1; |
| | | 24 | | |
| | | 25 | | [Required] |
| | | 26 | | [Column("vigente_desde")] |
| | 118 | 27 | | public DateTime VigenteDesde { get; set; } |
| | | 28 | | |
| | | 29 | | [Column("vigente_hasta")] |
| | 21 | 30 | | public DateTime? VigenteHasta { get; set; } |
| | | 31 | | |
| | | 32 | | [Required] |
| | | 33 | | [MaxLength(20)] |
| | | 34 | | [Column("estado")] |
| | 230 | 35 | | public string Estado { get; set; } = "activo"; |
| | | 36 | | |
| | | 37 | | [MaxLength(200)] |
| | | 38 | | [Column("documento_respaldo")] |
| | 18 | 39 | | public string? DocumentoRespaldo { get; set; } |
| | | 40 | | |
| | | 41 | | [Column("observaciones")] |
| | 10 | 42 | | public string? Observaciones { get; set; } |
| | | 43 | | |
| | | 44 | | [Column("fecha_evento", TypeName = "date")] |
| | 34 | 45 | | public DateTime? FechaEvento { get; set; } |
| | | 46 | | |
| | | 47 | | [MaxLength(80)] |
| | | 48 | | [Column("clave_evento")] |
| | 89 | 49 | | public string? ClaveEvento { get; set; } |
| | | 50 | | |
| | | 51 | | [MaxLength(20)] |
| | | 52 | | [Column("subtipo")] |
| | 53 | 53 | | public string? Subtipo { get; set; } |
| | | 54 | | |
| | | 55 | | [Column("retroactividad_pendiente")] |
| | 88 | 56 | | public bool RetroactividadPendiente { get; set; } |
| | | 57 | | |
| | | 58 | | [Column("creado_en")] |
| | 111 | 59 | | public DateTime CreadoEn { get; set; } = DateTime.Now; |
| | | 60 | | |
| | | 61 | | [Column("creado_por")] |
| | 3 | 62 | | public long? CreadoPor { get; set; } |
| | | 63 | | |
| | | 64 | | [ForeignKey("PersonaId")] |
| | 10 | 65 | | public virtual Persona Persona { get; set; } = null!; |
| | | 66 | | |
| | | 67 | | [ForeignKey("TipoBeneficioId")] |
| | 159 | 68 | | public virtual TipoBeneficio TipoBeneficio { get; set; } = null!; |
| | | 69 | | |
| | | 70 | | [ForeignKey("CreadoPor")] |
| | 2 | 71 | | public virtual Usuario? UsuarioCreador { get; set; } |
| | | 72 | | } |