namespace PowderCoating.Core.Entities;
///
/// Represents an activated shop-floor kiosk tablet for the timeclock.
/// One row per device; multiple rows per company are supported so shops can have
/// tablets at multiple entry points. The is stored in a
/// device-specific cookie and validated on every kiosk request.
///
public class TimeclockKioskDevice : BaseEntity
{
/// Human-readable label for this device (e.g. "Front Entrance Tablet").
public string? DeviceName { get; set; }
/// Cryptographically random token written to the device cookie on activation. Revoke by deleting this row.
public string Token { get; set; } = string.Empty;
/// UTC timestamp when a manager activated this device.
public DateTime ActivatedAt { get; set; }
/// UTC timestamp of the most recent kiosk request from this device; null if never used after activation.
public DateTime? LastSeenAt { get; set; }
}