Could we put this next to model definitions (so this one in projects.js? Or will that not work?