1
00:00:07,340 --> 00:00:16,520
Welcome to the last section under MongoDB and Mongoose, and that is data modeling.

2
00:00:17,030 --> 00:00:20,450
What is it and why should we care about it?

3
00:00:20,990 --> 00:00:29,240
If you want to become a full stock developer or a back end developer, then this is the section that

4
00:00:29,240 --> 00:00:38,390
we need to pay attention to because any back end application or Fullstack application is all about data

5
00:00:38,810 --> 00:00:40,130
and understanding.

6
00:00:40,130 --> 00:00:46,610
This topic is not all that easy, so I advise you to take some notes as you move on.

7
00:00:46,880 --> 00:00:53,750
Like always, I'm going to make it pretty simple by using some diagram to show you the logic first.

8
00:00:53,750 --> 00:00:57,740
Then we get back to code to demonstrate all what you've learned.

9
00:00:57,740 --> 00:01:00,230
So what is data modeling?

10
00:01:00,440 --> 00:01:10,520
Let's understand that data modeling is the process of transforming real world ideas into data.

11
00:01:11,610 --> 00:01:12,480
What does it mean?

12
00:01:12,510 --> 00:01:19,740
It simply means that before you even start to develop a back end application, the first step you need

13
00:01:19,740 --> 00:01:23,820
to take into consideration is about data modeling.

14
00:01:24,150 --> 00:01:27,790
Because any application start with the idea.

15
00:01:27,810 --> 00:01:33,420
For example, if you are a developer and I'm a client, I come to you that place.

16
00:01:33,420 --> 00:01:37,890
I want this particular application and this is how I want it to be.

17
00:01:37,890 --> 00:01:45,090
So as a developer, you need to listen to your client how he wants the application to be, and you are

18
00:01:45,090 --> 00:01:51,390
going to transform those ideas into code to be more precise into data.

19
00:01:51,450 --> 00:01:59,340
For example, if I say that I want good management system and I want a situation whereby students can

20
00:01:59,340 --> 00:02:07,710
register, come pay school fees and many more, you are going to take this idea into data, and that

21
00:02:07,710 --> 00:02:09,750
is what we call data modeling.

22
00:02:10,110 --> 00:02:17,880
Based on my experience, this is the most difficult part as a back end developer because it's not all

23
00:02:17,880 --> 00:02:23,660
that easy to transform the client idea into reality.

24
00:02:23,670 --> 00:02:28,920
So as you move on this, what I'm going to show you the steps involved.

25
00:02:28,950 --> 00:02:30,840
So let's get going.

26
00:02:31,110 --> 00:02:37,050
And after that, we need to learn what is called database relationship.

27
00:02:37,230 --> 00:02:42,420
Well, database relationship is part of the data modeling.

28
00:02:42,450 --> 00:02:47,700
It simply means that how individual data are being related.

29
00:02:48,120 --> 00:02:53,640
Let's say that we have a block application and we have posts and users.

30
00:02:53,850 --> 00:03:02,010
If you want to know which user created a certain post or a post belongs to which user, and this is

31
00:03:02,010 --> 00:03:04,860
what we call database relationship.

32
00:03:04,860 --> 00:03:08,910
And for this one too, I'm going to take you through step by step.

33
00:03:09,180 --> 00:03:11,010
Well, so what is it?

34
00:03:11,010 --> 00:03:20,730
Technically, it refers to the relationship between different collections of data in MongoDB database.

35
00:03:20,730 --> 00:03:27,960
So like I said, there are database relationships simply means that how individual collections are related

36
00:03:27,960 --> 00:03:28,860
together.

37
00:03:28,980 --> 00:03:32,100
So I will show you more as you move on.

38
00:03:32,370 --> 00:03:42,060
So in a nutshell, data modeling is a process of transforming the ideas into database, the first step,

39
00:03:42,060 --> 00:03:49,200
and then to collection second step and to how the data are being collected together.

40
00:03:49,200 --> 00:03:54,060
And this is what we call data modeling in Mongoose.

41
00:03:54,090 --> 00:03:59,910
The objective for this section lies in this particular sentence here.

42
00:03:59,940 --> 00:04:05,700
So as we move on, I'm going to take you through how we are going to model data.

43
00:04:05,700 --> 00:04:07,140
In the next video.

44
00:04:07,170 --> 00:04:11,940
I will show you the process involved when it comes to data modeling.

