diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-02 19:42:42 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-02 19:42:42 +0200 |
| commit | 356bf1d795bd43d6ff7da5bcd1722602867d3cff (patch) | |
| tree | 0e7f86ffe9fd943f23bf225aa6c27c593fd27caf /model.js | |
| parent | b9eca4133801fb0e119c60ac3a123d43e04e9651 (diff) | |
| download | orm-356bf1d795bd43d6ff7da5bcd1722602867d3cff.tar.gz orm-356bf1d795bd43d6ff7da5bcd1722602867d3cff.zip | |
remove relationships
Diffstat (limited to 'model.js')
| -rw-r--r-- | model.js | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -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}; }; |
