using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
namespace GPW.CORE.Data.DbModels
{
//
// This is here so CodeMaid doesn't reorganize this document
//
[Table("Timbrature")]
public partial class TimbratureModel
{
public DateTime DataOra { get; set; }
public int IdxDipendente { get; set; }
public bool? Entrata { get; set; }
public string? Ipv4 { get; set; }
public string? CodTipoTimb { get; set; }
///
/// Approvazioen timbratura (default true...)
///
public bool? Approv { get; set; }
[NotMapped]
public string UID
{
get => $"{IdxDipendente:000}_{DataOra:yyyyMMdd}_{DataOra:HHmmss}";
}
///
/// Navigation property to TipoTimb
///
[ForeignKey("CodTipoTimb")]
public virtual AnagTipoTimbModel CodTipoTimbNav { get; set; } = null!;
///
/// Navigation property to Dipendente
///
[ForeignKey("IdxDipendente")]
public virtual DipendentiModel DipNav { get; set; } = null!;
}
}