Add per-user phase navigation with results toggle
This commit is contained in:
@@ -26,6 +26,7 @@ public class AppDbContext : DbContext
|
||||
builder.Property(p => p.PasswordHash).IsRequired();
|
||||
builder.Property(p => p.PasswordSalt).IsRequired();
|
||||
builder.Property(p => p.IsAdmin).HasDefaultValue(false);
|
||||
builder.Property(p => p.CurrentPhase).HasDefaultValue(Phase.Suggest);
|
||||
builder.HasMany(p => p.Suggestions)
|
||||
.WithOne(s => s.Player!)
|
||||
.HasForeignKey(s => s.PlayerId)
|
||||
@@ -62,7 +63,7 @@ public class AppDbContext : DbContext
|
||||
builder.HasData(new AppState
|
||||
{
|
||||
Id = 1,
|
||||
CurrentPhase = Phase.Suggest,
|
||||
ResultsOpen = false,
|
||||
UpdatedAt = DateTimeOffset.UnixEpoch
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user