Online Railway Reservation System Project
Online Railway Reservation System Project
System
Online Railway ticket reservation is very useful nowadays. This is very important
to design a good-working system software for ticket booking and related
transactions. To design it, full-track documentation of models(ER, DFD, Class,
Use-case, Activity, Sequence) is required as per as software development is
concerned.
Page | 1
ER diagram displays the relations between the various entities(classes and their
attributes) stored in the database. ER diagrams are very important for any
database project. This diagram shows the communication between entities and
their attributes.
The above ER diagram illustrates the key information about the railway
reservation system, including entities like PAX_info, Login_credentials,
Ticket_reservation, refund_rule, via_details, train_fare, Train, Seat_availability,
Class, Zone, station, pay_info. This diagram also shows the relationships
between entities.
Entities and their attributes are:
PAX_info: Attributes of PAX_info entity are Passenger_id (primarykey)
,SRL_no ,PAX_name ,PAX_age ,PAX_sex ,fare,seat_no.
• Login_credentials: Attributes of Login_credentials entity are
login_id(PK) , password.
Page | 2
• Ticket_reservation: Attributes of Ticket_reservation entity are
PNR_no(pk),to-date, from-date, to-km, from-km, to-station, from-
station, Train_code.
• Refund_rule: Attributes of refund_rule entity are to-time, from-time,
refundable-amt.
• via_details: Attributes of via_details entity are Details_id(PK),
Train_code, via_station_code, km_from_origin, Reach_time.
• train_fare: Attributes of train_fare entity are to-date, from-date, to-
km, from-km, Fare, Class_id.
• Train: Attributes of Train entity are Train_code(PK), Distance,
Train_name, Start_time, End_time, Start_station_code,
End_station_code, Frequency.
• Seat_availability: Attributes of Seat_availability entity are
Train_code, Class_code, and Number of seats.
• Class: Attributes of Class entity are Class_id(PK), coach_prefix,
class_code, Class_name, seat_per_coach.
• Zone: Attributes of Zone entity are zone_id(PK),
Zone_name,Zone_code.
• Station: Attributes of station entity are
Station_id(PK),Station_code,station_name, zone_id.
• Pay_info: Attributes of Pay_info entity are payment_id(PK),
pay_mode, amount, pay_date, srl-no, PNR_no, inst_type, inst_amt.
Relationships between Entities:
• One-to-one relation: PAX_info to login_credentials , PAX_info to
refund_rule, Train to Via_details, Class to train_fare, PAX_info to
pay_info.
• Many-to-one relation: PAX_info to ticket_reservation, Zone to the
station, Class to seat_availability.
• Many-to-many: Train to the station, Train to class.
Data-Flow Diagram(DFD):
This diagram represents various operations by dataflow movement.
• Level 0 DFD:
Page | 3
• Level 1 DFD:
Page | 4
Class Diagram:
These diagrams describe the operation and attributes of a class with imposed
constraints in the system. In this article the classes to be considered are
‘payment’, ‘train’, ‘passenger’, ‘ticket’, ‘railway reservation system’, ‘admin’. The
description of the classes is given below.
railway
reservation system response
system
formDetails, cancellationForm,
Admin ID, name
refundAmt
Page | 5
Use-Case Diagram:
By using use case diagrams, the interactions between a system and the users
within that system will be represented.
Page | 6
Use-Case Descriptions:
The relationship between the actors and the use cases of the online Railway
reservation system is given below–>
1. Passenger Entity: Use cases of passengers are login, ticket
availability, Filling the form, Book ticket, Canceling ticket, and Refund
money.
2. Railway Reservation System: Use cases of the Railway Reservation
System are login, ticket availability, Fill the form, Book ticket, Cancel
ticket, and Refunding money.
3. Admin: use cases of Admin are Print ticket, refund money. Admin also
controls the whole Railway Reservation System in different cases.
Activity Diagram:
This diagram shows the flow of processes from one to another activity.
Page | 7
Sequence Diagram:
This diagram shows how and in which order a group of objects works together
in a system. This is an interactive diagram and this is mostly used by software
developers.
Page | 8