-- Deploy leetify-data:profile-game to pg
-- requires: data-schema

BEGIN;

  CREATE TABLE IF NOT EXISTS data.profile_game (
     leetifyUserId TEXT,
     ctLeetifyRating NUMERIC,
     ctLeetifyRatingRounds NUMERIC,
     dataSource NUMERIC,
     elo NUMERIC,
     gameFinishedAt TIMESTAMP,
     gameId TEXT,
     isCs2 BOOL,
     mapName TEXT,
     matchResult TEXT,
     scores TEXT, -- has to be extracted from array
     skillLevel NUMERIC,
     tLeetifyRating NUMERIC,
     tLeetifyRatingRounds NUMERIC,
     deaths NUMERIC,
     hasBannedPlayer BOOL,
     kills NUMERIC,
     partySize NUMERIC
  );


COMMIT;
