MCPcopy Create free account
hub / github.com/celerforge/freenote / constructor

Method constructor

src/lib/db/index.ts:13–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11 chatMessages!: EntityTable<ChatMessage, "id">;
12
13 constructor() {
14 super("freenote");
15 this.version(1).stores({
16 notes: "++id, title, type, createdAt, updatedAt, embeddingUpdatedAt",
17 embeddings: "++id, noteId, content, embedding",
18 chats: "++id, title, updatedAt, createdAt",
19 chatMessages: "++id, chatId",
20 });
21 }
22}
23
24export const db = new FreeNoteDB();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected