2023-02-22 23:43:09 +08:00

40 lines
1.2 KiB
C#

namespace Milimoe.FunGame.Core.Entity
{
public class User
{
public int Id { get; set; }
public string Username { get; set; } = "";
public string Password { get; set; } = "";
public DateTime RegTime { get; set; }
public DateTime LastTime { get; set; }
public string Email { get; set; } = "";
public string NickName { get; set; } = "";
public bool IsAdmin { get; set; } = false;
public bool IsOperator { get; set; } = false;
public bool IsEnable { get; set; } = false;
public int OnlineState { get; set; } = 0;
public string Roomid { get; set; } = "";
public decimal Credits { get; set; } = 0;
public decimal Materials { get; set; } = 0;
public decimal GameTime { get; set; } = 0;
public UserStatistics? Statistics { get; set; } = null;
public Inventory? Stock { get; set; } = null;
internal User()
{
}
internal User(string username)
{
Username = username;
}
internal User(string username, string password)
{
Username = username;
Password = password;
}
}
}