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

1
.gitignore vendored
View File

@ -3,3 +3,4 @@ node_modules
.env
config.json
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",
"eslint": "^8.39.0",
"eslint-config-prettier": "^8.8.0",
"prisma-dbml-generator": "^0.10.0",
"prisma-docs-generator": "^0.7.0",
"typescript": "^5.0.4"
}
}

View File

@ -10,6 +10,21 @@ datasource db {
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 {
normal
borrowed