diff --git a/server/src/models/Robot.ts b/server/src/models/Robot.ts index 41e974f9..b419fe8f 100644 --- a/server/src/models/Robot.ts +++ b/server/src/models/Robot.ts @@ -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; \ No newline at end of file diff --git a/server/src/models/User.ts b/server/src/models/User.ts index f7c22b5b..2bb465d2 100644 --- a/server/src/models/User.ts +++ b/server/src/models/User.ts @@ -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;