volleyballsimtypes 0.0.45 → 0.0.46

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,14 +51,8 @@ function initModels(sequelize) {
51
51
  Match.belongsTo(Team, { as: 'awayTeam', foreignKey: 'away_team' });
52
52
  Match.belongsTo(Team, { as: 'homeTeam', foreignKey: 'home_team' });
53
53
  Match.hasMany(MatchSet, { as: 'MatchSets', foreignKey: 'match_id' });
54
- Match.hasMany(SeasonMatches, { as: 'SeasonMatches', foreignKey: 'match_id' });
54
+ Match.hasOne(SeasonMatches, { as: 'SeasonMatches', foreignKey: 'match_id' });
55
55
  Match.hasOne(TournamentMatch, { as: 'TournamentMatch', foreignKey: 'match_id' });
56
- Match.belongsToMany(Season, {
57
- as: 'season_id_Seasons',
58
- through: SeasonMatches,
59
- foreignKey: 'match_id',
60
- otherKey: 'season_id'
61
- });
62
56
  MatchSet.belongsTo(Match, { as: 'match', foreignKey: 'match_id' });
63
57
  MatchSet.belongsTo(Player, { as: 'away_libero_Player', foreignKey: 'away_libero' });
64
58
  MatchSet.belongsTo(Player, { as: 'home_libero_Player', foreignKey: 'home_libero' });
@@ -141,12 +135,6 @@ function initModels(sequelize) {
141
135
  foreignKey: 'season_id',
142
136
  otherKey: 'team_id'
143
137
  });
144
- Season.belongsToMany(Match, {
145
- as: 'seasonMatches',
146
- through: SeasonMatches,
147
- foreignKey: 'season_id',
148
- otherKey: 'match_id'
149
- });
150
138
  SeasonMatches.belongsTo(Match, { as: 'match', foreignKey: 'match_id' });
151
139
  SeasonMatches.belongsTo(Season, { as: 'season', foreignKey: 'season_id' });
152
140
  SeasonTeams.belongsTo(Season, { as: 'season', foreignKey: 'season_id' });
@@ -48,14 +48,8 @@ export function initModels(sequelize) {
48
48
  Match.belongsTo(Team, { as: 'awayTeam', foreignKey: 'away_team' });
49
49
  Match.belongsTo(Team, { as: 'homeTeam', foreignKey: 'home_team' });
50
50
  Match.hasMany(MatchSet, { as: 'MatchSets', foreignKey: 'match_id' });
51
- Match.hasMany(SeasonMatches, { as: 'SeasonMatches', foreignKey: 'match_id' });
51
+ Match.hasOne(SeasonMatches, { as: 'SeasonMatches', foreignKey: 'match_id' });
52
52
  Match.hasOne(TournamentMatch, { as: 'TournamentMatch', foreignKey: 'match_id' });
53
- Match.belongsToMany(Season, {
54
- as: 'season_id_Seasons',
55
- through: SeasonMatches,
56
- foreignKey: 'match_id',
57
- otherKey: 'season_id'
58
- });
59
53
  MatchSet.belongsTo(Match, { as: 'match', foreignKey: 'match_id' });
60
54
  MatchSet.belongsTo(Player, { as: 'away_libero_Player', foreignKey: 'away_libero' });
61
55
  MatchSet.belongsTo(Player, { as: 'home_libero_Player', foreignKey: 'home_libero' });
@@ -138,12 +132,6 @@ export function initModels(sequelize) {
138
132
  foreignKey: 'season_id',
139
133
  otherKey: 'team_id'
140
134
  });
141
- Season.belongsToMany(Match, {
142
- as: 'seasonMatches',
143
- through: SeasonMatches,
144
- foreignKey: 'season_id',
145
- otherKey: 'match_id'
146
- });
147
135
  SeasonMatches.belongsTo(Match, { as: 'match', foreignKey: 'match_id' });
148
136
  SeasonMatches.belongsTo(Season, { as: 'season', foreignKey: 'season_id' });
149
137
  SeasonTeams.belongsTo(Season, { as: 'season', foreignKey: 'season_id' });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "volleyballsimtypes",
3
- "version": "0.0.45",
3
+ "version": "0.0.46",
4
4
  "description": "vbsim types",
5
5
  "main": "./dist/cjs/src/index.js",
6
6
  "module": "./dist/esm/src/index.js",