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,5 +1,5 @@
function defineCaseAttachment(sequelize, DataTypes) {
const CaseAttachment = sequelize.define("CaseAttachment", {
const CaseAttachment = sequelize.define('CaseAttachment', {
caseId: {
type: DataTypes.INTEGER,
allowNull: false,
@@ -12,12 +12,12 @@ function defineCaseAttachment(sequelize, DataTypes) {
CaseAttachment.associate = (models) => {
CaseAttachment.belongsTo(models.Case, {
foreignKey: "caseId",
onDelete: "CASCADE",
foreignKey: 'caseId',
onDelete: 'CASCADE',
});
CaseAttachment.belongsTo(models.Attachment, {
foreignKey: "attachmentId",
onDelete: "CASCADE",
foreignKey: 'attachmentId',
onDelete: 'CASCADE',
});
};