CREATE TABLE IF NOT EXISTS leaderboard (
    user_id BIGINT(20) UNSIGNED NOT NULL,
    score INT DEFAULT 0,
    rank INT,
    PRIMARY KEY (user_id),
    FOREIGN KEY (user_id) REFERENCES users(id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;