feat: no associations in model files
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
import { Model, DataTypes, Optional } from 'sequelize';
|
import { Model, DataTypes, Optional } from 'sequelize';
|
||||||
import sequelize from '../db/config';
|
import sequelize from '../db/config';
|
||||||
import Run from './Run';
|
|
||||||
import { WorkflowFile, Where, What, WhereWhatPair } from 'maxun-core';
|
import { WorkflowFile, Where, What, WhereWhatPair } from 'maxun-core';
|
||||||
|
|
||||||
interface RobotMeta {
|
interface RobotMeta {
|
||||||
@@ -53,6 +52,4 @@ Robot.init(
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
Robot.hasMany(Run, { foreignKey: 'robotId' });
|
|
||||||
|
|
||||||
export default Robot;
|
export default Robot;
|
||||||
@@ -107,6 +107,4 @@ Run.init(
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
Run.belongsTo(Robot, { foreignKey: 'robotId' });
|
|
||||||
|
|
||||||
export default Run;
|
export default Run;
|
||||||
Reference in New Issue
Block a user