-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Until yesterday, `prisma-markdown` could not distinguish whether 1: N relationships are mandatory or not. In such reason, `prisma-markdown` had drawn 1: N relationship as `||---|{` symbol regardless of the N position is whether mandatory or optional. To make it clear, I've come with new idea `@minItems 1` tag. If the tag being written on a 1: N relationship accessor, `prisma-markdown` will draw `||---|{` symbol. Otherwise it does not exist, `||---o{` symbol would be drawn instead. ```typescript model bbs_articles { id String @id @db.Uuid created_at DateTime @db.Timestamptz deleted_at DateTime? @db.Timestamptz //---- // RELATIONS //---- /// @minItems 1 snapshots bbs_article_snapshots[] comments bbs_article_comments[] } ```
- Loading branch information
Showing
9 changed files
with
1,830 additions
and
69 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
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
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
Oops, something went wrong.