| | | 1 | | using System.ComponentModel.DataAnnotations; |
| | | 2 | | using System.ComponentModel.DataAnnotations.Schema; |
| | | 3 | | |
| | | 4 | | namespace FAU.Entidades; |
| | | 5 | | |
| | | 6 | | [Table("movimientos_laborales")] |
| | | 7 | | public class MovimientoLaboral |
| | | 8 | | { |
| | | 9 | | [Key] |
| | | 10 | | [Column("id")] |
| | 0 | 11 | | public long Id { get; set; } |
| | | 12 | | |
| | | 13 | | [Required] |
| | | 14 | | [Column("relacion_laboral_id")] |
| | 0 | 15 | | public long RelacionLaboralId { get; set; } |
| | | 16 | | |
| | | 17 | | [Required] |
| | | 18 | | [Column("tipo_movimiento_id")] |
| | 0 | 19 | | public long TipoMovimientoId { get; set; } |
| | | 20 | | |
| | | 21 | | [Required] |
| | | 22 | | [Column("fecha_movimiento", TypeName = "date")] |
| | 0 | 23 | | public DateTime FechaMovimiento { get; set; } |
| | | 24 | | |
| | | 25 | | [Column("retroactivo_desde", TypeName = "date")] |
| | 0 | 26 | | public DateTime? RetroactivoDesde { get; set; } |
| | | 27 | | |
| | | 28 | | [Column("usuario_id")] |
| | 0 | 29 | | public long? UsuarioId { get; set; } |
| | | 30 | | |
| | | 31 | | // Navegación |
| | | 32 | | [ForeignKey("RelacionLaboralId")] |
| | 0 | 33 | | public virtual RelacionLaboral RelacionLaboral { get; set; } = null!; |
| | | 34 | | |
| | | 35 | | [ForeignKey("TipoMovimientoId")] |
| | 0 | 36 | | public virtual TipoMovimiento TipoMovimiento { get; set; } = null!; |
| | | 37 | | |
| | | 38 | | [ForeignKey("UsuarioId")] |
| | 0 | 39 | | public virtual Usuario? Usuario { get; set; } |
| | | 40 | | } |
| | | 41 | | |