1
00:00:00,110 --> 00:00:00,500
All right.

2
00:00:00,500 --> 00:00:02,780
And up next, let's set up some mock data.

3
00:00:02,780 --> 00:00:05,120
And we want to do that for two reasons.

4
00:00:05,120 --> 00:00:11,600
Since we restricted the access to create job route for our test user.

5
00:00:11,720 --> 00:00:14,960
Of course, we want to provide some jobs by default.

6
00:00:15,320 --> 00:00:23,090
And second, it's also going to be easier to set up the stats and complete get all jobs page because

7
00:00:23,120 --> 00:00:26,540
of course we want to have some values that we can work with.

8
00:00:26,690 --> 00:00:29,850
For example, it's easier to set up the pagination.

9
00:00:29,870 --> 00:00:35,450
Now of course you can add them manually one by one, but at least in my opinion, a better option is

10
00:00:35,450 --> 00:00:43,370
to use a resource called macro, which allows us to create a bunch of instances pretty much immediately.

11
00:00:43,400 --> 00:00:47,080
Now, in order to follow along, you will need to utilize this link.

12
00:00:47,090 --> 00:00:49,100
So navigate to the site.

13
00:00:49,100 --> 00:00:52,910
And once we get here, effectively we want to start everything from scratch.

14
00:00:52,910 --> 00:00:56,930
And in the Readme you will find the example structure.

15
00:00:56,930 --> 00:00:59,510
So if you need to please reference it.

16
00:00:59,510 --> 00:01:05,220
So for starters, let me remove all of the fields and one by one let's set them up.

17
00:01:05,220 --> 00:01:08,340
So we want to click on add another field.

18
00:01:08,340 --> 00:01:15,180
And yes, the field names need to match exactly because we will populate our database.

19
00:01:15,210 --> 00:01:21,290
And again, if it doesn't match what we have in the model, the functionality is going to go bananas.

20
00:01:21,300 --> 00:01:23,430
So in here, let's write company.

21
00:01:23,430 --> 00:01:25,380
That's going to be the first value.

22
00:01:25,380 --> 00:01:31,260
And note if you need to please reference the Readme or the job model.

23
00:01:31,380 --> 00:01:33,450
And then as far as the type.

24
00:01:34,120 --> 00:01:36,300
We want to go here with company.

25
00:01:36,310 --> 00:01:41,680
So essentially this is just going to provide some fake values.

26
00:01:41,920 --> 00:01:44,290
The next field is going to be position.

27
00:01:45,250 --> 00:01:51,970
And in here we want to look for job title again, a bunch of fake job titles.

28
00:01:52,090 --> 00:01:54,550
Then let's go with job location.

29
00:01:55,640 --> 00:02:00,440
And notice how I'm using the camel case because this is what I have in the model.

30
00:02:00,890 --> 00:02:03,020
In here, let's look for city.

31
00:02:03,620 --> 00:02:05,960
A bunch of cities, then another field.

32
00:02:05,960 --> 00:02:08,389
And this is going to be for job status.

33
00:02:08,509 --> 00:02:12,110
And this is the case where we do want to go with the custom list.

34
00:02:12,110 --> 00:02:14,560
So we want to provide our own values.

35
00:02:14,570 --> 00:02:21,470
So job status then instead of city, let's go with custom and we're looking for custom list.

36
00:02:21,650 --> 00:02:28,100
As far as the syntax in this case, we're not providing the quotation marks, we just go with commas

37
00:02:28,100 --> 00:02:29,840
and remember our values.

38
00:02:29,840 --> 00:02:33,500
So we have over here pending, then declined.

39
00:02:33,710 --> 00:02:36,050
And also we have interview.

40
00:02:36,970 --> 00:02:38,030
Let's add them.

41
00:02:38,050 --> 00:02:39,730
Then let's add another field.

42
00:02:39,730 --> 00:02:43,570
So this one will be for job type.

43
00:02:43,810 --> 00:02:46,330
Then it's also going to be custom list.

44
00:02:46,330 --> 00:02:47,980
Yes, that doesn't change.

45
00:02:48,040 --> 00:02:54,610
And let's go over here with full time, then part time and then internship.

46
00:02:55,630 --> 00:02:58,750
Lastly we want to set up created at.

47
00:02:59,410 --> 00:03:01,630
Since we will set up stats.

48
00:03:02,540 --> 00:03:06,480
And I want to showcase only the last six months.

49
00:03:06,500 --> 00:03:09,720
I want to have some values that I can work with.

50
00:03:09,740 --> 00:03:13,100
So the field name is going to be created at.

51
00:03:13,340 --> 00:03:18,260
And then instead of custom list, we're going to go here with date time.

52
00:03:18,590 --> 00:03:20,560
So we select this one.

53
00:03:20,570 --> 00:03:22,820
Notice it goes back one year.

54
00:03:23,030 --> 00:03:23,960
And like I said.

55
00:03:24,820 --> 00:03:27,190
We want to display only the last six months.

56
00:03:27,190 --> 00:03:34,720
So I'll actually leave it like this because this is just going to give me nice values to work with.

57
00:03:34,750 --> 00:03:39,820
And then as far as the format, we're looking for this ISO over here.

58
00:03:39,910 --> 00:03:42,300
Now let's keep on scrolling.

59
00:03:42,310 --> 00:03:44,260
We want to go for Json.

60
00:03:44,270 --> 00:03:46,420
Now I'm not going to go with 1000.

61
00:03:46,420 --> 00:03:48,250
That seems quite drastic.

62
00:03:48,400 --> 00:03:55,470
I will leave this as an array, but I don't want the null values and we can nicely preview the data.

63
00:03:55,480 --> 00:03:58,690
So this is what we're going to get back.

64
00:03:58,780 --> 00:04:02,320
And essentially we want to go with generate data.

65
00:04:02,890 --> 00:04:07,030
As you can see, we're downloading the mock data Json file.

66
00:04:07,060 --> 00:04:10,420
Now we want to navigate back to my computer.

67
00:04:11,220 --> 00:04:14,970
I'm looking for downloads and I'll right away rename it.

68
00:04:15,000 --> 00:04:22,170
I'm going to go with mock data Json and I want to set it up in my job if I want.

69
00:04:22,200 --> 00:04:24,210
Now I'm going to be looking for the utils.

70
00:04:24,240 --> 00:04:28,140
Of course, this is totally your preference, how you want to do it.

71
00:04:28,140 --> 00:04:36,750
And then in the next video we'll programmatically populate our database using this array.

