mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-01-11 22:40:36 +00:00
60 lines
843 B
Dart
60 lines
843 B
Dart
import 'package:isar/isar.dart';
|
|
part 'track.g.dart';
|
|
|
|
@collection
|
|
@Name("Track")
|
|
class Track {
|
|
Id? id;
|
|
|
|
int? libraryId;
|
|
|
|
int? mediaId;
|
|
|
|
int? mangaId;
|
|
|
|
int? syncId;
|
|
|
|
String? title;
|
|
|
|
int? lastChapterRead;
|
|
|
|
int? totalChapter;
|
|
|
|
int? score;
|
|
|
|
@enumerated
|
|
TrackStatus status;
|
|
|
|
int? startedReadingDate;
|
|
|
|
int? finishedReadingDate;
|
|
|
|
String? trackingUrl;
|
|
|
|
Track(
|
|
{this.id = Isar.autoIncrement,
|
|
this.libraryId,
|
|
this.mediaId,
|
|
this.mangaId,
|
|
this.syncId,
|
|
this.title,
|
|
this.lastChapterRead,
|
|
this.totalChapter,
|
|
this.score,
|
|
required this.status,
|
|
this.startedReadingDate,
|
|
this.finishedReadingDate,
|
|
this.trackingUrl});
|
|
}
|
|
|
|
enum TrackStatus {
|
|
reading,
|
|
completed,
|
|
onHold,
|
|
dropped,
|
|
planToRead,
|
|
rereading,
|
|
watching,
|
|
planToWatch,
|
|
reWatching
|
|
}
|