Skip to content

Commit

Permalink
installed prisma
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjana-singhania committed Sep 22, 2024
1 parent 80ba80c commit ca881a6
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
POSTGRES_USER=user
POSTGRES_USER=username
POSTGRES_PASSWORD=password
2 changes: 2 additions & 0 deletions apps/db/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ services:
- ../../volumes/postgres:/var/lib/postgresql/data
ports:
- "${POSTGRES_PORT:-5432}:5432"
env_file:
- ../../.env
14 changes: 14 additions & 0 deletions apps/db/prisma/schema.prisma
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// 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")
}
Binary file modified bun.lockb
Binary file not shown.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,8 @@
},
"trustedDependencies": [
"core-js-pure"
]
],
"dependencies": {
"prisma": "^5.19.1"
}
}

0 comments on commit ca881a6

Please sign in to comment.