content: // GENERATED CODE - DO NOT MODIFY BY HAND
  
  part of 'update.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, always_specify_types
  
  extension GetUpdateCollection on Isar {
    IsarCollection<Update> get updates => this.collection();
  }
  
  const UpdateSchema = CollectionSchema(
    name: r'Update',
    id: -8192355249181452821,
    properties: {
      r'chapterName': PropertySchema(
        id: 0,
        name: r'chapterName',
        type: IsarType.string,
      ),
      r'date': PropertySchema(
        id: 1,
        name: r'date',
        type: IsarType.string,
      ),
      r'mangaId': PropertySchema(
        id: 2,
        name: r'mangaId',
        type: IsarType.long,
      ),
      r'updatedAt': PropertySchema(
        id: 3,
        name: r'updatedAt',
        type: IsarType.long,
      )
    },
    estimateSize: _updateEstimateSize,
    serialize: _updateSerialize,
    deserialize: _updateDeserialize,
    deserializeProp: _updateDeserializeProp,
    idName: r'id',
    indexes: {},
    links: {
      r'chapter': LinkSchema(
        id: -7524967726288995715,
        name: r'chapter',
        target: r'Chapter',
        single: true,
      )
    },
    embeddedSchemas: {},
    getId: _updateGetId,
    getLinks: _updateGetLinks,
    attach: _updateAttach,
    version: '3.1.0+1',
  );
  
  int _updateEstimateSize(
    Update object,
    List<int> offsets,
    Map<Type, List<int>> allOffsets,
  ) {
    var bytesCount = offsets.last;
    {
      final value = object.chapterName;
      if (value != null) {
        bytesCount += 3 + value.length * 3;
      }
    }
    {
      final value = object.date;
      if (value != null) {
        bytesCount += 3 + value.length * 3;
      }
    }
    return bytesCount;
  }
  
  void _updateSerialize(
    Update object,
    IsarWriter writer,
    List<int> offsets,
    Map<Type, List<int>> allOffsets,
  ) {
    writer.writeString(offsets[0], object.chapterName);
    writer.writeString(offsets[1], object.date);
    writer.writeLong(offsets[2], object.mangaId);
    writer.writeLong(offsets[3], object.updatedAt);
  }
  
  Update _updateDeserialize(
    Id id,
    IsarReader reader,
    List<int> offsets,
    Map<Type, List<int>> allOffsets,
  ) {
    final object = Update(
      chapterName: reader.readStringOrNull(offsets[0]),
      date: reader.readStringOrNull(offsets[1]),
      id: id,
      mangaId: reader.readLongOrNull(offsets[2]),
      updatedAt: reader.readLongOrNull(offsets[3]),
    );
    return object;
  }
  
  P _updateDeserializeProp<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.readLongOrNull(offset)) as P;
      case 3:
        return (reader.readLongOrNull(offset)) as P;
      default:
        throw IsarError('Unknown property with id $propertyId');
    }
  }
  
  Id _updateGetId(Update object) {
    return object.id ?? Isar.autoIncrement;
  }
  
  List<IsarLinkBase<dynamic>> _updateGetLinks(Update object) {
    return [object.chapter];
  }
  
  void _updateAttach(IsarCollection<dynamic> col, Id id, Update object) {
    object.id = id;
    object.chapter.attach(col, col.isar.collection<Chapter>(), r'chapter', id);
  }
  
  extension UpdateQueryWhereSort on QueryBuilder<Update, Update, QWhere> {
    QueryBuilder<Update, Update, QAfterWhere> anyId() {
      return QueryBuilder.apply(this, (query) {
        return query.addWhereClause(const IdWhereClause.any());
      });
    }
  }
  
  extension UpdateQueryWhere on QueryBuilder<Update, Update, QWhereClause> {
    QueryBuilder<Update, Update, QAfterWhereClause> idEqualTo(Id id) {
      return QueryBuilder.apply(this, (query) {
        return query.addWhereClause(IdWhereClause.between(
          lower: id,
          upper: id,
        ));
      });
    }
  
    QueryBuilder<Update, Update, 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<Update, Update, QAfterWhereClause> idGreaterThan(Id id,
        {bool include = false}) {
      return QueryBuilder.apply(this, (query) {
        return query.addWhereClause(
          IdWhereClause.greaterThan(lower: id, includeLower: include),
        );
      });
    }
  
    QueryBuilder<Update, Update, QAfterWhereClause> idLessThan(Id id,
        {bool include = false}) {
      return QueryBuilder.apply(this, (query) {
        return query.addWhereClause(
          IdWhereClause.lessThan(upper: id, includeUpper: include),
        );
      });
    }
  
    QueryBuilder<Update, Update, 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,
        ));
      });
    }
  }
  
  extension UpdateQueryFilter on QueryBuilder<Update, Update, QFilterCondition> {
    QueryBuilder<Update, Update, QAfterFilterCondition> chapterNameIsNull() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(const FilterCondition.isNull(
          property: r'chapterName',
        ));
      });
    }
  
    QueryBuilder<Update, Update, QAfterFilterCondition> chapterNameIsNotNull() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(const FilterCondition.isNotNull(
          property: r'chapterName',
        ));
      });
    }
  
    QueryBuilder<Update, Update, QAfterFilterCondition> chapterNameEqualTo(
      String? value, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(FilterCondition.equalTo(
          property: r'chapterName',
          value: value,
          caseSensitive: caseSensitive,
        ));
      });
    }
  
    QueryBuilder<Update, Update, QAfterFilterCondition> chapterNameGreaterThan(
      String? value, {
      bool include = false,
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(FilterCondition.greaterThan(
          include: include,
          property: r'chapterName',
          value: value,
          caseSensitive: caseSensitive,
        ));
      });
    }
  
    QueryBuilder<Update, Update, QAfterFilterCondition> chapterNameLessThan(
      String? value, {
      bool include = false,
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(FilterCondition.lessThan(
          include: include,
          property: r'chapterName',
          value: value,
          caseSensitive: caseSensitive,
        ));
      });
    }
  
    QueryBuilder<Update, Update, QAfterFilterCondition> chapterNameBetween(
      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'chapterName',
          lower: lower,
          includeLower: includeLower,
          upper: upper,
          includeUpper: includeUpper,
          caseSensitive: caseSensitive,
        ));
      });
    }
  
    QueryBuilder<Update, Update, QAfterFilterCondition> chapterNameStartsWith(
      String value, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(FilterCondition.startsWith(
          property: r'chapterName',
          value: value,
          caseSensitive: caseSensitive,
        ));
      });
    }
  
    QueryBuilder<Update, Update, QAfterFilterCondition> chapterNameEndsWith(
      String value, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(FilterCondition.endsWith(
          property: r'chapterName',
          value: value,
          caseSensitive: caseSensitive,
        ));
      });
    }
  
    QueryBuilder<Update, Update, QAfterFilterCondition> chapterNameContains(
        String value,
        {bool caseSensitive = true}) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(FilterCondition.contains(
          property: r'chapterName',
          value: value,
          caseSensitive: caseSensitive,
        ));
      });
    }
  
    QueryBuilder<Update, Update, QAfterFilterCondition> chapterNameMatches(
        String pattern,
        {bool caseSensitive = true}) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(FilterCondition.matches(
          property: r'chapterName',
          wildcard: pattern,
          caseSensitive: caseSensitive,
        ));
      });
    }
  
    QueryBuilder<Update, Update, QAfterFilterCondition> chapterNameIsEmpty() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(FilterCondition.equalTo(
          property: r'chapterName',
          value: '',
        ));
      });
    }
  
    QueryBuilder<Update, Update, QAfterFilterCondition> chapterNameIsNotEmpty() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(FilterCondition.greaterThan(
          property: r'chapterName',
          value: '',
        ));
      });
    }
  
    QueryBuilder<Update, Update, QAfterFilterCondition> dateIsNull() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(const FilterCondition.isNull(
          property: r'date',
        ));
      });
    }
  
    QueryBuilder<Update, Update, QAfterFilterCondition> dateIsNotNull() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(const FilterCondition.isNotNull(
          property: r'date',
        ));
      });
    }
  
    QueryBuilder<Update, Update, QAfterFilterCondition> dateEqualTo(
      String? value, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(FilterCondition.equalTo(
          property: r'date',
          value: value,
          caseSensitive: caseSensitive,
        ));
      });
    }
  
    QueryBuilder<Update, Update, QAfterFilterCondition> dateGreaterThan(
      String? value, {
      bool include = false,
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(FilterCondition.greaterThan(
          include: include,
          property: r'date',
          value: value,
          caseSensitive: caseSensitive,
        ));
      });
    }
  
    QueryBuilder<Update, Update, QAfterFilterCondition> dateLessThan(
      String? value, {
      bool include = false,
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(FilterCondition.lessThan(
          include: include,
          property: r'date',
          value: value,
          caseSensitive: caseSensitive,
        ));
      });
    }
  
    QueryBuilder<Update, Update, QAfterFilterCondition> dateBetween(
      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'date',
          lower: lower,
          includeLower: includeLower,
          upper: upper,
          includeUpper: includeUpper,
          caseSensitive: caseSensitive,
        ));
      });
    }
  
    QueryBuilder<Update, Update, QAfterFilterCondition> dateStartsWith(
      String value, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(FilterCondition.startsWith(
          property: r'date',
          value: value,
          caseSensitive: caseSensitive,
        ));
      });
    }
  
    QueryBuilder<Update, Update, QAfterFilterCondition> dateEndsWith(
      String value, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(FilterCondition.endsWith(
          property: r'date',
          value: value,
          caseSensitive: caseSensitive,
        ));
      });
    }
  
    QueryBuilder<Update, Update, QAfterFilterCondition> dateContains(String value,
        {bool caseSensitive = true}) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(FilterCondition.contains(
          property: r'date',
          value: value,
          caseSensitive: caseSensitive,
        ));
      });
    }
  
    QueryBuilder<Update, Update, QAfterFilterCondition> dateMatches(
        String pattern,
        {bool caseSensitive = true}) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(FilterCondition.matches(
          property: r'date',
          wildcard: pattern,
          caseSensitive: caseSensitive,
        ));
      });
    }
  
    QueryBuilder<Update, Update, QAfterFilterCondition> dateIsEmpty() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(FilterCondition.equalTo(
          property: r'date',
          value: '',
        ));
      });
    }
  
    QueryBuilder<Update, Update, QAfterFilterCondition> dateIsNotEmpty() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(FilterCondition.greaterThan(
          property: r'date',
          value: '',
        ));
      });
    }
  
    QueryBuilder<Update, Update, QAfterFilterCondition> idIsNull() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(const FilterCondition.isNull(
          property: r'id',
        ));
      });
    }
  
    QueryBuilder<Update, Update, QAfterFilterCondition> idIsNotNull() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(const FilterCondition.isNotNull(
          property: r'id',
        ));
      });
    }
  
    QueryBuilder<Update, Update, QAfterFilterCondition> idEqualTo(Id? value) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(FilterCondition.equalTo(
          property: r'id',
          value: value,
        ));
      });
    }
  
    QueryBuilder<Update, Update, 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<Update, Update, 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<Update, Update, 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<Update, Update, QAfterFilterCondition> mangaIdIsNull() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(const FilterCondition.isNull(
          property: r'mangaId',
        ));
      });
    }
  
    QueryBuilder<Update, Update, QAfterFilterCondition> mangaIdIsNotNull() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(const FilterCondition.isNotNull(
          property: r'mangaId',
        ));
      });
    }
  
    QueryBuilder<Update, Update, QAfterFilterCondition> mangaIdEqualTo(
        int? value) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(FilterCondition.equalTo(
          property: r'mangaId',
          value: value,
        ));
      });
    }
  
    QueryBuilder<Update, Update, QAfterFilterCondition> mangaIdGreaterThan(
      int? value, {
      bool include = false,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(FilterCondition.greaterThan(
          include: include,
          property: r'mangaId',
          value: value,
        ));
      });
    }
  
    QueryBuilder<Update, Update, QAfterFilterCondition> mangaIdLessThan(
      int? value, {
      bool include = false,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(FilterCondition.lessThan(
          include: include,
          property: r'mangaId',
          value: value,
        ));
      });
    }
  
    QueryBuilder<Update, Update, QAfterFilterCondition> mangaIdBetween(
      int? lower,
      int? upper, {
      bool includeLower = true,
      bool includeUpper = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(FilterCondition.between(
          property: r'mangaId',
          lower: lower,
          includeLower: includeLower,
          upper: upper,
          includeUpper: includeUpper,
        ));
      });
    }
  
    QueryBuilder<Update, Update, QAfterFilterCondition> updatedAtIsNull() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(const FilterCondition.isNull(
          property: r'updatedAt',
        ));
      });
    }
  
    QueryBuilder<Update, Update, QAfterFilterCondition> updatedAtIsNotNull() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(const FilterCondition.isNotNull(
          property: r'updatedAt',
        ));
      });
    }
  
    QueryBuilder<Update, Update, QAfterFilterCondition> updatedAtEqualTo(
        int? value) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(FilterCondition.equalTo(
          property: r'updatedAt',
          value: value,
        ));
      });
    }
  
    QueryBuilder<Update, Update, QAfterFilterCondition> updatedAtGreaterThan(
      int? value, {
      bool include = false,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(FilterCondition.greaterThan(
          include: include,
          property: r'updatedAt',
          value: value,
        ));
      });
    }
  
    QueryBuilder<Update, Update, QAfterFilterCondition> updatedAtLessThan(
      int? value, {
      bool include = false,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(FilterCondition.lessThan(
          include: include,
          property: r'updatedAt',
          value: value,
        ));
      });
    }
  
    QueryBuilder<Update, Update, QAfterFilterCondition> updatedAtBetween(
      int? lower,
      int? upper, {
      bool includeLower = true,
      bool includeUpper = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(FilterCondition.between(
          property: r'updatedAt',
          lower: lower,
          includeLower: includeLower,
          upper: upper,
          includeUpper: includeUpper,
        ));
      });
    }
  }
  
  extension UpdateQueryObject on QueryBuilder<Update, Update, QFilterCondition> {}
  
  extension UpdateQueryLinks on QueryBuilder<Update, Update, QFilterCondition> {
    QueryBuilder<Update, Update, QAfterFilterCondition> chapter(
        FilterQuery<Chapter> q) {
      return QueryBuilder.apply(this, (query) {
        return query.link(q, r'chapter');
      });
    }
  
    QueryBuilder<Update, Update, QAfterFilterCondition> chapterIsNull() {
      return QueryBuilder.apply(this, (query) {
        return query.linkLength(r'chapter', 0, true, 0, true);
      });
    }
  }
  
  extension UpdateQuerySortBy on QueryBuilder<Update, Update, QSortBy> {
    QueryBuilder<Update, Update, QAfterSortBy> sortByChapterName() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'chapterName', Sort.asc);
      });
    }
  
    QueryBuilder<Update, Update, QAfterSortBy> sortByChapterNameDesc() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'chapterName', Sort.desc);
      });
    }
  
    QueryBuilder<Update, Update, QAfterSortBy> sortByDate() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'date', Sort.asc);
      });
    }
  
    QueryBuilder<Update, Update, QAfterSortBy> sortByDateDesc() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'date', Sort.desc);
      });
    }
  
    QueryBuilder<Update, Update, QAfterSortBy> sortByMangaId() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'mangaId', Sort.asc);
      });
    }
  
    QueryBuilder<Update, Update, QAfterSortBy> sortByMangaIdDesc() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'mangaId', Sort.desc);
      });
    }
  
    QueryBuilder<Update, Update, QAfterSortBy> sortByUpdatedAt() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'updatedAt', Sort.asc);
      });
    }
  
    QueryBuilder<Update, Update, QAfterSortBy> sortByUpdatedAtDesc() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'updatedAt', Sort.desc);
      });
    }
  }
  
  extension UpdateQuerySortThenBy on QueryBuilder<Update, Update, QSortThenBy> {
    QueryBuilder<Update, Update, QAfterSortBy> thenByChapterName() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'chapterName', Sort.asc);
      });
    }
  
    QueryBuilder<Update, Update, QAfterSortBy> thenByChapterNameDesc() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'chapterName', Sort.desc);
      });
    }
  
    QueryBuilder<Update, Update, QAfterSortBy> thenByDate() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'date', Sort.asc);
      });
    }
  
    QueryBuilder<Update, Update, QAfterSortBy> thenByDateDesc() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'date', Sort.desc);
      });
    }
  
    QueryBuilder<Update, Update, QAfterSortBy> thenById() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'id', Sort.asc);
      });
    }
  
    QueryBuilder<Update, Update, QAfterSortBy> thenByIdDesc() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'id', Sort.desc);
      });
    }
  
    QueryBuilder<Update, Update, QAfterSortBy> thenByMangaId() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'mangaId', Sort.asc);
      });
    }
  
    QueryBuilder<Update, Update, QAfterSortBy> thenByMangaIdDesc() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'mangaId', Sort.desc);
      });
    }
  
    QueryBuilder<Update, Update, QAfterSortBy> thenByUpdatedAt() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'updatedAt', Sort.asc);
      });
    }
  
    QueryBuilder<Update, Update, QAfterSortBy> thenByUpdatedAtDesc() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'updatedAt', Sort.desc);
      });
    }
  }
  
  extension UpdateQueryWhereDistinct on QueryBuilder<Update, Update, QDistinct> {
    QueryBuilder<Update, Update, QDistinct> distinctByChapterName(
        {bool caseSensitive = true}) {
      return QueryBuilder.apply(this, (query) {
        return query.addDistinctBy(r'chapterName', caseSensitive: caseSensitive);
      });
    }
  
    QueryBuilder<Update, Update, QDistinct> distinctByDate(
        {bool caseSensitive = true}) {
      return QueryBuilder.apply(this, (query) {
        return query.addDistinctBy(r'date', caseSensitive: caseSensitive);
      });
    }
  
    QueryBuilder<Update, Update, QDistinct> distinctByMangaId() {
      return QueryBuilder.apply(this, (query) {
        return query.addDistinctBy(r'mangaId');
      });
    }
  
    QueryBuilder<Update, Update, QDistinct> distinctByUpdatedAt() {
      return QueryBuilder.apply(this, (query) {
        return query.addDistinctBy(r'updatedAt');
      });
    }
  }
  
  extension UpdateQueryProperty on QueryBuilder<Update, Update, QQueryProperty> {
    QueryBuilder<Update, int, QQueryOperations> idProperty() {
      return QueryBuilder.apply(this, (query) {
        return query.addPropertyName(r'id');
      });
    }
  
    QueryBuilder<Update, String?, QQueryOperations> chapterNameProperty() {
      return QueryBuilder.apply(this, (query) {
        return query.addPropertyName(r'chapterName');
      });
    }
  
    QueryBuilder<Update, String?, QQueryOperations> dateProperty() {
      return QueryBuilder.apply(this, (query) {
        return query.addPropertyName(r'date');
      });
    }
  
    QueryBuilder<Update, int?, QQueryOperations> mangaIdProperty() {
      return QueryBuilder.apply(this, (query) {
        return query.addPropertyName(r'mangaId');
      });
    }
  
    QueryBuilder<Update, int?, QQueryOperations> updatedAtProperty() {
      return QueryBuilder.apply(this, (query) {
        return query.addPropertyName(r'updatedAt');
      });
    }
  }
  