Cretate delete project confirm dialog

This commit is contained in:
Takeshi Kimata
2024-05-26 14:46:00 +09:00
parent 691684e9b7
commit 3ce68ebd30
7 changed files with 25 additions and 8 deletions

View File

@@ -25,6 +25,7 @@ function defineFolder(sequelize, DataTypes) {
Folder.associate = (models) => {
Folder.belongsTo(models.Project, { foreignKey: 'projectId', onDelete: 'CASCADE' });
Folder.hasMany(models.Case, { foreignKey: 'folderId' });
};
return Folder;