summaryrefslogtreecommitdiff
path: root/model.js
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-04-23 10:07:47 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-04-23 10:07:47 +0200
commitc808c5ccdb092f88b5e1bc90d27c3c6d51f8a19b (patch)
tree7b3343dc7da6f48a7c6152a5f1227656c679138c /model.js
parentd51a341e1dae0a910aa6492c8340039a56fbc0d0 (diff)
downloadorm-c808c5ccdb092f88b5e1bc90d27c3c6d51f8a19b.tar.gz
orm-c808c5ccdb092f88b5e1bc90d27c3c6d51f8a19b.zip
add region relationship
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 {