0.2.1 • Published 1 month ago

prisma-grapher v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

Prisma Grapher

Prisma generator to create an ER Diagram every time you generate your prisma client.

Inspired by prisma-erd-generator

Install

yarn add -D prisma-grapher

or

npm install -D prisma-grapher

Configure

Add to your schema.prisma

generator erd {
  provider = "prisma-grapher"
}

Generate

Run the generator

npx prisma generate

Output

Blog ERD

Options

generator erd {
  provider              = "prisma-grapher"
  output                = "./ERD.svg"
  disabled              = false
  title                 = "Blog Schema"
  ignoreEnums           = false
  lineColor             = "#004cff"
  headerBackgroundColor = "#bacefc"
  headerForegroundColor = "black"
  bodyBackgroundColor   = "white"
  bodyBackgroundColor2  = "#e8efff"
  bodyForegroundColor   = "black"
  typeForegroundColor   = "#4f83ff"
}
0.2.1

1 month ago

0.2.0

1 month ago

0.1.13

5 months ago

0.1.12

6 months ago

0.1.11

6 months ago

0.1.10

6 months ago

0.1.9

6 months ago

0.1.8

6 months ago

0.1.7

6 months ago

0.1.6

6 months ago

0.1.5

6 months ago

0.1.4

6 months ago

0.1.3

6 months ago

0.1.2

6 months ago

0.1.1

6 months ago

0.1.0

6 months ago