diff --git a/src/models.ts b/src/models.ts new file mode 100644 index 000000000..064509287 --- /dev/null +++ b/src/models.ts @@ -0,0 +1,18 @@ +export enum MessageType { + TEXT = 'text' +} + +export interface Chat { + _id?: string; + title?: string; + picture?: string; + lastMessage?: Message; +} + +export interface Message { + _id?: string; + chatId?: string; + content?: string; + createdAt?: Date; + type?: MessageType +}