asdasd
This project uses Prisma ORM to manage the database and PostgreSQL as database engine.
After installing the package with npm you have to initialize Prisma with the command
npx prisma initIn order to perform any database operation you to generate the Prisma Client, since the schema.prisma file is ready-to-use you just have to run the command
npx prisma generateAnd then, import and instantiate the Client in whatever service you need it. Like this
import { PrismaClient } from "@prisma/client";
const prisma = new PrismaClient();Use the Prisma Client to perform any database operation.