Skip to content

Commit

Permalink
fix: Improve labeling of nullable and primary keys in table
Browse files Browse the repository at this point in the history
  • Loading branch information
keonik committed Mar 25, 2023
1 parent 725ea00 commit dbd9117
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [1.4.4](https://github.com/keonik/prisma-erd-generator/compare/v1.4.2...v1.4.4) (2023-03-25)

### [1.4.2](https://github.com/keonik/prisma-erd-generator/compare/v1.4.1...v1.4.2) (2023-03-25)

### [1.4.1](https://github.com/keonik/prisma-erd-generator/compare/v1.4.0...v1.4.1) (2023-03-25)
Expand Down
2 changes: 1 addition & 1 deletion ERD.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
"main": "./dist/index.js",
"typings": "./dist/index.d.ts",
"files": [
"dist",
"src",
"tsconfig.json"
"dist"
],
"engines": {
"node": ">=14"
Expand Down
4 changes: 2 additions & 2 deletions src/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,9 @@ ${
)} ${
field.isId ||
model.primaryKey?.fields?.includes(field.name)
? 'PK🗝️'
? '"🗝️"'
: ''
} ${field.isRequired ? '' : '"nullable"'}`;
}${field.isRequired ? '' : '""'}`;
})
.join('\n')
}
Expand Down

0 comments on commit dbd9117

Please sign in to comment.