er diagram creator
|
export
|
vertical
# define your er diagram here :) # # python syntax highlighting works well # for this format, if you want to edit # the diagram in a fancy text editor. # an entity. def Label(): # an entity with attributes. def Item(_Id, Name, Type): x = 700 y = 400 # an entity with only a key attribute def Box(_Id, Capacity): w = 120 h = 60 # a relation using n:m notation. # `(,)` will be displayed as `,`. Item(1, contains, n) # a relation in both directions, # using min-max and n:m notation. Label((1,1), has, (0,1), 1, is on, 1) # config options: [what.]option[/mod] seed = changeme background = transparent text-color = light-dark(black, white) shape-color = light-dark(#CCC, #333) border-color = light-dark(black, white) line-color = light-dark(black, white) attribute.border-color = #808080 keyattribute.border-color = light-dark(black, white) keyattribute.border-dashed = true keyattribute.text-underlined = true font-size = 12 entity.font-size/scale = 1.5 attribute.font-size/scale = 1 relation.font-size/scale = 0.9 relationtext.font-size/scale = 0.8 # seed, background, text-color, # shape-color, border-color, line-color, # border-dashed, text-underlined, # font-size # /export: used when exporting svg # /scale: multiplies option by factor # attribute (keyattribute), entity, # relation (relationtext, relationnum)