create posts and comment models with relationship