1
00:00:00,110 --> 00:00:07,310
Now, I know I said before that I'm not going to remove any more users and jobs from the database,

2
00:00:07,310 --> 00:00:11,060
but since we'll have to add some properties on the user schema.

3
00:00:11,300 --> 00:00:14,250
Actually, yes, we'll have to repeat those steps.

4
00:00:14,270 --> 00:00:18,380
Now, I'm not going to say that this is the last time, but hopefully.

5
00:00:18,560 --> 00:00:20,590
So let me again go to users.

6
00:00:20,600 --> 00:00:21,830
I want to remove them.

7
00:00:22,710 --> 00:00:25,720
And also the same thing is going to be for the jobs.

8
00:00:25,740 --> 00:00:32,490
Now, maybe you don't have to do that, but again, I don't want to run into some weird bugs and therefore

9
00:00:32,520 --> 00:00:34,710
I'll start from the scratch.

10
00:00:34,710 --> 00:00:41,140
And once we're done with that, let's navigate back to our project and we're looking for the user schema.

11
00:00:41,160 --> 00:00:44,010
So where are our models?

12
00:00:44,750 --> 00:00:46,550
And then in the user model.

13
00:00:47,380 --> 00:00:49,670
Effectively, I want to add two more properties.

14
00:00:49,690 --> 00:00:53,740
So the first one is going to be Avatar, which is going to be equal to a string.

15
00:00:53,770 --> 00:00:59,970
And eventually this will point to a cloudinary and I'll discuss why we have such approach.

16
00:00:59,980 --> 00:01:07,360
And also, since I want to remove the old image, if the user uploads a new one, we'll also store the

17
00:01:07,360 --> 00:01:08,140
public ID.

18
00:01:09,530 --> 00:01:11,030
And you'll see why we need it.

19
00:01:11,060 --> 00:01:14,060
Once, of course, we set up delete functionality.

20
00:01:14,060 --> 00:01:17,120
So Avatar is going to be equal to a string.

21
00:01:17,180 --> 00:01:21,380
And then also there will be an avatar public.

22
00:01:22,850 --> 00:01:23,400
Heidi.

23
00:01:23,600 --> 00:01:27,050
And this will also be equal to a string.

24
00:01:27,050 --> 00:01:28,250
Let me save it.

25
00:01:28,250 --> 00:01:32,410
And you know, right away let me create a user.

26
00:01:32,420 --> 00:01:37,580
And in my case, it's going to be again, John, and I'm actually going to do that on my front end.

27
00:01:37,580 --> 00:01:39,410
So I will.

28
00:01:39,920 --> 00:01:41,450
That's actually the complete one.

29
00:01:41,600 --> 00:01:41,930
My bad.

30
00:01:41,930 --> 00:01:44,620
Let me navigate to 5173.

31
00:01:44,630 --> 00:01:46,160
So that's my project.

32
00:01:46,430 --> 00:01:47,630
Let me go over here.

33
00:01:48,500 --> 00:01:50,420
And then I need to register.

34
00:01:50,420 --> 00:01:51,110
Of course.

35
00:01:51,900 --> 00:01:53,720
So let me navigate to this page.

36
00:01:53,730 --> 00:01:59,880
Yep, I registered as John and now I submit if everything is correct, I'll have no jobs.

37
00:01:59,910 --> 00:02:01,440
That's totally fine.

38
00:02:01,710 --> 00:02:06,420
And up next, we're going to start working on the profile page.

