It all started with a post on Moodle.org forums from developer Marcus Green, of Titus fame, when he showcased the Entity Relationship diagram for the Moodle™ 2.7.
The Entity Relationship diagram is a graphical representation of entities and their relationships to each other, within databases. It has been created using MySQL Workbench.
Download the ER diagram over at examulator.com/er.