mysql - PHP: Database structure for user based networking -


some basics: using user authenticated login admin system allows users add customers, , array of info customers, including geo-location information use gmap api. goal allow users add each other networking purposes in regards customer clientele. wondering best approach @ building database/table structure should be.

at moment, have database called pbud1 users table , customers table. networking, idea use users unique id-> uid identifier network. add table when network instantiated user, naming table network_+the id 'users' table, ex: network_uid pbud1.network_uid = pbud1.users.uid. if user has id of 6 network_6. within new table "network_6", place relevant information on each row each user added users network, ie; nid(key/ai) net_user_id(uid), geo_location, business, name, etc...

goal: allow each user within parent network access specific user.parent customers information. suggest users user.parent due geo_location of customer base between related users.

honestly semantics not important here structure , build of db table relationship in regards ability networked users access each others customers information.

any assistance on approach appreciated!


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -