๐๏ธ โก๏ธ Design a Schema
Before Design a Schema of the application you need a clear UI design of the application. You can use Figma, Adobe XD, Sketch, or any other design tool to design the UI of the application.It will help you to understand the data structure of the application.
๐๏ธ ๐ Creating Models
In creating schema we design the user schema. Now we design the product schema.
๐๏ธ Migration
Since this is our first time interacting with the DB, we need to run our initial migration to get the DB and our schema in sync. We'll continue to run migrations as we make schema changes to ensure the schema and any data in the DB stay in sync. Before we run a migration, we need to install the prisma client which is the SDK we'll use in our code to interact with the DB. This client is type-safe and based on of our schema. It's actually an NPM package that gets generated on demand to adjust to your schema! Pretty cool.