Refactored UI
Added Role filed to user table and endpoint implementation
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -8,5 +8,7 @@ public class User
|
||||
|
||||
public string? Email { get; set; }
|
||||
|
||||
public string? Role { get; set; }
|
||||
|
||||
public ActivityStatus Status { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user