Skip to content

Instantly share code, notes, and snippets.

@seagoj
Last active August 13, 2020 00:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seagoj/39714c609799817ec691b078e3873ae8 to your computer and use it in GitHub Desktop.
Save seagoj/39714c609799817ec691b078e3873ae8 to your computer and use it in GitHub Desktop.
@startuml
' extend class for Table'
!define Table(name,desc) class name as "desc" << (T,#FFAAAA) >>
' primary key: bold
!define primary_key(x) <b>x</b>
' unique key: grren text'
!define unique_key(x) <color:green>x</color>
' not null underlined
!define not_null(x) <u>x</u>
' default: italic``'
!define default(x) <i>x</i>
' other tags available:
' <back:COLOR></color>, where color is a color name or html color code
' (#FFAACC)
' see: http://plantuml.com/classes.html#More
hide methods
hide stereotypes
@enduml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment