Skip to content

Commit

Permalink
(feat): Enable having multiple schema files for prisma before prisma/…
Browse files Browse the repository at this point in the history
…prisma#2377 is resolved through prisma-multischema
  • Loading branch information
mathiasberggren committed Apr 23, 2024
1 parent 4ff5d44 commit 4175559
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
"jest": "^29.7.0",
"prettier": "^3.0.0",
"prisma": "^5.11.0",
"prisma-multischema": "^1.1.4",
"source-map-support": "^0.5.21",
"supertest": "^6.3.3",
"ts-jest": "^29.1.0",
Expand Down
File renamed without changes.
7 changes: 7 additions & 0 deletions apps/api/prisma/schema.prisma
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
//🧩Don't Edit this file.✨Generated in Tue Apr 09 2024 20:47:08 GMT+0200 (Central European Summer Time)✨
model Movie {
id Int @id @default(autoincrement())
title String
director String
createdAt DateTime @default(now())
}
6 changes: 6 additions & 0 deletions apps/api/prisma/subschemas/movies.prisma
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
model Movie {
id Int @id @default(autoincrement())
title String
director String
createdAt DateTime @default(now())
}

0 comments on commit 4175559

Please sign in to comment.