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, { // Robot.hasMany(Run, {
foreignKey: 'robotId', // foreignKey: 'robotId',
as: 'runs', // Alias for the relation // as: 'runs', // Alias for the relation
}); // });
export default Robot; export default Robot;

View File

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