mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 20:13:49 +00:00
Add domain project and update references
This commit is contained in:
8
src/Core/Domain/Domain.Core/Domain.Core.csproj
Normal file
8
src/Core/Domain/Domain.Core/Domain.Core.csproj
Normal file
@@ -0,0 +1,8 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<RootNamespace>Domain.Core</RootNamespace>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
14
src/Core/Domain/Domain.Core/Entities/UserAccount.cs
Normal file
14
src/Core/Domain/Domain.Core/Entities/UserAccount.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
namespace Domain.Core.Entities;
|
||||
|
||||
public class UserAccount
|
||||
{
|
||||
public Guid UserAccountId { get; set; }
|
||||
public string Username { get; set; } = string.Empty;
|
||||
public string FirstName { get; set; } = string.Empty;
|
||||
public string LastName { get; set; } = string.Empty;
|
||||
public string Email { get; set; } = string.Empty;
|
||||
public DateTime CreatedAt { get; set; }
|
||||
public DateTime? UpdatedAt { get; set; }
|
||||
public DateTime DateOfBirth { get; set; }
|
||||
public byte[]? Timer { get; set; }
|
||||
}
|
||||
11
src/Core/Domain/Domain.Core/Entities/UserCredential.cs
Normal file
11
src/Core/Domain/Domain.Core/Entities/UserCredential.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace Domain.Core.Entities;
|
||||
|
||||
public class UserCredential
|
||||
{
|
||||
public Guid UserCredentialId { get; set; }
|
||||
public Guid UserAccountId { get; set; }
|
||||
public DateTime CreatedAt { get; set; }
|
||||
public DateTime Expiry { get; set; }
|
||||
public string Hash { get; set; } = string.Empty;
|
||||
public byte[]? Timer { get; set; }
|
||||
}
|
||||
9
src/Core/Domain/Domain.Core/Entities/UserVerification.cs
Normal file
9
src/Core/Domain/Domain.Core/Entities/UserVerification.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace Domain.Core.Entities;
|
||||
|
||||
public class UserVerification
|
||||
{
|
||||
public Guid UserVerificationId { get; set; }
|
||||
public Guid UserAccountId { get; set; }
|
||||
public DateTime VerificationDateTime { get; set; }
|
||||
public byte[]? Timer { get; set; }
|
||||
}
|
||||
12
src/Core/Domain/Domain.Validation/Domain.Validation.csproj
Normal file
12
src/Core/Domain/Domain.Validation/Domain.Validation.csproj
Normal file
@@ -0,0 +1,12 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<RootNamespace>Domain.Validation</RootNamespace>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Domain.Core\Domain.Core.csproj" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
Reference in New Issue
Block a user