adding in proper creation of user

This commit is contained in:
talksik
2022-03-18 17:34:51 -04:00
parent 0a126900b9
commit b9d38a6484
9 changed files with 113 additions and 52 deletions
@@ -0,0 +1,21 @@
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",
}