updated prisma7

This commit is contained in:
2025-11-25 00:08:30 +05:30
parent 03f08983e5
commit 394dbc359b
2 changed files with 15 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
import "dotenv/config";
import { defineConfig, env } from "prisma/config";
export default defineConfig({
// if prisma.config.ts sits in the same folder as schema.prisma:
schema: "schema.prisma", // or "prisma/schema.prisma" if config is at project root
// required with the current Prisma types
engine: "classic",
datasource: {
// use Prisma's env() helper instead of process.env for nicer types
url: env("DATABASE_URL"),
},
});

View File

@@ -16,7 +16,6 @@ generator zod {
datasource db { datasource db {
provider = "postgresql" provider = "postgresql"
url = env("DATABASE_URL")
} }
model User { model User {