Schema and Use Cases
Explore how to define data schemas in Deno applications by integrating SQL for stable user data management and NoSQL for flexible, evolving book-related data. Understand cases for using PostgreSQL and MongoDB, including basic queries and setup, to create a balanced, robust backend.
We'll cover the following...
We'll cover the following...
Data model
To keep it simple, we’ll use the same data model we used earlier to define our schema.
We’ll keep all the attributes we had about the book example and add the ability to add some reviews. We’ll add a new entity called User to do that. Each user can leave one or more reviews on any book they want. Let’s consider the following updates to our class diagram, where we add the User type with ...