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

part 'user.model.g.dart';

@JsonSerializable()
class User {

  User();

  factory User.fromJson(Map<String, dynamic> json) => _$UserFromJson(json);
  Map<String, dynamic> toJson() => _$UserToJson(this);

  int id;
  String name;
  String surnames;
  String phone;
  String email;
  String nif;
  DateTime date_of_birth;
  String address;
  String zipcode;
  String poblacio;
  String country;
  String url_profile_photo;
  double weight;
  double height;
  String gender;
  DateTime created_at;
  DateTime updated_at;
  String stripe_id;
  String card_brand;
  String card_last_four;
  DateTime trial_ends_at;
  String fiscal_address;
  List<UserSubscription> user_subscriptions;
  List<int> favorite_workouts_ids;

}