01 The vocabulary
If you have seen a spreadsheet or a SQL table, the mapping is close enough to get started with.
The real difference is the last row. A SQL table fixes its columns in advance for every row. A MongoDB collection does not: two documents side by side can hold different fields. That freedom is why Mongoose exists — it puts the structure back, in your code, where you can see it.
| SQL | MongoDB | In your code |
|---|---|---|
| database | database | the end of your connection string |
| table | collection | created from a model, named as a lowercase plural |
| row | document | one object |
| column | field | one key on that object |
| primary key | _id | generated for you |
| schema, fixed by the database | no schema at all | the schema lives in Mongoose instead |