import 'package:rasadyar_core/core.dart';


part 'livestock_local_model.g.dart';

@HiveType(typeId: liveStockDataLocalModelTypeId)
 class LivestockLocalModel extends HiveObject {


  @HiveField(0)
  RancherLocal? rancher;

  @HiveField(1)
  HerdLocal? herd;

  @HiveField(2)
  List<LivestockLocal>? livestock;

}



@HiveType(typeId: liveStockDataRancherLocalModelTypeId)
 class RancherLocal extends HiveObject {

  @HiveField(0)
  String? name;

  @HiveField(1)
  String? phone;

  @HiveField(2)
  String? image;
}


@HiveType(typeId: liveStockDataHerdLocalModelTypeId)
class HerdLocal extends HiveObject{

  @HiveField(0)
  LocationLocal? location;

  @HiveField(1)
  String? address;

  @HiveField(2)
  String? image;


}


@HiveType(typeId: liveStockDataLocationLocalModelTypeId)
class LocationLocal extends HiveObject {

  @HiveField(0)
  double? lat;

  @HiveField(1)
  double? lng;

}


@HiveType(typeId: liveStockDataLivestockLocalModelTypeId)
class LivestockLocal extends HiveObject {


  @HiveField(0)
  String? species;

  @HiveField(1)
  String? breed;

  @HiveField(2)
  String? dateOfBirth;

  @HiveField(3)
  String? sex;

  @HiveField(4)
  String? motherTag;

  @HiveField(5)
  String? fatherTag;

  @HiveField(6)
  String? tagNumber;

  @HiveField(7)
  String? tagType;

  @HiveField(8)
  String? image;


}
