summaryrefslogtreecommitdiff
path: root/model.js
diff options
context:
space:
mode:
Diffstat (limited to 'model.js')
-rw-r--r--model.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/model.js b/model.js
index dd7990e..3e5e9bf 100644
--- a/model.js
+++ b/model.js
@@ -41,6 +41,7 @@ module.exports = (seq, Seq) => {
Participant.belongsTo(Hero, { foreignKey: "hero_id" });
Participant.belongsTo(Series, { foreignKey: "series_id" });
Participant.belongsTo(Role, { foreignKey: "role_id" });
+ Participant.belongsTo(Region, { foreignKey: "shard_id", targetKey: "name" });
ParticipantStats.belongsTo(Participant, { foreignKey: "participant_api_id", "targetKey": "api_id" });
return {