give relationship for category and posts