From 2d9235070856c0a5032ddf47f7b1dc7cc5cceb60 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 25 Jul 2024 00:19:44 -0700 Subject: refactor(Database): separate providers --- src/lib/Database/chapters.ts | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 src/lib/Database/chapters.ts (limited to 'src/lib/Database/chapters.ts') diff --git a/src/lib/Database/chapters.ts b/src/lib/Database/chapters.ts deleted file mode 100644 index 0f77f0a0..00000000 --- a/src/lib/Database/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; - - constructor() { - super('chapters'); - this.version(1).stores({ - chapters: 'id, chapters, volumes' - }); - - this.chapters = this.table('chapters'); - } -} - -export const database = new ChapterDatabase(); -- cgit v1.2.3