Uploaded by Black Sorceress

DATA DICTIONARY

advertisement
DATA DICTIONARY
Table: Customer
Attribute
Description
CustomerNo Primary key; Unique key per customer record; Not
null
Name
Name of the customer
Phone
Phone number of the customer
Table: Route
Attribute
Description
RouteNo
Primary key; Unique key per route; Not
null
Origin
The origin place of route
Destination
Destination place of route
EstimatedTimeDeparture Departure time
EstimatedTimeArrival
Arrival time
Table: Airplane
Attribute
Description
SerialNo
Primary key; Unique key per airplane;
Not null
Capacity
Total passengers that the plane can carry
Model
Airplane model
NextScheduleMaintenance Next maintenance schedule
Attribute
EmployeeNo
Name
Phone
JobTitle
Attribute
MaintenanceNo
Date
Description
SerialNo
EmployeeNo
Table: Employee
Description
Primary key; Unique key per employee; Not
null
Employee name
Employee phone number
Employee job title
Table: Maintenance
Description
Primary key; Unique key per maintenance
record; Not null
Date of maintenance
Description of maintenance
Foreign key; airplane serial no; Not null
Foreign key; employee number who did the
maintenance
Datatype
VARCHAR2
Size
10
VARCHAR2
VARCHAR2
50
12
Datatype
VARCHAR2
Size
10
VARCAHR2
VARCHAR2
TIME
TIME
30
30
Datatype
VARCHAR2
Size
10
INT
VARCHAR2
DATE
30
Datatype
VARCHAR2
Size
10
VARCHAR2
VARCHAR2
VARCHAR2
50
12
30
Datatype
VARCHAR2
Size
10
DATE
VARCHAR2
VARCHAR2
VARCHAR2
50
10
10
Table: Flight
Attribute
Description
RouteNo Primary key and Foreign key; Unique key per
route; Not null
Date
Primary key; Date of flight; Not null
SearialNo Foreign key; serial no of airplane used; Not null
ActualTD Actual Time of departure
ActualTA Actual Time of arrival
Table: CrewAssignment
Attribute
Description
EmployeeNo Primary key and Foreign key; Unique key per
employee; Not null
RouteNo
Primary key and Foreign key; Unique key per
route; Not null
Date
Primary key; Date of flight; Not null
Role
Crew role in the flight
Hours
Total hours rendered in the flight
Table: Reservation
Description
Primary key; unique key per reservation; Not
null
CustomerNo
Foreign key; customer number of the one who
made reservation; Not null
RouteNo
Foreign key; route number of the reserved
flight; Not null
Date
Foreign key; date of the reserved flight; Not
null
Fare
Total fare of the reservation
PaymentMethod Payment method if Credit Card or Cash
CCNumber
Credit card number if payment method is
through credit card
CCExpiry
Expiry date of credit card
Attribute
ReservationNo
Datatype
VARCHAR2
DATE
VARCHAR2
TIME
TIME
Size
10
10
Datatype
VARCHAR2
Size
10
VARCHAR2
10
DATE
VARCHAR2
NUMBER
10
30
Datatype
VARCHAR2
Size
10
VARCHAR2
10
VARCHAR2
10
DATE
NUMBER
VARCHAR2
VARCHAR2
15
25
VARCHAR2
5
Download