| | | 1 | | using System.ComponentModel.DataAnnotations; |
| | | 2 | | using System.ComponentModel.DataAnnotations.Schema; |
| | | 3 | | |
| | | 4 | | namespace FAU.Entidades; |
| | | 5 | | |
| | | 6 | | [Table("historico_liquidaciones")] |
| | | 7 | | public class HistoricoLiquidacion |
| | | 8 | | { |
| | | 9 | | [Key] |
| | | 10 | | [Column("id")] |
| | 3 | 11 | | public long Id { get; set; } |
| | | 12 | | |
| | | 13 | | [Required] |
| | | 14 | | [Column("persona_id")] |
| | 3 | 15 | | public long PersonaId { get; set; } |
| | | 16 | | |
| | | 17 | | [Required] |
| | | 18 | | [Column("anio")] |
| | 3 | 19 | | public short Anio { get; set; } |
| | | 20 | | |
| | | 21 | | [Required] |
| | | 22 | | [Column("mes")] |
| | 3 | 23 | | public short Mes { get; set; } |
| | | 24 | | |
| | | 25 | | [Required] |
| | | 26 | | [Column("haberes_gravados", TypeName = "numeric(14,2)")] |
| | 3 | 27 | | public decimal HaberesGravados { get; set; } |
| | | 28 | | |
| | | 29 | | [Column("situacion_id")] |
| | 0 | 30 | | public long? SituacionId { get; set; } |
| | | 31 | | |
| | | 32 | | [Column("grado_id")] |
| | 0 | 33 | | public long? GradoId { get; set; } |
| | | 34 | | |
| | | 35 | | [Column("escalafon_id")] |
| | 0 | 36 | | public long? EscalafonId { get; set; } |
| | | 37 | | |
| | | 38 | | [Column("unidad_id")] |
| | 0 | 39 | | public long? UnidadId { get; set; } |
| | | 40 | | |
| | | 41 | | [Column("programa_id")] |
| | 0 | 42 | | public long? ProgramaId { get; set; } |
| | | 43 | | |
| | | 44 | | [Column("regimen_id")] |
| | 0 | 45 | | public long? RegimenId { get; set; } |
| | | 46 | | |
| | | 47 | | [Required] |
| | | 48 | | [MaxLength(20)] |
| | | 49 | | [Column("origen")] |
| | 3 | 50 | | public string Origen { get; set; } = "SISTEMA"; |
| | | 51 | | |
| | | 52 | | [Required] |
| | | 53 | | [Column("fecha_creacion")] |
| | 3 | 54 | | public DateTime FechaCreacion { get; set; } = DateTime.UtcNow; |
| | | 55 | | |
| | | 56 | | [ForeignKey("PersonaId")] |
| | 0 | 57 | | public virtual Persona Persona { get; set; } = null!; |
| | | 58 | | |
| | | 59 | | [ForeignKey("SituacionId")] |
| | 0 | 60 | | public virtual Situacion? Situacion { get; set; } |
| | | 61 | | |
| | | 62 | | [ForeignKey("GradoId")] |
| | 0 | 63 | | public virtual Grado? Grado { get; set; } |
| | | 64 | | |
| | | 65 | | [ForeignKey("EscalafonId")] |
| | 0 | 66 | | public virtual Escalafon? Escalafon { get; set; } |
| | | 67 | | |
| | | 68 | | [ForeignKey("UnidadId")] |
| | 0 | 69 | | public virtual Unidad? Unidad { get; set; } |
| | | 70 | | |
| | | 71 | | [ForeignKey("ProgramaId")] |
| | 0 | 72 | | public virtual Programa? Programa { get; set; } |
| | | 73 | | |
| | | 74 | | [ForeignKey("RegimenId")] |
| | 0 | 75 | | public virtual Regimen? Regimen { get; set; } |
| | | 76 | | } |