create caseSteps

This commit is contained in:
Takeshi Kimata
2024-03-02 15:41:43 +09:00
parent 22c951db07
commit 003e3e05fe
6 changed files with 22 additions and 29 deletions

View File

@@ -11,7 +11,9 @@ function defineStep(sequelize, DataTypes) {
});
Step.associate = (models) => {
Step.belongsToMany(models.Case, { through: "Case_Step" });
Step.belongsToMany(models.Case, {
through: "caseSteps"
});
};
return Step;