adding models and stale state for convos

This commit is contained in:
talksik
2022-04-03 06:53:13 -04:00
parent 362a6db698
commit 327299d8d7
5 changed files with 140 additions and 9 deletions
@@ -0,0 +1,17 @@
import AudioClip from "./audioClip.model";
import { ConversationMember } from "./conversation.model";
import { ObjectId } from "mongodb";
export default class MasterConversation {
// attributes of conversation
id: ObjectId; // id of the conversation
name?: string;
createdDate: Date;
lastUpdatedDate: Date;
// compiled data for easy client read
currentUserMember: ConversationMember;
otherMembers: ConversationMember[];
audioClips: AudioClip[];
}