content: // GENERATED CODE - DO NOT MODIFY BY HAND
  
  part of 'chapter.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 GetChapterCollection on Isar {
    IsarCollection<Chapter> get chapters => this.collection();
  }
  
  const ChapterSchema = CollectionSchema(
    name: r'Chapter',
    id: -7604549436611156012,
    properties: {
      r'archivePath': PropertySchema(
        id: 0,
        name: r'archivePath',
        type: IsarType.string,
      ),
      r'dateUpload': PropertySchema(
        id: 1,
        name: r'dateUpload',
        type: IsarType.string,
      ),
      r'description': PropertySchema(
        id: 2,
        name: r'description',
        type: IsarType.string,
      ),
      r'downloadSize': PropertySchema(
        id: 3,
        name: r'downloadSize',
        type: IsarType.string,
      ),
      r'duration': PropertySchema(
        id: 4,
        name: r'duration',
        type: IsarType.string,
      ),
      r'isBookmarked': PropertySchema(
        id: 5,
        name: r'isBookmarked',
        type: IsarType.bool,
      ),
      r'isFiller': PropertySchema(id: 6, name: r'isFiller', type: IsarType.bool),
      r'isRead': PropertySchema(id: 7, name: r'isRead', type: IsarType.bool),
      r'lastPageRead': PropertySchema(
        id: 8,
        name: r'lastPageRead',
        type: IsarType.string,
      ),
      r'mangaId': PropertySchema(id: 9, name: r'mangaId', type: IsarType.long),
      r'name': PropertySchema(id: 10, name: r'name', type: IsarType.string),
      r'scanlator': PropertySchema(
        id: 11,
        name: r'scanlator',
        type: IsarType.string,
      ),
      r'thumbnailUrl': PropertySchema(
        id: 12,
        name: r'thumbnailUrl',
        type: IsarType.string,
      ),
      r'updatedAt': PropertySchema(
        id: 13,
        name: r'updatedAt',
        type: IsarType.long,
      ),
      r'url': PropertySchema(id: 14, name: r'url', type: IsarType.string),
    },
  
    estimateSize: _chapterEstimateSize,
    serialize: _chapterSerialize,
    deserialize: _chapterDeserialize,
    deserializeProp: _chapterDeserializeProp,
    idName: r'id',
    indexes: {},
    links: {
      r'manga': LinkSchema(
        id: -8510956094935473973,
        name: r'manga',
        target: r'Manga',
        single: true,
      ),
    },
    embeddedSchemas: {},
  
    getId: _chapterGetId,
    getLinks: _chapterGetLinks,
    attach: _chapterAttach,
    version: '3.1.0+1',
  );
  
  int _chapterEstimateSize(
    Chapter object,
    List<int> offsets,
    Map<Type, List<int>> allOffsets,
  ) {
    var bytesCount = offsets.last;
    {
      final value = object.archivePath;
      if (value != null) {
        bytesCount += 3 + value.length * 3;
      }
    }
    {
      final value = object.dateUpload;
      if (value != null) {
        bytesCount += 3 + value.length * 3;
      }
    }
    {
      final value = object.description;
      if (value != null) {
        bytesCount += 3 + value.length * 3;
      }
    }
    {
      final value = object.downloadSize;
      if (value != null) {
        bytesCount += 3 + value.length * 3;
      }
    }
    {
      final value = object.duration;
      if (value != null) {
        bytesCount += 3 + value.length * 3;
      }
    }
    {
      final value = object.lastPageRead;
      if (value != null) {
        bytesCount += 3 + value.length * 3;
      }
    }
    {
      final value = object.name;
      if (value != null) {
        bytesCount += 3 + value.length * 3;
      }
    }
    {
      final value = object.scanlator;
      if (value != null) {
        bytesCount += 3 + value.length * 3;
      }
    }
    {
      final value = object.thumbnailUrl;
      if (value != null) {
        bytesCount += 3 + value.length * 3;
      }
    }
    {
      final value = object.url;
      if (value != null) {
        bytesCount += 3 + value.length * 3;
      }
    }
    return bytesCount;
  }
  
  void _chapterSerialize(
    Chapter object,
    IsarWriter writer,
    List<int> offsets,
    Map<Type, List<int>> allOffsets,
  ) {
    writer.writeString(offsets[0], object.archivePath);
    writer.writeString(offsets[1], object.dateUpload);
    writer.writeString(offsets[2], object.description);
    writer.writeString(offsets[3], object.downloadSize);
    writer.writeString(offsets[4], object.duration);
    writer.writeBool(offsets[5], object.isBookmarked);
    writer.writeBool(offsets[6], object.isFiller);
    writer.writeBool(offsets[7], object.isRead);
    writer.writeString(offsets[8], object.lastPageRead);
    writer.writeLong(offsets[9], object.mangaId);
    writer.writeString(offsets[10], object.name);
    writer.writeString(offsets[11], object.scanlator);
    writer.writeString(offsets[12], object.thumbnailUrl);
    writer.writeLong(offsets[13], object.updatedAt);
    writer.writeString(offsets[14], object.url);
  }
  
  Chapter _chapterDeserialize(
    Id id,
    IsarReader reader,
    List<int> offsets,
    Map<Type, List<int>> allOffsets,
  ) {
    final object = Chapter(
      archivePath: reader.readStringOrNull(offsets[0]),
      dateUpload: reader.readStringOrNull(offsets[1]),
      description: reader.readStringOrNull(offsets[2]),
      downloadSize: reader.readStringOrNull(offsets[3]),
      duration: reader.readStringOrNull(offsets[4]),
      id: id,
      isBookmarked: reader.readBoolOrNull(offsets[5]),
      isFiller: reader.readBoolOrNull(offsets[6]),
      isRead: reader.readBoolOrNull(offsets[7]),
      lastPageRead: reader.readStringOrNull(offsets[8]),
      mangaId: reader.readLongOrNull(offsets[9]),
      name: reader.readStringOrNull(offsets[10]),
      scanlator: reader.readStringOrNull(offsets[11]),
      thumbnailUrl: reader.readStringOrNull(offsets[12]),
      updatedAt: reader.readLongOrNull(offsets[13]),
      url: reader.readStringOrNull(offsets[14]),
    );
    return object;
  }
  
  P _chapterDeserializeProp<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.readBoolOrNull(offset)) as P;
      case 6:
        return (reader.readBoolOrNull(offset)) as P;
      case 7:
        return (reader.readBoolOrNull(offset)) as P;
      case 8:
        return (reader.readStringOrNull(offset)) as P;
      case 9:
        return (reader.readLongOrNull(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.readLongOrNull(offset)) as P;
      case 14:
        return (reader.readStringOrNull(offset)) as P;
      default:
        throw IsarError('Unknown property with id $propertyId');
    }
  }
  
  Id _chapterGetId(Chapter object) {
    return object.id ?? Isar.autoIncrement;
  }
  
  List<IsarLinkBase<dynamic>> _chapterGetLinks(Chapter object) {
    return [object.manga];
  }
  
  void _chapterAttach(IsarCollection<dynamic> col, Id id, Chapter object) {
    object.id = id;
    object.manga.attach(col, col.isar.collection<Manga>(), r'manga', id);
  }
  
  extension ChapterQueryWhereSort on QueryBuilder<Chapter, Chapter, QWhere> {
    QueryBuilder<Chapter, Chapter, QAfterWhere> anyId() {
      return QueryBuilder.apply(this, (query) {
        return query.addWhereClause(const IdWhereClause.any());
      });
    }
  }
  
  extension ChapterQueryWhere on QueryBuilder<Chapter, Chapter, QWhereClause> {
    QueryBuilder<Chapter, Chapter, QAfterWhereClause> idEqualTo(Id id) {
      return QueryBuilder.apply(this, (query) {
        return query.addWhereClause(IdWhereClause.between(lower: id, upper: id));
      });
    }
  
    QueryBuilder<Chapter, Chapter, 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<Chapter, Chapter, QAfterWhereClause> idGreaterThan(
      Id id, {
      bool include = false,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addWhereClause(
          IdWhereClause.greaterThan(lower: id, includeLower: include),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterWhereClause> idLessThan(
      Id id, {
      bool include = false,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addWhereClause(
          IdWhereClause.lessThan(upper: id, includeUpper: include),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, 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 ChapterQueryFilter
      on QueryBuilder<Chapter, Chapter, QFilterCondition> {
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> archivePathIsNull() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          const FilterCondition.isNull(property: r'archivePath'),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> archivePathIsNotNull() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          const FilterCondition.isNotNull(property: r'archivePath'),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> archivePathEqualTo(
      String? value, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.equalTo(
            property: r'archivePath',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> archivePathGreaterThan(
      String? value, {
      bool include = false,
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.greaterThan(
            include: include,
            property: r'archivePath',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> archivePathLessThan(
      String? value, {
      bool include = false,
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.lessThan(
            include: include,
            property: r'archivePath',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> archivePathBetween(
      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'archivePath',
            lower: lower,
            includeLower: includeLower,
            upper: upper,
            includeUpper: includeUpper,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> archivePathStartsWith(
      String value, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.startsWith(
            property: r'archivePath',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> archivePathEndsWith(
      String value, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.endsWith(
            property: r'archivePath',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> archivePathContains(
      String value, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.contains(
            property: r'archivePath',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> archivePathMatches(
      String pattern, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.matches(
            property: r'archivePath',
            wildcard: pattern,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> archivePathIsEmpty() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.equalTo(property: r'archivePath', value: ''),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition>
    archivePathIsNotEmpty() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.greaterThan(property: r'archivePath', value: ''),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> dateUploadIsNull() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          const FilterCondition.isNull(property: r'dateUpload'),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> dateUploadIsNotNull() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          const FilterCondition.isNotNull(property: r'dateUpload'),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> dateUploadEqualTo(
      String? value, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.equalTo(
            property: r'dateUpload',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> dateUploadGreaterThan(
      String? value, {
      bool include = false,
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.greaterThan(
            include: include,
            property: r'dateUpload',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> dateUploadLessThan(
      String? value, {
      bool include = false,
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.lessThan(
            include: include,
            property: r'dateUpload',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> dateUploadBetween(
      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'dateUpload',
            lower: lower,
            includeLower: includeLower,
            upper: upper,
            includeUpper: includeUpper,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> dateUploadStartsWith(
      String value, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.startsWith(
            property: r'dateUpload',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> dateUploadEndsWith(
      String value, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.endsWith(
            property: r'dateUpload',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> dateUploadContains(
      String value, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.contains(
            property: r'dateUpload',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> dateUploadMatches(
      String pattern, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.matches(
            property: r'dateUpload',
            wildcard: pattern,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> dateUploadIsEmpty() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.equalTo(property: r'dateUpload', value: ''),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> dateUploadIsNotEmpty() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.greaterThan(property: r'dateUpload', value: ''),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> descriptionIsNull() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          const FilterCondition.isNull(property: r'description'),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> descriptionIsNotNull() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          const FilterCondition.isNotNull(property: r'description'),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> descriptionEqualTo(
      String? value, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.equalTo(
            property: r'description',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> descriptionGreaterThan(
      String? value, {
      bool include = false,
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.greaterThan(
            include: include,
            property: r'description',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> descriptionLessThan(
      String? value, {
      bool include = false,
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.lessThan(
            include: include,
            property: r'description',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> descriptionBetween(
      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'description',
            lower: lower,
            includeLower: includeLower,
            upper: upper,
            includeUpper: includeUpper,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> descriptionStartsWith(
      String value, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.startsWith(
            property: r'description',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> descriptionEndsWith(
      String value, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.endsWith(
            property: r'description',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> descriptionContains(
      String value, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.contains(
            property: r'description',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> descriptionMatches(
      String pattern, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.matches(
            property: r'description',
            wildcard: pattern,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> descriptionIsEmpty() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.equalTo(property: r'description', value: ''),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition>
    descriptionIsNotEmpty() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.greaterThan(property: r'description', value: ''),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> downloadSizeIsNull() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          const FilterCondition.isNull(property: r'downloadSize'),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition>
    downloadSizeIsNotNull() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          const FilterCondition.isNotNull(property: r'downloadSize'),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> downloadSizeEqualTo(
      String? value, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.equalTo(
            property: r'downloadSize',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> downloadSizeGreaterThan(
      String? value, {
      bool include = false,
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.greaterThan(
            include: include,
            property: r'downloadSize',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> downloadSizeLessThan(
      String? value, {
      bool include = false,
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.lessThan(
            include: include,
            property: r'downloadSize',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> downloadSizeBetween(
      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'downloadSize',
            lower: lower,
            includeLower: includeLower,
            upper: upper,
            includeUpper: includeUpper,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> downloadSizeStartsWith(
      String value, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.startsWith(
            property: r'downloadSize',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> downloadSizeEndsWith(
      String value, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.endsWith(
            property: r'downloadSize',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> downloadSizeContains(
      String value, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.contains(
            property: r'downloadSize',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> downloadSizeMatches(
      String pattern, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.matches(
            property: r'downloadSize',
            wildcard: pattern,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> downloadSizeIsEmpty() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.equalTo(property: r'downloadSize', value: ''),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition>
    downloadSizeIsNotEmpty() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.greaterThan(property: r'downloadSize', value: ''),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> durationIsNull() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          const FilterCondition.isNull(property: r'duration'),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> durationIsNotNull() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          const FilterCondition.isNotNull(property: r'duration'),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> durationEqualTo(
      String? value, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.equalTo(
            property: r'duration',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> durationGreaterThan(
      String? value, {
      bool include = false,
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.greaterThan(
            include: include,
            property: r'duration',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> durationLessThan(
      String? value, {
      bool include = false,
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.lessThan(
            include: include,
            property: r'duration',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> durationBetween(
      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'duration',
            lower: lower,
            includeLower: includeLower,
            upper: upper,
            includeUpper: includeUpper,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> durationStartsWith(
      String value, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.startsWith(
            property: r'duration',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> durationEndsWith(
      String value, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.endsWith(
            property: r'duration',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> durationContains(
      String value, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.contains(
            property: r'duration',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> durationMatches(
      String pattern, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.matches(
            property: r'duration',
            wildcard: pattern,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> durationIsEmpty() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.equalTo(property: r'duration', value: ''),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> durationIsNotEmpty() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.greaterThan(property: r'duration', value: ''),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> idIsNull() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          const FilterCondition.isNull(property: r'id'),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> idIsNotNull() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          const FilterCondition.isNotNull(property: r'id'),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> idEqualTo(Id? value) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.equalTo(property: r'id', value: value),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, 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<Chapter, Chapter, 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<Chapter, Chapter, 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<Chapter, Chapter, QAfterFilterCondition> isBookmarkedIsNull() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          const FilterCondition.isNull(property: r'isBookmarked'),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition>
    isBookmarkedIsNotNull() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          const FilterCondition.isNotNull(property: r'isBookmarked'),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> isBookmarkedEqualTo(
      bool? value,
    ) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.equalTo(property: r'isBookmarked', value: value),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> isFillerIsNull() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          const FilterCondition.isNull(property: r'isFiller'),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> isFillerIsNotNull() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          const FilterCondition.isNotNull(property: r'isFiller'),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> isFillerEqualTo(
      bool? value,
    ) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.equalTo(property: r'isFiller', value: value),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> isReadIsNull() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          const FilterCondition.isNull(property: r'isRead'),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> isReadIsNotNull() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          const FilterCondition.isNotNull(property: r'isRead'),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> isReadEqualTo(
      bool? value,
    ) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.equalTo(property: r'isRead', value: value),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> lastPageReadIsNull() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          const FilterCondition.isNull(property: r'lastPageRead'),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition>
    lastPageReadIsNotNull() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          const FilterCondition.isNotNull(property: r'lastPageRead'),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> lastPageReadEqualTo(
      String? value, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.equalTo(
            property: r'lastPageRead',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> lastPageReadGreaterThan(
      String? value, {
      bool include = false,
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.greaterThan(
            include: include,
            property: r'lastPageRead',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> lastPageReadLessThan(
      String? value, {
      bool include = false,
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.lessThan(
            include: include,
            property: r'lastPageRead',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> lastPageReadBetween(
      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'lastPageRead',
            lower: lower,
            includeLower: includeLower,
            upper: upper,
            includeUpper: includeUpper,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> lastPageReadStartsWith(
      String value, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.startsWith(
            property: r'lastPageRead',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> lastPageReadEndsWith(
      String value, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.endsWith(
            property: r'lastPageRead',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> lastPageReadContains(
      String value, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.contains(
            property: r'lastPageRead',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> lastPageReadMatches(
      String pattern, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.matches(
            property: r'lastPageRead',
            wildcard: pattern,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> lastPageReadIsEmpty() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.equalTo(property: r'lastPageRead', value: ''),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition>
    lastPageReadIsNotEmpty() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.greaterThan(property: r'lastPageRead', value: ''),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> mangaIdIsNull() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          const FilterCondition.isNull(property: r'mangaId'),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> mangaIdIsNotNull() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          const FilterCondition.isNotNull(property: r'mangaId'),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> mangaIdEqualTo(
      int? value,
    ) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.equalTo(property: r'mangaId', value: value),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, 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<Chapter, Chapter, 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<Chapter, Chapter, 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<Chapter, Chapter, QAfterFilterCondition> nameIsNull() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          const FilterCondition.isNull(property: r'name'),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> nameIsNotNull() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          const FilterCondition.isNotNull(property: r'name'),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> nameEqualTo(
      String? value, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.equalTo(
            property: r'name',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> nameGreaterThan(
      String? value, {
      bool include = false,
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.greaterThan(
            include: include,
            property: r'name',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> nameLessThan(
      String? value, {
      bool include = false,
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.lessThan(
            include: include,
            property: r'name',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> nameBetween(
      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'name',
            lower: lower,
            includeLower: includeLower,
            upper: upper,
            includeUpper: includeUpper,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> nameStartsWith(
      String value, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.startsWith(
            property: r'name',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> nameEndsWith(
      String value, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.endsWith(
            property: r'name',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> nameContains(
      String value, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.contains(
            property: r'name',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> nameMatches(
      String pattern, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.matches(
            property: r'name',
            wildcard: pattern,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> nameIsEmpty() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.equalTo(property: r'name', value: ''),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> nameIsNotEmpty() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.greaterThan(property: r'name', value: ''),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> scanlatorIsNull() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          const FilterCondition.isNull(property: r'scanlator'),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> scanlatorIsNotNull() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          const FilterCondition.isNotNull(property: r'scanlator'),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> scanlatorEqualTo(
      String? value, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.equalTo(
            property: r'scanlator',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> scanlatorGreaterThan(
      String? value, {
      bool include = false,
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.greaterThan(
            include: include,
            property: r'scanlator',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> scanlatorLessThan(
      String? value, {
      bool include = false,
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.lessThan(
            include: include,
            property: r'scanlator',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> scanlatorBetween(
      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'scanlator',
            lower: lower,
            includeLower: includeLower,
            upper: upper,
            includeUpper: includeUpper,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> scanlatorStartsWith(
      String value, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.startsWith(
            property: r'scanlator',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> scanlatorEndsWith(
      String value, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.endsWith(
            property: r'scanlator',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> scanlatorContains(
      String value, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.contains(
            property: r'scanlator',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> scanlatorMatches(
      String pattern, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.matches(
            property: r'scanlator',
            wildcard: pattern,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> scanlatorIsEmpty() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.equalTo(property: r'scanlator', value: ''),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> scanlatorIsNotEmpty() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.greaterThan(property: r'scanlator', value: ''),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> thumbnailUrlIsNull() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          const FilterCondition.isNull(property: r'thumbnailUrl'),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition>
    thumbnailUrlIsNotNull() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          const FilterCondition.isNotNull(property: r'thumbnailUrl'),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> thumbnailUrlEqualTo(
      String? value, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.equalTo(
            property: r'thumbnailUrl',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> thumbnailUrlGreaterThan(
      String? value, {
      bool include = false,
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.greaterThan(
            include: include,
            property: r'thumbnailUrl',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> thumbnailUrlLessThan(
      String? value, {
      bool include = false,
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.lessThan(
            include: include,
            property: r'thumbnailUrl',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> thumbnailUrlBetween(
      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'thumbnailUrl',
            lower: lower,
            includeLower: includeLower,
            upper: upper,
            includeUpper: includeUpper,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> thumbnailUrlStartsWith(
      String value, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.startsWith(
            property: r'thumbnailUrl',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> thumbnailUrlEndsWith(
      String value, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.endsWith(
            property: r'thumbnailUrl',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> thumbnailUrlContains(
      String value, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.contains(
            property: r'thumbnailUrl',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> thumbnailUrlMatches(
      String pattern, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.matches(
            property: r'thumbnailUrl',
            wildcard: pattern,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> thumbnailUrlIsEmpty() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.equalTo(property: r'thumbnailUrl', value: ''),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition>
    thumbnailUrlIsNotEmpty() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.greaterThan(property: r'thumbnailUrl', value: ''),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> updatedAtIsNull() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          const FilterCondition.isNull(property: r'updatedAt'),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> updatedAtIsNotNull() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          const FilterCondition.isNotNull(property: r'updatedAt'),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> updatedAtEqualTo(
      int? value,
    ) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.equalTo(property: r'updatedAt', value: value),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, 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<Chapter, Chapter, 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<Chapter, Chapter, 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,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> urlIsNull() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          const FilterCondition.isNull(property: r'url'),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> urlIsNotNull() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          const FilterCondition.isNotNull(property: r'url'),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> urlEqualTo(
      String? value, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.equalTo(
            property: r'url',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> urlGreaterThan(
      String? value, {
      bool include = false,
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.greaterThan(
            include: include,
            property: r'url',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> urlLessThan(
      String? value, {
      bool include = false,
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.lessThan(
            include: include,
            property: r'url',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> urlBetween(
      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'url',
            lower: lower,
            includeLower: includeLower,
            upper: upper,
            includeUpper: includeUpper,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> urlStartsWith(
      String value, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.startsWith(
            property: r'url',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> urlEndsWith(
      String value, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.endsWith(
            property: r'url',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> urlContains(
      String value, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.contains(
            property: r'url',
            value: value,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> urlMatches(
      String pattern, {
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.matches(
            property: r'url',
            wildcard: pattern,
            caseSensitive: caseSensitive,
          ),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> urlIsEmpty() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.equalTo(property: r'url', value: ''),
        );
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> urlIsNotEmpty() {
      return QueryBuilder.apply(this, (query) {
        return query.addFilterCondition(
          FilterCondition.greaterThan(property: r'url', value: ''),
        );
      });
    }
  }
  
  extension ChapterQueryObject
      on QueryBuilder<Chapter, Chapter, QFilterCondition> {}
  
  extension ChapterQueryLinks
      on QueryBuilder<Chapter, Chapter, QFilterCondition> {
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> manga(
      FilterQuery<Manga> q,
    ) {
      return QueryBuilder.apply(this, (query) {
        return query.link(q, r'manga');
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterFilterCondition> mangaIsNull() {
      return QueryBuilder.apply(this, (query) {
        return query.linkLength(r'manga', 0, true, 0, true);
      });
    }
  }
  
  extension ChapterQuerySortBy on QueryBuilder<Chapter, Chapter, QSortBy> {
    QueryBuilder<Chapter, Chapter, QAfterSortBy> sortByArchivePath() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'archivePath', Sort.asc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> sortByArchivePathDesc() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'archivePath', Sort.desc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> sortByDateUpload() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'dateUpload', Sort.asc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> sortByDateUploadDesc() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'dateUpload', Sort.desc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> sortByDescription() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'description', Sort.asc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> sortByDescriptionDesc() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'description', Sort.desc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> sortByDownloadSize() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'downloadSize', Sort.asc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> sortByDownloadSizeDesc() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'downloadSize', Sort.desc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> sortByDuration() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'duration', Sort.asc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> sortByDurationDesc() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'duration', Sort.desc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> sortByIsBookmarked() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'isBookmarked', Sort.asc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> sortByIsBookmarkedDesc() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'isBookmarked', Sort.desc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> sortByIsFiller() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'isFiller', Sort.asc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> sortByIsFillerDesc() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'isFiller', Sort.desc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> sortByIsRead() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'isRead', Sort.asc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> sortByIsReadDesc() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'isRead', Sort.desc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> sortByLastPageRead() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'lastPageRead', Sort.asc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> sortByLastPageReadDesc() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'lastPageRead', Sort.desc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> sortByMangaId() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'mangaId', Sort.asc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> sortByMangaIdDesc() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'mangaId', Sort.desc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> sortByName() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'name', Sort.asc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> sortByNameDesc() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'name', Sort.desc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> sortByScanlator() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'scanlator', Sort.asc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> sortByScanlatorDesc() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'scanlator', Sort.desc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> sortByThumbnailUrl() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'thumbnailUrl', Sort.asc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> sortByThumbnailUrlDesc() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'thumbnailUrl', Sort.desc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> sortByUpdatedAt() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'updatedAt', Sort.asc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> sortByUpdatedAtDesc() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'updatedAt', Sort.desc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> sortByUrl() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'url', Sort.asc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> sortByUrlDesc() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'url', Sort.desc);
      });
    }
  }
  
  extension ChapterQuerySortThenBy
      on QueryBuilder<Chapter, Chapter, QSortThenBy> {
    QueryBuilder<Chapter, Chapter, QAfterSortBy> thenByArchivePath() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'archivePath', Sort.asc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> thenByArchivePathDesc() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'archivePath', Sort.desc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> thenByDateUpload() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'dateUpload', Sort.asc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> thenByDateUploadDesc() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'dateUpload', Sort.desc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> thenByDescription() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'description', Sort.asc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> thenByDescriptionDesc() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'description', Sort.desc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> thenByDownloadSize() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'downloadSize', Sort.asc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> thenByDownloadSizeDesc() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'downloadSize', Sort.desc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> thenByDuration() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'duration', Sort.asc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> thenByDurationDesc() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'duration', Sort.desc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> thenById() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'id', Sort.asc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> thenByIdDesc() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'id', Sort.desc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> thenByIsBookmarked() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'isBookmarked', Sort.asc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> thenByIsBookmarkedDesc() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'isBookmarked', Sort.desc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> thenByIsFiller() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'isFiller', Sort.asc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> thenByIsFillerDesc() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'isFiller', Sort.desc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> thenByIsRead() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'isRead', Sort.asc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> thenByIsReadDesc() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'isRead', Sort.desc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> thenByLastPageRead() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'lastPageRead', Sort.asc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> thenByLastPageReadDesc() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'lastPageRead', Sort.desc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> thenByMangaId() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'mangaId', Sort.asc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> thenByMangaIdDesc() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'mangaId', Sort.desc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> thenByName() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'name', Sort.asc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> thenByNameDesc() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'name', Sort.desc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> thenByScanlator() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'scanlator', Sort.asc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> thenByScanlatorDesc() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'scanlator', Sort.desc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> thenByThumbnailUrl() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'thumbnailUrl', Sort.asc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> thenByThumbnailUrlDesc() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'thumbnailUrl', Sort.desc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> thenByUpdatedAt() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'updatedAt', Sort.asc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> thenByUpdatedAtDesc() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'updatedAt', Sort.desc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> thenByUrl() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'url', Sort.asc);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QAfterSortBy> thenByUrlDesc() {
      return QueryBuilder.apply(this, (query) {
        return query.addSortBy(r'url', Sort.desc);
      });
    }
  }
  
  extension ChapterQueryWhereDistinct
      on QueryBuilder<Chapter, Chapter, QDistinct> {
    QueryBuilder<Chapter, Chapter, QDistinct> distinctByArchivePath({
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addDistinctBy(r'archivePath', caseSensitive: caseSensitive);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QDistinct> distinctByDateUpload({
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addDistinctBy(r'dateUpload', caseSensitive: caseSensitive);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QDistinct> distinctByDescription({
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addDistinctBy(r'description', caseSensitive: caseSensitive);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QDistinct> distinctByDownloadSize({
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addDistinctBy(r'downloadSize', caseSensitive: caseSensitive);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QDistinct> distinctByDuration({
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addDistinctBy(r'duration', caseSensitive: caseSensitive);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QDistinct> distinctByIsBookmarked() {
      return QueryBuilder.apply(this, (query) {
        return query.addDistinctBy(r'isBookmarked');
      });
    }
  
    QueryBuilder<Chapter, Chapter, QDistinct> distinctByIsFiller() {
      return QueryBuilder.apply(this, (query) {
        return query.addDistinctBy(r'isFiller');
      });
    }
  
    QueryBuilder<Chapter, Chapter, QDistinct> distinctByIsRead() {
      return QueryBuilder.apply(this, (query) {
        return query.addDistinctBy(r'isRead');
      });
    }
  
    QueryBuilder<Chapter, Chapter, QDistinct> distinctByLastPageRead({
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addDistinctBy(r'lastPageRead', caseSensitive: caseSensitive);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QDistinct> distinctByMangaId() {
      return QueryBuilder.apply(this, (query) {
        return query.addDistinctBy(r'mangaId');
      });
    }
  
    QueryBuilder<Chapter, Chapter, QDistinct> distinctByName({
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addDistinctBy(r'name', caseSensitive: caseSensitive);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QDistinct> distinctByScanlator({
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addDistinctBy(r'scanlator', caseSensitive: caseSensitive);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QDistinct> distinctByThumbnailUrl({
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addDistinctBy(r'thumbnailUrl', caseSensitive: caseSensitive);
      });
    }
  
    QueryBuilder<Chapter, Chapter, QDistinct> distinctByUpdatedAt() {
      return QueryBuilder.apply(this, (query) {
        return query.addDistinctBy(r'updatedAt');
      });
    }
  
    QueryBuilder<Chapter, Chapter, QDistinct> distinctByUrl({
      bool caseSensitive = true,
    }) {
      return QueryBuilder.apply(this, (query) {
        return query.addDistinctBy(r'url', caseSensitive: caseSensitive);
      });
    }
  }
  
  extension ChapterQueryProperty
      on QueryBuilder<Chapter, Chapter, QQueryProperty> {
    QueryBuilder<Chapter, int, QQueryOperations> idProperty() {
      return QueryBuilder.apply(this, (query) {
        return query.addPropertyName(r'id');
      });
    }
  
    QueryBuilder<Chapter, String?, QQueryOperations> archivePathProperty() {
      return QueryBuilder.apply(this, (query) {
        return query.addPropertyName(r'archivePath');
      });
    }
  
    QueryBuilder<Chapter, String?, QQueryOperations> dateUploadProperty() {
      return QueryBuilder.apply(this, (query) {
        return query.addPropertyName(r'dateUpload');
      });
    }
  
    QueryBuilder<Chapter, String?, QQueryOperations> descriptionProperty() {
      return QueryBuilder.apply(this, (query) {
        return query.addPropertyName(r'description');
      });
    }
  
    QueryBuilder<Chapter, String?, QQueryOperations> downloadSizeProperty() {
      return QueryBuilder.apply(this, (query) {
        return query.addPropertyName(r'downloadSize');
      });
    }
  
    QueryBuilder<Chapter, String?, QQueryOperations> durationProperty() {
      return QueryBuilder.apply(this, (query) {
        return query.addPropertyName(r'duration');
      });
    }
  
    QueryBuilder<Chapter, bool?, QQueryOperations> isBookmarkedProperty() {
      return QueryBuilder.apply(this, (query) {
        return query.addPropertyName(r'isBookmarked');
      });
    }
  
    QueryBuilder<Chapter, bool?, QQueryOperations> isFillerProperty() {
      return QueryBuilder.apply(this, (query) {
        return query.addPropertyName(r'isFiller');
      });
    }
  
    QueryBuilder<Chapter, bool?, QQueryOperations> isReadProperty() {
      return QueryBuilder.apply(this, (query) {
        return query.addPropertyName(r'isRead');
      });
    }
  
    QueryBuilder<Chapter, String?, QQueryOperations> lastPageReadProperty() {
      return QueryBuilder.apply(this, (query) {
        return query.addPropertyName(r'lastPageRead');
      });
    }
  
    QueryBuilder<Chapter, int?, QQueryOperations> mangaIdProperty() {
      return QueryBuilder.apply(this, (query) {
        return query.addPropertyName(r'mangaId');
      });
    }
  
    QueryBuilder<Chapter, String?, QQueryOperations> nameProperty() {
      return QueryBuilder.apply(this, (query) {
        return query.addPropertyName(r'name');
      });
    }
  
    QueryBuilder<Chapter, String?, QQueryOperations> scanlatorProperty() {
      return QueryBuilder.apply(this, (query) {
        return query.addPropertyName(r'scanlator');
      });
    }
  
    QueryBuilder<Chapter, String?, QQueryOperations> thumbnailUrlProperty() {
      return QueryBuilder.apply(this, (query) {
        return query.addPropertyName(r'thumbnailUrl');
      });
    }
  
    QueryBuilder<Chapter, int?, QQueryOperations> updatedAtProperty() {
      return QueryBuilder.apply(this, (query) {
        return query.addPropertyName(r'updatedAt');
      });
    }
  
    QueryBuilder<Chapter, String?, QQueryOperations> urlProperty() {
      return QueryBuilder.apply(this, (query) {
        return query.addPropertyName(r'url');
      });
    }
  }
  