mysql - ER Diagram based on multiple databases & tables which derive names from column values from other table -


so have learning management system. there total 5 databases.

lms_data_db lms_course_db lms_test_db ..n 2 more 

now whenever row added under lms_data_db.course_data course_id=200, table named course_200 created under lms_course_db.

likewise when row added under lms_course_db.course_100 chapter_id=100, table named chapter_200_100 created under lms_test_db.

my question how put in erd!?

deriving erd existing implementation reverse engineering. can term more reading. if agree doing reverse engineering, should pay attention commentary provided @pala_ on design of original db.

i suggest entirely different approach, based on forward engineering. start subject matter. analyze subject matter entities , relationships between entities. discover attributes describe these entities , relationships means of data values. these data values database going store.

the above process yields er model , erd depicts subject matter, rather proposed solution.

then can proceed designing database stores these data values in way makes sense, given tools using , intended use of data.


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -