From 28e2a89548d76550c80daae6abd6a297d4c81e34 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Wed, 9 Oct 2024 20:42:10 +0530 Subject: [PATCH] feat: no associations in model files --- server/src/models/Robot.ts | 3 --- server/src/models/Run.ts | 2 -- 2 files changed, 5 deletions(-) diff --git a/server/src/models/Robot.ts b/server/src/models/Robot.ts index a255c453..4a193477 100644 --- a/server/src/models/Robot.ts +++ b/server/src/models/Robot.ts @@ -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; \ No newline at end of file diff --git a/server/src/models/Run.ts b/server/src/models/Run.ts index 1446fec3..020bb863 100644 --- a/server/src/models/Run.ts +++ b/server/src/models/Run.ts @@ -107,6 +107,4 @@ Run.init( } ); -Run.belongsTo(Robot, { foreignKey: 'robotId' }); - export default Run; \ No newline at end of file