npx skills add ...
npx skills add prisma/cursor-plugin --skill prisma-database-setup-postgresql
npx skills add prisma/cursor-plugin --skill prisma-database-setup-postgresql
PostgreSQL Setup. Reference when using this Prisma feature.
Configure Prisma with PostgreSQL.
In prisma/schema.prisma:
In prisma.config.ts:
In .env:
public)Prisma ORM 7 uses the query compiler by default, so you must use a driver adapter.
Install adapter and driver:
Instantiate Prisma Client with the adapter:
?schema=public (or your schema) is in the URLDATABASE_URL="postgresql://user:password@localhost:5432/mydb?schema=public"postgresql://USER:PASSWORD@HOST:PORT/DATABASE?schema=SCHEMA