PrismaP
Prisma7mo ago
11 replies
Luigi

Prisma 6.7.0 can't find tables after splitting schema into multiple files.

I have just upgraded to 6.7.0 and wanted to use the new prismaSchemaFolder feature, but after re-running generate and migrate it can't find the tables or I think they weren't even created because I don't see any in the prisma studio.

My setup

- Next.js 15 app router
- My schema file is in prisma/schema.prisma and the my other
.prisma
files are in prisma/models/

What I've tried

- I have tried a lot of different generate outputs
- Adding the the path to the prisma.schema to the package.json
- Running migrate or generate or both

schema.prisma:
datasource db {
  provider = "postgresql"
  url      = env("DATABASE_URL")
}

generator client {
  provider = "prisma-client-js"
  output   = "../app/generated/client"
}


package.json:
"prisma": {
    "seed": "ts-node --compiler-options {\"module\":\"CommonJS\"} prisma/seed/index.ts",
    "schema": "./prisma/schema.prisma"
  },
Screenshot_2025-07-10_at_13.51.13.png
Was this page helpful?