Closed tsahil01 closed 2 weeks ago
Description: Set up Prisma ORM for database interactions.
npm install @prisma/client @prisma/cli
npx prisma init
schema.prisma
.env
User
File
Payment
npx prisma migrate dev --name init
done
Description: Set up Prisma ORM for database interactions.
npm install @prisma/client @prisma/cli
.npx prisma init
to generate the Prisma folder andschema.prisma
file..env
(for example, using PostgreSQL or SQLite for local development).User
,File
,Payment
, and any other entities.npx prisma migrate dev --name init
to create the initial migration and set up the database.