Moodle 4.0 database schema now available

Moodle 4.0 is the latest version release of the world’s most popular open source LMS. The latest Major release includes a plethora of new features which are focused on improving the User Experience. Marcus Green – Author of the Moodle Gapfill and WordSelect question types recently posted the full documentation and diagrams for the Moodle 4.0.2+ database structure.

The documentation and diagrams also known as ERD diagrams covers all tables and relationships and additional implied PK/FK relationships.

An Entity Relationship (ER) Diagram is a type of flowchart that illustrates how “entities” such as people, objects or concepts relate to each other within a system. ER Diagrams are most often used to design or debug relational databases in the fields of software engineering, business information systems, education and research.

The current ER diagrams information is generated from the Moodle database schema as contained in the Moodle install.xml files. A standard Moodle install discards all field comments and foreign key relationships.

Marcus has been working on the first versions of this documentation since early 2004. He has also a compilation of old versions ER diagrams. You can check out the older versions archive here.

Related articles

Are you still paying thousands for Interactive eLearning Software in 2026? And why you shouldn’t…

There are still many instructional designers, elearning content creators...

Moodle Plugins directory now read only – Moodle Marketplace releasing on July 20th

Moodle Plugins directory which has been the backbone of...

Join MoodleMoot Global 2025 in Edinburgh UK from 16-18 September 2025

MoodleMoot Global 2025 will take place from in Edinburgh...

Join MoodleMoot Australia 2024 on 26-27 November 2024 in Melbourne

MoodleMoot Australia 2024 will take place on 26-27 November...

Case Studies