extended editor
This commit is contained in:
@@ -21,5 +21,9 @@ module.exports = (sequelize) => {
|
||||
timestamps: true
|
||||
});
|
||||
|
||||
Page.associate = (models) => {
|
||||
Page.belongsToMany(models.File, { through: 'page_files', foreignKey: 'pageId' });
|
||||
};
|
||||
|
||||
return Page;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user