2023-08-10 08:47:35 +00:00
|
|
|
|
using CouchDB.Driver.Types;
|
|
|
|
|
|
|
|
|
|
namespace Server.DB.Documents;
|
|
|
|
|
|
|
|
|
|
public class Account : CouchDocument
|
|
|
|
|
{
|
|
|
|
|
public Account(string username, string password, string email, byte permissionLevel)
|
|
|
|
|
{
|
2023-08-11 09:31:30 +00:00
|
|
|
|
this.Username = username;
|
|
|
|
|
this.Password = password;
|
|
|
|
|
this.Email = email;
|
|
|
|
|
this.PermissionLevel = permissionLevel;
|
2023-08-10 08:47:35 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Username { get; private set; }
|
|
|
|
|
public string Password { get; private set; }
|
|
|
|
|
public string Email { get; private set; }
|
|
|
|
|
public byte PermissionLevel { get; private set; }
|
2023-08-11 09:31:30 +00:00
|
|
|
|
}
|