feat: remove associations
This commit is contained in:
@@ -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;
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user