1
00:00:00,210 --> 00:00:06,240
Beautiful, and once we're done setting up the profile page, essentially we're done with this controller.

2
00:00:06,840 --> 00:00:11,040
And that means that we can switch gears, start dealing with AAA jobs.

3
00:00:11,640 --> 00:00:16,800
So eventually, yes, it's going to look something like this where we can have the job, all jobs and

4
00:00:16,800 --> 00:00:20,130
stats, but we'll start with adding the job.

5
00:00:21,070 --> 00:00:25,750
And yes, we'll set up the model will set up the controller, but I want to showcase something when

6
00:00:25,750 --> 00:00:28,120
it comes to our job, it's going to be faster.

7
00:00:28,450 --> 00:00:31,990
You notice here how it's very similar to the profile.

8
00:00:32,590 --> 00:00:39,450
And that's why it took us longer because we needed to do all the set up first, for example, off.

9
00:00:40,150 --> 00:00:43,660
Now we have that in place so we can simply reuse it.

10
00:00:43,990 --> 00:00:49,360
When I'm trying to say, is that yes, I know it took us a little bit longer than probably you expected,

11
00:00:49,870 --> 00:00:54,370
but now it's going to be smooth sailing where everything in the front is already prepared.

12
00:00:54,850 --> 00:01:01,570
So on the front end, we simply want to add things to the state and then keep setting up our functionality.

13
00:01:01,930 --> 00:01:03,600
We already have all the components.

14
00:01:03,610 --> 00:01:05,860
I mean, almost all the components not notice.

15
00:01:05,920 --> 00:01:10,630
We still here have the select ones that we need to create, but pretty much everything is already in

16
00:01:10,630 --> 00:01:10,960
place.

17
00:01:11,380 --> 00:01:18,940
Now we can just start knocking out the pages one by one and effectively we want to start by creating

18
00:01:19,210 --> 00:01:20,050
a job model.

19
00:01:20,320 --> 00:01:23,050
So hopefully it is clear that it is in the models.

20
00:01:23,050 --> 00:01:24,280
We create a job model.

21
00:01:24,550 --> 00:01:25,640
I'll call this job.

22
00:01:25,820 --> 00:01:27,370
Yes, we want to get the mongoose.

23
00:01:27,730 --> 00:01:31,240
And then we want to set up the schema company position both required.

24
00:01:32,140 --> 00:01:36,700
One is going to be maxlength 50 other 100 for both of them on set ups, some messages.

25
00:01:37,150 --> 00:01:41,380
Then there's also going to be status and the job type.

26
00:01:41,650 --> 00:01:44,880
Now these ones will be select winners.

27
00:01:45,280 --> 00:01:48,970
These ones will be select elements with the possible choices.

28
00:01:49,330 --> 00:01:55,270
That's where we'll go here within them and set them up as default planning for standard and default,

29
00:01:55,270 --> 00:01:57,070
full time for the job.

30
00:01:57,070 --> 00:02:02,140
Then as far as the job location, it's going to be type string default, my city.

31
00:02:02,500 --> 00:02:04,930
And in this case, I will set this one up as true.

32
00:02:05,200 --> 00:02:10,180
And if you're wondering why is that why I wish them was equal to required true, if we already have

33
00:02:10,180 --> 00:02:15,850
the default or remember not only we can create the job, eventually we can update the job.

34
00:02:16,090 --> 00:02:22,450
And if we set this up as required, true and then try to update with empty values, it's not going to

35
00:02:22,450 --> 00:02:22,810
work.

36
00:02:22,840 --> 00:02:30,100
And here I also have created by because we need to keep in mind that every job will be tied to specific

37
00:02:30,130 --> 00:02:30,520
user.

38
00:02:31,150 --> 00:02:32,140
That's the whole idea.

39
00:02:32,590 --> 00:02:34,570
If I create a job, that's my job.

40
00:02:34,570 --> 00:02:35,410
I can modify it.

41
00:02:35,650 --> 00:02:36,970
I can look at it.

42
00:02:37,240 --> 00:02:43,030
But it's only accessible to me now will be equal to created by Typekit will be mongoose, Typekit and

43
00:02:43,030 --> 00:02:43,660
abjectly.

44
00:02:43,960 --> 00:02:48,610
And then we'll reference the user, the user model and set it equal to required.

45
00:02:49,090 --> 00:02:55,720
At the very end, we'll set up timestamps equal to true simply because I want to have that created out

46
00:02:56,080 --> 00:02:59,920
and modify the fields, which will be equal to the timestamps.

47
00:03:00,310 --> 00:03:02,430
And at the very, very end, we want to export that.

