Hotel Booking System Database Structure
Hotel Booking System Database Structure
Table Details
Mandator
Field Type Description
y
Integer
id (PK)
Yes Primary key
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
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
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)
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
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
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