2023-08-12 23:02:59 +02:00
|
|
|
|
namespace Server.DB.Documents;
|
2023-08-10 10:47:35 +02:00
|
|
|
|
|
2023-08-14 13:49:27 +02:00
|
|
|
|
public class Account
|
2023-08-10 10:47:35 +02:00
|
|
|
|
{
|
2023-08-13 22:27:24 +02:00
|
|
|
|
public Account(string username, byte[] password, string email, byte permissionLevel, byte[] salt)
|
2023-08-10 10:47:35 +02:00
|
|
|
|
{
|
2023-08-11 11:31:30 +02:00
|
|
|
|
this.Username = username;
|
|
|
|
|
this.Password = password;
|
|
|
|
|
this.Email = email;
|
|
|
|
|
this.PermissionLevel = permissionLevel;
|
2023-08-13 22:27:24 +02:00
|
|
|
|
this.Salt = salt;
|
2023-08-10 10:47:35 +02:00
|
|
|
|
}
|
|
|
|
|
|
2023-08-14 21:30:32 +02:00
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
|
|
2023-08-12 23:02:59 +02:00
|
|
|
|
public string Username { get; set; }
|
2023-08-13 22:27:24 +02:00
|
|
|
|
public byte[] Password { get; set; }
|
2023-08-12 23:02:59 +02:00
|
|
|
|
public string Email { get; set; }
|
|
|
|
|
public byte PermissionLevel { get; set; }
|
2023-08-13 22:27:24 +02:00
|
|
|
|
public byte[] Salt { get; set; }
|
2023-08-14 22:30:35 +02:00
|
|
|
|
public ICollection<Character> Characters { get; } = new List<Character>();
|
2023-08-11 11:31:30 +02:00
|
|
|
|
}
|