adding in proper creation of user
This commit is contained in:
@@ -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",
|
||||
}
|
||||
Reference in New Issue
Block a user