feat(tags): add tags to test cases (#299)
This commit is contained in:
@@ -55,6 +55,11 @@ function defineCase(sequelize, DataTypes) {
|
||||
Case.belongsToMany(models.Step, {
|
||||
through: 'caseSteps',
|
||||
});
|
||||
Case.belongsToMany(models.Tags, {
|
||||
through: 'caseTags',
|
||||
foreignKey: 'caseId',
|
||||
otherKey: 'tagId',
|
||||
});
|
||||
};
|
||||
|
||||
return Case;
|
||||
|
||||
Reference in New Issue
Block a user