12

Can any one help me in explaining about the icons in the ER Diagram of Database created in MySQL Workbench.

x

  • Blue Diamond (Filled);
  • Blue Diamond (unfilled);
  • Red Diamond, et cetera;
    Thanks!
Unihedron
  • 10,902
  • 13
  • 62
  • 72
danyal1990
  • 133
  • 2
  • 2
  • 9
  • 1
    See my answer at http://stackoverflow.com/questions/10778561/what-do-the-mysql-workbench-column-icons-mean/28859886#28859886 – Jan Mar 04 '15 at 17:05
  • Does this answer your question? [What do the mysql workbench column icons mean](https://stackoverflow.com/questions/10778561/what-do-the-mysql-workbench-column-icons-mean) – pippo1980 Mar 13 '21 at 09:12

1 Answers1

13

I've found these resources on MySQL's website:

If the icon is a small key, that column belongs to the primary key, otherwise the icon is a blue diamond or a white diamond. A blue diamond indicates the column has NN set.

In addition to the text above, a red diamond indicates a Foreign Key association.

To answer your question:

  • Blue Diamond (Filled) = indicates NOT NULL
  • Blue Diamond (unfilled) = indicates NULL
  • Red Diamond, et cetera = indicates a foreign key {filled: NOT NULL, unfilled: NULL}
Damien Wilson
  • 315
  • 3
  • 9