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-11-12 18:13:23 +01:00
|
|
|
|
public record User
|
2020-10-21 17:04:54 +02:00
|
|
|
|
{
|
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-31 15:57:19 +01:00
|
|
|
|
|
|
|
|
|
public bool IsFromConfig { get; set; }
|
2020-10-21 17:04:54 +02:00
|
|
|
|
}
|
|
|
|
|
}
|