generate vote model