summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-05-04 22:31:12 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-05-04 22:31:12 +0200
commit7925dcceba445a0d091c0f514eeaa8d16ad9ccb4 (patch)
tree1c90f58ac48c67cbdf7557616494e70d9d4d9840
parent0f1fef88ca050a3160069594fcff7e19e1899676 (diff)
downloadorm-release/2.3.0.tar.gz
orm-release/2.3.0.zip
add guild and tournament mappingsrelease/2.3.0
-rw-r--r--model.js13
1 files changed, 12 insertions, 1 deletions
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,