mirrored_repositories/bmicalc/lib
import 'package:hive/hive.dart';

part 'user_data.g.dart';

@HiveType(typeId: 0)
class UserData {
  UserData({
    required this.bmi,
    required this.colorValue,
    required this.height,
    required this.weight,
    required this.dateRecorded,
  });
  @HiveField(0)
  double bmi;

  @HiveField(1)
  int colorValue;

  @HiveField(2)
  String height;

  @HiveField(3)
  String weight;

  @HiveField(4)
  DateTime dateRecorded;
}
