sqlant
sqlant copied to clipboard
Improve relationships. Add references between specific fields.
Remove skinparam linetype ortho to make it work properly
Also add next use case: Teble 2 has two FKs to Table B
https://forum.plantuml.net/3636
Example
@startuml
hide circle
!include https://raw.githubusercontent.com/kurotych/sqlant/b2e5db9ed8659f281208a687a344b34ff38129cd/puml-lib/db_ent.puml
table(tableA) {
column(id, "bigint", $pk=true, $nn=true)
column(tableb_id1, "bigint", $nn=true)
column(tableb_id2, "bigint", $nn=true)
}
table(tebleB) {
column(id, "bigint", $pk=true, $nn=true)
}
tableA::tableb_id1 }o--|| tebleB::id
tableA::tableb_id2 }o--|| tebleB::id
@enduml