import 'package:isar/isar.dart'; import 'package:mangayomi/models/manga.dart'; part 'chapter.g.dart'; @collection @Name("Chapter") class Chapter { Id? id; String? name; String? url; String? dateUpload; String? scanlator; bool? isBookmarked; bool? isRead; String? lastPageRead; ///Only for local archive Comic String? archivePath; final manga = IsarLink(); Chapter( {this.id = Isar.autoIncrement, required this.name, this.url = '', this.dateUpload = '', this.isBookmarked = false, this.scanlator = '', this.isRead = false, this.lastPageRead = '', this.archivePath = ''}); }