initial commit
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<LangVersion>latest</LangVersion>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
@@ -0,0 +1,10 @@
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class Kill
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int UserId { get; set; }
|
||||
public User User { get; set; }
|
||||
public string Victim { get; set; }
|
||||
public double Damage { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class User
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Username { get; set; }
|
||||
public string Password { get; set; }
|
||||
public string Email { get; set; }
|
||||
|
||||
public IEnumerable<Kill> Kills { get; set; } = new List<Kill>();
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace Domain.Enums;
|
||||
|
||||
public enum EErrorCategory
|
||||
{
|
||||
UserValidationError,
|
||||
DataNotFoundError,
|
||||
RequestError,
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace Domain.Enums.ErrorCategories;
|
||||
|
||||
public enum EUserValidationError
|
||||
{
|
||||
DuplicateUserName,
|
||||
DuplicateEmail,
|
||||
}
|
||||
Reference in New Issue
Block a user