Mysql database making it flexible -
im new databases etc....i need build database using mysql.....that flexible.....ie: need basic databse....but dependant upon user needs flexible carter different type of info put in.... 1 user may input data small report , may have put lot more in report needs more detailed..... problem have no 2 reports same , pre-empt every scenarios impossible. ideas anyone??
thanks
you can create users table, reports table, data table, , reports_data table.
it this:
_______ |users | |-------| |user_id| --------- _________ |reports | |------- | |report_id| |user_id | ---------- _______ |data | |-------| |data_id| --------- ________________ |reports_data | |------- | |reports_data_id| |report_id | |data_id | |user_id | -----------------
then every piece of data user creates report store in data table, , store report_id , data_id's in reports_data table.
Comments
Post a Comment