At the moment, we have this design for storing objects with multiple image/video URLs:
tblCompany:
pkCompanyId
tblPerson:
pkPersonId
tblImage:
pkImageId
ImageUrl
fkCompanyId
fkPersonId
While this design handles:
- A company having multiple images
- A person having multiple images
I can't help feeling that there is a problem with this design as rows in tblImage will have tons of NULL values for the foreign key columns.
Is there a better design? More objects (some unrelated to company or person, some related to company or person) in the design will have images so with the current design tblImage could have more and more foreign keys.