mirror of
https://github.com/GithubOrgProjectPiza/server.git
synced 2026-09-04 00:26:07 +02:00
Update package.json to add prisma; Add prisma library
This commit is contained in:
@@ -19,8 +19,10 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/GithubOrgProjectPiza/server#readme",
|
"homepage": "https://github.com/GithubOrgProjectPiza/server#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@prisma/client": "^3.10.0",
|
||||||
"@types/express": "^4.17.13",
|
"@types/express": "^4.17.13",
|
||||||
"express": "^4.17.3",
|
"express": "^4.17.3",
|
||||||
|
"prisma": "^3.10.0",
|
||||||
"ts-node": "^10.5.0",
|
"ts-node": "^10.5.0",
|
||||||
"typescript": "^4.5.5"
|
"typescript": "^4.5.5"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
import { PrismaClient } from "@prisma/client";
|
||||||
|
|
||||||
|
// See here: https://github.com/prisma/prisma-client-js/issues/228#issuecomment-618433162
|
||||||
|
let prisma: PrismaClient;
|
||||||
|
|
||||||
|
prisma = new PrismaClient();
|
||||||
|
|
||||||
|
export default prisma;
|
||||||
Reference in New Issue
Block a user