aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Database/IndexedDB/chapters.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Database/IndexedDB/chapters.ts')
-rw-r--r--src/lib/Database/IndexedDB/chapters.ts22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/lib/Database/IndexedDB/chapters.ts b/src/lib/Database/IndexedDB/chapters.ts
deleted file mode 100644
index 0f77f0a0..00000000
--- a/src/lib/Database/IndexedDB/chapters.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-import Dexie, { type Table } from 'dexie';
-
-export interface Chapter {
- id: number;
- chapters: number | null;
- volumes: number | null;
-}
-
-export class ChapterDatabase extends Dexie {
- chapters: Table<Chapter>;
-
- constructor() {
- super('chapters');
- this.version(1).stores({
- chapters: 'id, chapters, volumes'
- });
-
- this.chapters = this.table('chapters');
- }
-}
-
-export const database = new ChapterDatabase();