41 lines
1.0 KiB
C#
41 lines
1.0 KiB
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
using DCGEngine.Database.Models;
|
|
|
|
namespace SVSim.Database.Models;
|
|
|
|
/// <summary>
|
|
/// A user within the game system.
|
|
/// </summary>
|
|
public class Viewer : BaseEntity<ulong>
|
|
{
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public override ulong Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// This user's name displayed in game.
|
|
/// </summary>
|
|
public string DisplayName { get; set; } = String.Empty;
|
|
|
|
/// <summary>
|
|
/// This user's short identifier.
|
|
/// </summary>
|
|
public ulong ShortUdid { get; set; }
|
|
|
|
public DateTime LastLogin { get; set; }
|
|
|
|
#region Owned
|
|
|
|
public ViewerInfo Info { get; set; } = new ViewerInfo();
|
|
|
|
public ViewerMissionData MissionData { get; set; } = new ViewerMissionData();
|
|
|
|
public ViewerCurrency Currency { get; set; } = new ViewerCurrency();
|
|
|
|
#endregion
|
|
|
|
#region Navigation Properties
|
|
|
|
public List<SocialAccountConnection> SocialAccountConnections { get; set; } = new List<SocialAccountConnection>();
|
|
|
|
#endregion
|
|
} |