Liferay 7 ERD DiagramLiferay 7 ERD Diagramhttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1182010322024-03-29T01:29:00Z2024-03-29T01:29:00ZRE: Liferay 7 ERD DiagramDavid H Nebingerhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1182026232020-01-04T16:18:38Z2020-01-04T16:18:38ZWow, I think Olaf was channeling me on that response! <img alt="emoticon" src="@theme_images_path@/emoticons/smile.gif" ><br /><br />Liferay does some funky stuff in its tables, so much so that a common ERD is just not possible. A bunch of tables have a "class name id/class pk" pair of columns indicating that they can have a relation to any other table.<br /><br />There are no foreign key relationships in the data, relationships are maintained by the code, so there's nothing there for a typical ERD to build from.<br /><br />Since everything is maintained in the code, the next release of Liferay could change how relationships are managed so your understanding of an ERD can change w/o you knowing about it.<br /><br />Long story short, the database is not a good source of understanding or learning about Liferay, whereas the documentation, the Liferay source, Liferay University, etc. are better sources. Trying to figure out an ERD is just going to waste your time trying to understand something that really won't help in the long run. Instead, invest your time in reading the doco or the source or ... You'll be much better off in the long run.David H Nebinger2020-01-04T16:18:38ZRE: Liferay 7 ERD DiagramOlaf Kockhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1182022542020-01-04T13:40:21Z2020-01-04T13:40:21Z<div class="quote-title">AmirHosein Orojlo:</div><blockquote><br />hi i need to see entity–relationship model (ERD) in liferay 7 , how can find or design it? <br /></blockquote>You're wrong: You don't need it. In fact, you should stay out of the database completely. It's not your data, you shouldn't worry about the data stored and just handle it as a black box. Any time you're assuming you know what's required to store data in there, you're setting yourself up for failure, either immediately or some months or years in the future (e.g. with the next upgrade). <br />Now, the question is, what do you think you need it for? The answer to that question is: Use the API for accessing any of the data stored. SQL is ok on your own tables, but absolutely not on Liferay's tables. PeriodOlaf Kock2020-01-04T13:40:21ZLiferay 7 ERD DiagramAmirHosein Orojlohttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1182010312020-01-04T10:09:56Z2020-01-04T10:09:56Zhi i need to see entity–relationship model (ERD) in liferay 7 , how can find or design it? please help mei find this <a href="http://www.sqlquery.com/lportal.pdf">pdf </a>file but i