feat(tags): add tags to test cases (#299)

This commit is contained in:
Eliezer Castro
2025-10-15 19:18:09 -03:00
committed by GitHub
parent 8fe288e875
commit 1ebf1a1572
17 changed files with 567 additions and 1 deletions

View File

@@ -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;