()
| 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 | |
| 24 | export const db = new FreeNoteDB(); |
nothing calls this directly
no outgoing calls
no test coverage detected