버그 수정
This commit is contained in:
@@ -97,16 +97,4 @@ Event.associate = (models) => {
|
||||
});
|
||||
};
|
||||
|
||||
Event.associate = (models) => {
|
||||
Event.belongsTo(models.Club, {
|
||||
foreignKey: 'clubId'
|
||||
});
|
||||
Event.hasMany(models.EventParticipant, {
|
||||
foreignKey: 'eventId'
|
||||
});
|
||||
Event.hasMany(models.EventScore, {
|
||||
foreignKey: 'eventId'
|
||||
});
|
||||
};
|
||||
|
||||
module.exports = Event;
|
||||
|
||||
Reference in New Issue
Block a user