add code field to group model