namespace UtopiaCanteenSystem.Models;
///
/// Local SQLite cache of production hrms.employee_rfid_tag, plus denormalized employee/department
/// fields populated during sync for offline RFID lookup.
///
public class EmployeeRfidTagCache
{
public int LocalId { get; set; }
/// Production employee_rfid_tag.id.
public long HrmsId { get; set; }
public string ManufacturerSerial { get; set; } = string.Empty;
public string UindSerial { get; set; } = string.Empty;
public string Secret { get; set; } = string.Empty;
public string ParentDocumentType { get; set; } = string.Empty;
public string ParentDocumentId { get; set; } = string.Empty;
public DateTime? DateTimeCreated { get; set; }
public string CreatedBy { get; set; } = string.Empty;
public int? GradeId { get; set; }
public string GradeType { get; set; } = string.Empty;
public int? ShiftId { get; set; }
public string LocationSiteId { get; set; } = string.Empty;
public string RfidLocationSiteId { get; set; } = string.Empty;
public int FunctionId { get; set; }
public int DepartmentId { get; set; }
public string ReportingManagerIds { get; set; } = string.Empty;
/// employee.serial_number from sync join.
public string EmployeeSerialNumber { get; set; } = string.Empty;
/// employee.concatenated_name from sync join.
public string EmployeeConcatenatedName { get; set; } = string.Empty;
/// department.title from sync join.
public string DepartmentTitle { get; set; } = string.Empty;
/// department.department_type from sync join.
public string DepartmentType { get; set; } = string.Empty;
public DateTime LastSyncedAtUtc { get; set; }
}