feat: remove associations

This commit is contained in:
karishmas6
2024-10-21 20:38:37 +05:30
parent 9aa1495b93
commit bbffd90e84
2 changed files with 8 additions and 8 deletions

View File

@@ -84,9 +84,9 @@ Robot.init(
}
);
Robot.hasMany(Run, {
foreignKey: 'robotId',
as: 'runs', // Alias for the relation
});
// Robot.hasMany(Run, {
// foreignKey: 'robotId',
// as: 'runs', // Alias for the relation
// });
export default Robot;

View File

@@ -80,9 +80,9 @@ User.init(
}
);
User.hasMany(Robot, {
foreignKey: 'userId',
as: 'robots', // Alias for the relation
});
// User.hasMany(Robot, {
// foreignKey: 'userId',
// as: 'robots', // Alias for the relation
// });
export default User;