generates Post model