created associations in pins and user models