8 lines
203 B
TypeScript
8 lines
203 B
TypeScript
import Robot from './Robot';
|
|
import Run from './Run';
|
|
|
|
export default function setupAssociations() {
|
|
Run.belongsTo(Robot, { foreignKey: 'robotId' });
|
|
Robot.hasMany(Run, { foreignKey: 'robotId' });
|
|
}
|