feat: no associations in model files

This commit is contained in:
karishmas6
2024-10-09 20:42:10 +05:30
parent 40cebea20f
commit 28e2a89548
2 changed files with 0 additions and 5 deletions

View File

@@ -1,6 +1,5 @@
import { Model, DataTypes, Optional } from 'sequelize';
import sequelize from '../db/config';
import Run from './Run';
import { WorkflowFile, Where, What, WhereWhatPair } from 'maxun-core';
interface RobotMeta {
@@ -53,6 +52,4 @@ Robot.init(
}
);
Robot.hasMany(Run, { foreignKey: 'robotId' });
export default Robot;

View File

@@ -107,6 +107,4 @@ Run.init(
}
);
Run.belongsTo(Robot, { foreignKey: 'robotId' });
export default Run;