publicAttributes can also be defined inside mongoose model defs