summaryrefslogtreecommitdiff
path: root/queries/participant.sql
diff options
context:
space:
mode:
authorKapil Viren Ahuja <kvahuja@users.noreply.github.com>2017-02-25 18:34:41 +0530
committerschneefux <schneefux+github@schneefux.xyz>2017-02-25 14:04:41 +0100
commit2309c313b648e06b3c441ab8aafd845939dedc48 (patch)
tree57c69e8eb089f6bb046354e0f642c70c22afd991 /queries/participant.sql
parentf96085e5b3ec8931cf6eb06c4b1dae3b82967340 (diff)
downloadshrinker-2309c313b648e06b3c441ab8aafd845939dedc48.tar.gz
shrinker-2309c313b648e06b3c441ab8aafd845939dedc48.zip
fixing last bit of model (refactoring phase 1) (#19)
Diffstat (limited to 'queries/participant.sql')
-rw-r--r--queries/participant.sql4
1 files changed, 2 insertions, 2 deletions
diff --git a/queries/participant.sql b/queries/participant.sql
index d1d81ce..b7685a9 100644
--- a/queries/participant.sql
+++ b/queries/participant.sql
@@ -1,7 +1,7 @@
SELECT
id AS "apiId",
-relationships->'player'->'data'->>'id' AS "playerId",
+relationships->'player'->'data'->>'id' AS "player_apiId",
attributes->>'actor' AS "hero",
(attributes->'stats'->>'assists')::int AS "assists",
@@ -25,4 +25,4 @@ attributes->'stats'->'itemSells' AS "itemSells",
attributes->'stats'->'itemUses' AS "itemUses",
attributes->'stats'->'items' AS "items"
-FROM "participant"
+FROM participant