extended editor

This commit is contained in:
Torsten Schulz
2024-06-21 18:06:17 +02:00
parent dcfd478464
commit 97c72540cf
20 changed files with 754 additions and 35 deletions

View File

@@ -21,5 +21,9 @@ module.exports = (sequelize) => {
timestamps: true
});
Page.associate = (models) => {
Page.belongsToMany(models.File, { through: 'page_files', foreignKey: 'pageId' });
};
return Page;
};