Skip to content

jonathar/plantuml_styles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

plantuml_styles

A collection of PlantUML styles.

Example Schema

Motivation

For starters, I've wanted a good database schema diagramming tool for a while. I recently stumbled across these two wonderful usages of PlantUML:

Usage

Simply add these two lines near the top of of your PlantUML file:

  !include https://raw.githubusercontent.com/jonathar/plantuml_styles/main/DB_Schema.puml
  LAYOUT_WITH_LEGEND()

Then define the schema thusly (see the samples/relational_db_scheam.puml for relations):

Table(user, "user\n(User in our system)") {
    pk(id) INTEGER
    not_null(unique(username)) VARCHAR[32]
    not_null(password) VARCHAR[64]
    constraints_header()
    unique_constraint(uc_user (id, username))
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published