PrismaP
Prisma7mo ago
5 replies
Markigno

multi file schema

I'm creating a new project with new schema and i want to use multi-file approach.
I have the directory "prisma" where is add the file schema.prisma with this content
generator client {
provider = "prisma-client-js"
output = "../generated/prisma"
}

datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
relationMode = "prisma"
}

now i have all the schemas inside the subdirectory "schema". When i run npx prisma generate it generate an empty schema without the models. what i'm doing wrong?
Was this page helpful?