Hello,
I want to make a little meetings rooms reservations application. I wonder what is the best way to design the database for the case someone wants to book a room for several days or weeks (i.e. 09:00-11:00).
I guess "copying" the reservation multiple times is not the right thing to do because we want to let the user cancel the recursion (like in outlook)
Currently my reservation table looks like this:
Reservation(ID_Res,ID_Room,User_Login,Start_Date,End_Date,Txt_Purpose)
The 2 ways I see I could do it is:
1- Add a field Nb_Times and a field Type (Daily,Weekly)
2- Add a table Reservation_Recursion with the sames fields and when showing the calendar looping through the both tables
I don't like #1 because it need lots of programming to figure out the schedule of each rooms.
#2 seems not bad but I don't think looking into 2 tables for the same kind of info is the best way to do it...
Thank you
I want to make a little meetings rooms reservations application. I wonder what is the best way to design the database for the case someone wants to book a room for several days or weeks (i.e. 09:00-11:00).
I guess "copying" the reservation multiple times is not the right thing to do because we want to let the user cancel the recursion (like in outlook)
Currently my reservation table looks like this:
Reservation(ID_Res,ID_Room,User_Login,Start_Date,End_Date,Txt_Purpose)
The 2 ways I see I could do it is:
1- Add a field Nb_Times and a field Type (Daily,Weekly)
2- Add a table Reservation_Recursion with the sames fields and when showing the calendar looping through the both tables
I don't like #1 because it need lots of programming to figure out the schedule of each rooms.
#2 seems not bad but I don't think looking into 2 tables for the same kind of info is the best way to do it...
Thank you