| | | 1 | | using System.ComponentModel.DataAnnotations; |
| | | 2 | | using System.ComponentModel.DataAnnotations.Schema; |
| | | 3 | | |
| | | 4 | | namespace FAU.Entidades; |
| | | 5 | | |
| | | 6 | | [Table("retroactividad_items")] |
| | | 7 | | public class RetroactividadItem |
| | | 8 | | { |
| | | 9 | | [Key] |
| | | 10 | | [Column("id")] |
| | 0 | 11 | | public long Id { get; set; } |
| | | 12 | | |
| | | 13 | | [Required] |
| | | 14 | | [Column("retroactividad_id")] |
| | 0 | 15 | | public long RetroactividadId { get; set; } |
| | | 16 | | |
| | | 17 | | [Required] |
| | | 18 | | [Column("codigo_item")] |
| | 0 | 19 | | public int CodigoItem { get; set; } |
| | | 20 | | |
| | | 21 | | [Required] |
| | | 22 | | [Column("monto_anterior", TypeName = "numeric(14,2)")] |
| | 0 | 23 | | public decimal MontoAnterior { get; set; } |
| | | 24 | | |
| | | 25 | | [Required] |
| | | 26 | | [Column("monto_nuevo", TypeName = "numeric(14,2)")] |
| | 0 | 27 | | public decimal MontoNuevo { get; set; } |
| | | 28 | | |
| | | 29 | | [Required] |
| | | 30 | | [Column("diferencia", TypeName = "numeric(14,2)")] |
| | 0 | 31 | | public decimal Diferencia { get; set; } |
| | | 32 | | |
| | | 33 | | [Required] |
| | | 34 | | [Column("monto_total_retro", TypeName = "numeric(14,2)")] |
| | 0 | 35 | | public decimal MontoTotalRetro { get; set; } |
| | | 36 | | |
| | | 37 | | [Required] |
| | | 38 | | [Column("es_descuento")] |
| | 0 | 39 | | public bool EsDescuento { get; set; } = false; |
| | | 40 | | |
| | | 41 | | // Navegación |
| | | 42 | | [ForeignKey("RetroactividadId")] |
| | 0 | 43 | | public virtual Retroactividad Retroactividad { get; set; } = null!; |
| | | 44 | | } |