Skip to content

Instantly share code, notes, and snippets.

View xEgorka's full-sized avatar
⌨️
keyboarding

Egor Maltsev xEgorka

⌨️
keyboarding
  • above the eternal peace
View GitHub Profile
@xEgorka
xEgorka / example.puml
Created September 14, 2018 08:51 — forked from QuantumGhost/example.puml
A simple template for PlantUML to draw ER diagram. The basic idea comes from http://plantuml.sourceforge.net/qa/?qa=331/database-modeling
@startuml
' uncomment the line below if you're using computer with a retina display
' skinparam dpi 300
!define Table(name,desc) class name as "desc" << (T,#FFAAAA) >>
' we use bold for primary key
' green color for unique
' and underscore for not_null
!define primary_key(x) <b>x</b>
!define unique(x) <color:green>x</color>
!define not_null(x) <u>x</u>