ER Diagram for Railway Reservation System
In DBMS, ER diagram for a railway reservation system shows how the databases are connected to each other. It also shows how all the databases are logically related to each other. We can also create an ER diagram by drawing the figure of a different part of the railway reservation system, their properties, and how they perform their task.
We can draw an ER diagram of the railway reservation system by drawing the design of the database. The sketch of the database became the storage of the database where the data comes and goes.
Details Railway reservation System ER Diagram
Now we describe the overall function of the railway reservation system System in the below table. It is a complete overview of the information about the hotel management project.
Name: | ER Diagram of the Railway Reservation System. |
Abstract: | The ER Diagram of the Railway reservation system shows the relationship between various entities. We can also call it the blueprint of the railway reservation system. |
Diagram: | We can also call the ER diagram an Entity Relationship diagram. |
Tool used: | The ER diagram provides some symbol that is known as the diagramming tool. |
Users: | The users of the ER diagram are railway admin, software, users ,and websites. |
What is Railway reservation System?
The railway reservation system is an online system that facilitates the passenger to inquire about the availability of the trains, booking and canceling of tickets, and the booking status. The main aim of the railway reservation system is to develop and design a database that maintains the records of different train statuses, passengers, and details of trains.
What is an ER Diagram?
We can also call ER diagram the database design for the railway reservation system project. The ER diagram is like a picture that contains how all the entities are related to each other. The most important part of the ER diagram is Relationships, Attributes, and Entities.
Importance of ER Diagram
The ER diagram for the project is the foundation for building the project's database. The properties, datatypes, and attributes are defined by the ER diagram.
Entity-Relationship (ER) Diagram for Railway Reservation System
The ER diagram for the railway reservation system, the system data, and their attributes. The data and the attributes are represented by the table, and the table shows how they are related to each other.
Database design for the Railway reservation system
The above diagram shows the database design for the railway reservation system. This database design shows all the system data, and the output for the user ate stored in the database. In DBMS, a good ER diagram is needed for the creation of a railway reservation system.
Railway reservation system ER Diagram Tables
The below table shows all about the field name of the table, description, datatype, and character length. Each table of the ER diagram defines and explains the data storage.
The field column lists all the attributes of the database that describes each column. The types table of the database shows what kind of data each attribute is, and the length shows how many characters it has.
Table name: Log-In
Field | Description | Type | Length |
Login-ID | Login ID | Varchar | 255 |
Login-role-ID | Login-role ID | Varchar | 255 |
Login_username | User name | Varchar | 255 |
Login_password | Password | Varchar | 255 |
Table name:’ users
Field | Description | Type | Length |
User_id | User id | Varchar | 255 |
User_name | Name of the user | varchar | 255 |
User_mobile | Mobile number | int | 18 |
User_email | Email id | varchar | 255 |
User_address | address | varchar | 255 |
Table name: Roles
Field | Description | Type | Length |
Role-id | Role id | varchar | 255 |
Role_name | Role name | varchar | 255 |
Role_desc | Role decription | varchar | 255 |
Table name: permission
Field | Description | Type | Length |
Per_id | Permission id | varchar | 255 |
Per_role_id | Permission role id | varchar | 255 |
Per_module | Permission module | Varchar | 255 |
Per_name | Permission name | Varchar | 255 |
Table name: Customer
Field | Description | Type | Length |
Cus_mobile | Customer mobile number | int | 18 |
Cus_id | Customer ID | Varchar | 255 |
Cus_name | Customer name | Varchar | 255 |
Cus_add | Customer address | Varchar | 255 |
Cus_pass | Customer password | Varchar | 255 |
Table name: payment
Field | Description | Type | Length |
Pay_desc | Payment description | Varchar | 255 |
Pay_date | Payment date | Varchar | 255 |
Pay_cus_id | Payment customer ID | Varchar | 255 |
Pay_amt | Payment amount | int | 18 |
Pay_ID | Payment ID | int | 18 |
Table name: booking
Field | Description | Type | Length |
Book_ID | Booking ID | varchar | 255 |
Book_desc | Booking description | varchar | 255 |
Book_type | Booking type | varchar | 255 |
Table name: trains
Field | Description | Type | Length |
Trn_name | Train names | varchar | 255 |
Trn_id | Train ID | int | 18 |
Trn_num | Train number | Int | 18 |
Trn_tckt | Ticket number | int | 18 |
Trn_type | Train type | varchar | 255 |
Trn_desc | Train description | varchar | 255 |
With the help of the above tables, we can set up the database for the railway reservation system. It provides the full description of the database with its table names. They will enter all the values and attributes for the database in the table.
How to create ER Diagram
We can create the ER diagram for the table just in 5 minutes. There are some steps, and with the help of these steps, we can build the ER diagram for the railway reservation system project. The steps are as below.
Step-1:
We have to familiarize ourselves with the entity relationship diagram cardinality and symbols. Then we have to show the data structure for the project in the entity relationship diagram. The symbol of the entity relationship diagram shows how they fit together. Before making the ER diagram, we should properly know the meaning of all the symbols and how to use all of them symbols.
Symbol of entity relationship diagram:
- Fields: This entity shows how the different types of data are used together for a project. The symbol is used to show how the part of the project is working.
- Key: It is a type of technique that is used to categorize the quality of the data. There are two types of keys available for the database. These are as follows.
- Primary key: It is a set of unique properties that are used for finding the specific entity.
- A foreign key: It is a type of key made up of a piece of data with too many links to other things.
Step 2: Finalize the entities included
Start making your ER Diagram by deciding on all the parts your railway reservatiion system must have. You’ll need to leave the area in your design for these rectangles to be included later.
Step 3: Add the attributes of each entity
After you’ve decided on the entities, think about the traits you’ll need for each one. In a conceptual ER diagram, the details of the different entities are given as attributes. Attributes are things like a thing’s traits, a many-to-many relationship, or a one-to-one relationship. Attributes with multiple values can be given more than one value.
Step 4: Describe the relationships (cardinality) between entities and attributes
You will need the entities, their attributes, and the relationships between them in order to plot the relationships between the ERD. To get the right entity relationship diagram, you will use the information you gathered to build the data structure.
Conclusion
You need to know how the Railway reservation system was designed and built using diagrams. With the help of an ER diagram will help you make a system that works well.
Making it will help you understand how the software works behind the scenes. This is where all the data that goes in and out of the system will be stored.