added post attributes to the model
get all posts