One to Many relashionships for a restaurants website?
- by myaccount
Each restaurant has restaurant branches, each branch must determine which days of the week it opens, each of those days must determine (several) open_hour and close_hour thru that day.
I created one to many relationship using these tables:
rest_names --- rest_branches --- open_days --- open_hours
Am I going right this way? or there is another way to do this, maybe less complicated?
And how the query will be like to get the hours of a restaurant on a specific day, say sunday?