Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
xsalonx committed Mar 4, 2024
1 parent 09b9885 commit e9a08a4
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 47 deletions.
6 changes: 0 additions & 6 deletions lib/database/models/dataPass.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,6 @@ module.exports = (sequelize) => {
foreignKey: 'data_pass_id',
through: 'simulation_pass_data_pass_anchors',
});

DataPass.belongsToMany(models.QualityControlFlag, {
as: 'qualityControlFlags',
foreignKey: 'data_pass_id',
through: 'data_pass_quality_control_flag',
});
};

return DataPass;
Expand Down
2 changes: 0 additions & 2 deletions lib/database/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ const User = require('./user');
const LhcPeriod = require('./lhcPeriod');
const LhcPeriodStatistics = require('./lhcPeriodsStatistics');
const DataPass = require('./dataPass.js');
const QualityControlFlag = require('./qualityControlFlag.js');
const QualityControlFlagType = require('./qualityControlFlagType.js');
const SimulationPass = require('./simulationPass.js');

Expand Down Expand Up @@ -69,7 +68,6 @@ module.exports = (sequelize) => {
LhcPeriod: LhcPeriod(sequelize),
LhcPeriodStatistics: LhcPeriodStatistics(sequelize),
DataPass: DataPass(sequelize),
QualityControlFlag: QualityControlFlag(sequelize),
QualityControlFlagType: QualityControlFlagType(sequelize),
SimulationPass: SimulationPass(sequelize),
};
Expand Down
1 change: 0 additions & 1 deletion lib/database/models/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ module.exports = (sequelize) => {
});
Run.belongsTo(models.LhcPeriod, { foreignKey: 'lhcPeriodId', as: 'lhcPeriod' });
Run.belongsToMany(models.DataPass, { as: 'dataPass', sourceKey: 'runNumber', foreignKey: 'run_number', through: 'data_passes_runs' });
Run.hasMany(models.QualityControlFlag, { sourceKey: 'runNumber', foreignKey: 'runNumber', as: 'qualityControlFlags' });
Run.belongsToMany(models.SimulationPass, {
as: 'simulationPasses',
sourceKey: 'runNumber',
Expand Down
6 changes: 0 additions & 6 deletions lib/database/models/simulationPass.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,6 @@ module.exports = (sequelize) => {
foreignKey: 'simulation_pass_id',
through: 'simulation_passes_runs',
});

SimulationPass.belongsToMany(models.QualityControlFlag, {
as: 'qualityControlFlags',
foreignKey: 'simulation_pass_id',
through: 'simulation_pass_quality_control_flag',
});
};

return SimulationPass;
Expand Down
32 changes: 0 additions & 32 deletions lib/database/models/typedefs/SequelizeQualityControlFlag.js

This file was deleted.

0 comments on commit e9a08a4

Please sign in to comment.