namespace DorkNet.Server.Data.Entities; /// /// A device that tried to log in / create an account while signups were /// disabled and got refused (it has no account yet). Recorded so the /// public /join page can show a player the device id their own /// game client just reported — matched by request IP — instead of making /// them dig the Unity deviceUniqueIdentifier out of Player.log by /// hand. Purely a UX aid for the signup-code redeem flow; rows are /// upserted by DeviceId and can be pruned freely. /// public class PendingDeviceEntity { public long Id { get; set; } /// The Unity device id the refused client sent. public string DeviceId { get; set; } = string.Empty; public int Platform { get; set; } public string PlatformId { get; set; } = string.Empty; /// Last request IP the refusal came from — the /join page /// matches on this so a player sees their own device. public string? LastIp { get; set; } public DateTime FirstSeenAt { get; set; } = DateTime.UtcNow; public DateTime LastSeenAt { get; set; } = DateTime.UtcNow; }