diff options
| author | Fuwn <[email protected]> | 2024-07-25 00:19:44 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-07-25 00:20:23 -0700 |
| commit | 2d9235070856c0a5032ddf47f7b1dc7cc5cceb60 (patch) | |
| tree | 4677f0355872a0f7f55d38a372ec5e3870771182 /src/lib/Database/user.ts | |
| parent | feat(notifications): allow unsubscribe (diff) | |
| download | due.moe-2d9235070856c0a5032ddf47f7b1dc7cc5cceb60.tar.xz due.moe-2d9235070856c0a5032ddf47f7b1dc7cc5cceb60.zip | |
refactor(Database): separate providers
Diffstat (limited to 'src/lib/Database/user.ts')
| -rw-r--r-- | src/lib/Database/user.ts | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/lib/Database/user.ts b/src/lib/Database/user.ts deleted file mode 100644 index df68bc91..00000000 --- a/src/lib/Database/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(); |