add atribute to message

This commit is contained in:
Peter Maquiran
2024-08-08 09:58:44 +01:00
parent d6057c77c4
commit 861ab8edf4
7 changed files with 14 additions and 54 deletions
@@ -5,6 +5,7 @@ import { DexieMembersTableSchema, MemberTableColumn } from './schema/members';
import { DexieRoomsTableSchema, RoomTableColumn } from './schema/room';
import { DexieTypingsTableSchema, TypingTableColumn } from './schema/typing';
import { MessageEntity } from '../../../domain/entity/message';
// import DexieMemory from 'dexie-in-memory';
// Database declaration (move this to its own module also)
export const chatDatabase = new Dexie('chat-database-infra') as Dexie & {
@@ -22,3 +23,4 @@ chatDatabase.version(1).stores({
});
chatDatabase.message.mapToClass(MessageEntity)
// Apply in-memory storage