From 263e6e40c8c1d0ccabdfa0bb8347c8b1d6ea09f1 Mon Sep 17 00:00:00 2001 From: schneefux Date: Sun, 2 Apr 2017 20:31:51 +0200 Subject: add relations needed for processor --- model.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'model.js') diff --git a/model.js b/model.js index c32cca2..093fc66 100644 --- a/model.js +++ b/model.js @@ -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}; }; -- cgit v1.3.1