added foreign key to post model