This commit is contained in:
Sören Oesterwind 2023-05-08 20:05:08 +02:00
commit 43ef7fd395
4 changed files with 3376 additions and 144 deletions

3
.gitignore vendored
View File

@ -2,4 +2,5 @@ config.js
node_modules node_modules
.env .env
config.json config.json
dist dist
docs

3500
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -37,6 +37,8 @@
"@types/signale": "^1.4.4", "@types/signale": "^1.4.4",
"eslint": "^8.39.0", "eslint": "^8.39.0",
"eslint-config-prettier": "^8.8.0", "eslint-config-prettier": "^8.8.0",
"prisma-dbml-generator": "^0.10.0",
"prisma-docs-generator": "^0.7.0",
"typescript": "^5.0.4" "typescript": "^5.0.4"
} }
} }

View File

@ -10,6 +10,21 @@ datasource db {
url = env("DATABASE_URL") url = env("DATABASE_URL")
} }
// https://github.com/pantharshit00/prisma-docs-generator
generator docs {
provider = "node node_modules/prisma-docs-generator"
output = "../docs"
}
// https://github.com/notiz-dev/prisma-dbml-generator
// Viewer: https://dbdiagram.io/d
generator dbml {
provider = "prisma-dbml-generator"
output = "../docs"
outputName = "schema.dbml"
projectName = "AssetFlow"
}
enum Status { enum Status {
normal normal
borrowed borrowed