separate attachment's data from attachment entity, instead create a new attchmentdata entity and connect them using a relationship