feat: no associations in model files
This commit is contained in:
@@ -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;
|
||||
@@ -107,6 +107,4 @@ Run.init(
|
||||
}
|
||||
);
|
||||
|
||||
Run.belongsTo(Robot, { foreignKey: 'robotId' });
|
||||
|
||||
export default Run;
|
||||
Reference in New Issue
Block a user