0% found this document useful (0 votes)
54 views4 pages

Er Diagram (Database)

A file containing er diagram for a given vindition.

Uploaded by

rojitkhadgi96
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views4 pages

Er Diagram (Database)

A file containing er diagram for a given vindition.

Uploaded by

rojitkhadgi96
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Design:

The following entities are involved in this system with their attributes:
1. Room
Attributes: Room Id (primary key), room type, room description, availability, amenities, rate
2. Reservation
Attributes: Reservation ID ( primary key), Check in date, Check out date, Changed date,
Reason for change, Cancellation, Staff ID (foreign key), Room ID (foreign key), Guest id
(foreign key)
3. Guest
Attributes: Guest ID (primary key), guest full name, Address, Phone number, emergency
contact, E-mail, Payment Info.
4. Staff
Attributes: Staff Id (primary key), Staff full name, Role, Address, Phone number, E-mail.
5. Restaurant
Attributes: Order ID (primary key), Order date, Item name, Item rate, Quantity, Tax amount,
Discount, Guest Id (foreign key).
6. Inventory
Attributes: Inventory Id (primary key), Inventory item name, Item quantity, Location, Staff id
(foreign key)
7. Billing
Attributes: Bill number (primary key), Guest Id (foreign key), Total amount, Payment
method, Extra charge, Reservation Id (foreign key).
Entity-Relation diagram:
Physical model

Relationships:
The Guest, Staff, Room, Reservation, Restaurant, Inventory, and billing are the seven entities
that make up the Hotel Reservation System. Each business has detailed information guests,
staffs, room types, room availability and costs. Inventory keeps track of supply levels where as
Restaurant records orders, and Reservation handles reservations. Foreign keys are used to link
these entities together for effective administration and data integrity. The system offers a proper
and thorough understanding of hotel operations and resources according to business needs and
wants. In the diagram, guests may be seen placing orders, making reservations, obtaining billing
information after checkout, and staff maintaining the rooms.
The different relations between entities is shown below:
1. Room and Reservation:
There is only one reservation for one room.
Since reservation is only connected to a single room, the relationship is one-to-one.
Although not every room has a reservation, every reservation is made possible by the room.
2. Guest and Reservation:
One guest can make multiple reservations.
It is a one-to-many relation as each reservation is linked to a single guest, even if a single
guest may make multiple reservations.
While not every guests makes a reservation, reservations do exist because of the actions of
guests.
3. Staff and Reservation
Multiple staffs can oversee multiple reservations.
It is many-to-many relation as one staff can oversee multiple reservations and one reservation
can be viewed by multiple staffs.
4. Guest and Restaurant
One guest can place multiple orders at the restaurant.
A guest can order multiple items at the restaurant, but each item is linked to a specific guest,
therefore the relationship is one to many.
5. Restaurant and Inventory
One inventory can manage multiple restaurant orders.
The relationship is one-to-many as a restaurant's inventory may contain several orders or
items of the restaurant.
6. Staff and Inventory
Many staffs can manage many inventories.
It is many-to-many relation as many staffs can handle one inventory and many inventories
can be handle by one staff.
7. Reservation and Billing
One billing contains one reservation.
One reservation can generate only one billing and one billing is generated from only one
reservation.
8. Guest and Billing
It has one to many relation as one guest can have many billings and one Guest can also
pay one Billing.

You might also like