i'm not sure what i'm doing
This commit is contained in:
parent
950babb68c
commit
35331a87f1
7 changed files with 41 additions and 13 deletions
|
|
@ -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; }
|
||||
}
|
||||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue