osu-tournament-rating / otr-api

API powering osu! Tournament Rating
https://otr.stagec.xyz/
GNU General Public License v3.0
8 stars 5 forks source link

Create `PlayerHighestRanks` database entity #372

Closed myssto closed 2 months ago

myssto commented 2 months ago

This entity will store information about a Player's highest achieved global and country rank. Each Player can own a maximum of one PlayerHighestRanks per Ruleset (similarly to PlayerRating).

The entity should be structured as such:

public class PlayerHighestRanks : IUpdateableEntity
{
  public Ruleset Ruleset { get; set; }

  public int GlobalRank { get; set; }
  public DateTime GlobalRankDate { get; set; }
  public int CountryRank { get; set; }
  public DateTime CountryRankDate { get; set; }

  // FK, required
  public int PlayerId { get; set; }
  // Backwards navigation
  public Player Player { get; set; }
}

The entity should:

alixdotsh commented 2 months ago

im gonna try doing this, ill let someone know if i dont got it lol