Generate posts model