Add team roles and content management updates
This commit is contained in:
@@ -11,8 +11,11 @@ public sealed class SiteSettings
|
||||
public string? PrivacyPolicyUpdatedBy { get; set; }
|
||||
public DateTimeOffset? PrivacyPolicyUpdatedAt { get; set; }
|
||||
public string ImprintUrl { get; set; } = string.Empty;
|
||||
public string ImprintContent { get; set; } = string.Empty;
|
||||
public string ContactUrl { get; set; } = string.Empty;
|
||||
public string ContactContent { get; set; } = string.Empty;
|
||||
public string SponsorsUrl { get; set; } = string.Empty;
|
||||
public string SponsorsContent { get; set; } = string.Empty;
|
||||
public string SocialLinksJson { get; set; } = "[]";
|
||||
public string FaqJson { get; set; } = "[]";
|
||||
public string RiskRulesJson { get; set; } = "[]";
|
||||
@@ -23,6 +26,11 @@ public sealed class SiteSettings
|
||||
public string DemoLoginPasswordSalt { get; set; } = string.Empty;
|
||||
public string DemoLoginTwitchUserId { get; set; } = "jayuhime_admin";
|
||||
public string DemoLoginDisplayName { get; set; } = "Jayuhime Admin";
|
||||
public bool TwitchAuthManagedByDatabase { get; set; }
|
||||
public string TwitchClientId { get; set; } = string.Empty;
|
||||
public string TwitchClientSecret { get; set; } = string.Empty;
|
||||
public string TwitchRedirectUri { get; set; } = string.Empty;
|
||||
public string TwitchScope { get; set; } = string.Empty;
|
||||
public bool MaintenanceModeEnabled { get; set; }
|
||||
public string MaintenanceTitle { get; set; } = "Sternenpause";
|
||||
public string MaintenanceMessage { get; set; } = "Die Award-Galaxie wird gerade liebevoll poliert. Schau gleich wieder vorbei.";
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
namespace Backend.Domain;
|
||||
|
||||
public sealed class TeamMember
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Login { get; set; } = string.Empty;
|
||||
public string DisplayName { get; set; } = string.Empty;
|
||||
public string Role { get; set; } = string.Empty;
|
||||
public string PasswordHash { get; set; } = string.Empty;
|
||||
public string PasswordSalt { get; set; } = string.Empty;
|
||||
public string? BoundTwitchUserId { get; set; }
|
||||
public string? BoundTwitchDisplayName { get; set; }
|
||||
public bool MustChangePassword { get; set; } = true;
|
||||
public bool IsActive { get; set; } = true;
|
||||
public string CreatedByTwitchId { get; set; } = string.Empty;
|
||||
public string? UpdatedByTwitchId { get; set; }
|
||||
public DateTimeOffset CreatedAt { get; set; }
|
||||
public DateTimeOffset? UpdatedAt { get; set; }
|
||||
public DateTimeOffset? LastLoginAt { get; set; }
|
||||
public DateTimeOffset? TwitchBoundAt { get; set; }
|
||||
public DateTimeOffset? PasswordResetAt { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
namespace Backend.Domain;
|
||||
|
||||
public sealed class TeamRolePermission
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Role { get; set; } = string.Empty;
|
||||
public string PermissionsJson { get; set; } = "[]";
|
||||
public string UpdatedByTwitchId { get; set; } = string.Empty;
|
||||
public DateTimeOffset UpdatedAt { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user