database booking system, Study notes of Principles of Database Management

a draft of how to place booking using dbms

Typology: Study notes

2017/2018

Uploaded on 09/16/2018

azrina-ahmad
azrina-ahmad 🇧🇳

2 documents

1 / 5

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Room Booking System
Jonas Sidborn, Daniel Wiberg, Jan Öhman, and Per Öhman
Department of Computer Science
Umeå University, Sweden
{c01jsn, c00dwg, c01jon, c01pro}@cs.umu.se
Abstract.
The management and booking of rooms in large buildings is
a tedious and complicated task. The combination of dierent rooms with
dierent sizes and equipment, the possibility to choose between dierent
dates and times is the reason why a good booking system is needed to
make this task as easy as possible. A system that supports reservations
of rooms in conference buildings or universities or other large buildings.
This article shows how a complicated human task like reservations can
be solved by using a database management system as the key tool in the
development. The prototype shows an example how such a system could
look like.
1 Introduction
The management and booking of rooms in large buildings is a tedious and com-
plicated task. The combination of dierent rooms with dierent sizes and equip-
ment, the possibility to choose between dierent dates and times is the reason
why a good booking system is needed to make this task as easy as possible.
The basic functionality of the system is to keep track of rooms in dierent
buildings, rooms and their equipment, reservations of rooms and dierent types
of users. Reservations of the rooms should be visualized to the user in a simple
and intuitive way. There should be a simple way of getting a overview of the
reservations. The system should be interoperable with any platform and OS.
A booker should be able to reserve and cancel his/her own bookings and
should be able to search for a room with a certain property like size, price,
number of seats and equipment. There should be an administrator that can
administrate the whole system through the interface without writing any SQL-
queries. This includes the management of add, edit and delete functions for every
entity in the system including new users and their privilege management. One
type of user should only be able to look at existing reservations and not be able
to reserve rooms.
The system should be a complete content management system for handling
the reservations of rooms, buildings, equipment and users. The interoperability
of the system should make it easy to access and use from dierent platforms.
pf3
pf4
pf5

Partial preview of the text

Download database booking system and more Study notes Principles of Database Management in PDF only on Docsity!

Room Booking System

Jonas Sidborn, Daniel Wiberg, Jan Öhman, and Per Öhman

Department of Computer Science Umeå University, Sweden {c01jsn, c00dwg, c01jon, c01pro}@cs.umu.se

Abstract. The management and booking of rooms in large buildings is a tedious and complicated task. The combination of dierent rooms with dierent sizes and equipment, the possibility to choose between dierent dates and times is the reason why a good booking system is needed to make this task as easy as possible. A system that supports reservations of rooms in conference buildings or universities or other large buildings. This article shows how a complicated human task like reservations can be solved by using a database management system as the key tool in the development. The prototype shows an example how such a system could look like.

1 Introduction

The management and booking of rooms in large buildings is a tedious and com- plicated task. The combination of dierent rooms with dierent sizes and equip- ment, the possibility to choose between dierent dates and times is the reason why a good booking system is needed to make this task as easy as possible. The basic functionality of the system is to keep track of rooms in dierent buildings, rooms and their equipment, reservations of rooms and dierent types of users. Reservations of the rooms should be visualized to the user in a simple and intuitive way. There should be a simple way of getting a overview of the reservations. The system should be interoperable with any platform and OS.

A booker should be able to reserve and cancel his/her own bookings and should be able to search for a room with a certain property like size, price, number of seats and equipment. There should be an administrator that can administrate the whole system through the interface without writing any SQL- queries. This includes the management of add, edit and delete functions for every entity in the system including new users and their privilege management. One type of user should only be able to look at existing reservations and not be able to reserve rooms.

The system should be a complete content management system for handling the reservations of rooms, buildings, equipment and users. The interoperability of the system should make it easy to access and use from dierent platforms.

2 Approach

The work began by contacting the janitors at Hus service and an appointment was scheduled for a evaluation of their existing system. The janitors showed how their existing system worked and the process of reserving a room for a particular course at an institution. They got a schedule from the secretary of the institution where all the lecture hours were lled in and they showed how they chose rooms for the whole schedule.

With the evaluation of the existing system several sketches was drawn of the interface and basic functionality and user scenarios. The sketches together with the requirements of the system was an excellent background to make the EER- diagram of the database that was needed to perform this complicated task. A relational schema was then created using the EER-diagram that can be seen in gure 1.

Fig. 1. The gure shows the EER-diagram of the database.

The focus on the system is on the rooms and the users which makes the reservation of rooms. To get interoperability it was decided that the system should be web-based. Because of this, HTML together with an embedded script- ing language PHP^1 was used. The back-end of the system was chosen to be the

(^1) http://www.php.net

Fig. 2. The gure shows the schedule over room reservations.

4 Discussion

The design and requirement analysis phase of the development was a very im- portant foundation to start the implementation on. This made it very easy to create the user interface from the sketches and distribute work among group members which lead to a quite good prototype. We have had some trouble to get the week-view to work in dierent browsers. It does not work in IE but works ne in Mozilla/Firefox and Safari. It was a limitation in our relational database MySQL. The version we used did not support foreign key constraints. This limitation can depend on the version that we used did not have the innoDB function activated. Another thing that we noticed while developing was that it is quite hard to separate the HTML code from the PHP code. The built in function library in PHP contained functions for session and database management that we found very useful. One thing that was not prioritiesed, and because of that not implemented was the notication by email to the user conrming the reservations made by that user. Even though we used MySQL as the database system it would be fairly easy to use another system like PostgreSQL^4. Some future work with the system is to extend the capabilities to present more statistics to the users and to handle accounting information for invoices. This could be solved by connecting a customer register to the reservations. A

(^4) http://www.postgresql.org

history of all the reservations can also be added to give the administrator better control over the system. This can easily be added by appending TST and TET attributes to the reservation table. Of course the last thing that needs to be done is to let real users evaluate the system and then improve the system according to their opinions.

5 Conclusions

We have shown how to build a room booking system with a database as the back-end and a front-end in HTML embedded with PHP. It is easy to make room reservations in the graphical user interface and the week schema gives a good overview of the reservations for the room. The combinations of the search functions, the ability to reserve for any user and the ability to manage the whole database from the web-site made this system a very powerful administrative room booking system. The security model used based on dierent privilege for dierent users also makes the system a real-life application.