Why ORM’s?
- Remembering and writing raw SQL queries for complex database is difficult
- Migrations are hard - As our database grows, we have to change the table’s structure (add columns, modify tables, etc.) which becomes hard to manage and track
- You don’t get the best types - The output rows that come from server doesn’t have a type. Prisma give u types on which u can easily perform operations on.
Prisma
- Intuitive data model. Give very good functions to interact with. Sits between Backend and Database
- Automated Migrations
- Type-Safety & auto completion

Open Source project to understand Prisma
https://github.com/steven-tey/dub
Setup Postgres database locally
- Download the postgres windows installer and install it
- Run the psql shell from start menu and write \c database name to connect to database
- Follow instructions on Prisma Website