| | | 1 | | using System.ComponentModel.DataAnnotations; |
| | | 2 | | using System.ComponentModel.DataAnnotations.Schema; |
| | | 3 | | |
| | | 4 | | namespace FAU.Entidades; |
| | | 5 | | |
| | | 6 | | [Table("periodos_liquidacion")] |
| | | 7 | | public class Periodo |
| | | 8 | | { |
| | | 9 | | [Key] |
| | | 10 | | [Column("id")] |
| | 10 | 11 | | public long Id { get; set; } |
| | | 12 | | |
| | | 13 | | [Required] |
| | | 14 | | [Column("anio")] |
| | 5 | 15 | | public short Anio { get; set; } |
| | | 16 | | |
| | | 17 | | [Required] |
| | | 18 | | [Column("mes")] |
| | 5 | 19 | | public short Mes { get; set; } |
| | | 20 | | |
| | | 21 | | [Required] |
| | | 22 | | [MaxLength(20)] |
| | | 23 | | [Column("estado")] |
| | 11 | 24 | | public string Estado { get; set; } = "ABIERTA"; |
| | | 25 | | |
| | | 26 | | [Required] |
| | | 27 | | [Column("snapshot_id")] |
| | 7 | 28 | | public long SnapshotId { get; set; } |
| | | 29 | | |
| | | 30 | | [Required] |
| | | 31 | | [Column("fecha_apertura")] |
| | 9 | 32 | | public DateTime FechaApertura { get; set; } = DateTime.UtcNow; |
| | | 33 | | |
| | | 34 | | [Required] |
| | | 35 | | [Column("usuario_apertura")] |
| | 5 | 36 | | public long UsuarioApertura { get; set; } |
| | | 37 | | |
| | | 38 | | [Required] |
| | | 39 | | [MaxLength(64)] |
| | | 40 | | [Column("hash_snapshot")] |
| | 11 | 41 | | public string HashSnapshot { get; set; } = string.Empty; |
| | | 42 | | |
| | | 43 | | [Required] |
| | | 44 | | [Column("activo")] |
| | 8 | 45 | | public bool Activo { get; set; } = true; |
| | | 46 | | |
| | | 47 | | [ForeignKey("SnapshotId")] |
| | 0 | 48 | | public virtual SnapshotInsumos Snapshot { get; set; } = null!; |
| | | 49 | | } |