volleyballsimtypes 0.0.35 → 0.0.36

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.
@@ -51,7 +51,7 @@ function initModels(sequelize) {
51
51
  Match.belongsTo(Team, { as: 'homeTeam', foreignKey: 'home_team' });
52
52
  Match.hasMany(MatchSet, { as: 'MatchSets', foreignKey: 'match_id' });
53
53
  Match.hasMany(SeasonMatches, { as: 'SeasonMatches', foreignKey: 'match_id' });
54
- Match.hasMany(TournamentMatches, { as: 'TournamentMatch', foreignKey: 'match_id' });
54
+ Match.hasMany(TournamentMatches, { as: 'TournamentMatches', foreignKey: 'match_id' });
55
55
  Match.belongsToMany(Season, {
56
56
  as: 'season_id_Seasons',
57
57
  through: SeasonMatches,
@@ -184,7 +184,7 @@ function initModels(sequelize) {
184
184
  Tournament.belongsTo(Team, { as: 'Champion', foreignKey: 'champion' });
185
185
  Tournament.hasMany(TournamentMatches, { as: 'TournamentMatches', foreignKey: 'tournament_id' });
186
186
  Tournament.belongsToMany(Match, {
187
- as: 'tournamentMatch',
187
+ as: 'tournamentMatches',
188
188
  through: TournamentMatches,
189
189
  foreignKey: 'tournament_id',
190
190
  otherKey: 'match_id'
@@ -48,7 +48,7 @@ export function initModels(sequelize) {
48
48
  Match.belongsTo(Team, { as: 'homeTeam', foreignKey: 'home_team' });
49
49
  Match.hasMany(MatchSet, { as: 'MatchSets', foreignKey: 'match_id' });
50
50
  Match.hasMany(SeasonMatches, { as: 'SeasonMatches', foreignKey: 'match_id' });
51
- Match.hasMany(TournamentMatches, { as: 'TournamentMatch', foreignKey: 'match_id' });
51
+ Match.hasMany(TournamentMatches, { as: 'TournamentMatches', foreignKey: 'match_id' });
52
52
  Match.belongsToMany(Season, {
53
53
  as: 'season_id_Seasons',
54
54
  through: SeasonMatches,
@@ -181,7 +181,7 @@ export function initModels(sequelize) {
181
181
  Tournament.belongsTo(Team, { as: 'Champion', foreignKey: 'champion' });
182
182
  Tournament.hasMany(TournamentMatches, { as: 'TournamentMatches', foreignKey: 'tournament_id' });
183
183
  Tournament.belongsToMany(Match, {
184
- as: 'tournamentMatch',
184
+ as: 'tournamentMatches',
185
185
  through: TournamentMatches,
186
186
  foreignKey: 'tournament_id',
187
187
  otherKey: 'match_id'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "volleyballsimtypes",
3
- "version": "0.0.35",
3
+ "version": "0.0.36",
4
4
  "description": "vbsim types",
5
5
  "main": "./dist/cjs/src/index.js",
6
6
  "module": "./dist/esm/src/index.js",