CraigDolphin
GrumpyOldMan in Training
- Local time
- Yesterday, 17:54
- Joined
- Dec 21, 2005
- Messages
- 1,582
Hi all.
For fun I'm embarking on a little db project (need a life methinks).
Basically it's for a combined dog kennel and dog training facility. Now, I'm aware that there's been a lot of hotel booking questions on this forum which are usually greeted with 'look at the sample database section' response: which I did and came up empty. I've searched and found some useful threads also. One of which led me to a data model which can be seen at
http://www.databasedev.co.uk/image/hotel_room_booking_data_model_image.gif.
Now, I don't want to completely re-invent the wheel if I can help it, and I'm sure I can adapt the model somewhat to suit this scenario even though I'm not a guru like some here. But there's something about this model that makes me a little 'iffy' and I was wondering if someone could help me determine if I'm right that I ought to move some of the fields in tblBookings to tblLINK_BookingsRooms.
Basically, imagine if a dog owner books in two dogs for two different durations. For example, Rover and Rex are both scheduled to arrive on March 1st, but Rover is staying one night while Rex is staying two nights.
Since the duration of the stay would be dependent on the dog and the booking, not solely the booking itself, wouldn't it be more appropriate to place the dteBookedStartDate and dteBookedEndDate fields in the LINK table?
I should clarify that a 'room' can only contain one dog at a time.
For fun I'm embarking on a little db project (need a life methinks).
Basically it's for a combined dog kennel and dog training facility. Now, I'm aware that there's been a lot of hotel booking questions on this forum which are usually greeted with 'look at the sample database section' response: which I did and came up empty. I've searched and found some useful threads also. One of which led me to a data model which can be seen at
http://www.databasedev.co.uk/image/hotel_room_booking_data_model_image.gif.
Now, I don't want to completely re-invent the wheel if I can help it, and I'm sure I can adapt the model somewhat to suit this scenario even though I'm not a guru like some here. But there's something about this model that makes me a little 'iffy' and I was wondering if someone could help me determine if I'm right that I ought to move some of the fields in tblBookings to tblLINK_BookingsRooms.
Basically, imagine if a dog owner books in two dogs for two different durations. For example, Rover and Rex are both scheduled to arrive on March 1st, but Rover is staying one night while Rex is staying two nights.
Since the duration of the stay would be dependent on the dog and the booking, not solely the booking itself, wouldn't it be more appropriate to place the dteBookedStartDate and dteBookedEndDate fields in the LINK table?
I should clarify that a 'room' can only contain one dog at a time.