Created post and commit models with relationships