C# formatting

This commit is contained in:
2026-02-05 20:39:12 +01:00
parent 78cdbfe51e
commit c0756ff2c6
34 changed files with 830 additions and 582 deletions

View File

@@ -15,8 +15,8 @@ public class Player
[MaxLength(24)]
public string NormalizedUsername { get; set; } = string.Empty;
public byte[] PasswordHash { get; set; } = Array.Empty<byte>();
public byte[] PasswordSalt { get; set; } = Array.Empty<byte>();
public byte[] PasswordHash { get; set; } = [];
public byte[] PasswordSalt { get; set; } = [];
public DateTimeOffset? LastLoginAt { get; set; }
public bool IsAdmin { get; set; }

View File

@@ -8,6 +8,7 @@ public class Suggestion
[Required]
public Guid PlayerId { get; set; }
public Player? Player { get; set; }
[Required]

View File

@@ -8,10 +8,12 @@ public class Vote
[Required]
public Guid PlayerId { get; set; }
public Player? Player { get; set; }
[Required]
public int SuggestionId { get; set; }
public Suggestion? Suggestion { get; set; }
[Range(0, 10)]