added prisma and db

This commit is contained in:
PxlLoewe
2025-01-17 00:24:09 +01:00
parent 9315454159
commit 0344e1b51a
5 changed files with 79 additions and 0 deletions

3
packages/database/.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
node_modules
# Keep environment variables out of version control
.env

View File

@@ -0,0 +1,14 @@
{
"name": "@repo/db",
"version": "0.0.0",
"description": "VAR Databse package",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"@prisma/client": "^6.2.1"
}
}

View File

@@ -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")
}