KSDaemon/sails-hook-sequelize

Model is not defined.

alainbelez opened this issue · 0 comments

why can't it see the Role model? been looking everywhere for the solution. do i need to import the model everytime? on the other project i inherited, i can't seem to find any require('path/to/model')

  User.belongsTo(
    Role,
    {
      foreignKey: {
        allowNull: false,
        field: 'role_id'
      }
    }
};```