Skip to content

Commit 0705712

Browse files
committed
Merge branch 'crud-and-data-models' of https://github.com/ReCoded-Org/curriculum-backend-readings into crud-and-data-models
2 parents 1d781cc + c7eff66 commit 0705712

File tree

1 file changed

+14
-1
lines changed
  • module3-crud-and-data-models/r1-schema-and-data-models

1 file changed

+14
-1
lines changed

module3-crud-and-data-models/r1-schema-and-data-models/README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,20 @@
22

33
A database schema is a blueprint or architecture of how our data will look. It doesn’t hold data itself, but instead describes the shape of the data and how it might relate to other tables or models.
44

5+
<<<<<<< HEAD
56
For example, this is a `customer` schema in MongoDB using mongoose.
7+
=======
8+
A database model is a type of data model that determines the logical structure of a database. It is the high level design which defines the kind of tables, the `fields` in those tables and the `relations` between different tables.
9+
10+
The most popular example of a database model is the relational model, which uses a table-based format, which is the one we use in most SQL databases.
11+
12+
### What are database schemas?
13+
14+
A database schema is a `blueprint` or `architecture` of how our data will look. It doesn’t hold data itself, but instead describes the shape of the data and how it might relate to other tables or models.
15+
16+
For example, This is a `Customer` schema in mongoDB using mongoose.
17+
18+
> > > > > > > c7eff66f097a2a47f25f1ab1b06941e77c329eb9
619
720
```js
821
const mongoose = require("mongoose");
@@ -95,8 +108,8 @@ Request:
95108

96109
## Resources
97110

98-
- [See this](https://www.educative.io/blog/crud-operations#what) for more information on how these operations are performed on `SQL` database.
99111
- [What is REST](https://restfulapi.net/)
112+
- [See this](https://www.educative.io/blog/crud-operations#what) for more information on how CRUD operations are performed directly on `SQL` database.
100113
- [database schemas](https://www.educative.io/blog/what-are-database-schemas-examples#types)
101114

102115
```

0 commit comments

Comments
 (0)