| | | 1 | | using System.ComponentModel.DataAnnotations; |
| | | 2 | | using System.ComponentModel.DataAnnotations.Schema; |
| | | 3 | | |
| | | 4 | | namespace FAU.Entidades; |
| | | 5 | | |
| | | 6 | | [Table("descuentos_personal_periodo")] |
| | | 7 | | public class DescuentoPersonalPeriodo |
| | | 8 | | { |
| | | 9 | | [Key] |
| | | 10 | | [Column("id")] |
| | 47 | 11 | | public long Id { get; set; } |
| | | 12 | | |
| | | 13 | | [Required] |
| | | 14 | | [Column("periodo_id")] |
| | 14 | 15 | | public long PeriodoId { get; set; } |
| | | 16 | | |
| | | 17 | | [Required] |
| | | 18 | | [Column("persona_id")] |
| | 15 | 19 | | public long PersonaId { get; set; } |
| | | 20 | | |
| | | 21 | | [Column("acreedor_id")] |
| | 46 | 22 | | public long? AcreedorId { get; set; } |
| | | 23 | | |
| | | 24 | | [Required] |
| | | 25 | | [Column("catalogo_item_id")] |
| | 12 | 26 | | public long CatalogoItemId { get; set; } |
| | | 27 | | |
| | | 28 | | [Required] |
| | | 29 | | [Column("importe", TypeName = "numeric(14,2)")] |
| | 29 | 30 | | public decimal Importe { get; set; } |
| | | 31 | | |
| | | 32 | | [Required] |
| | | 33 | | [MaxLength(20)] |
| | | 34 | | [Column("estado")] |
| | 53 | 35 | | public string Estado { get; set; } = "borrador"; |
| | | 36 | | |
| | | 37 | | [Column("observaciones")] |
| | 3 | 38 | | public string? Observaciones { get; set; } |
| | | 39 | | |
| | | 40 | | [Column("fecha_creacion")] |
| | 23 | 41 | | public DateTime FechaCreacion { get; set; } = DateTime.UtcNow; |
| | | 42 | | |
| | | 43 | | [Column("fecha_comunicacion")] |
| | 23 | 44 | | public DateTime? FechaComunicacion { get; set; } |
| | | 45 | | |
| | | 46 | | [Column("usuario_creacion_id")] |
| | 1 | 47 | | public long? UsuarioCreacionId { get; set; } |
| | | 48 | | |
| | | 49 | | // Navegación |
| | | 50 | | [ForeignKey("PeriodoId")] |
| | 0 | 51 | | public virtual Periodo Periodo { get; set; } = null!; |
| | | 52 | | |
| | | 53 | | [ForeignKey("PersonaId")] |
| | 0 | 54 | | public virtual Persona Persona { get; set; } = null!; |
| | | 55 | | |
| | | 56 | | [ForeignKey("AcreedorId")] |
| | 51 | 57 | | public virtual Acreedor? Acreedor { get; set; } |
| | | 58 | | |
| | | 59 | | [ForeignKey("CatalogoItemId")] |
| | 42 | 60 | | public virtual CatalogoItem CatalogoItem { get; set; } = null!; |
| | | 61 | | |
| | | 62 | | [ForeignKey("UsuarioCreacionId")] |
| | 0 | 63 | | public virtual Usuario? UsuarioCreacion { get; set; } |
| | | 64 | | } |