PostgreSQL(Prisma) Provider
This provider sets up PostgreSQL connectivity with Prisma for Express projects, including environment validation, Prisma client setup, and a starter schema.
Features
- Type-safe environment validation with Zod
- Prisma client configured for development and production logging
- Starter Prisma schema for PostgreSQL with a
Usermodel
Installation Guide
npx servercn-cli add pr pg-prismaFile Structure
MVC
-
src/configs/env.ts -
src/configs/prisma.ts -
src/prisma/schema.prisma
Feature
-
src/shared/configs/env.ts -
src/shared/configs/prisma.ts -
src/prisma/schema.prisma
Environment Configuration
src/configs/env.ts
Prisma Client
src/configs/prisma.ts
Prisma Schema
src/prisma/schema.prisma