send direct message

This commit is contained in:
Peter Maquiran
2024-08-19 16:45:29 +01:00
parent ae50d9b3bd
commit 4fb24f7875
9 changed files with 57 additions and 27 deletions
@@ -1,5 +1,6 @@
import { z } from "zod";
import { EntityTable } from 'Dexie';
import { RoomType } from "src/app/module/chat/domain/entity/group";
export const RoomTableSchema = z.object({
id: z.string(),
@@ -12,6 +13,7 @@ export const RoomTableSchema = z.object({
}),
createdAt: z.any(),
expirationDate: z.any().nullable(),
roomType: z.nativeEnum(RoomType)
})
export type RoomTable = z.infer<typeof RoomTableSchema>