This repository contains my personal notes on Prisma ORM, a modern and type-safe Object-Relational Mapper (ORM) for Node.js and TypeScript.
- Overview of Prisma and its components
- Commands and usage examples
- Schema modeling tips
- Migrations and Prisma Client
- Best practices and tips
- Reference links and learning resources
Prisma simplifies database access by:
- Providing a declarative data model
- Generating type-safe database clients
- Supporting migrations and introspection
- Offering a visual data browser (Prisma Studio)
Official site: prisma.io
npm install @prisma/client
npx prisma init
npx prisma migrate dev --name init
npx prisma generate
npx prisma studio