You are on page 1of 3

Bus ticket reservation

User Characteristics: The end users of this system are divided into: 1- Administrator: Access the main pages to Login to the system using admin account. Add the available buses and determine the maximum seats for each one. Track the reservation process according to reservation table. Organize the schedules for the routes. Create report for the buses that fully reserved.

2-

Customer: Access to his corresponding pages to Create new account, also using this account to login into the system. Review the available seats in a particular bus at particular date. Fill the route information. Cancel a reserved ticket.

DATABASE DESIGN List of Entities:


Bus Passenger Route Reserves

List of attributes: Bus: 1. 2. 3. Bus id Type AC (or) Non-AC Sleeper (or) Not Maximum seats
o o

Route information: 1. 2. 3. 4. 5. 6. Route id To location From location Depart date Depart time Fare

Reserves information: 1. 2. 3. Ticket number Passenger id Route id

Passenger information: 1. 2. 3. 4. Passenger id Name Mobile number E-mail

Logical design: 1. PASSENGER: Keeps record of passengers. S.no 1 2 3 4 Field name PID Name Mobile Email Data type Integer varchar(20) bigint varchar(30) Description Constraints Passenger identity number Primary key Name of the passenger Mobile number of the passenger Email id of the passenger

2. ROUTE: Keeps record of schedules. S.no 1 2 3 4 5 6 7 Field name RID BID To_location From_location Fare Depart_date Depart_time Data type Integer Integer varchar(20) varchar(20) real date time(7) Description Constraints Route identity number Primary key Bus identity number Foreign key Starting point Destination point Fare for journey Departure date Departure time

3. RESERVES: Reservation table.

S.no 1 2 3

Field name Ticket_no RID PID

Data type Integer Integer Integer

Description Ticket number Route identify number Passenger identity number

Constraints Primary key Foreign key Foreign key

4. BUS: Bus details. S.no 1 2 2 3 4 Field name BID Bname Max_seats Type_ac Type_sleeper Data type Integer varchar(20) Integer varchar(3) varchar(3) Description Constraints Bus identity number Primary key Bus name Seats in bus Ac or not Sleeper or not

You might also like