Tuesday, January 11, 2022

Symbols from MySQL Entity Relationship Diagrams

Entitities

primary key primary key
optional foreign key optional foreign key
required foreign key required foreign key
optional attribute optional attribute
required attribute required attribute

Example Entity

An entity drawn by MySQL Workbench with a primary key, an optional foreign key, three required foreign keys, an optional attribute, and three required attributes.

An entity drawn by MySQL Workbench with a primary key, an optional foreign key, three required foreign keys, an optional attribute, and three required attributes.

Relationships

Relationship Ends

zero or one zero or one (optional)
one and only one one and only one (required)
zero or many zero or many (optional)
one or many one or many (required)

One-to-One Relationships

zero or one to zero or one zero or one (optional) to zero or one (optional)
one and only one to zero or one one and only one (required) to zero or one (optional)
zero or one to one and only one zero or one (optional) to one and only one (required)
one and only one to one and only one one and only one (required) to one and only one (required)

One-to-Many Relationships

zero or one to zero or many zero or one (optional) to zero or many (optional)
one and only one to zero or many one and only one (required) to zero or many (optional)
zero or one to one or many zero or one (optional) to one or many (required)
one and only one to one or many one and only one (required) to one or many (required)

No comments:

Post a Comment