mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-06 18:52:27 +00:00
34 lines
No EOL
815 B
C#
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; }
|
|
} |