CREATE TABLE public.user_scores_similarity
(
    id             serial4                               NOT NULL,
    beatmap_id     int4                                  NULL,
    replay_id_user uuid                                  NULL,
    replay_id_osu  int8                                  NULL,
    similarity     float8                                NULL,
    correlation    float8                                NULL,
    created_at     timestamptz DEFAULT CURRENT_TIMESTAMP NULL,
    cg_similarity  float8                                NULL,
    cg_correlation float8                                NULL,
    CONSTRAINT user_scores_similarity_pkey PRIMARY KEY (id),
    CONSTRAINT user_scores_unique_beatmap_replay_ids UNIQUE (beatmap_id, replay_id_user, replay_id_osu)
);