-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f4da6e9
commit c8be7ef
Showing
6 changed files
with
74 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Pull Request Check | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
- run: npm install | ||
- name: makeERD | ||
run: | | ||
npm run db:generate | ||
- id: checkErdDiff | ||
run: echo "changed=$(git diff --name-only src/app/prisma/ERD.md)" >> $GITHUB_OUTPUT | ||
- run: echo ${{ steps.checkErdDiff.outputs.changed}} | ||
- if: ${{ steps.checkErdDiff.outputs.changed != '' }} | ||
run: | | ||
echo "ERD.md has changed.Please update ERD.md and commit it." | ||
exit 1 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
```mermaid | ||
erDiagram | ||
"Post" { | ||
Int id "🗝️" | ||
DateTime createdAt | ||
DateTime updatedAt | ||
String title | ||
String body "❓" | ||
Boolean draft | ||
Boolean notice | ||
String scope | ||
DateTime publishedAt "❓" | ||
Int authorId | ||
} | ||
"User" { | ||
Int id "🗝️" | ||
String email | ||
String name "❓" | ||
} | ||
"Tag" { | ||
Int id "🗝️" | ||
String name | ||
} | ||
"PostTag" { | ||
Int postId "🗝️" | ||
Int tagId "🗝️" | ||
} | ||
"Post" o|--|| "User" : "author" | ||
"Post" o{--}o "PostTag" : "tags" | ||
"User" o{--}o "Post" : "posts" | ||
"Tag" o{--}o "PostTag" : "posts" | ||
"PostTag" o|--|| "Post" : "post" | ||
"PostTag" o|--|| "Tag" : "tag" | ||
``` |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters