Professional Documents
Culture Documents
Technology has become part of everyone’s lives and is the most important
element in today’s societies and its role in everyone’s lives keeps getting complex. Using
a technology means using gadgets like: PS4, cellphones, iPods, Personal Computers or
Laptops and many more. Computers are commonly used device in many ways. It is one of
the most system for people, especially the people who run Industry or organizations. A lot
of jobs today require the use of computers. It assists business progression and other
activities. It makes the work simpler and less time consuming. It makes very easy to access
and use data for business application.
The IT students and IT specialists in the IT industry use database to organize and
collect data. The project addresses the study and development of an Online Bus Ticketing
System or an Online Bus Scheduling; it enables both the bus operators and the customers
to make an online bus ticket sale or purchase. The proponents developed a database
interconnected with the Victory Liner's travel itinerary, where it displays information of
the bus, bus drivers, routes, dispatching list of buses, bus scheduling, time arrival and other
information about the trip; with the help of database, sorting and orienting of the data and
tables where it can show information are easier and organized. Traditionally, bus ticket
purchase has been over the counter in bus terminals, however, modern era has it evolved
with the rapid expansion of technology. The entire project and database features
convenience and assistance with utmost skills in the future development that would support
a fully integrated system that links bus operators to customers, bus operators to other mode
of transport providers, bus operator to businesses and bus operations.
In this modern and globalize world a lot of thing might change. The way people
work are no longer the same. In this modern world by the help of technology speed and
reliability is the key to success. In fact in doing business, a lot of entrepreneurs depends in
computers and fast growth of technology.
Page | 1
In this figure show the Entity Relational Diagram of the Database wherein we have
created a database for a Bus company Victory Liner. We created 10 tables that has the
necessary information and recipes in creating a database of a Bus Company, it shows the
Bus information that has a many-to-many relationship to the Passenger information,
Routes, Online Reservation, Schedule, Transaction. Next is the Passenger that has a one-
to-many relationship Transaction and Bus Information. Next is the Driver that has a one-
to-many relationship to the Conductor. Next is the Schedule that has a one-to-many
relationship to the Transaction and Bus information. Next is the Online Reservation that
has a one-to-many relationship to the Bus information.
Page | 2
Data Dictionary of BUS Table
In this figure the customer can see the details about the Bus’s ID, Kind of Bus Type,
how many seats are available, plate Number of the bus, chassis Number, Terminal Number
and the route ID.
In this figure the customer can see the details about the Conductor to assure security.
Page | 3
ADDRESS varchar 255 Tondo, Manila
DATE_OF_BIRTH Date 10/10/1992
NBI_ID Integer 11 11654798
DRIVER_LICENSE varchar 255 B10-11-013143
In this figure the customer can see the details about the Driver’s information.
In this figure the customer can see how much the fare will cost and other details.
In this figure the customer can see how much fare discount the customer may get and
see other fare discount information.
Page | 4
SEAT_NO enum 1C
PLATE_NO varchar 255 AAC113
AVAILABLE_SEATS Integer 11 45
DATE_OF_RESERVATION date 12/3/2019
In this figure, this is where the customer can input the overall data or details of the
customers.
In this figure the user can the details about the Passenger.
In this figure the user can see the details about the Destination or routes.
Page | 5
In this figure the user can see the details about the date, time and other details of the
bus schedule
In this tables show the Data Dictionary of the Transaction table of the database.
In this figure the user can see the details about the Schema of the bus.
Page | 6
DATE_OF_BIRTH date NO
NBI_ID int (11) NO
DRIVER_LICENSE varchar (255) NO
In this figure the user can see the conductor’s information and the schema also
In this figure the user can see about the schema, information of the driver.
In this figure the user can see the schema and the information about the discounts.
Page | 7
TERMINAL_ID int (11) NO MUL
BUS_ID int (11) NO MUL
BUS_TYPE enum NO MUL
SEAT_NO enum NO MUL
PLATE_NO varchar (255) NO MUL
AVAILABLE_SEATS int (11) NO MUL
DATE_OF_RESERVATION date YES NULL
In this table the user can see the details of the passenger and this is where the
passenger will be inputting information or data.
In this table the user can view the overall schema of the passengers
In this figure the user can view the overall schema of the Routes and details also.
Page | 8
BUS_ID int (11) YES MUL NULL
TERMINAL_ID int (11) YES MUL NULL
In this figure the user can view the overall schema of the Schedule Table
In this figure the user can view the overall database schema of the terminal
In this figure the user can view the overall database schema of the transaction
Page | 9
Relationships
In this figure shows the relationship of the Bus table to the Routes table, Schedule
table, Online Reservation table, Passenger table, and the Transaction table it has a one-to-
many relationship because of the foreign key originated to the Bus table.
Page | 10
In this figure show the relationship of the Passenger table to the Transaction table,
Schedule table, and the Fare Discount table. The Passenger has a one-to-many relationship
to the Transaction table and Fare Discount table while the transaction has a many-to-many
relationship to Schedule table.
Page | 11
Restrictions of the Database
Creating a user:
CREATE USER ‘DB_Administrator’@’localhost’ IDENTIFIED BY
‘admin’;
CREATE USER ‘Dispatcher’@’localhost’ IDENTIFIED BY ‘
patcher’;
CREATE USER ‘Terminal_Staff’@’localhost’ IDENTIFIED BY
‘terminstaff’;
CREATE USER ‘Supervisor’@’localhost’ IDENTIFIED BY ‘visor’;
CREATE USER ‘HR_Manager’@’localhost’ IDENTIFIED BY
‘manager’;
Page | 12
Revoking and Granting Privileges on DRIVER Table
GRANT ALL ON Driver TO ‘DB_Adminitrator’@’localhost;
GRANT SELECT ON Driver TO ‘Dispatcher’@’localhost;
GRANT SELECT ON Driver TO ‘Terminal_Staff’@’localhost;
GRANT ALL ON Driver TO ‘HR_Manager’@’localhost;
REVOKE INSERT, UPDATE, DELETE ON Driver TO
‘Dispatcher’@’localhost;
REVOKE INSERT, UPDATE, DELETE ON Driver TO
‘Terminal_Staff’@’localhost;
Page | 13
Revoking and Granting Privileges on CONDUCTOR Table
GRANT ALL ON Conductor TO ‘DB_Adminitrator’@’localhost;
GRANT ALL ON Conductor TO ‘Supervisor’@’localhost;
GRANT SELECT ON Conductor TO ‘Terminal_Staff’@’localhost;
GRANT SELECT ON Conductor TO ‘Dispatcher’@’localhost;
REVOKE INSERT, UPDATE, DELETE ON Conductor TO
‘Terminal_Staff’@’localhost;
REVOKE INSERT, UPDATE, DELETE ON Conductor TO
‘Dispatcher’@’localhost;
Page | 14
Revoking and Granting Privileges on ROUTES Table
GRANT ALL ON Routes TO ‘DB_Adminitrator’@’localhost;
GRANT ALL ON RoutesTO ‘Supervisor’@’localhost;
GRANT SELECT ON Routes TO ‘Terminal_Staff’@’localhost;
GRANT SELECT ON Routes TO ‘Dispatcher’@’localhost;
REVOKE INSERT, UPDATE, DELETE ON Routes TO
‘Terminal_Staff’@’localhost;
REVOKE INSERT, UPDATE, DELETE ON Routes TO
‘Dispatcher’@’localhost;
Page | 15
Page | 16