aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Database/IndexedDB/user.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Database/IndexedDB/user.ts')
-rw-r--r--src/lib/Database/IndexedDB/user.ts23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/lib/Database/IndexedDB/user.ts b/src/lib/Database/IndexedDB/user.ts
deleted file mode 100644
index e7285a07..00000000
--- a/src/lib/Database/IndexedDB/user.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-import type { AniListAuthorisation } from '$lib/Data/AniList/identity';
-import Dexie, { type Table } from 'dexie';
-
-export interface User {
- id: number;
- user: AniListAuthorisation;
- lastNotificationID: number | null;
-}
-
-export class UserDatabase extends Dexie {
- users: Table<User>;
-
- constructor() {
- super('users');
- this.version(1).stores({
- users: 'id, user, lastNotificationID'
- });
-
- this.users = this.table('users');
- }
-}
-
-export const database = new UserDatabase();