import { User } from './user.model';

export interface UserBenchmark {
    id:                      number;
    user_id:                 number;
    training_session_id:     number;
    training_workout_id:     number;
    time:                    string;
    rounds:                  number;
    created_at:              Date;
    updated_at:              Date;
    score:                   number;
    user_benchmark_sections: UserBenchmarkSection[];
    user:                    User;
}

export interface UserBenchmarkSection {
    id:                          number;
    user_benchmark_id:           number;
    training_workout_section_id: number;
    time:                        string;
    completed:                   number;
    rounds:                      number;
    reps:                        number;
    custom_score:                number;
    created_at:                  Date;
    updated_at:                  Date;
    score_section:               number;
    user_benchmark_lines:        UserBenchmarkLine[];
}

export interface UserBenchmarkLine {
    id:                        number;
    user_benchmark_section_id: number;
    training_workout_line_id:  number;
    level:                     number;
    weight:                    number;
    reps:                      number;
    sets:                      number;
    created_at:                Date;
    updated_at:                Date;
}
