
import 'dart:convert';

import 'package:isar/isar.dart';

import '../generated/json/base/json_field.dart';
import '../generated/json/performance.g.dart';


part 'performance.g.dart';

@JsonSerializable()
@collection
class PerformanceEntity{

  Id id = Isar.autoIncrement;

  /** unid主键 */
  @Index(unique: true, replace: true)
  String? unid;

  /**
   * 基本信息ID
   */
  String? cattleresumeId;

  /** 电子耳标 */
  String? registrationNo;

  /** 可视耳标 */
  String? individualNo;

  /** 父登记号 */
  String? fatherReg;

  /** 母登记号 */
  String? motherReg;

  /**
   * 年龄
   */
  String? age;

  /**
   * 测量日期
   */
  String? measureDate;

  /**
   * 体高(cm)
   */
  double? height;

  /**
   * 体长(cm)
   */
  double? length;

  /**
   * 胸围(cm)
   */
  double? bust;

  /**
   * 体重
   */
  double? weight;

  /**
   * 胸宽(cm)
   */
  double? chestWidth;

  /**
   * 胸深(cm)
   */
  double? chestDeep;

  /**
   * 腰角宽(cm)
   */
  double? waistWidth;

  /**
   * 十字部宽(cm)
   */
  double? crossWidth;

  /**
   * 管维(cm)
   */
  double? guanWei;

  /**
   * 眼肌面积
   */
  double? eyeMuscleArea;

  /**
   * 等级
   */
  String? grade;

  /**
   * 毛长度(cm)
   */
  double? hairLength;

  /**
   * 毛细度(微米)
   */
  double? hairFineness;

  /**
   * 剪毛量(kg)
   */
  double? shearing;

  /**
   * 背腰宽
   */
  double? backWidth;

  /**
   * 繁殖成绩
   */
  String? breedRes;

  /**
   * 健康状况
   */
  String? health;

  /**
   * 免疫情况
   */
  String? immune;

  /** 是否上传 0未上传，1已上传 */
  String? uploadStatus;

  /**
   * 部门id
   */
  String? deptId;

  /** 搜索值 */
  String? searchValue;

  /** 创建者 */
  String? createBy;

  /** 创建时间 */
  String? createTime;

  /** 更新者 */
  String? updateBy;

  /** 更新时间 */
  String? updateTime;

  /** 备注 */
  String? remark;

  PerformanceEntity();

  factory PerformanceEntity.fromJson(Map<String, dynamic> json) =>
      $PerformanceEntityFromJson(json);

  Map<String, dynamic> toJson() => $PerformanceEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
  
}