Files
admin/Azaion.Common/Entities/User.cs
T
Alex Bezdieniezhnykh 5673eeade9 add queue offsets to user
2025-04-16 01:29:58 +03:00

26 lines
745 B
C#

namespace Azaion.Common.Entities;
public class User
{
public Guid Id { get; set; }
public string Email { get; set; } = null!;
public string PasswordHash { get; set; } = null!;
public string? Hardware { get; set; }
public RoleEnum Role { get; set; }
public UserConfig? UserConfig { get; set; } = null!;
public static string GetCacheKey(string email) => $"{nameof(User)}.{email}";
}
public class UserConfig
{
public UserQueueOffsets? QueueConfig { get; set; } = new();
}
public class UserQueueOffsets
{
public int AnnotationsOffset { get; set; }
public int AnnotationsConfirmOffset { get; set; }
public int AnnotationsCommandsOffset { get; set; }
}