| | | 1 | | using System.ComponentModel.DataAnnotations; |
| | | 2 | | using System.ComponentModel.DataAnnotations.Schema; |
| | | 3 | | |
| | | 4 | | namespace FAU.Entidades; |
| | | 5 | | |
| | | 6 | | /// <summary> |
| | | 7 | | /// Tarifas del Instructivo MDN organizadas por categoría (no por grado). |
| | | 8 | | /// Usada para ASID_VUELO (ala A/N/S) y SAR (función PARASAR/RESCATISTA/etc.) |
| | | 9 | | /// No está atada a compensaciones — cualquier módulo puede consultarla. |
| | | 10 | | /// </summary> |
| | | 11 | | [Table("tarifas_por_categoria")] |
| | | 12 | | public class TarifaPorCategoria |
| | | 13 | | { |
| | | 14 | | [Key] |
| | | 15 | | [Column("id")] |
| | 1 | 16 | | public long Id { get; set; } |
| | | 17 | | |
| | | 18 | | [Required] |
| | | 19 | | [Column("item_id")] |
| | 3 | 20 | | public long ItemId { get; set; } |
| | | 21 | | |
| | | 22 | | [Required] |
| | | 23 | | [MaxLength(50)] |
| | | 24 | | [Column("categoria")] |
| | 31 | 25 | | public string Categoria { get; set; } = string.Empty; |
| | | 26 | | |
| | | 27 | | [Required] |
| | | 28 | | [Column("monto", TypeName = "numeric(14,4)")] |
| | 23 | 29 | | public decimal Monto { get; set; } |
| | | 30 | | |
| | | 31 | | [Required] |
| | | 32 | | [MaxLength(20)] |
| | | 33 | | [Column("tipo_monto")] |
| | 16 | 34 | | public string TipoMonto { get; set; } = "mensual"; // mensual, diario, hora, por_unidad |
| | | 35 | | |
| | | 36 | | [Required] |
| | | 37 | | [Column("vigente_desde", TypeName = "date")] |
| | 1 | 38 | | public DateTime VigenteDesde { get; set; } |
| | | 39 | | |
| | | 40 | | [Column("vigente_hasta", TypeName = "date")] |
| | 1 | 41 | | public DateTime? VigenteHasta { get; set; } |
| | | 42 | | |
| | | 43 | | // Navegación |
| | | 44 | | [ForeignKey("ItemId")] |
| | 12 | 45 | | public virtual CatalogoItem Item { get; set; } = null!; |
| | | 46 | | } |