Utopia-Canteen-System/Models/ScanRecord.cs

20 lines
843 B
C#

namespace UtopiaCanteenSystem.Models;
/// <summary>
/// Represents a single RFID scan event. Used for local storage and UIND sync.
/// </summary>
public class ScanRecord
{
public int Id { get; set; }
/// <summary>RFID card identifier at time of scan.</summary>
public string CardId { get; set; } = string.Empty;
/// <summary>UTC time when the scan occurred.</summary>
public DateTime ScanTime { get; set; }
/// <summary>True after record has been successfully sent to the sync API.</summary>
public bool IsSynced { get; set; }
/// <summary>Site identifier where the scan occurred (from config).</summary>
public string SiteId { get; set; } = string.Empty;
/// <summary>Stable device identifier that generated the scan (from config).</summary>
public string DeviceId { get; set; } = string.Empty;
}