volleyballsimtypes 0.0.21 → 0.0.22

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.
@@ -160,6 +160,7 @@ function initModels(sequelize) {
160
160
  Season.belongsTo(Team, { as: 'champion', foreignKey: 'champion' });
161
161
  Team.hasMany(Season, { as: 'titles', foreignKey: 'champion' });
162
162
  Tournament.hasMany(TournamentMatch, { as: 'Matches', foreignKey: 'tournament_id' });
163
+ Tournament.belongsTo(Team, { as: 'champion', foreignKey: 'champion' });
163
164
  TournamentMatch.belongsTo(Tournament, { as: 'tournament', foreignKey: 'tournament_id' });
164
165
  TournamentMatch.belongsTo(Match, { as: 'match', foreignKey: 'match_id' });
165
166
  return {
@@ -157,6 +157,7 @@ export function initModels(sequelize) {
157
157
  Season.belongsTo(Team, { as: 'champion', foreignKey: 'champion' });
158
158
  Team.hasMany(Season, { as: 'titles', foreignKey: 'champion' });
159
159
  Tournament.hasMany(TournamentMatch, { as: 'Matches', foreignKey: 'tournament_id' });
160
+ Tournament.belongsTo(Team, { as: 'champion', foreignKey: 'champion' });
160
161
  TournamentMatch.belongsTo(Tournament, { as: 'tournament', foreignKey: 'tournament_id' });
161
162
  TournamentMatch.belongsTo(Match, { as: 'match', foreignKey: 'match_id' });
162
163
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "volleyballsimtypes",
3
- "version": "0.0.21",
3
+ "version": "0.0.22",
4
4
  "description": "vbsim types",
5
5
  "main": "./dist/cjs/src/index.js",
6
6
  "module": "./dist/esm/src/index.js",