emyann / prisma-uml Goto Github PK
View Code? Open in Web Editor NEWA CLI to transform a Prisma schema to a PlantUML Entity RelationShip Diagram
A CLI to transform a Prisma schema to a PlantUML Entity RelationShip Diagram
Currently snyk is a dependency which causes our project to download it. However I don't see a reason why it should do that. I noticed because snyk is a 50mb dependency.
The Prisma CLI support uses the default schema.prisma
location at prisma/schema.prisma
. If there's no such file, CLI may find the package.json setting about Prisma at prisma.schema
.
So maybe we could support the default path setting, which is same as Prisma CLI
First off, amazing library, thank you!
Prisma allows you to map column names, for example, if you wanted to stick to JavaScript naming conventions (as camelCase) in the code, and database naming conventions in the database (as snake_case), it adds @map("my_column_name")
.
It also has a @@map("table_name")
for the table name should you not want to use the default PascalCase naming convention in the database.
For example, here is an example schema:
model PrismaUml {
isAwesome Boolean @default(true) @map("is_awesome")
@@map(name: "prisma_uml")
}
The Plant UML that gets generated uses the field isAwesome
but it would be great if it could use the database field is_awesome
, either by default or as a configuration option.
Thanks again for this great tool! Very quick and easy to get going with.
I saw in the ReadMe for upcoming. Opening an issue to +1 it and have a place to track it.
Hi,
Is there any near future updates on the security PRs?
Let me know, if I can help with getting those updated.
And great plugin, thanks for the great work! :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.