From 356bf1d795bd43d6ff7da5bcd1722602867d3cff Mon Sep 17 00:00:00 2001 From: schneefux Date: Sun, 2 Apr 2017 19:42:42 +0200 Subject: remove relationships --- model.js | 8 -------- 1 file changed, 8 deletions(-) (limited to 'model.js') diff --git a/model.js b/model.js index 26b2cda..c32cca2 100644 --- a/model.js +++ b/model.js @@ -12,13 +12,5 @@ module.exports = (seq, Seq) => { PlayerExt = seq.import("./models/player_ext.js"), Item = seq.import("./models/item.js"); - Match.hasMany(Asset, {as: "Assets"}); - Asset.belongsTo(Match); - Roster.belongsTo(Match, { foreignKey: "match_api_id", targetKey: "api_id" }); - Participant.belongsTo(Roster, { foreignKey: "roster_api_id", targetKey: "api_id" }); - Participant.belongsTo(Player, { foreignKey: "player_api_id", targetKey: "api_id" }); - ParticipantItemUse.belongsTo(Participant, { foreignKey: "participant_api_id", targetKey: "api_id" }); - PlayerExt.belongsTo(Player, { foreignKey: "player_api_id", targetKey: "api_id" }); - return {Match, Roster, Participant, ParticipantExt, ParticipantItemUse, Player, PlayerExt, Asset, Item}; }; -- cgit v1.3.1