@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Statistics that = (Statistics) o;

        if (id != that.id) return false;
        if (questions != that.questions) return false;
        if (rightAnswers != that.rightAnswers) return false;
        if (!quiz.equals(that.quiz)) return false;
        if (!time.equals(that.time)) return false;
        if (!user.equals(that.user)) return false;

        return true;
    }