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

@@ -3,7 +3,7 @@
/** @type {import('sequelize-cli').Migration} */
module.exports = {
up: async (queryInterface, Sequelize) => {
await queryInterface.createTable("cases_steps", {
await queryInterface.createTable("caseSteps", {
id: {
type: Sequelize.INTEGER,
primaryKey: true,
@@ -37,12 +37,12 @@ module.exports = {
},
});
await queryInterface.addIndex("cases_steps", ["caseId", "stepId"], {
await queryInterface.addIndex("caseSteps", ["caseId", "stepId"], {
unique: true,
});
},
down: async (queryInterface, Sequelize) => {
await queryInterface.dropTable("cases_steps");
await queryInterface.dropTable("caseSteps");
},
};