ProjectLighthouse/ProjectLighthouse/PlayerData/GameToken.cs
2022-07-29 15:08:41 -04:00

34 lines
No EOL
815 B
C#

using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using LBPUnion.ProjectLighthouse.PlayerData.Profiles;
namespace LBPUnion.ProjectLighthouse.PlayerData;
public class GameToken
{
// ReSharper disable once UnusedMember.Global
[Key]
public int TokenId { get; set; }
public int UserId { get; set; }
[ForeignKey(nameof(UserId))]
public User User { get; set; }
public string UserToken { get; set; }
public string UserLocation { get; set; }
public GameVersion GameVersion { get; set; }
public Platform Platform { get; set; }
// Set by /authentication webpage
public bool Approved { get; set; }
// Set to true on login
public bool Used { get; set; }
public DateTime ExpiresAt { get; set; }
}