MCPcopy Create free account
hub / github.com/0010aor/FlashNotes / FlashcardsDB

Class FlashcardsDB

frontend/src/db/flashcardsDB.ts:46–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46export class FlashcardsDB extends Dexie {
47 collections!: Table<LocalCollection, string>
48 cards!: Table<LocalCard, string>
49 practice_sessions!: Table<LocalPracticeSession, string>
50 practice_cards!: Table<LocalPracticeCard, string>
51
52 constructor() {
53 super('FlashcardsDB')
54 this.version(1).stores({
55 collections: 'id, name, updatedAt, synced',
56 cards: 'id, collectionId, updatedAt, synced',
57 practice_sessions: 'id, collectionId, startedAt, isCompleted, synced',
58 practice_cards:
59 '++id, sessionId, cardId, [sessionId+cardId], isPracticed, practicedAt, synced',
60 })
61 }
62}
63
64export const db = new FlashcardsDB()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected