add foreign key to post