feat: robot & run association

This commit is contained in:
karishmas6
2024-10-09 23:07:28 +05:30
parent 981f75c9c6
commit a174e2281c

View File

@@ -0,0 +1,7 @@
import Robot from './Robot';
import Run from './Run';
export default function setupAssociations() {
Run.belongsTo(Robot, { foreignKey: 'robotId' });
Robot.hasMany(Run, { foreignKey: 'robotId' });
}