diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-23 10:07:47 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-23 10:07:47 +0200 |
| commit | c808c5ccdb092f88b5e1bc90d27c3c6d51f8a19b (patch) | |
| tree | 7b3343dc7da6f48a7c6152a5f1227656c679138c | |
| parent | d51a341e1dae0a910aa6492c8340039a56fbc0d0 (diff) | |
| download | orm-c808c5ccdb092f88b5e1bc90d27c3c6d51f8a19b.tar.gz orm-c808c5ccdb092f88b5e1bc90d27c3c6d51f8a19b.zip | |
add region relationship
| -rw-r--r-- | model.js | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 { |
