Hi everyone.
Welcome to the new section of the social Media applications.
In this session we will use now one more module which is the friends.
Okay.
So for that reason in this case.
I will create one more feature.
With my friends.
Let us.
Add to rest API.
And yes.
After we on behalf of right we need to create the schema for us.
And of course we need to remove the some file for testing.
Okay.
And in here I think I will rename it the schema a little bit.
I will name for friend request.
And we need to copy everything from.
Reaction.
Let me copy everything over here.
And one last chain.
Friend.
Request.
Okay.
And change the name.
Friend.
Request.
Document.
And write.
Requests would be met.
Okay, let me remove.
Okay.
What we will have in here.
Firstly, we have a sender.
Okay.
We have a sender.
We missed the first of all.
If I login with account I.
I want to send the request to my friend with the be okay.
It means I need to.
I will create a sender.
You will be I right here.
Okay.
And of course, we have a receiver.
Let me go over here.
We will use our document also.
Okay.
This is the receiver.
And we have a status.
Right.
Roy?
Woods thought I will create the Phi.
Phi Phi.
Friend.
Request status.
Accept it.
Accept.
Retract and bending.
Okay.
We have some status like this.
Let me go back and start over here and create a prop.
Right.
In here.
We would define the Midi file really badly.
Okay.
When we send a request to make a Foreign we will have a default will be abandoned and we need to move
to some random over here.
Okay, I will create the box.
Is blocked calls friend request status.
Ready to check?
Latest.
Go to Adam over here.
Okay, so that's for the friend request.
And.
We need to import that inside a module.
Let Where are you from?
Here.
Okay.
And after that, we need to modify a little bit of the user over here.
Schema.
Okay.
Right here we need to know the user hub.
Uh, what frame okay.
For example, if I am a okay I login with account I, I want to know what is my friend okay.
So for that reason we have some friend friend list.
Okay.
With the some right over here.
Right.
So for that reason, we have to create one more property called the friends.
Okay?
The friends right here.
We need to, uh, reference us.
Let me copy this right here.
We need to reference into the user itself, okay?
Into the user itself.
And right here with the friend, we can put the user document.
Right over here.
Okay.
So that's for the schema, uh, right now.
And I think that will be enough.
And I will see you in the next one.