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