Start typed state rebuild
This commit is contained in:
parent
ab2c294464
commit
89e91ff4d7
16 changed files with 476 additions and 0 deletions
25
Aetheria.State/Documents/AetheriaPlayerProfile.cs
Normal file
25
Aetheria.State/Documents/AetheriaPlayerProfile.cs
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
using GameCult.Caching;
|
||||
using MessagePack;
|
||||
|
||||
namespace Aetheria.State.Documents;
|
||||
|
||||
[CultDocument("aetheria.player_profile", "aetheria.player_profile.v1")]
|
||||
[MessagePackObject]
|
||||
public sealed class AetheriaPlayerProfile
|
||||
{
|
||||
[Key(0)]
|
||||
[CultName]
|
||||
public string Username { get; set; } = "";
|
||||
|
||||
[Key(1)]
|
||||
[CultIndex("legacyId")]
|
||||
public string LegacyId { get; set; } = "";
|
||||
|
||||
[Key(2)]
|
||||
[CultIndex("email")]
|
||||
public string Email { get; set; } = "";
|
||||
|
||||
[Key(3)]
|
||||
[CultReference(typeof(AetheriaCorporation))]
|
||||
public string CorporationKey { get; set; } = "";
|
||||
}
|
||||
Loading…
Reference in a new issue