0

User is built-in model.

Where to put

models.User.on('deleted', function(id) {
 // some logic here
})

common/models/user.js is not called for built-in User model.

Craig Ringer
  • 307,061
  • 76
  • 688
  • 778
Archer
  • 5,073
  • 8
  • 50
  • 96

1 Answers1

0

You can extend the built-in models to add properties, relationships, ACLs, and other model features. You can use the LoopBack model generator or do it programmatically.

Detailed steps are provided in the docs http://docs.strongloop.com/display/LB/Extending+built-in+models

snathan
  • 525
  • 2
  • 7