0% found this document useful (0 votes)
66 views3 pages

Hotel Booking System Database Structure

The document outlines the database structure for a hotel management system, detailing seven tables: hotel_guest, hotel_room, hotel_reservation, hotel_invoice, hotel_employee, hotel_housekeeping, and hotel_maintenance. Each table includes fields with their data types and descriptions, indicating mandatory and optional fields. The structure supports guest management, room details, reservations, billing, employee management, housekeeping, and maintenance tracking.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
66 views3 pages

Hotel Booking System Database Structure

The document outlines the database structure for a hotel management system, detailing seven tables: hotel_guest, hotel_room, hotel_reservation, hotel_invoice, hotel_employee, hotel_housekeeping, and hotel_maintenance. Each table includes fields with their data types and descriptions, indicating mandatory and optional fields. The structure supports guest management, room details, reservations, billing, employee management, housekeeping, and maintenance tracking.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

DATABASE STRUCTURE

Table Details

➡ 1. hotel_guest – Stores guest details

Mandator
Field Type Description
y
Integer
id (PK)
Yes Primary key

name Char(100) Yes Guest name


email Char(100) No Email address
phone Char(15) Yes Contact number
id_proof Char(20) Yes Identity proof
nationalit
Char(50) No Nationality
y
preference Guest
Text No
s preferences

➡ 2. hotel_room – Stores room details

Mandator
Field Type Description
y
id Integer (PK) Yes Primary key
name Char(50) Yes Room number
type Selection (Single/Double/Suite) Yes Room type
Room price per
price Float Yes
night
statu Selection (Available/Occupied/
Yes Room status
s Maintenance)
floor Integer No Floor number

➡ 3. hotel_reservation – Stores reservation details

Mandato
Field Type Description
ry
id Integer (PK) Yes Primary key
Linked to
guest_id Integer (FK) Yes
hotel_guest.id
room_id Integer (FK) Yes Linked to
check_in_dat DateTime Yes
hotel_room.id
Check-in date and time
e
check_out_da
DateTime Yes Check-out date and time
te
Selection (Con rmed/Cancelled/No-
status Show)
Yes Booking status

payment_stat
Selection (Pending/Paid) Yes Payment status
us

➡ 4. hotel_invoice – Stores billing details

Mandator
Field Type Description
y
id Integer (PK) Yes Primary key
reservation_ Linked to
Integer (FK) Yes
id hotel_reservation.id
total_amount Float Yes Total bill amount
tax_amount Float Yes Tax amount
payment_meth Selection (Cash/Card/
Yes Payment mode
od UPI)
status Selection (Pending/ Yes Payment status
Paid)

➡ 5. hotel_employee – Stores employee details

Mandator
Field Type Description
y
id Integer (PK) Yes Primary key
Employee
name Char(100) Yes
name
Selection (Housekeeping/
role Maintenance)
Yes Employee role

contact_numbe
Char(15) Yes Contact details
r
shift Char(20) No Shift details

➡ 6. hotel_housekeeping – Stores housekeeping details

Mandator
Field Type Description
y
id Integer (PK) Yes Primary key
room_id Integer (FK) Yes Linked to hotel_room.id
fi
employee_i Linked to
Integer (FK) Yes
d hotel_employee.id
Selection (Cleaned/
status Pending)
Yes Cleaning status

➡ 7. hotel_maintenance – Stores maintenance details

Mandator
Field Type Description
y
id Integer (PK) Yes Primary key
room_id Integer (FK) Yes Linked to hotel_room.id
Linked to
employee_id Integer (FK) Yes
hotel_employee.id
issue_descriptio
Text Yes Problem description
n
Selection (Open/
status Closed)
Yes Status of maintenance

You might also like