Quote:
|
Originally Posted by Ginger The Cat
Is the answer that if I need to change the design in the future separate tables would be more flexible?
|
yes
you said "every shop is unique" so i think it unlikely that you will ever have an advert that covers two shops
however, it's not unlikely that you might want to have a shop with a second advert
therefore the relationship should be one-to-many from shop to advert
therefore the foreign key should be in the advert table
remove advert_id from the shop table, and add shop_id to the advert table
i.e. basically switch your one-to-one relationship around, eh
