Start typed state rebuild
This commit is contained in:
parent
ab2c294464
commit
89e91ff4d7
16 changed files with 476 additions and 0 deletions
39
Aetheria.State/Documents/AetheriaMigrationLedger.cs
Normal file
39
Aetheria.State/Documents/AetheriaMigrationLedger.cs
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
using GameCult.Caching;
|
||||
using MessagePack;
|
||||
|
||||
namespace Aetheria.State.Documents;
|
||||
|
||||
[CultDocument("aetheria.migration_ledger", "aetheria.migration_ledger.v1")]
|
||||
[CultGlobal]
|
||||
[MessagePackObject]
|
||||
public sealed class AetheriaMigrationLedger
|
||||
{
|
||||
[Key(0)]
|
||||
[CultName]
|
||||
public string Name { get; set; } = "Aetheria legacy migration ledger";
|
||||
|
||||
[Key(1)]
|
||||
public string Source { get; set; } = "";
|
||||
|
||||
[Key(2)]
|
||||
public string SourceFingerprint { get; set; } = "";
|
||||
|
||||
[Key(3)]
|
||||
public string LastMigrationAtUtc { get; set; } = "";
|
||||
|
||||
[Key(4)]
|
||||
public AetheriaMigrationCount[] Counts { get; set; } = [];
|
||||
|
||||
[Key(5)]
|
||||
public string[] Notes { get; set; } = [];
|
||||
}
|
||||
|
||||
[MessagePackObject]
|
||||
public sealed class AetheriaMigrationCount
|
||||
{
|
||||
[Key(0)]
|
||||
public string DocumentType { get; set; } = "";
|
||||
|
||||
[Key(1)]
|
||||
public int Count { get; set; }
|
||||
}
|
||||
Loading…
Reference in a new issue