Generate topic and post models