Skip to content

Commit df14619

Browse files
committed
fix: only use one prisma schema
1 parent bb7a3ce commit df14619

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/configs/prisma.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ datasource db {
2323
// This is required for development only.
2424
shadowDatabaseUrl = "postgres://postgres@localhost/prisma-shadow?pgbouncer=true&connection_limit=1"
2525
}
26-
`
2726
28-
const prismaExampleSchema = `model Example {
27+
model Example {
2928
id String @id @default(uuid())
3029
details String
3130
}
@@ -207,13 +206,9 @@ const prisma: ModuleConfig = {
207206
content: prismaEnvFile
208207
},
209208
{
210-
path: 'prisma/schema/schema.prisma',
209+
path: 'prisma/schema.prisma',
211210
content: prismaRootSchema
212211
},
213-
{
214-
path: 'prisma/schema/example.prisma',
215-
content: prismaExampleSchema
216-
},
217212
{
218213
path: 'server/api/examples.get.ts',
219214
content: prismaExampleEndpoint

0 commit comments

Comments
 (0)