Created Post and Commit models with relationships