diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-05-18 16:00:39 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-05-18 16:00:39 +0200 |
| commit | debcb308754d2a9e1f1ab76d6355ad4f2242a5c2 (patch) | |
| tree | 1a475034966ea2ee4948dff4233fd7cd696eb933 | |
| parent | e681d9697fa87c5c42d63f339de6305af8cd84ee (diff) | |
| download | orm-debcb308754d2a9e1f1ab76d6355ad4f2242a5c2.tar.gz orm-debcb308754d2a9e1f1ab76d6355ad4f2242a5c2.zip | |
associations for ama
| -rw-r--r-- | model.js | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -46,6 +46,8 @@ module.exports = (seq, Seq) => { Roster.belongsTo(Match, { foreignKey: "match_api_id", targetKey: "api_id" }); Participant.belongsTo(Roster, { foreignKey: "roster_api_id", targetKey: "api_id" }); + Participant.belongsTo(Match, { foreignKey: "match_api_id", targetKey: "api_id" }); + Participant.belongsTo(Player, { foreignKey: "player_api_id", targetKey: "api_id" }); Participant.hasMany(ParticipantStats, { as: "participant_stats", foreignKey: "participant_api_id", sourceKey: "api_id" }); /* Participant.belongsTo(GameMode, { foreignKey: "game_mode_id" }); |
