Moodle – online ER diagram

View the diagram Open full screen
Entity relationship diagram - MariaDB or MySQL. Moodle.

From moodle.org:

  • Moodle is the world’s most popular learning management system.
  • Moodle is a learning platform designed to provide educators, administrators and learners with a single robust, secure and integrated system to create personalised learning environments.
  • With over 10 years of development guided by social constructionist pedagogy, Moodle delivers a powerful set of learner-centric tools and collaborative learning environments that empower both teaching and learning.
  • Powering hundreds of thousands of learning environments globally.

For more information visit https://www.moodle.org
See https://en.wikipedia.org/wiki/Learning_management_system for details about learning management systems (LMS)

Online ER Diagram / database design#

The database design was created by loading the database structure from a remotely hosted Moodle version 4-0-2. The target database was MariaDB. The diagram contains 468 tables. The amount of tables and metadata might affect the performance of the diagram/report, that’s why it is recommended to use Luna Modeler for better user experience.

How to use the ER diagram: click on a db table in the online ER Diagram. A new window opens – and in the window you can view the details of the table, including how indexes are defined and other details of the selected MariaDB table.

The database structure doesn’t include relationships and like in many other open source systems, database functions, table triggers and other database objects are not specified.

Moodle LMS · ER diagramOpen in new tab

Details#

Target database
MariaDB
Luna Modeler project file
https://www.dbdiagrams.com/online-diagrams/moodle.dmm
Moodle license
GPL v3 or later

Build on Moodle#

Improve the system

Extend Moodle

Planning a plugin, module or extension? Find the tables you will work with, then model your own tables and amendments right next to them, before you write a line of code.

Get inspired

Craft a new system

Building something of your own? Study how Moodle structures its data, take the ideas that work, and design a data model that fits your project.

Respect the license. Moodle is released under the GPL v3 or later. Copyleft licenses like this one generally require that work based on the code that you distribute, such as a plugin or a fork, is released under the same license and keeps the original copyright notices. Whatever you build, read the license and follow its terms.

More ER diagrams

All in MySQL
SQL Server ER diagram MIT License

AdventureWorks

Microsoft has made available an example database called AdventureWorks that is intended for testing and demonstrating different Microsoft SQL Server functionalities.

MariaDB ER diagram GPL v2

osTicket – ER Diagram

by osTicket.com: osTicket is a robust customer support portal system to help your business maintain happy customer relationships.

PostgreSQL ER diagram PostgreSQL License

Pagila

Pagila is a port of the Sakila example database available for MySQL, which was originally developed by Mike Hillyer of the MySQL AB documentation team. It is intended to provide a standard schema that can be used for examples in books, tutorials, articles, samples, etc.