namespace UtopiaCanteenSystem.Models;
///
/// Represents a single RFID scan event. Used for local storage and sync.
///
public class ScanRecord
{
public int Id { get; set; }
/// RFID card identifier at time of scan.
public string CardId { get; set; } = string.Empty;
/// UTC time when the scan occurred.
public DateTime ScanTime { get; set; }
/// True after record has been successfully sent / synced.
public bool IsSynced { get; set; }
/// Site identifier where the scan occurred (2-digit string, e.g. "02").
public string SiteId { get; set; } = string.Empty;
/// Stable device identifier that generated the scan (from config).
public string DeviceId { get; set; } = string.Empty;
/// IP address of the device at scan time.
public string IpAddress { get; set; } = string.Empty;
/// HRMS employee ID (serial_number) at scan time, when lookup succeeded.
public string EmployeeId { get; set; } = string.Empty;
/// Full name (first + middle) from HRMS at scan time, when lookup succeeded.
public string EmployeeName { get; set; } = string.Empty;
/// HRMS department title at scan time.
public string Department { get; set; } = string.Empty;
/// HRMS department type at scan time.
public string DepartmentType { get; set; } = string.Empty;
/// Meal/session label at scan time (e.g. Breakfast/Lunch/Tea/Dinner).
public string MealLabel { get; set; } = string.Empty;
/// Menu items string for this scan's meal (e.g. "Biryani + Nihari").
public string MealItems { get; set; } = string.Empty;
/// Total price for this scan's meal menu.
public double TotalPrice { get; set; }
}