| | | 1 | | using System.ComponentModel.DataAnnotations; |
| | | 2 | | using System.ComponentModel.DataAnnotations.Schema; |
| | | 3 | | |
| | | 4 | | namespace FAU.Entidades; |
| | | 5 | | |
| | | 6 | | [Table("items_aguinaldo_baja")] |
| | | 7 | | public class AguinaldoBajaItem |
| | | 8 | | { |
| | | 9 | | [Key] |
| | | 10 | | [Column("id")] |
| | 1 | 11 | | public long Id { get; set; } |
| | | 12 | | |
| | | 13 | | [Required] |
| | | 14 | | [Column("aguinaldo_baja_id")] |
| | 1 | 15 | | public long AguinaldoBajaId { get; set; } |
| | | 16 | | |
| | | 17 | | [ForeignKey("AguinaldoBajaId")] |
| | 0 | 18 | | public virtual AguinaldoBaja AguinaldoBaja { get; set; } = null!; |
| | | 19 | | |
| | | 20 | | [Required] |
| | | 21 | | [MaxLength(20)] |
| | | 22 | | [Column("codigo_concepto")] |
| | 11 | 23 | | public string CodigoConcepto { get; set; } = string.Empty; |
| | | 24 | | |
| | | 25 | | [Required] |
| | | 26 | | [MaxLength(150)] |
| | | 27 | | [Column("nombre_concepto")] |
| | 11 | 28 | | public string NombreConcepto { get; set; } = string.Empty; |
| | | 29 | | |
| | | 30 | | [Required] |
| | | 31 | | [Column("importe", TypeName = "numeric(14,2)")] |
| | 8 | 32 | | public decimal Importe { get; set; } |
| | | 33 | | |
| | | 34 | | [Required] |
| | | 35 | | [MaxLength(20)] |
| | | 36 | | [Column("tipo")] |
| | 12 | 37 | | public string Tipo { get; set; } = string.Empty; |
| | | 38 | | } |