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

Method constructor

frontend/src/db/flashcardsDB.ts:52–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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