Skip to content

VIJAYAPANDIANT/Airline-Reservation-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Airline Reservation System Database Design

📌 Project Overview

This project implements a robust relational database for an Airline Reservation System. It is designed to handle complex aviation operations, including flight scheduling, aircraft seat configurations, passenger bookings, and financial transaction tracking. The schema ensures data integrity using constraints and triggers, preventing issues like double-booking while supporting deep analytical reporting.


📂 Document


📂 File Structure

File Description
airline_reservation_system_setup.sql Defines the core database structure, including tables, indexes, triggers, and stored procedures.
full_setup.sql A unified script combining schema creation, data insertion, and sample analytical queries.
setup_and_test_fixed.bat An automated Windows batch script to find MySQL, execute the setup, and display results.

🗄️ Database Schema Reference

The database consists of structured tables tailored for airline management.

🗺️ Entity Relationship Diagram (ERD)

You can view the visual schema design here: DB Diagram - Google Drive

  1. Aircraft & Seats
  • Aircraft: Tracks the fleet (model, manufacturer, year).
  • Seats: Manages seat layout (seat_number, class: Economy/Business/First) for each aircraft.
  1. Routes & Flights
  • Airports: Stores global airport details (IATA codes, city, country).
  • Routes: Defines connections between airports with base pricing.
  • Flights: Specific schedules for aircraft on given routes.
  1. Passengers & Users
  • Users: System users/agents who manage bookings.
  • Passengers: Detailed traveler information including passport data.
  1. Bookings & Items
  • Bookings: Master record for a reservation with a unique 6-character PNR.
  • Booking_Items: Specific seat assignments for passengers on specific flights.
  1. Payments
  • Payments: Records transaction details, methods (Credit Card, PayPal), and success/refund status.

🚀 Setup and Installation

Prerequisites

  • MySQL Server 8.0 or higher.
  • MySQL added to System PATH (optional, the script attempts to find it).

Option 1: Automatic Setup (Windows)

  1. Navigate to the project folder.
  2. Double-click setup_and_test_fixed.bat.
  3. Enter your MySQL credentials when prompted.
  4. The script will initialize the database and run all analysis tests.

Option 2: Manual Execution

  1. Login to MySQL: mysql -u root -p
  2. Run the unified setup: SOURCE full_setup.sql;

📊 Analytical Queries & Views

The system includes built-in views for business intelligence:

  1. Detailed Booking Report (vw_booking_details)
  • Provides a full manifest of bookings, flight info, and passenger names.
  • Usage: SELECT * FROM vw_booking_details;
  1. Flight Revenue Analytics (vw_flight_revenue)
  • Calculates total seats sold and revenue generated per flight.
  • Usage: SELECT * FROM vw_flight_revenue;

📜 Author

Design and Implementation by VIJAYAPANDIAN.T.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors