For photo albums, I see that most people use 3 tables:
Albums Photo PhtoAlbums.
However, if I look at a site like facebook, this scheme will not work (if I understand correctly), because I can have a photo in my profile album and in general albums, but I can give the same image of different descriptions, different tags, etc. Even the photo id is different. Therefore, I assume that when a user creates a copy of a photo, it is processed by a completely new photo, and therefore we only need two tables: Albums and photos (which have FK for the album)
In other options, there is a photo table with only 1 column (photo_id) and put all the photo data in the PhotoAlbum table so that I can provide each unique property for the album.
Am I really in this project?
source
share