created vote model and relationships