Skip to content

Commit

Permalink
Stage 3.0.4 (#6)
Browse files Browse the repository at this point in the history
- Refined Game properties
- caching-breaking image names
- signalr wip

Co-authored-by: Robert Kemerer <[email protected]>
Co-authored-by: Matt Kaar <[email protected]>
  • Loading branch information
3 people authored Aug 30, 2021
1 parent 3f247d8 commit 8930620
Show file tree
Hide file tree
Showing 31 changed files with 591 additions and 1,166 deletions.
6 changes: 6 additions & 0 deletions src/Gameboard.Api/Data/Entities/Game.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public class Game : IEntity
public string TestCode { get; set; }
public DateTimeOffset GameStart { get; set; }
public DateTimeOffset GameEnd { get; set; }
public string GameMarkdown { get; set; }
public string RegistrationMarkdown { get; set; }
public DateTimeOffset RegistrationOpen { get; set; }
public DateTimeOffset RegistrationClose { get; set; }
Expand All @@ -38,6 +39,11 @@ public class Game : IEntity
public bool AllowPreview { get; set; }
public bool AllowReset { get; set; }
public string Key { get; set; }
public string CardText1 { get; set; }
public string CardText2 { get; set; }
public string CardText3 { get; set; }
public string Mode { get; set; }

public ICollection<ChallengeSpec> Specs { get; set; } = new List<ChallengeSpec>();
public ICollection<Player> Players { get; set; } = new List<Player>();
public ICollection<Challenge> Challenges { get; set; } = new List<Challenge>();
Expand Down
6 changes: 4 additions & 2 deletions src/Gameboard.Api/Data/GameboardDbContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,11 @@ protected override void OnModelCreating(ModelBuilder builder)
b.Property(p => p.Logo).HasMaxLength(64);
b.Property(p => p.Background).HasMaxLength(64);
b.Property(p => p.TestCode).HasMaxLength(64);
b.Property(p => p.RegistrationMarkdown).HasMaxLength(1024);
b.Property(p => p.RegistrationConstraint).HasMaxLength(1024);
b.Property(p => p.Key).HasMaxLength(64);
b.Property(p => p.CardText1).HasMaxLength(64);
b.Property(p => p.CardText2).HasMaxLength(64);
b.Property(p => p.CardText3).HasMaxLength(64);
b.Property(p => p.Mode).HasMaxLength(40);
});


Expand Down
Loading

0 comments on commit 8930620

Please sign in to comment.