0% found this document useful (0 votes)
75 views1 page

Indexes Indexes Indexes Indexes: Admin Operator

The document outlines the structure of a database with multiple tables for an online bus booking system. The tables include customers, operators, admins, owners, bookings, journeys, routes, buses, transactions, fares and other related entities. Relationships between the tables are defined through foreign keys.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
75 views1 page

Indexes Indexes Indexes Indexes: Admin Operator

The document outlines the structure of a database with multiple tables for an online bus booking system. The tables include customers, operators, admins, owners, bookings, journeys, routes, buses, transactions, fares and other related entities. Relationships between the tables are defined through foreign keys.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

operator

operator_id INT(11) admin

name VARCHAR(150) admin_id INT(11)


owner
nic VARCHAR(11) name VARCHAR(150)
owner_id VARCHAR(11)
customer nic VARCHAR(11)
telephone VARCHAR(11) name VARCHAR(150)
customer_id INT(11) telephone VARCHAR(11) bank_account
address VARCHAR(250) nic VARCHAR(11)
name VARCHAR(150) address VARCHAR(250) account_id INT(11)
email VARCHAR(100) telephone VARCHAR(11)
nic VARCHAR(11) email VARCHAR(100) account_num VARCHAR(15)
password VARCHAR(50) address VARCHAR(250)
telephone VARCHAR(11) password VARCHAR(50) total DOUBLE
station_id INT(11) email VARCHAR(100)
address VARCHAR(250) Indexes Indexes
Indexes password VARCHAR(50)
Indexes
account_num VARCHAR(15)
Indexes

main_stations
station_id INT(11)

station VARCHAR(100)
Indexes
journey
journey_id INT(11)

booking direction TINYINT(1)

booking_id INT(11) time TIME

date DATE unavailable_days VARCHAR(80)

seats INT(11) bus_id INT(11)

no_of_seats VARCHAR(50) route_id INT(11)

bus_id INT(11) Indexes

journey_id INT(11)

fare_id INT(11) bus


customer_id INT(11) bus_id INT(11)
status INT(11) number_plate VARCHAR(15)
Indexes route type VARCHAR(50)

route_id INT(11) no_of_seats INT(11)

route_no VARCHAR(15) seats_for_booking INT(11)

first_station_id INT(11) owner_id VARCHAR(11)

second_station_id INT(11) route_id INT(11)

Indexes Indexes

transaction
transaction_id INT(11)
bus_requests
booking_id INT(11)
bus_id INT(11)
amount DOUBLE
number_plate VARCHAR(15)
transfered TINYINT(1)
type VARCHAR(50)
Indexes
no_of_seats INT(11)

seats_for_booking INT(11)

fare owner_id VARCHAR(11)

bus_fee fare_id INT(11) intermediate route_id INT(11)

intermediate_id FLOAT Indexes


price_id INT(11) route_id INT(11)

price_normal DOUBLE intermediate_id_1 FLOAT station VARCHAR(100)

price_highway DOUBLE intermediate_id_2 FLOAT route_id INT(11)

Indexes Indexes
price_id INT(11)
Indexes

You might also like