Lots of data and model setup
This commit is contained in:
@@ -1,15 +1,17 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using DCGEngine.Database.Models;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace SVSim.Database.Models;
|
||||
|
||||
/// <summary>
|
||||
/// A user within the game system.
|
||||
/// </summary>
|
||||
public class Viewer : BaseEntity<ulong>
|
||||
[Index(nameof(ShortUdid))]
|
||||
public class Viewer : BaseEntity<long>
|
||||
{
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public override ulong Id { get; set; }
|
||||
public override long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// This user's name displayed in game.
|
||||
@@ -19,7 +21,7 @@ public class Viewer : BaseEntity<ulong>
|
||||
/// <summary>
|
||||
/// This user's short identifier.
|
||||
/// </summary>
|
||||
public ulong ShortUdid { get; set; }
|
||||
public long ShortUdid { get; set; }
|
||||
|
||||
public DateTime LastLogin { get; set; }
|
||||
|
||||
@@ -31,6 +33,28 @@ public class Viewer : BaseEntity<ulong>
|
||||
|
||||
public ViewerCurrency Currency { get; set; } = new ViewerCurrency();
|
||||
|
||||
public List<ViewerClassData> Classes { get; set; } = new List<ViewerClassData>();
|
||||
|
||||
#endregion
|
||||
|
||||
#region Collection
|
||||
|
||||
public List<ShadowverseDeckEntry> Decks { get; set; } = new List<ShadowverseDeckEntry>();
|
||||
|
||||
public List<OwnedCardEntry> Cards { get; set; } = new List<OwnedCardEntry>();
|
||||
|
||||
public List<LeaderSkinEntry> LeaderSkins { get; set; } = new List<LeaderSkinEntry>();
|
||||
|
||||
public List<DegreeEntry> Degrees { get; set; } = new List<DegreeEntry>();
|
||||
|
||||
public List<EmblemEntry> Emblems { get; set; } = new List<EmblemEntry>();
|
||||
|
||||
public List<OwnedItemEntry> Items { get; set; } = new List<OwnedItemEntry>();
|
||||
|
||||
public List<SleeveEntry> Sleeves { get; set; } = new List<SleeveEntry>();
|
||||
|
||||
public List<MyPageBackgroundEntry> MyPageBackgrounds { get; set; } = new List<MyPageBackgroundEntry>();
|
||||
|
||||
#endregion
|
||||
|
||||
#region Navigation Properties
|
||||
|
||||
Reference in New Issue
Block a user