Fixed userId

This commit is contained in:
Torsten Schulz
2024-09-25 18:01:40 +02:00
parent 11a5a5e60e
commit 2b333c43bb

View File

@@ -85,8 +85,8 @@ Season.hasMany(Match, { foreignKey: 'seasonId', as: 'matches' });
Match.belongsTo(Location, { foreignKey: 'locationId', as: 'location' });
Location.hasMany(Match, { foreignKey: 'locationId', as: 'matches' });
User.belongsTo(UserClub, { foreignKey: 'userClub', as: 'clubUser' });
UserClub.hasMany(User, { foreignKey: 'userClub', as: 'userClub' });
User.belongsTo(UserClub, { foreignKey: 'userId', as: 'clubUser' });
UserClub.hasMany(User, { foreignKey: 'userId', as: 'userClub' });
export {
User,
Log,