Mapping users to all of their files(URLs) in a mysql database. -


what want when have looked user in table, want list file urls user have access to. first thought have field in table list of file urls. however, have understood there no such field type.

i thinking maybe foreignkeys might work, having trouble getting head around it.

another solution maybe have 1 table each user, each row representing each file.

what best practice in case? going expand having shared files, thought i'd address issue first.

suggest explore json data type


Comments

Popular posts from this blog

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

python - Error: Unresolved reference 'selenium' What is the reason? -

php - Need to store a large amount of data in session with CI 3 but on storing large data in session it is itself destorying automatically -