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

part 'training_session.model.g.dart';

@JsonSerializable()
class TrainingSession {

  TrainingSession();

  factory TrainingSession.fromJson(Map<String, dynamic> json) => _$TrainingSessionFromJson(json);
  Map<String, dynamic> toJson() => _$TrainingSessionToJson(this);

  int id;
  int box_id;
  int coach_id;
  int training_room_id;
  int training_workout_id;
  int training_type_id;
  int capacity;
  DateTime created_at;
  DateTime updated_at;
  TrainingType training_type;
  DateTime date_start;
  DateTime date_end;
  User coach;
  bool credits;
  List<User> users;

}