import { ObjectId } from "mongodb"; // some sort of contact or friend model export default class Relationship { constructor( public senderUserId: string, public receiverUserId: string, public state: RelationshipState, public createdDate: Date = new Date(), public lastUpdatedDate: Date = new Date(), public _id: ObjectId = new ObjectId() ) {} } export enum RelationshipState { PENDING = "PENDING", ACTIVE = "ACTIVE", BLOCKED = "BLOCKED", }