created user model and added a foreign key to the posts table