All right.
And up next, let's set up some mock data.
And we want to do that for two reasons.
Since we restricted the access to create job route for our test user.
Of course, we want to provide some jobs by default.
And second, it's also going to be easier to set up the stats and complete get all jobs page because
of course we want to have some values that we can work with.
For example, it's easier to set up the pagination.
Now of course you can add them manually one by one, but at least in my opinion, a better option is
to use a resource called macro, which allows us to create a bunch of instances pretty much immediately.
Now, in order to follow along, you will need to utilize this link.
So navigate to the site.
And once we get here, effectively we want to start everything from scratch.
And in the Readme you will find the example structure.
So if you need to please reference it.
So for starters, let me remove all of the fields and one by one let's set them up.
So we want to click on add another field.
And yes, the field names need to match exactly because we will populate our database.
And again, if it doesn't match what we have in the model, the functionality is going to go bananas.
So in here, let's write company.
That's going to be the first value.
And note if you need to please reference the Readme or the job model.
And then as far as the type.
We want to go here with company.
So essentially this is just going to provide some fake values.
The next field is going to be position.
And in here we want to look for job title again, a bunch of fake job titles.
Then let's go with job location.
And notice how I'm using the camel case because this is what I have in the model.
In here, let's look for city.
A bunch of cities, then another field.
And this is going to be for job status.
And this is the case where we do want to go with the custom list.
So we want to provide our own values.
So job status then instead of city, let's go with custom and we're looking for custom list.
As far as the syntax in this case, we're not providing the quotation marks, we just go with commas
and remember our values.
So we have over here pending, then declined.
And also we have interview.
Let's add them.
Then let's add another field.
So this one will be for job type.
Then it's also going to be custom list.
Yes, that doesn't change.
And let's go over here with full time, then part time and then internship.
Lastly we want to set up created at.
Since we will set up stats.
And I want to showcase only the last six months.
I want to have some values that I can work with.
So the field name is going to be created at.
And then instead of custom list, we're going to go here with date time.
So we select this one.
Notice it goes back one year.
And like I said.
We want to display only the last six months.
So I'll actually leave it like this because this is just going to give me nice values to work with.
And then as far as the format, we're looking for this ISO over here.
Now let's keep on scrolling.
We want to go for Json.
Now I'm not going to go with 1000.
That seems quite drastic.
I will leave this as an array, but I don't want the null values and we can nicely preview the data.
So this is what we're going to get back.
And essentially we want to go with generate data.
As you can see, we're downloading the mock data Json file.
Now we want to navigate back to my computer.
I'm looking for downloads and I'll right away rename it.
I'm going to go with mock data Json and I want to set it up in my job if I want.
Now I'm going to be looking for the utils.
Of course, this is totally your preference, how you want to do it.
And then in the next video we'll programmatically populate our database using this array.