base model plugin  for mongoose ODM