Skip to content
This repository has been archived by the owner on May 3, 2023. It is now read-only.

Display whether or not the columns are nullable #51

Open
ValentinVignal opened this issue Mar 31, 2022 · 1 comment
Open

Display whether or not the columns are nullable #51

ValentinVignal opened this issue Mar 31, 2022 · 1 comment

Comments

@ValentinVignal
Copy link

It would be nice to include in the generated diagrams the (non-)nullability of some columns.

@micalevisk
Copy link

micalevisk commented Jun 13, 2022

a suggestion on how this could look:

image

name is NOT NULL, while label is nullable

diagram
@startuml
!define table(ename, dbname) entity "<b>dbname</b>"

!define pkey(x) {field} <b><color:DarkGoldenRod><&key></color> x</b>
!define fkey(x) {field} <color:#AAAAAA><&key></color> x
!define column(x) {field} <color:#EFEFEF><&media-record></color> x
!define rcolumn(x) {field} <color:#a19f9f><&media-record></color> x

hide stereotypes
hide methods
hide circle


top to bottom direction

skinparam roundcorner 5
skinparam linetype ortho
skinparam shadowing false
skinparam handwritten false

skinparam class {
    BackgroundColor white
    ArrowColor seagreen
    BorderColor seagreen
}


table( RoleEntity, Role ) as Role {
  pkey( id ): TINYINT(4) 
  rcolumn( name ): CHAR(10) 
  column( label ): CHAR(20) 
}
@enduml

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants