-- Index on the SCORES table for USER_ID
CREATE INDEX idx_scores_user_id ON SCORES (USER_ID);

-- Index on the SCORES table for BEATMAP_ID
CREATE INDEX idx_scores_beatmap_id ON SCORES (BEATMAP_ID);

-- Index on the SCORES table for REPLAY_ID
CREATE INDEX idx_scores_replay_id ON SCORES (REPLAY_ID);

-- Composite index on BEATMAP_ID and REPLAY_ID
CREATE INDEX idx_scores_beatmap_id_replay_id ON SCORES (BEATMAP_ID, REPLAY_ID);

CREATE INDEX idx_scores_beatmap_id_replay_id_ur ON SCORES (BEATMAP_ID, REPLAY_ID, UR);

-- Index on UR column if null values are common and its filtration is beneficial
CREATE INDEX idx_scores_ur ON SCORES (UR);

CREATE INDEX idx_scores_judgements_score_id ON SCORES_JUDGEMENTS (SCORE_ID);