2019
A Database Organizational and
Research Proposal
Members:
Aluzaimea Bader G.
Molina Zeny Ann F.
Payot Marilyn O.
Susaya Nina Jane T.
ONTENTS
TABLE: BUS_INFORMATION
DATA FIELD
FIELD CONSTRAINT DESCRIPTION
TYPE LENGTH
TABLE: DRIVER_INFORMATION
DATA FIELD
FIELD CONSTRAINT DESCRIPTION
TYPE LENGTH
Unique number of the
DRIVER_NO Integer 11 Primary Key
driver
LAST_NAME Varchar 55 Not Null Last Name of the driver
FIRST_NAME Varchar 55 Not Null First Name of the driver
Middle Name of the
MIDDLE_NAME Varchar 55
driver
The bus number a driver
BUS_NO Integer 11 Foreign Key is designated to. Unique
ID for the Bus
TABLE: CONDUCTOR_INFORMATION
DATA FIELD
FIELD CONSTRAINT DESCRIPTION
TYPE LENGTH
Unique number of the
CONDUCTOR_NO Integer 11 Primary Key
conductor
Last Name of the
LAST_NAME Varchar 55 Not Null
conductor
First Name of the
FIRST_NAME Varchar 55 Not Null
conductor
Middle Name of the
MIDDLE_NAME Varchar 55
conductor
The bus number a
conductor is designated
BUS_NO Integer 11 Foreign Key
to. Unique ID for the
Bus
TABLE: CUSTOMER_INFORMATION
DATA FIELD
FIELD CONSTRAINT DESCRIPTION
TYPE LENGTH
Unique ID for the
CUSTOMER_NO Integer 11 Primary Key
customer
Last Name of the
LAST_NAME Varchar 55 Not Null
customer
First Name of the
FIRST_NAME Varchar 55 Not Null
customer
Middle Name of the
MIDDLE_NAME Varchar 55
customer
Contact Number of the
CONTACT_NUMBER Integer 12 Not Null
customer
TABLE: FARE_INFORMATION
DATA FIELD
FIELD CONSTRAINT DESCRIPTION
TYPE LENGTH
DATA FIELD
FIELD CONSTRAINT DESCRIPTION
TYPE LENGTH
Unique ID for
RESERVATION_ID Integer 11 Primary Key
reservation
Unique ID for
SCHEDULE_NO Integer 11 Foreign Key
schedule
Unique ID for
USER_NAME Varchar 8 Foreign Key
user
Time of
DEPARTURE_TIME Time Not Null
Departure
FARE_AMOUNT Decimal 6,2 Not Null Fare Amount
Type of travel:
TRAVEL_TYPE Varchar 10 Not Null One Way or Two
Way
Unique ID for
BUS_NO Integer 11 Foreign Key
the bus
Number of
NUMBER_OF_PASSENGERS Integer 2 Not Null passengers
reserved
RESERVATION_FEE Decimal 2,2 Not Null Reservation Fee
The total amount
TOTAL Decimal 6,2 Not Null
to pay
Designated seat
SEAT_NO Integer 2 Not Null
number
TABLE: ROUTE_INFORMATION
DATA FIELD
FIELD CONSTRAINT DESCRIPTION
TYPE LENGTH
DATA FIELD
FIELD CONSTRAINT DESCRIPTION
TYPE LENGTH
TABLE: USER_INFORMATION
DATA FIELD
FIELD CONSTRAINT DESCRIPTION
TYPE LENGTH
Unique ID for user
USER_NAME Varchar 8 Primary Key
name
The Last name of the
LAST_NAME Varchar 55 Not Null
user
The first name of the
FIRST_NAME Varchar 55 Not Null
user
The middle name of the
MIDDLE_NAME Varchar 55
user
Not Null,
E_MAIL Varchar 55 E-mail of the user
Unique
PASSWORD Varchar 10 Not Null Password of the user
Contact number of the
CONTACT_NUMBER Integer 12 Not Null
user
TABLE: TRANSACTION_INFORMATION
DATA FIELD
FIELD CONSTRAINT DESCRIPTION
TYPE LENGTH
Unique ID for
TRANSACTION_ID Integer 11 Primary Key
transaction
Unique ID for
RESERVATION_ID Integer 11 Foreign Key
reservation
Unique NO for
CUSTOMER_NO Integer 11 Foreign Key
customer
Unique NO for
SCHEDULE_NO Integer 11 Foreign Key
schedule
Time of
DEPARTURE_TIME Time Not Null
Departure
Fare Amount to
FARE_AMOUNT Decimal 6,2 Not Null
be paid
Type of travel:
TRAVEL_TYPE Varchar 10 Not Null One Way or Two
Way
Unique ID for
BUS_NO Integer 11 Foreign Key
bus
Number of
NUMBER_OF_PASSENGERS Integer 2 Not Null passengers
reserved
Amount to be
TOTAL Decimal 6,2 Not Null
paid
Designated seat
SEAT_NO Integer 2 Not Null
number
ENTITY RELATIONSHIP DIAGRAM
DATABASE SCHEMA
RELATIONSHIP
BUS_INFORMATION
DRIVER_INFORMATION
CONDUCTOR_INFORMATION
ROUTE_INFORMATION
FARE_INFORMATION
SCHEDULE_INFORMATION
CUSTOMER_INFORMATION
USER_INFORMATION
TRANSACTION_INFORMATION
RESERVATION_INFORMATION
RESTRICTIONS
CREATE DATABASE VICTORY_LINER_DATABASE;
USE VICTORY_LINER_DATABASE;