add prisma

This commit is contained in:
lucaspalomodevelop 2022-11-29 20:39:03 +01:00
parent eec129679e
commit 73614b41ad
4 changed files with 46343 additions and 8898 deletions

37397
api/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -10,7 +10,7 @@
"scripts": {
"start": "node ./bin/app",
"test": "echo \"Error: no test specified\" && exit 1",
"getfrontend":"cd ../frontend && yarn "
"getfrontend": "cd ../frontend && yarn "
},
"dependencies": {
"@popperjs/core": "^2.11.6",
@ -31,6 +31,7 @@
"poi": "^9.0.0",
"poi-preset-bundle-report": "^2.0.0",
"poi-preset-offline": "^9.0.0",
"prisma": "^4.7.0",
"serve": "^6.1.0",
"tyu": "^1.0.4"
}

11
api/prisma/schema.prisma Normal file
View File

@ -0,0 +1,11 @@
// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "sqlite"
url = env("DATABASE_URL")
}

File diff suppressed because it is too large Load Diff