https://github.com/smile040501/railwayreservationsystem
This project aims to build a railway reservation system which is a software application that handles the entire booking data of the railway. This software can also be used by different railway companies to carry out operations in a smooth, effective, and automated manner.
https://github.com/smile040501/railwayreservationsystem
plpgsql plpgsql-function plpgsql-scripts postgres postgresql postgresql-database psql psql-client psql-database railway railway-api railway-management railway-oriented-programming railway-reservation railway-reservation-system railways railways-enquiry reservation-management reservation-system row-level-security
Last synced: 4 months ago
JSON representation
This project aims to build a railway reservation system which is a software application that handles the entire booking data of the railway. This software can also be used by different railway companies to carry out operations in a smooth, effective, and automated manner.
- Host: GitHub
- URL: https://github.com/smile040501/railwayreservationsystem
- Owner: Smile040501
- License: mit
- Created: 2022-01-19T09:51:47.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-05-09T18:41:29.000Z (over 3 years ago)
- Last Synced: 2025-04-11T14:13:42.115Z (7 months ago)
- Topics: plpgsql, plpgsql-function, plpgsql-scripts, postgres, postgresql, postgresql-database, psql, psql-client, psql-database, railway, railway-api, railway-management, railway-oriented-programming, railway-reservation, railway-reservation-system, railways, railways-enquiry, reservation-management, reservation-system, row-level-security
- Language: PLpgSQL
- Homepage:
- Size: 3.47 MB
- Stars: 3
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Railway Reservation System
This project aims to build a railway reservation system which is a software application that handles the entire booking data of the railway. It has been developed to override the problems prevailing in the practical manual system. It is fully based on the concept of reserving train tickets for various destinations reliably and consistently. It reduces the stress and workload of the employee who books the ticket. It also lets the travelers book and finds schedules for the trains with ease. This software can also be used by different railway companies to carry out operations in a smooth, effective, and automated manner.
## Technologies Used
- PostgreSQL
- PLpgSQL
## Installation
- Install [postgres](https://www.postgresql.org/download/)
- Clone this repository
```sh
$ git clone git@github.com:Smile040501/RailwayReservationSystem.git
```
- Change the directory to the source code directory
```sh
$ cd RailwayReservationSystem/src
```
- Start **psql** and execute the **makefile.sql**.\
The passwords for the testing users are their names itself which needs to be entered for every execution of the makefile.
```sh
$ psql -U postgres
```
```
postgres=# \i makefile.sql
```
## ER Diagram

## Structure, Integrity and General Constraints of the Database
**Users** (Customers with an account and the authority to book tickets)

**Passengers** (Miscellaneous customers)

**Railway Stations**

**Trains**

**Schedule**

**Ticket**

## Functionalities of the Project
See [`FUNCTIONALITIES.md`](FUNCTIONALITIES.md) for detailed usage.
- Services for the `station_master` Role
- Add a New Railway Station
- Add a New Train and its Schedule
- Update the Delay Time of a Train
- Services for the `users` Role (Customers with an account)
- Book Tickets
- Cancel Booking
- Services for everyone
- Create a New Account and Register as a Customer
- Available Trains Between Two Given Stations On a Given Date
- Full Schedule of a Given Train
- Schedule of Different Trains at a Given Station
- Fare of a Given Train Between Two Given Stations
- Get Details of a Passenger Given PNR
- Number of Seats Available in a Given Train Between Two Given Stations on a Given Date
- Check Ticket Status
- Check Delay Time of a Train
## Design
See [`DESIGN.md`](DESIGN.md)
## Contributors
Mayank Singla
Satyam Mishra
Aditya Agarwal
## License
[MIT](LICENSE)