| | | 1 | | using System.ComponentModel.DataAnnotations; |
| | | 2 | | using System.ComponentModel.DataAnnotations.Schema; |
| | | 3 | | |
| | | 4 | | namespace FAU.Entidades; |
| | | 5 | | |
| | | 6 | | [Table("tabla_permanencia")] |
| | | 7 | | public class TablaPermanencia |
| | | 8 | | { |
| | | 9 | | [Key] |
| | | 10 | | [Column("id")] |
| | 1 | 11 | | public long Id { get; set; } |
| | | 12 | | |
| | | 13 | | [Required] |
| | | 14 | | [Column("escalafon_id")] |
| | 2 | 15 | | public long EscalafonId { get; set; } |
| | | 16 | | |
| | | 17 | | [Required] |
| | | 18 | | [Column("anios_desde")] |
| | 3 | 19 | | public short AniosDesde { get; set; } |
| | | 20 | | |
| | | 21 | | [Required] |
| | | 22 | | [Column("anios_hasta")] |
| | 2 | 23 | | public short AniosHasta { get; set; } |
| | | 24 | | |
| | | 25 | | [Column("porcentaje", TypeName = "numeric(5,4)")] |
| | 2 | 26 | | public decimal? Porcentaje { get; set; } |
| | | 27 | | |
| | | 28 | | [Column("monto_fijo", TypeName = "numeric(14,2)")] |
| | 0 | 29 | | public decimal? MontoFijo { get; set; } |
| | | 30 | | |
| | | 31 | | [Required] |
| | | 32 | | [Column("vigente_desde", TypeName = "date")] |
| | 1 | 33 | | public DateTime VigenteDesde { get; set; } |
| | | 34 | | |
| | | 35 | | [Column("vigente_hasta", TypeName = "date")] |
| | 0 | 36 | | public DateTime? VigenteHasta { get; set; } |
| | | 37 | | |
| | | 38 | | [ForeignKey("EscalafonId")] |
| | 0 | 39 | | public virtual Escalafon Escalafon { get; set; } = null!; |
| | | 40 | | } |