birbmap/Birdmap.DAL/Entities/User.cs

21 lines
401 B
C#
Raw Normal View History

namespace Birdmap.DAL.Entities
2020-10-21 17:04:54 +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
{
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; }
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
}
}