10 lines
296 B
JavaScript
10 lines
296 B
JavaScript
function applyExtraSetup(sequelize) {
|
|
const { user, pitch, pitchType, bullpenSession } = sequelize.models;
|
|
|
|
bullpenSession.hasMany(pitch);
|
|
bullpenSession.belongsTo(user);
|
|
pitch.belongsTo(bullpenSession);
|
|
pitchType.belongsTo(pitchType);
|
|
}
|
|
|
|
module.exports = { applyExtraSetup }; |