Skip to main content

Module: template/mermaid/relation

Variables

default

Const default: "<% it.entity.relations.forEach((relation) => { %>\n<% if (relation.isDuplicate) { return; } %>\n\"<%= relation.dbName %>(<%= relation.name %>)\"<% -%>\n<% if (relation.joinColumnOne && relation.joinColumnNullable) { %>\n |o<% -%>\n<% } else if (relation.joinColumnOne && !relation.joinColumnNullable) { %>\n ||<% -%>\n<% } else if (!relation.joinColumnOne && relation.joinColumnNullable) { %>\n }o<% -%>\n<% } else { %>\n }|<% -%>\n<% } %>\n -- <% -%>\n<% if (relation.inverseJoinColumnOne && relation.inverseJoinColumnNullable) { %>\no| <% -%>\n<% } else if (relation.inverseJoinColumnOne && !relation.inverseJoinColumnNullable) { %>\n|| <% -%>\n<% } else if (!relation.inverseJoinColumnOne && relation.inverseJoinColumnNullable) { %>\no{ <% -%>\n<% } else { %>\n|{ <% -%>\n<% } %>\n\"<%= relation.inverseEntityDBName %>(<%= relation.inverseEntityName %>)\": <% -%>\n\"<%= [relation.joinColumnName,relation.inverseJoinColumnName].filter((name) => name != null).sort().join(',') %>\"<% -%>\n\n<% }) %>"

Defined in

template/mermaid/relation.ts:1