Refactored UI

Added Role filed to user table and endpoint implementation
This commit is contained in:
2026-09-28 10:25:00 +02:00
parent 7037ea72ca
commit ea71e55e2d
21 changed files with 3100 additions and 128 deletions
@@ -13,6 +13,7 @@ public sealed class UserConfiguration : IEntityTypeConfiguration<User>
builder.HasKey(pk => pk.Id);
builder.Property(f => f.Email).IsRequired().HasMaxLength(LabelLength);
builder.Property(f => f.Role).IsRequired(false).HasMaxLength(LabelLength);
builder.Property(f => f.Status).IsRequired().HasConversion<int>().HasDefaultValueSql("2")
.HasSentinel(ActivityStatus.Inactive);
builder.Property(f => f.LastLoginAt).IsRequired(false);
@@ -12,6 +12,8 @@ public static class Constants
public const string EmailtemKey = "UserEmail";
public const string UserRoleItemKey = "UserRole";
public const string UserIdItemKey = "UserId";
public const string DefaultSchedulerName = "pfm-scheduler";
+2
View File
@@ -8,5 +8,7 @@ public class User
public string? Email { get; set; }
public string? Role { get; set; }
public ActivityStatus Status { get; set; }
}