Demote non-item MessagePack DTOs
This commit is contained in:
parent
d2c062c94d
commit
98d58cac92
8 changed files with 48 additions and 51 deletions
|
|
@ -3,25 +3,21 @@
|
|||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
using System;
|
||||
using MessagePack;
|
||||
[LegacyCatalogGroup("Users"), MessagePackObject]
|
||||
|
||||
[LegacyCatalogGroup("Users")]
|
||||
public class PlayerData : DatabaseEntry, INamedEntry
|
||||
{
|
||||
[Key(1)]
|
||||
public string Email;
|
||||
|
||||
[Key(2)]
|
||||
public string Password;
|
||||
|
||||
[Key(3)]
|
||||
public string Username;
|
||||
|
||||
[Key(4)]
|
||||
public Guid Corporation;
|
||||
|
||||
[IgnoreMember] public string EntryName
|
||||
public string EntryName
|
||||
{
|
||||
get => Username;
|
||||
set => Username = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue