Files
2024-09-13 15:39:31 +02:00

41 lines
1.2 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
namespace GPW.CORE.Data.DbModels
{
// <Auto-Generated>
// This is here so CodeMaid doesn't reorganize this document
// </Auto-Generated>
[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; }
/// <summary>
/// Approvazioen timbratura (default true...)
/// </summary>
public bool? Approv { get; set; }
[NotMapped]
public string UID
{
get => $"{IdxDipendente:000}_{DataOra:yyyyMMdd}_{DataOra:HHmmss}";
}
/// <summary>
/// Navigation property to TipoTimb
/// </summary>
[ForeignKey("CodTipoTimb")]
public virtual AnagTipoTimbModel CodTipoTimbNav { get; set; } = null!;
/// <summary>
/// Navigation property to Dipendente
/// </summary>
[ForeignKey("IdxDipendente")]
public virtual DipendentiModel DipNav { get; set; } = null!;
}
}