2020-10-24 23:23:22 +02:00
|
|
|
|
namespace Birdmap.DAL.Entities
|
2020-10-21 17:04:54 +02:00
|
|
|
|
{
|
2020-10-24 23:23:22 +02:00
|
|
|
|
public enum Roles
|
|
|
|
|
{
|
|
|
|
|
User,
|
|
|
|
|
Admin,
|
|
|
|
|
}
|
|
|
|
|
|
2020-10-21 17:04:54 +02:00
|
|
|
|
public class User
|
|
|
|
|
{
|
2020-10-24 23:23:22 +02:00
|
|
|
|
public int Id { get; set; }
|
2020-10-21 17:04:54 +02:00
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
public byte[] PasswordHash { get; set; }
|
|
|
|
|
public byte[] PasswordSalt { get; set; }
|
2020-10-24 23:23:22 +02:00
|
|
|
|
|
|
|
|
|
public Roles Role { get; set; }
|
2020-10-21 17:04:54 +02:00
|
|
|
|
}
|
|
|
|
|
}
|