From eabb7b5a2cac9f11f56fe464902cbf46293c3640 Mon Sep 17 00:00:00 2001 From: Eero Holmala Date: Mon, 22 Jul 2024 14:05:36 +0300 Subject: [PATCH] Start refactor of backend --- .../Contracts/Data/UserDto.cs | 16 ++++++++++++ .../WretchedMachinesBackend.sln | 25 +++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 WretchedMachinesBackend/Contracts/Data/UserDto.cs create mode 100644 WretchedMachinesBackend/WretchedMachinesBackend.sln diff --git a/WretchedMachinesBackend/Contracts/Data/UserDto.cs b/WretchedMachinesBackend/Contracts/Data/UserDto.cs new file mode 100644 index 0000000..f92c86d --- /dev/null +++ b/WretchedMachinesBackend/Contracts/Data/UserDto.cs @@ -0,0 +1,16 @@ +namespace Users.Api.Contracts.Data; + +public class UserDto +{ + public string Id { get; init; } = default!; + + public string Username { get; init; } = default!; + + public string Email { get; init; } = default!; + + public byte[] PasswordHash { get; init; } = default!; + + public DateTime Created { get; init; } + + public DateTime Updated { get; init; } +} diff --git a/WretchedMachinesBackend/WretchedMachinesBackend.sln b/WretchedMachinesBackend/WretchedMachinesBackend.sln new file mode 100644 index 0000000..05ee40c --- /dev/null +++ b/WretchedMachinesBackend/WretchedMachinesBackend.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.5.002.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WretchedMachinesBackend", "WretchedMachinesBackend.csproj", "{A9D8EB0B-C828-47D2-99ED-94ABF8BB3D75}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {A9D8EB0B-C828-47D2-99ED-94ABF8BB3D75}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A9D8EB0B-C828-47D2-99ED-94ABF8BB3D75}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A9D8EB0B-C828-47D2-99ED-94ABF8BB3D75}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A9D8EB0B-C828-47D2-99ED-94ABF8BB3D75}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {4B866C14-5893-473B-AD16-A48F3F277F01} + EndGlobalSection +EndGlobal