design a hotel booking system

Reply

Join Date: Dec 2007
Posts: 1
Reputation: charbel-ebiz is an unknown quantity at this point 
Solved Threads: 0
charbel-ebiz charbel-ebiz is offline Offline
Newbie Poster

design a hotel booking system

 
0
  #1
Dec 13th, 2007
what is the best way to design a room hotel resveration system
is it by crating entites : reservation( room_id, start_date, end date)
or by creating entites : calender( calender_id, date), reservation(reservation_id, room_id, client_id) bookedates(reservation_id, calender_id) where to store dates of reservation

ps : it will be an onlnie reservation system so we have to show client available dates for reservation

thx
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 160
Reputation: kb.net is an unknown quantity at this point 
Solved Threads: 26
kb.net's Avatar
kb.net kb.net is offline Offline
Junior Poster

Re: design a hotel booking system

 
0
  #2
Dec 13th, 2007
Hi,

I think the best setup is:
calender( calender_id, date)
reservation(reservation_id, room_id, client_id,calender_id)
This way you will have the max control over your database where for wach day the client reservers a record will be inserted and if x days where reserved x records will be inserted. I have applied this to a hospital reservation system and it is working excelent as I can transfer reservation, break it, or cancel it easily.
It is never about the number of languages you know, you either have the logic of programming or you don't ...

Some of the codes I post are collected from different sites during the past couple of years, so I would like to thank them for their help and for enabling me to help.
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 2
Reputation: sam10 is an unknown quantity at this point 
Solved Threads: 0
sam10 sam10 is offline Offline
Newbie Poster

Re: design a hotel booking system

 
0
  #3
Dec 13th, 2007
You have these entities
hotel(hotel_id,hotel_name,other details)
hotel_rooms(hotel_id,room_id,other details)
bookings(booking_id,date_from,date_to)
Guests(guest_id, name, etc.)
Room_bookings(booking_id,date_booking_from,date_booking_to,room_count)
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Database Design Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC