import 'package:app_hit_a_wod/src/models/user.model.dart';
import 'package:app_hit_a_wod/src/models/user_benchmark_section.model.dart';
import 'package:json_annotation/json_annotation.dart';

part 'user_benchmark.model.g.dart';

@JsonSerializable()
class UserBenchmark {

  UserBenchmark();

  factory UserBenchmark.fromJson(Map<String, dynamic> json) => _$UserBenchmarkFromJson(json);
  Map<String, dynamic> toJson() => _$UserBenchmarkToJson(this);

  int id;
  int user_id;
  int training_session_id;
  int training_workout_id;
  int score;
  String level;
  List<UserBenchmarkSection> user_benchmark_sections;
  User user;
  DateTime created_at;
  DateTime updated_at;
}