Skip to content

Commit

Permalink
prisma seted up for models
Browse files Browse the repository at this point in the history
  • Loading branch information
ikumar200 committed Jan 14, 2025
1 parent 28d93dd commit d2c023d
Show file tree
Hide file tree
Showing 3 changed files with 111 additions and 3 deletions.
90 changes: 90 additions & 0 deletions backend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev":"ts-node-dev --respawn src/index.ts",
"build":"tsc",
"start":"node dist/index.js"
"dev": "ts-node-dev --respawn src/index.ts",
"build": "tsc",
"start": "node dist/index.js"
},
"keywords": [],
"author": "",
Expand All @@ -15,10 +15,12 @@
"devDependencies": {
"@types/cors": "^2.8.17",
"@types/express": "^5.0.0",
"prisma": "^6.2.1",
"ts-node-dev": "^2.0.0",
"typescript": "^5.7.3"
},
"dependencies": {
"@prisma/client": "^6.2.1",
"cors": "^2.8.5",
"express": "^4.21.2",
"zod": "^3.24.1"
Expand Down
16 changes: 16 additions & 0 deletions backend/prisma/schema.prisma
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema

// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?
// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init

generator client {
provider = "prisma-client-js"
}

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


0 comments on commit d2c023d

Please sign in to comment.