Introduce prettier

This commit is contained in:
Takeshi Kimata
2024-05-19 21:04:45 +09:00
parent cbb5993276
commit 75eeebefda
89 changed files with 872 additions and 944 deletions

View File

@@ -1,9 +1,9 @@
"use strict";
'use strict';
/** @type {import('sequelize-cli').Migration} */
module.exports = {
up: async (queryInterface, Sequelize) => {
await queryInterface.createTable("caseSteps", {
await queryInterface.createTable('caseSteps', {
id: {
type: Sequelize.INTEGER,
primaryKey: true,
@@ -12,20 +12,20 @@ module.exports = {
caseId: {
type: Sequelize.INTEGER,
references: {
model: "cases",
key: "id",
model: 'cases',
key: 'id',
},
onUpdate: "CASCADE",
onDelete: "CASCADE",
onUpdate: 'CASCADE',
onDelete: 'CASCADE',
},
stepId: {
type: Sequelize.INTEGER,
references: {
model: "steps",
key: "id",
model: 'steps',
key: 'id',
},
onUpdate: "CASCADE",
onDelete: "CASCADE",
onUpdate: 'CASCADE',
onDelete: 'CASCADE',
},
stepNo: {
type: Sequelize.INTEGER,
@@ -41,12 +41,12 @@ module.exports = {
},
});
await queryInterface.addIndex("caseSteps", ["caseId", "stepId"], {
await queryInterface.addIndex('caseSteps', ['caseId', 'stepId'], {
unique: true,
});
},
down: async (queryInterface, Sequelize) => {
await queryInterface.dropTable("caseSteps");
await queryInterface.dropTable('caseSteps');
},
};