generate model Post