We were all there - consider the following example: firstly, the client says that “each user will have only one profile image,” so we add a field for this to the user table - six months later, the requirements change and the user really needs to have n images profile.
Now this is only possible if you add a new table, such as user_pictures, to handle the new power 1: n instead of 1: 1. This can often be very difficult. Whenever I encounter this problem, I wonder why we are not using all three dimensions that we can think of. The two-dimensional table is limited in such a way that it is somewhat incomplete - what if, referring to our problem with the profile image, again, the image field in the users table had depth , and this depth made the field an array that perfectly displayed both 1: 1 and 1 powers: n
The fields of the table will simply become arrays and automatically support both powers - wouldn't that be something? At least I would use it. Is there something like this out there already?
weltschmerz
source share