diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-02 20:31:51 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-02 20:31:51 +0200 |
| commit | 263e6e40c8c1d0ccabdfa0bb8347c8b1d6ea09f1 (patch) | |
| tree | e124334b5489f8aac9e28bcec3f8c65b4a9ace9c /model.js | |
| parent | 356bf1d795bd43d6ff7da5bcd1722602867d3cff (diff) | |
| download | orm-263e6e40c8c1d0ccabdfa0bb8347c8b1d6ea09f1.tar.gz orm-263e6e40c8c1d0ccabdfa0bb8347c8b1d6ea09f1.zip | |
add relations needed for processor
Diffstat (limited to 'model.js')
| -rw-r--r-- | model.js | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -12,5 +12,8 @@ module.exports = (seq, Seq) => { PlayerExt = seq.import("./models/player_ext.js"), Item = seq.import("./models/item.js"); + Roster.belongsTo(Match, { foreignKey: "match_api_id", targetKey: "api_id" }); + Participant.belongsTo(Roster, { foreignKey: "roster_api_id", targetKey: "api_id" }); + return {Match, Roster, Participant, ParticipantExt, ParticipantItemUse, Player, PlayerExt, Asset, Item}; }; |
