mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-11 00:14:00 +00:00
feat: persist ranked season rollovers
This commit is contained in:
@@ -112,6 +112,17 @@ CREATE TABLE seasons (
|
||||
rolled_over_at TIMESTAMPTZ
|
||||
);
|
||||
|
||||
CREATE TABLE ranked_season_rollovers (
|
||||
player_id TEXT NOT NULL REFERENCES identities(player_id),
|
||||
season_id TEXT NOT NULL REFERENCES seasons(season_id),
|
||||
rating DOUBLE PRECISION NOT NULL,
|
||||
deviation DOUBLE PRECISION NOT NULL,
|
||||
volatility DOUBLE PRECISION NOT NULL,
|
||||
ranked_games INTEGER NOT NULL CHECK (ranked_games >= 0),
|
||||
rolled_over_at TIMESTAMPTZ NOT NULL,
|
||||
PRIMARY KEY (player_id, season_id)
|
||||
);
|
||||
|
||||
CREATE TABLE penalties (
|
||||
penalty_id TEXT PRIMARY KEY,
|
||||
player_id TEXT NOT NULL REFERENCES identities(player_id),
|
||||
|
||||
Reference in New Issue
Block a user