i'm not sure what i'm doing

This commit is contained in:
Вячеслав 2025-03-25 22:56:35 +05:00
parent 950babb68c
commit 35331a87f1
7 changed files with 41 additions and 13 deletions

View file

@ -1,15 +1,11 @@
using Microsoft.AspNetCore.Identity;
namespace SurveyBackend.Core.Models;
public class User
public class User : IdentityUser<int>
{
public int Id { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string Username { get; set; }
public string Email { get; set; }
public byte[] PasswordSalt { get; set; }
public byte[] PasswordHash { get; set; }
public ICollection<Group> Groups { get; set; }
}

View file

@ -6,4 +6,9 @@
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Identity" Version="2.3.1" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="8.0.14" />
</ItemGroup>
</Project>