Welcome to yEd Q&A!
Here you can ask questions and receive answers from other members of the community and yEd developers. And you can tell us your most wanted feature requests.

Categories

Entity Relationship Diagram / Entity with attributes mark an attribute as key.

0 votes
Hi together,

I would look like to know whether it is possible to mark an attribute at an 'entity with attributes' as (primary-/foreign) key.

And if it is possible it would be nice, if someone could tell me how to doing this.

So far,

Daniel
in Help by

1 Answer

0 votes

Well, that depends on how you want the primary/foreign key properties to be visualized.

The attributes part of an ERD node is the text of the node's second label. You could add short hands like "PK" and "FK" to the respective attribute lines.
Another possibility would be to use HTML formatting for the attributes label and use underlining or HTML entities to mark specific parts of the text. (Please see How can I achieve different text stylings within one label? for more information on HTML formatting.)
Yet another possibility would be to add additional labels with (small) icons cleverly placed before or after the attributes you want to mark.


Sample GraphML.

by [yWorks] (160k points)
edited by
Thanks for your very fast reply! It helped me a lot!
Legal Disclosure | Privacy Policy
...