Magento MySQL database diagram
Posted by Tomislav Bilic under Magento @ 20th OCT 2008

If you worked with osCommerce, Zen Cart, CRE Loaded or any similar eCommerce platform before, you might find Magento database structure quite confusing when you see it for the first time. I advise you not to rush too much figuring out what is what by glancing through database. Try to spend first few hours getting familiar with some background. For purposes of flexibility, the Magento database heavily utilizes an Entity-Attribute-Value (EAV) data model. As is often the case, the cost of flexibility is complexity. Is there something in Magento that is simple from developers point of view?
Data manipulation in Magento is often more knowledge demanding than that typical use of traditional relational tables. Therefore, an understanding of EAV principles and how they have been modeled into Magento it is HIGHLY recommended before making changes to the Magento data or the Magento schema (Wikipedia: Entity-attribute-value_model). Varien has simplified the identification of EAV related tables with consistent naming conventions. Core EAV tables are prefixed with “EAV_”. Diagrams in this post contain a section labeled “EAV” which displays Magento’s core EAV tables and thier relationships to non-EAV tables.

Download Magento 1.1.6 MySQL database diagram (PDF, 173kb)
Database diagrams and documents found in this post are intended to mirror the database schema as defined by Varien. Table relationships depicted in the diagrams represent only those relationships explicitly defined as Foreign Keys in the Magento database. Additional informal/undiagrammed table relationships may also exist, so when modifying the schema or directly manipulating data it is important to identify and evaluate possible changes to these tables as well (and the tables they relate to, and the tables they relate to…).
The author of Database Diagram is Gordon Goodwin, IT Consultant. You can see his info in the PDF.
5 Responses to “Magento MySQL database diagram”
Leave a Reply
Recent Posts:
- 02 Jan Contact Form in Magento
- 31 Dec Review of Zend Studio for...
- 28 Dec What is a #pragma mark?
- 22 Dec More Flexible Approach fo...
- 19 Dec Is YouTube the Future of ...
- 17 Dec CRU(EL)D: Reinventing the...
- 17 Dec Toni Anicic on Vidi Web T...
- 16 Dec 1 PSD and 2 Web Tools for...
- 12 Dec Wordpress 2.7 Is Out—an...
- 08 Dec First time working with O...
Tags:
method Online Marketing oscommerce view marketing development framework theme management advertising ajax iphone project Wordpress class navigation template jquery Google search object color products tutorials Tools seo Magento product tool graph
Recent Comments:
- Tomislav Bilic on CRU(EL)D: Reinventing the Wheel:
Hi Anshul, I guess you were speaking about this project: http://propel.phpdb.org/trac/... - Anshul on CRU(EL)D: Reinventing the Wheel:
May be using a Class generator which will generate Object class based on your DB schema can be of he... - Adam on Review of Zend Studio for Eclipse Professional Edition 6.1:
I used to use Zend Studio exclusively for all my development work. But I can't justify the price tha... - Hisham on Featured products on Magento frontpage:
Does this tutorial works with 1.2 ?... - Suomedia on What is the best shopping cart?:
Which is best really depends on the needs of the user. osCommerce has and continues to serve many us... - edulink.cz on Manual creation of Google Sitemap in Magento:
Thank you, very usefull!... - Branko Ajzele on Review of Zend Studio for Eclipse Professional Edition 6.1:
Hi Tony. Nice to hear you like the article. I still havent manage to play with Magento in it. Will... - Reddy on UPS API Quest:
Hello Ben, I need UPS API docs. I did a lot Google searches, but didn't find anywhere. So please ... - Tony on Review of Zend Studio for Eclipse Professional Edition 6.1:
Great Article! I always look forward to anything that will help me with Magento. I have been using C... - New Revolution Theme Released on Revolution 2 is launched:
Brian just launched a new theme called Streamline just the other day. Merry Christmas, it's free to...

I can’t believe no one has take the trouble to thank you for this effort.
This is exactly what I have been looking for.
Many thanks,
Harry Pierson
can’t believe someone actually done this! this will surely speed up my progress.
thanks a lot!
YES!!!. Very nice. Very helpful. Thanks again.
Hi guys,
Sorry for misunderstanding. Let me clarify something. I’m not the author. The Author is Gordon Goodwin, IT Consultant. You can see his info in the PDF.
thanks gordon , and you for publishing