sequelize.define('NvContracts', {
// ... (attributes)
tableName: 'contracts'
You should then be able to create the route file by copy pasting another one and using search & replace.
Also, I’m seeing that both of your database connections are named ‘anythingelse’.
I think that they should have different names.
image 1230×806 89.2 KB
and is there anything to modify in the routes folder of the corresponding file? here I have for example the file contracts do I have to change the
const permissionMiddlewareCreator = new PermissionMiddlewareCreator('contracts');
const permissionMiddlewareCreator = new PermissionMiddlewareCreator('NvContracts');
image 2516×928 408 KB
Thank you in advance!
I tried and that was what needed to be changed and for the files in the route folder there was no need to modify
Thank !