Entity relationship diagrams are used to model the relationships between the various elements when designing a database.