From 7925dcceba445a0d091c0f514eeaa8d16ad9ccb4 Mon Sep 17 00:00:00 2001 From: schneefux Date: Thu, 4 May 2017 22:31:12 +0200 Subject: add guild and tournament mappings --- model.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/model.js b/model.js index df78e92..5af8647 100644 --- a/model.js +++ b/model.js @@ -9,6 +9,15 @@ module.exports = (seq, Seq) => { Participant = seq.import("./models/participant.js"), Player = seq.import("./models/player.js"), + // Guilds + Team = seq.import("./models/team.js"), + TeamMembership = seq.import("./models/team_membership.js"), + User = seq.import("./models/users.js"), + + // Tournament + Tournament = seq.import("./models/tournament.js"), + TournamentParticipants = seq.import("./models/tournament_participants.js"), + // mappings Item = seq.import("./models/item.js"), Hero = seq.import("./models/hero.js"), @@ -44,10 +53,12 @@ module.exports = (seq, Seq) => { Participant.belongsTo(Role, { foreignKey: "role_id" }); Participant.belongsTo(Region, { foreignKey: "shard_id", targetKey: "name" }); */ - ParticipantStats.belongsTo(Participant, { foreignKey: "participant_api_id", "targetKey": "api_id" }); + ParticipantStats.belongsTo(Participant, { foreignKey: "participant_api_id", targetKey: "api_id" }); return { Match, Roster, Participant, Player, Asset, + Team, TeamMembership, User, + Tournament, TournamentParticipants, Item, Hero, Series, GameMode, Role, Filter, Skilltier, Build, Region, ParticipantStats, PlayerPoint, GlobalPoint, -- cgit v1.3.1