// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'breeding_record_entity.dart';

// **************************************************************************
// IsarCollectionGenerator
// **************************************************************************

// coverage:ignore-file
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters

extension GetBreedingRecordEntityCollection on Isar {
  IsarCollection<BreedingRecordEntity> get breedingRecordEntitys =>
      this.collection();
}

const BreedingRecordEntitySchema = CollectionSchema(
  name: r'BreedingRecordEntity',
  id: 190409086442144172,
  properties: {
    r'breedingPlantId': PropertySchema(
      id: 0,
      name: r'breedingPlantId',
      type: IsarType.string,
    ),
    r'cattleresumeId': PropertySchema(
      id: 1,
      name: r'cattleresumeId',
      type: IsarType.string,
    ),
    r'createBy': PropertySchema(
      id: 2,
      name: r'createBy',
      type: IsarType.string,
    ),
    r'createTime': PropertySchema(
      id: 3,
      name: r'createTime',
      type: IsarType.string,
    ),
    r'deptId': PropertySchema(
      id: 4,
      name: r'deptId',
      type: IsarType.string,
    ),
    r'individualNo': PropertySchema(
      id: 5,
      name: r'individualNo',
      type: IsarType.string,
    ),
    r'location': PropertySchema(
      id: 6,
      name: r'location',
      type: IsarType.string,
    ),
    r'raiseVarieties': PropertySchema(
      id: 7,
      name: r'raiseVarieties',
      type: IsarType.string,
    ),
    r'registrationNo': PropertySchema(
      id: 8,
      name: r'registrationNo',
      type: IsarType.string,
    ),
    r'remark': PropertySchema(
      id: 9,
      name: r'remark',
      type: IsarType.string,
    ),
    r'searchValue': PropertySchema(
      id: 10,
      name: r'searchValue',
      type: IsarType.string,
    ),
    r'unid': PropertySchema(
      id: 11,
      name: r'unid',
      type: IsarType.string,
    ),
    r'updateBy': PropertySchema(
      id: 12,
      name: r'updateBy',
      type: IsarType.string,
    ),
    r'updateTime': PropertySchema(
      id: 13,
      name: r'updateTime',
      type: IsarType.string,
    ),
    r'uploadStatus': PropertySchema(
      id: 14,
      name: r'uploadStatus',
      type: IsarType.string,
    )
  },
  estimateSize: _breedingRecordEntityEstimateSize,
  serialize: _breedingRecordEntitySerialize,
  deserialize: _breedingRecordEntityDeserialize,
  deserializeProp: _breedingRecordEntityDeserializeProp,
  idName: r'id',
  indexes: {
    r'unid': IndexSchema(
      id: 4581564109674551298,
      name: r'unid',
      unique: true,
      replace: true,
      properties: [
        IndexPropertySchema(
          name: r'unid',
          type: IndexType.hash,
          caseSensitive: true,
        )
      ],
    )
  },
  links: {},
  embeddedSchemas: {},
  getId: _breedingRecordEntityGetId,
  getLinks: _breedingRecordEntityGetLinks,
  attach: _breedingRecordEntityAttach,
  version: '3.0.5',
);

int _breedingRecordEntityEstimateSize(
  BreedingRecordEntity object,
  List<int> offsets,
  Map<Type, List<int>> allOffsets,
) {
  var bytesCount = offsets.last;
  {
    final value = object.breedingPlantId;
    if (value != null) {
      bytesCount += 3 + value.length * 3;
    }
  }
  {
    final value = object.cattleresumeId;
    if (value != null) {
      bytesCount += 3 + value.length * 3;
    }
  }
  {
    final value = object.createBy;
    if (value != null) {
      bytesCount += 3 + value.length * 3;
    }
  }
  {
    final value = object.createTime;
    if (value != null) {
      bytesCount += 3 + value.length * 3;
    }
  }
  {
    final value = object.deptId;
    if (value != null) {
      bytesCount += 3 + value.length * 3;
    }
  }
  {
    final value = object.individualNo;
    if (value != null) {
      bytesCount += 3 + value.length * 3;
    }
  }
  {
    final value = object.location;
    if (value != null) {
      bytesCount += 3 + value.length * 3;
    }
  }
  {
    final value = object.raiseVarieties;
    if (value != null) {
      bytesCount += 3 + value.length * 3;
    }
  }
  {
    final value = object.registrationNo;
    if (value != null) {
      bytesCount += 3 + value.length * 3;
    }
  }
  {
    final value = object.remark;
    if (value != null) {
      bytesCount += 3 + value.length * 3;
    }
  }
  {
    final value = object.searchValue;
    if (value != null) {
      bytesCount += 3 + value.length * 3;
    }
  }
  {
    final value = object.unid;
    if (value != null) {
      bytesCount += 3 + value.length * 3;
    }
  }
  {
    final value = object.updateBy;
    if (value != null) {
      bytesCount += 3 + value.length * 3;
    }
  }
  {
    final value = object.updateTime;
    if (value != null) {
      bytesCount += 3 + value.length * 3;
    }
  }
  {
    final value = object.uploadStatus;
    if (value != null) {
      bytesCount += 3 + value.length * 3;
    }
  }
  return bytesCount;
}

void _breedingRecordEntitySerialize(
  BreedingRecordEntity object,
  IsarWriter writer,
  List<int> offsets,
  Map<Type, List<int>> allOffsets,
) {
  writer.writeString(offsets[0], object.breedingPlantId);
  writer.writeString(offsets[1], object.cattleresumeId);
  writer.writeString(offsets[2], object.createBy);
  writer.writeString(offsets[3], object.createTime);
  writer.writeString(offsets[4], object.deptId);
  writer.writeString(offsets[5], object.individualNo);
  writer.writeString(offsets[6], object.location);
  writer.writeString(offsets[7], object.raiseVarieties);
  writer.writeString(offsets[8], object.registrationNo);
  writer.writeString(offsets[9], object.remark);
  writer.writeString(offsets[10], object.searchValue);
  writer.writeString(offsets[11], object.unid);
  writer.writeString(offsets[12], object.updateBy);
  writer.writeString(offsets[13], object.updateTime);
  writer.writeString(offsets[14], object.uploadStatus);
}

BreedingRecordEntity _breedingRecordEntityDeserialize(
  Id id,
  IsarReader reader,
  List<int> offsets,
  Map<Type, List<int>> allOffsets,
) {
  final object = BreedingRecordEntity();
  object.breedingPlantId = reader.readStringOrNull(offsets[0]);
  object.cattleresumeId = reader.readStringOrNull(offsets[1]);
  object.createBy = reader.readStringOrNull(offsets[2]);
  object.createTime = reader.readStringOrNull(offsets[3]);
  object.deptId = reader.readStringOrNull(offsets[4]);
  object.id = id;
  object.individualNo = reader.readStringOrNull(offsets[5]);
  object.location = reader.readStringOrNull(offsets[6]);
  object.raiseVarieties = reader.readStringOrNull(offsets[7]);
  object.registrationNo = reader.readStringOrNull(offsets[8]);
  object.remark = reader.readStringOrNull(offsets[9]);
  object.searchValue = reader.readStringOrNull(offsets[10]);
  object.unid = reader.readStringOrNull(offsets[11]);
  object.updateBy = reader.readStringOrNull(offsets[12]);
  object.updateTime = reader.readStringOrNull(offsets[13]);
  object.uploadStatus = reader.readStringOrNull(offsets[14]);
  return object;
}

P _breedingRecordEntityDeserializeProp<P>(
  IsarReader reader,
  int propertyId,
  int offset,
  Map<Type, List<int>> allOffsets,
) {
  switch (propertyId) {
    case 0:
      return (reader.readStringOrNull(offset)) as P;
    case 1:
      return (reader.readStringOrNull(offset)) as P;
    case 2:
      return (reader.readStringOrNull(offset)) as P;
    case 3:
      return (reader.readStringOrNull(offset)) as P;
    case 4:
      return (reader.readStringOrNull(offset)) as P;
    case 5:
      return (reader.readStringOrNull(offset)) as P;
    case 6:
      return (reader.readStringOrNull(offset)) as P;
    case 7:
      return (reader.readStringOrNull(offset)) as P;
    case 8:
      return (reader.readStringOrNull(offset)) as P;
    case 9:
      return (reader.readStringOrNull(offset)) as P;
    case 10:
      return (reader.readStringOrNull(offset)) as P;
    case 11:
      return (reader.readStringOrNull(offset)) as P;
    case 12:
      return (reader.readStringOrNull(offset)) as P;
    case 13:
      return (reader.readStringOrNull(offset)) as P;
    case 14:
      return (reader.readStringOrNull(offset)) as P;
    default:
      throw IsarError('Unknown property with id $propertyId');
  }
}

Id _breedingRecordEntityGetId(BreedingRecordEntity object) {
  return object.id;
}

List<IsarLinkBase<dynamic>> _breedingRecordEntityGetLinks(
    BreedingRecordEntity object) {
  return [];
}

void _breedingRecordEntityAttach(
    IsarCollection<dynamic> col, Id id, BreedingRecordEntity object) {
  object.id = id;
}

extension BreedingRecordEntityByIndex on IsarCollection<BreedingRecordEntity> {
  Future<BreedingRecordEntity?> getByUnid(String? unid) {
    return getByIndex(r'unid', [unid]);
  }

  BreedingRecordEntity? getByUnidSync(String? unid) {
    return getByIndexSync(r'unid', [unid]);
  }

  Future<bool> deleteByUnid(String? unid) {
    return deleteByIndex(r'unid', [unid]);
  }

  bool deleteByUnidSync(String? unid) {
    return deleteByIndexSync(r'unid', [unid]);
  }

  Future<List<BreedingRecordEntity?>> getAllByUnid(List<String?> unidValues) {
    final values = unidValues.map((e) => [e]).toList();
    return getAllByIndex(r'unid', values);
  }

  List<BreedingRecordEntity?> getAllByUnidSync(List<String?> unidValues) {
    final values = unidValues.map((e) => [e]).toList();
    return getAllByIndexSync(r'unid', values);
  }

  Future<int> deleteAllByUnid(List<String?> unidValues) {
    final values = unidValues.map((e) => [e]).toList();
    return deleteAllByIndex(r'unid', values);
  }

  int deleteAllByUnidSync(List<String?> unidValues) {
    final values = unidValues.map((e) => [e]).toList();
    return deleteAllByIndexSync(r'unid', values);
  }

  Future<Id> putByUnid(BreedingRecordEntity object) {
    return putByIndex(r'unid', object);
  }

  Id putByUnidSync(BreedingRecordEntity object, {bool saveLinks = true}) {
    return putByIndexSync(r'unid', object, saveLinks: saveLinks);
  }

  Future<List<Id>> putAllByUnid(List<BreedingRecordEntity> objects) {
    return putAllByIndex(r'unid', objects);
  }

  List<Id> putAllByUnidSync(List<BreedingRecordEntity> objects,
      {bool saveLinks = true}) {
    return putAllByIndexSync(r'unid', objects, saveLinks: saveLinks);
  }
}

extension BreedingRecordEntityQueryWhereSort
    on QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QWhere> {
  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterWhere>
      anyId() {
    return QueryBuilder.apply(this, (query) {
      return query.addWhereClause(const IdWhereClause.any());
    });
  }
}

extension BreedingRecordEntityQueryWhere
    on QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QWhereClause> {
  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterWhereClause>
      idEqualTo(Id id) {
    return QueryBuilder.apply(this, (query) {
      return query.addWhereClause(IdWhereClause.between(
        lower: id,
        upper: id,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterWhereClause>
      idNotEqualTo(Id id) {
    return QueryBuilder.apply(this, (query) {
      if (query.whereSort == Sort.asc) {
        return query
            .addWhereClause(
              IdWhereClause.lessThan(upper: id, includeUpper: false),
            )
            .addWhereClause(
              IdWhereClause.greaterThan(lower: id, includeLower: false),
            );
      } else {
        return query
            .addWhereClause(
              IdWhereClause.greaterThan(lower: id, includeLower: false),
            )
            .addWhereClause(
              IdWhereClause.lessThan(upper: id, includeUpper: false),
            );
      }
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterWhereClause>
      idGreaterThan(Id id, {bool include = false}) {
    return QueryBuilder.apply(this, (query) {
      return query.addWhereClause(
        IdWhereClause.greaterThan(lower: id, includeLower: include),
      );
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterWhereClause>
      idLessThan(Id id, {bool include = false}) {
    return QueryBuilder.apply(this, (query) {
      return query.addWhereClause(
        IdWhereClause.lessThan(upper: id, includeUpper: include),
      );
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterWhereClause>
      idBetween(
    Id lowerId,
    Id upperId, {
    bool includeLower = true,
    bool includeUpper = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addWhereClause(IdWhereClause.between(
        lower: lowerId,
        includeLower: includeLower,
        upper: upperId,
        includeUpper: includeUpper,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterWhereClause>
      unidIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addWhereClause(IndexWhereClause.equalTo(
        indexName: r'unid',
        value: [null],
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterWhereClause>
      unidIsNotNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addWhereClause(IndexWhereClause.between(
        indexName: r'unid',
        lower: [null],
        includeLower: false,
        upper: [],
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterWhereClause>
      unidEqualTo(String? unid) {
    return QueryBuilder.apply(this, (query) {
      return query.addWhereClause(IndexWhereClause.equalTo(
        indexName: r'unid',
        value: [unid],
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterWhereClause>
      unidNotEqualTo(String? unid) {
    return QueryBuilder.apply(this, (query) {
      if (query.whereSort == Sort.asc) {
        return query
            .addWhereClause(IndexWhereClause.between(
              indexName: r'unid',
              lower: [],
              upper: [unid],
              includeUpper: false,
            ))
            .addWhereClause(IndexWhereClause.between(
              indexName: r'unid',
              lower: [unid],
              includeLower: false,
              upper: [],
            ));
      } else {
        return query
            .addWhereClause(IndexWhereClause.between(
              indexName: r'unid',
              lower: [unid],
              includeLower: false,
              upper: [],
            ))
            .addWhereClause(IndexWhereClause.between(
              indexName: r'unid',
              lower: [],
              upper: [unid],
              includeUpper: false,
            ));
      }
    });
  }
}

extension BreedingRecordEntityQueryFilter on QueryBuilder<BreedingRecordEntity,
    BreedingRecordEntity, QFilterCondition> {
  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> breedingPlantIdIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNull(
        property: r'breedingPlantId',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> breedingPlantIdIsNotNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNotNull(
        property: r'breedingPlantId',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> breedingPlantIdEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'breedingPlantId',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> breedingPlantIdGreaterThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        include: include,
        property: r'breedingPlantId',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> breedingPlantIdLessThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.lessThan(
        include: include,
        property: r'breedingPlantId',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> breedingPlantIdBetween(
    String? lower,
    String? upper, {
    bool includeLower = true,
    bool includeUpper = true,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.between(
        property: r'breedingPlantId',
        lower: lower,
        includeLower: includeLower,
        upper: upper,
        includeUpper: includeUpper,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> breedingPlantIdStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.startsWith(
        property: r'breedingPlantId',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> breedingPlantIdEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.endsWith(
        property: r'breedingPlantId',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
          QAfterFilterCondition>
      breedingPlantIdContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.contains(
        property: r'breedingPlantId',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
          QAfterFilterCondition>
      breedingPlantIdMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.matches(
        property: r'breedingPlantId',
        wildcard: pattern,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> breedingPlantIdIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'breedingPlantId',
        value: '',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> breedingPlantIdIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        property: r'breedingPlantId',
        value: '',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> cattleresumeIdIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNull(
        property: r'cattleresumeId',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> cattleresumeIdIsNotNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNotNull(
        property: r'cattleresumeId',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> cattleresumeIdEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'cattleresumeId',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> cattleresumeIdGreaterThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        include: include,
        property: r'cattleresumeId',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> cattleresumeIdLessThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.lessThan(
        include: include,
        property: r'cattleresumeId',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> cattleresumeIdBetween(
    String? lower,
    String? upper, {
    bool includeLower = true,
    bool includeUpper = true,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.between(
        property: r'cattleresumeId',
        lower: lower,
        includeLower: includeLower,
        upper: upper,
        includeUpper: includeUpper,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> cattleresumeIdStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.startsWith(
        property: r'cattleresumeId',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> cattleresumeIdEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.endsWith(
        property: r'cattleresumeId',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
          QAfterFilterCondition>
      cattleresumeIdContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.contains(
        property: r'cattleresumeId',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
          QAfterFilterCondition>
      cattleresumeIdMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.matches(
        property: r'cattleresumeId',
        wildcard: pattern,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> cattleresumeIdIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'cattleresumeId',
        value: '',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> cattleresumeIdIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        property: r'cattleresumeId',
        value: '',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> createByIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNull(
        property: r'createBy',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> createByIsNotNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNotNull(
        property: r'createBy',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> createByEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'createBy',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> createByGreaterThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        include: include,
        property: r'createBy',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> createByLessThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.lessThan(
        include: include,
        property: r'createBy',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> createByBetween(
    String? lower,
    String? upper, {
    bool includeLower = true,
    bool includeUpper = true,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.between(
        property: r'createBy',
        lower: lower,
        includeLower: includeLower,
        upper: upper,
        includeUpper: includeUpper,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> createByStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.startsWith(
        property: r'createBy',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> createByEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.endsWith(
        property: r'createBy',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
          QAfterFilterCondition>
      createByContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.contains(
        property: r'createBy',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
          QAfterFilterCondition>
      createByMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.matches(
        property: r'createBy',
        wildcard: pattern,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> createByIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'createBy',
        value: '',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> createByIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        property: r'createBy',
        value: '',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> createTimeIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNull(
        property: r'createTime',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> createTimeIsNotNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNotNull(
        property: r'createTime',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> createTimeEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'createTime',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> createTimeGreaterThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        include: include,
        property: r'createTime',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> createTimeLessThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.lessThan(
        include: include,
        property: r'createTime',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> createTimeBetween(
    String? lower,
    String? upper, {
    bool includeLower = true,
    bool includeUpper = true,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.between(
        property: r'createTime',
        lower: lower,
        includeLower: includeLower,
        upper: upper,
        includeUpper: includeUpper,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> createTimeStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.startsWith(
        property: r'createTime',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> createTimeEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.endsWith(
        property: r'createTime',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
          QAfterFilterCondition>
      createTimeContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.contains(
        property: r'createTime',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
          QAfterFilterCondition>
      createTimeMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.matches(
        property: r'createTime',
        wildcard: pattern,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> createTimeIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'createTime',
        value: '',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> createTimeIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        property: r'createTime',
        value: '',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> deptIdIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNull(
        property: r'deptId',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> deptIdIsNotNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNotNull(
        property: r'deptId',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> deptIdEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'deptId',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> deptIdGreaterThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        include: include,
        property: r'deptId',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> deptIdLessThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.lessThan(
        include: include,
        property: r'deptId',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> deptIdBetween(
    String? lower,
    String? upper, {
    bool includeLower = true,
    bool includeUpper = true,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.between(
        property: r'deptId',
        lower: lower,
        includeLower: includeLower,
        upper: upper,
        includeUpper: includeUpper,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> deptIdStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.startsWith(
        property: r'deptId',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> deptIdEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.endsWith(
        property: r'deptId',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
          QAfterFilterCondition>
      deptIdContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.contains(
        property: r'deptId',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
          QAfterFilterCondition>
      deptIdMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.matches(
        property: r'deptId',
        wildcard: pattern,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> deptIdIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'deptId',
        value: '',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> deptIdIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        property: r'deptId',
        value: '',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> idEqualTo(Id value) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'id',
        value: value,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> idGreaterThan(
    Id value, {
    bool include = false,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        include: include,
        property: r'id',
        value: value,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> idLessThan(
    Id value, {
    bool include = false,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.lessThan(
        include: include,
        property: r'id',
        value: value,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> idBetween(
    Id lower,
    Id upper, {
    bool includeLower = true,
    bool includeUpper = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.between(
        property: r'id',
        lower: lower,
        includeLower: includeLower,
        upper: upper,
        includeUpper: includeUpper,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> individualNoIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNull(
        property: r'individualNo',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> individualNoIsNotNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNotNull(
        property: r'individualNo',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> individualNoEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'individualNo',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> individualNoGreaterThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        include: include,
        property: r'individualNo',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> individualNoLessThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.lessThan(
        include: include,
        property: r'individualNo',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> individualNoBetween(
    String? lower,
    String? upper, {
    bool includeLower = true,
    bool includeUpper = true,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.between(
        property: r'individualNo',
        lower: lower,
        includeLower: includeLower,
        upper: upper,
        includeUpper: includeUpper,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> individualNoStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.startsWith(
        property: r'individualNo',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> individualNoEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.endsWith(
        property: r'individualNo',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
          QAfterFilterCondition>
      individualNoContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.contains(
        property: r'individualNo',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
          QAfterFilterCondition>
      individualNoMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.matches(
        property: r'individualNo',
        wildcard: pattern,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> individualNoIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'individualNo',
        value: '',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> individualNoIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        property: r'individualNo',
        value: '',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> locationIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNull(
        property: r'location',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> locationIsNotNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNotNull(
        property: r'location',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> locationEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'location',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> locationGreaterThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        include: include,
        property: r'location',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> locationLessThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.lessThan(
        include: include,
        property: r'location',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> locationBetween(
    String? lower,
    String? upper, {
    bool includeLower = true,
    bool includeUpper = true,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.between(
        property: r'location',
        lower: lower,
        includeLower: includeLower,
        upper: upper,
        includeUpper: includeUpper,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> locationStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.startsWith(
        property: r'location',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> locationEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.endsWith(
        property: r'location',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
          QAfterFilterCondition>
      locationContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.contains(
        property: r'location',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
          QAfterFilterCondition>
      locationMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.matches(
        property: r'location',
        wildcard: pattern,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> locationIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'location',
        value: '',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> locationIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        property: r'location',
        value: '',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> raiseVarietiesIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNull(
        property: r'raiseVarieties',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> raiseVarietiesIsNotNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNotNull(
        property: r'raiseVarieties',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> raiseVarietiesEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'raiseVarieties',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> raiseVarietiesGreaterThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        include: include,
        property: r'raiseVarieties',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> raiseVarietiesLessThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.lessThan(
        include: include,
        property: r'raiseVarieties',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> raiseVarietiesBetween(
    String? lower,
    String? upper, {
    bool includeLower = true,
    bool includeUpper = true,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.between(
        property: r'raiseVarieties',
        lower: lower,
        includeLower: includeLower,
        upper: upper,
        includeUpper: includeUpper,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> raiseVarietiesStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.startsWith(
        property: r'raiseVarieties',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> raiseVarietiesEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.endsWith(
        property: r'raiseVarieties',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
          QAfterFilterCondition>
      raiseVarietiesContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.contains(
        property: r'raiseVarieties',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
          QAfterFilterCondition>
      raiseVarietiesMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.matches(
        property: r'raiseVarieties',
        wildcard: pattern,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> raiseVarietiesIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'raiseVarieties',
        value: '',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> raiseVarietiesIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        property: r'raiseVarieties',
        value: '',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> registrationNoIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNull(
        property: r'registrationNo',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> registrationNoIsNotNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNotNull(
        property: r'registrationNo',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> registrationNoEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'registrationNo',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> registrationNoGreaterThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        include: include,
        property: r'registrationNo',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> registrationNoLessThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.lessThan(
        include: include,
        property: r'registrationNo',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> registrationNoBetween(
    String? lower,
    String? upper, {
    bool includeLower = true,
    bool includeUpper = true,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.between(
        property: r'registrationNo',
        lower: lower,
        includeLower: includeLower,
        upper: upper,
        includeUpper: includeUpper,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> registrationNoStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.startsWith(
        property: r'registrationNo',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> registrationNoEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.endsWith(
        property: r'registrationNo',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
          QAfterFilterCondition>
      registrationNoContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.contains(
        property: r'registrationNo',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
          QAfterFilterCondition>
      registrationNoMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.matches(
        property: r'registrationNo',
        wildcard: pattern,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> registrationNoIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'registrationNo',
        value: '',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> registrationNoIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        property: r'registrationNo',
        value: '',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> remarkIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNull(
        property: r'remark',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> remarkIsNotNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNotNull(
        property: r'remark',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> remarkEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'remark',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> remarkGreaterThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        include: include,
        property: r'remark',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> remarkLessThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.lessThan(
        include: include,
        property: r'remark',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> remarkBetween(
    String? lower,
    String? upper, {
    bool includeLower = true,
    bool includeUpper = true,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.between(
        property: r'remark',
        lower: lower,
        includeLower: includeLower,
        upper: upper,
        includeUpper: includeUpper,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> remarkStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.startsWith(
        property: r'remark',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> remarkEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.endsWith(
        property: r'remark',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
          QAfterFilterCondition>
      remarkContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.contains(
        property: r'remark',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
          QAfterFilterCondition>
      remarkMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.matches(
        property: r'remark',
        wildcard: pattern,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> remarkIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'remark',
        value: '',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> remarkIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        property: r'remark',
        value: '',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> searchValueIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNull(
        property: r'searchValue',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> searchValueIsNotNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNotNull(
        property: r'searchValue',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> searchValueEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'searchValue',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> searchValueGreaterThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        include: include,
        property: r'searchValue',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> searchValueLessThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.lessThan(
        include: include,
        property: r'searchValue',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> searchValueBetween(
    String? lower,
    String? upper, {
    bool includeLower = true,
    bool includeUpper = true,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.between(
        property: r'searchValue',
        lower: lower,
        includeLower: includeLower,
        upper: upper,
        includeUpper: includeUpper,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> searchValueStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.startsWith(
        property: r'searchValue',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> searchValueEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.endsWith(
        property: r'searchValue',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
          QAfterFilterCondition>
      searchValueContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.contains(
        property: r'searchValue',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
          QAfterFilterCondition>
      searchValueMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.matches(
        property: r'searchValue',
        wildcard: pattern,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> searchValueIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'searchValue',
        value: '',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> searchValueIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        property: r'searchValue',
        value: '',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> unidIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNull(
        property: r'unid',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> unidIsNotNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNotNull(
        property: r'unid',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> unidEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'unid',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> unidGreaterThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        include: include,
        property: r'unid',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> unidLessThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.lessThan(
        include: include,
        property: r'unid',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> unidBetween(
    String? lower,
    String? upper, {
    bool includeLower = true,
    bool includeUpper = true,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.between(
        property: r'unid',
        lower: lower,
        includeLower: includeLower,
        upper: upper,
        includeUpper: includeUpper,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> unidStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.startsWith(
        property: r'unid',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> unidEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.endsWith(
        property: r'unid',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
          QAfterFilterCondition>
      unidContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.contains(
        property: r'unid',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
          QAfterFilterCondition>
      unidMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.matches(
        property: r'unid',
        wildcard: pattern,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> unidIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'unid',
        value: '',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> unidIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        property: r'unid',
        value: '',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> updateByIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNull(
        property: r'updateBy',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> updateByIsNotNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNotNull(
        property: r'updateBy',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> updateByEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'updateBy',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> updateByGreaterThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        include: include,
        property: r'updateBy',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> updateByLessThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.lessThan(
        include: include,
        property: r'updateBy',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> updateByBetween(
    String? lower,
    String? upper, {
    bool includeLower = true,
    bool includeUpper = true,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.between(
        property: r'updateBy',
        lower: lower,
        includeLower: includeLower,
        upper: upper,
        includeUpper: includeUpper,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> updateByStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.startsWith(
        property: r'updateBy',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> updateByEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.endsWith(
        property: r'updateBy',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
          QAfterFilterCondition>
      updateByContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.contains(
        property: r'updateBy',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
          QAfterFilterCondition>
      updateByMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.matches(
        property: r'updateBy',
        wildcard: pattern,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> updateByIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'updateBy',
        value: '',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> updateByIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        property: r'updateBy',
        value: '',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> updateTimeIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNull(
        property: r'updateTime',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> updateTimeIsNotNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNotNull(
        property: r'updateTime',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> updateTimeEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'updateTime',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> updateTimeGreaterThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        include: include,
        property: r'updateTime',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> updateTimeLessThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.lessThan(
        include: include,
        property: r'updateTime',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> updateTimeBetween(
    String? lower,
    String? upper, {
    bool includeLower = true,
    bool includeUpper = true,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.between(
        property: r'updateTime',
        lower: lower,
        includeLower: includeLower,
        upper: upper,
        includeUpper: includeUpper,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> updateTimeStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.startsWith(
        property: r'updateTime',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> updateTimeEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.endsWith(
        property: r'updateTime',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
          QAfterFilterCondition>
      updateTimeContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.contains(
        property: r'updateTime',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
          QAfterFilterCondition>
      updateTimeMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.matches(
        property: r'updateTime',
        wildcard: pattern,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> updateTimeIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'updateTime',
        value: '',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> updateTimeIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        property: r'updateTime',
        value: '',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> uploadStatusIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNull(
        property: r'uploadStatus',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> uploadStatusIsNotNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNotNull(
        property: r'uploadStatus',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> uploadStatusEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'uploadStatus',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> uploadStatusGreaterThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        include: include,
        property: r'uploadStatus',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> uploadStatusLessThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.lessThan(
        include: include,
        property: r'uploadStatus',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> uploadStatusBetween(
    String? lower,
    String? upper, {
    bool includeLower = true,
    bool includeUpper = true,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.between(
        property: r'uploadStatus',
        lower: lower,
        includeLower: includeLower,
        upper: upper,
        includeUpper: includeUpper,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> uploadStatusStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.startsWith(
        property: r'uploadStatus',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> uploadStatusEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.endsWith(
        property: r'uploadStatus',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
          QAfterFilterCondition>
      uploadStatusContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.contains(
        property: r'uploadStatus',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
          QAfterFilterCondition>
      uploadStatusMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.matches(
        property: r'uploadStatus',
        wildcard: pattern,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> uploadStatusIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'uploadStatus',
        value: '',
      ));
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity,
      QAfterFilterCondition> uploadStatusIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        property: r'uploadStatus',
        value: '',
      ));
    });
  }
}

extension BreedingRecordEntityQueryObject on QueryBuilder<BreedingRecordEntity,
    BreedingRecordEntity, QFilterCondition> {}

extension BreedingRecordEntityQueryLinks on QueryBuilder<BreedingRecordEntity,
    BreedingRecordEntity, QFilterCondition> {}

extension BreedingRecordEntityQuerySortBy
    on QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QSortBy> {
  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      sortByBreedingPlantId() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'breedingPlantId', Sort.asc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      sortByBreedingPlantIdDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'breedingPlantId', Sort.desc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      sortByCattleresumeId() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'cattleresumeId', Sort.asc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      sortByCattleresumeIdDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'cattleresumeId', Sort.desc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      sortByCreateBy() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'createBy', Sort.asc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      sortByCreateByDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'createBy', Sort.desc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      sortByCreateTime() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'createTime', Sort.asc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      sortByCreateTimeDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'createTime', Sort.desc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      sortByDeptId() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'deptId', Sort.asc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      sortByDeptIdDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'deptId', Sort.desc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      sortByIndividualNo() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'individualNo', Sort.asc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      sortByIndividualNoDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'individualNo', Sort.desc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      sortByLocation() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'location', Sort.asc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      sortByLocationDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'location', Sort.desc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      sortByRaiseVarieties() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'raiseVarieties', Sort.asc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      sortByRaiseVarietiesDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'raiseVarieties', Sort.desc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      sortByRegistrationNo() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'registrationNo', Sort.asc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      sortByRegistrationNoDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'registrationNo', Sort.desc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      sortByRemark() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'remark', Sort.asc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      sortByRemarkDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'remark', Sort.desc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      sortBySearchValue() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'searchValue', Sort.asc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      sortBySearchValueDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'searchValue', Sort.desc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      sortByUnid() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'unid', Sort.asc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      sortByUnidDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'unid', Sort.desc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      sortByUpdateBy() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'updateBy', Sort.asc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      sortByUpdateByDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'updateBy', Sort.desc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      sortByUpdateTime() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'updateTime', Sort.asc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      sortByUpdateTimeDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'updateTime', Sort.desc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      sortByUploadStatus() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'uploadStatus', Sort.asc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      sortByUploadStatusDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'uploadStatus', Sort.desc);
    });
  }
}

extension BreedingRecordEntityQuerySortThenBy
    on QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QSortThenBy> {
  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      thenByBreedingPlantId() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'breedingPlantId', Sort.asc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      thenByBreedingPlantIdDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'breedingPlantId', Sort.desc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      thenByCattleresumeId() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'cattleresumeId', Sort.asc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      thenByCattleresumeIdDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'cattleresumeId', Sort.desc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      thenByCreateBy() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'createBy', Sort.asc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      thenByCreateByDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'createBy', Sort.desc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      thenByCreateTime() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'createTime', Sort.asc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      thenByCreateTimeDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'createTime', Sort.desc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      thenByDeptId() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'deptId', Sort.asc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      thenByDeptIdDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'deptId', Sort.desc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      thenById() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'id', Sort.asc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      thenByIdDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'id', Sort.desc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      thenByIndividualNo() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'individualNo', Sort.asc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      thenByIndividualNoDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'individualNo', Sort.desc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      thenByLocation() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'location', Sort.asc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      thenByLocationDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'location', Sort.desc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      thenByRaiseVarieties() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'raiseVarieties', Sort.asc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      thenByRaiseVarietiesDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'raiseVarieties', Sort.desc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      thenByRegistrationNo() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'registrationNo', Sort.asc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      thenByRegistrationNoDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'registrationNo', Sort.desc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      thenByRemark() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'remark', Sort.asc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      thenByRemarkDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'remark', Sort.desc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      thenBySearchValue() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'searchValue', Sort.asc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      thenBySearchValueDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'searchValue', Sort.desc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      thenByUnid() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'unid', Sort.asc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      thenByUnidDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'unid', Sort.desc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      thenByUpdateBy() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'updateBy', Sort.asc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      thenByUpdateByDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'updateBy', Sort.desc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      thenByUpdateTime() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'updateTime', Sort.asc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      thenByUpdateTimeDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'updateTime', Sort.desc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      thenByUploadStatus() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'uploadStatus', Sort.asc);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QAfterSortBy>
      thenByUploadStatusDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'uploadStatus', Sort.desc);
    });
  }
}

extension BreedingRecordEntityQueryWhereDistinct
    on QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QDistinct> {
  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QDistinct>
      distinctByBreedingPlantId({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(r'breedingPlantId',
          caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QDistinct>
      distinctByCattleresumeId({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(r'cattleresumeId',
          caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QDistinct>
      distinctByCreateBy({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(r'createBy', caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QDistinct>
      distinctByCreateTime({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(r'createTime', caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QDistinct>
      distinctByDeptId({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(r'deptId', caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QDistinct>
      distinctByIndividualNo({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(r'individualNo', caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QDistinct>
      distinctByLocation({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(r'location', caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QDistinct>
      distinctByRaiseVarieties({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(r'raiseVarieties',
          caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QDistinct>
      distinctByRegistrationNo({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(r'registrationNo',
          caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QDistinct>
      distinctByRemark({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(r'remark', caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QDistinct>
      distinctBySearchValue({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(r'searchValue', caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QDistinct>
      distinctByUnid({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(r'unid', caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QDistinct>
      distinctByUpdateBy({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(r'updateBy', caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QDistinct>
      distinctByUpdateTime({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(r'updateTime', caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<BreedingRecordEntity, BreedingRecordEntity, QDistinct>
      distinctByUploadStatus({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(r'uploadStatus', caseSensitive: caseSensitive);
    });
  }
}

extension BreedingRecordEntityQueryProperty on QueryBuilder<
    BreedingRecordEntity, BreedingRecordEntity, QQueryProperty> {
  QueryBuilder<BreedingRecordEntity, int, QQueryOperations> idProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addPropertyName(r'id');
    });
  }

  QueryBuilder<BreedingRecordEntity, String?, QQueryOperations>
      breedingPlantIdProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addPropertyName(r'breedingPlantId');
    });
  }

  QueryBuilder<BreedingRecordEntity, String?, QQueryOperations>
      cattleresumeIdProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addPropertyName(r'cattleresumeId');
    });
  }

  QueryBuilder<BreedingRecordEntity, String?, QQueryOperations>
      createByProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addPropertyName(r'createBy');
    });
  }

  QueryBuilder<BreedingRecordEntity, String?, QQueryOperations>
      createTimeProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addPropertyName(r'createTime');
    });
  }

  QueryBuilder<BreedingRecordEntity, String?, QQueryOperations>
      deptIdProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addPropertyName(r'deptId');
    });
  }

  QueryBuilder<BreedingRecordEntity, String?, QQueryOperations>
      individualNoProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addPropertyName(r'individualNo');
    });
  }

  QueryBuilder<BreedingRecordEntity, String?, QQueryOperations>
      locationProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addPropertyName(r'location');
    });
  }

  QueryBuilder<BreedingRecordEntity, String?, QQueryOperations>
      raiseVarietiesProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addPropertyName(r'raiseVarieties');
    });
  }

  QueryBuilder<BreedingRecordEntity, String?, QQueryOperations>
      registrationNoProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addPropertyName(r'registrationNo');
    });
  }

  QueryBuilder<BreedingRecordEntity, String?, QQueryOperations>
      remarkProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addPropertyName(r'remark');
    });
  }

  QueryBuilder<BreedingRecordEntity, String?, QQueryOperations>
      searchValueProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addPropertyName(r'searchValue');
    });
  }

  QueryBuilder<BreedingRecordEntity, String?, QQueryOperations> unidProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addPropertyName(r'unid');
    });
  }

  QueryBuilder<BreedingRecordEntity, String?, QQueryOperations>
      updateByProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addPropertyName(r'updateBy');
    });
  }

  QueryBuilder<BreedingRecordEntity, String?, QQueryOperations>
      updateTimeProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addPropertyName(r'updateTime');
    });
  }

  QueryBuilder<BreedingRecordEntity, String?, QQueryOperations>
      uploadStatusProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addPropertyName(r'uploadStatus');
    });
  }
}
