volleyballsimtypes 0.0.91 → 0.0.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -120,7 +120,8 @@ function initModels(sequelize) {
|
|
|
120
120
|
Player.hasOne(PerformanceStats, { as: 'PerformanceStat', foreignKey: 'player_id' });
|
|
121
121
|
Player.hasOne(DraftPick, { as: 'DraftPick', foreignKey: 'player_id' });
|
|
122
122
|
Player.belongsToMany(Team, {
|
|
123
|
-
as: '
|
|
123
|
+
as: 'Teams',
|
|
124
|
+
through: PlayerTeam,
|
|
124
125
|
foreignKey: 'player_id',
|
|
125
126
|
otherKey: 'team_id'
|
|
126
127
|
});
|
|
@@ -117,7 +117,8 @@ export function initModels(sequelize) {
|
|
|
117
117
|
Player.hasOne(PerformanceStats, { as: 'PerformanceStat', foreignKey: 'player_id' });
|
|
118
118
|
Player.hasOne(DraftPick, { as: 'DraftPick', foreignKey: 'player_id' });
|
|
119
119
|
Player.belongsToMany(Team, {
|
|
120
|
-
as: '
|
|
120
|
+
as: 'Teams',
|
|
121
|
+
through: PlayerTeam,
|
|
121
122
|
foreignKey: 'player_id',
|
|
122
123
|
otherKey: 'team_id'
|
|
123
124
|
});
|