Вы находитесь на странице: 1из 1

user

trip
routeline
ID TINYINT(4)
routeID TINYINT(4)
travelOrder TINYINT(4)
Indexes

usertypes

ID INT(11)

ID TINYINT(4)

ID INT(11)

username VARCHAR(20)

userTypeDesc VARCHAR(10)

tripDate DATE

password VARCHAR(20)

tripSeats TINYINT(4)

email VARCHAR(40)

RouteLine_ID TINYINT(4)

FName VARCHAR(20)

Bus_ID INT(11)

LName VARCHAR(20)

Indexes

bus

accessLevel VARCHAR(10)
Indexes

Address VARCHAR(50)
zip VARCHAR(5)

ID INT(11)

City VARCHAR(20)

busMake VARCHAR(20)

Country VARCHAR(40)

busModel VARCHAR(20)

userTypeID TINYINT(4)

busYear YEAR

Indexes

seats TINYINT(4)
Indexes

driver_has_trip
Driver_ID INT(11)
Trip_ID INT(11)
Indexes

routeschedule
RouteLineID TINYINT(4)
RouteID TINYINT(4)
StationID TINYINT(4)

route

dayOfWeek VARCHAR(10)

ID TINYINT(4)

arrivalTime TIME

routeName VARCHAR(40)
returnRouteID TINYINT(4)

departureTime TIME
Indexes

Indexes

driver
ID INT(11)
FirstName VARCHAR(20)
LastName VARCHAR(20)
LicenceNr VARCHAR(45)
phone VARCHAR(45)
email VARCHAR(40)
Address VARCHAR(50)
zip VARCHAR(5)
City VARCHAR(20)
Country VARCHAR(40)
Indexes

ticket
ID INT(11)
purchTime TIME
purchDate DATE
SeatNr TINYINT(4)
PricePaid DECIMAL(8,2)
destinationID INT(11)
securityCode VARCHAR(20)
ipAddress VARCHAR(20)

destination
route_ID TINYINT(4)
StartStationID TINYINT(4)
EndStationID TINYINT(4)
TicketPrice DECIMAL(8,2)

Destination_route_ID TINYINT(4)
Destination_StartStationID TINYINT(4)
Destination_EndStationID TINYINT(4)
Trip_ID INT(11)
User_ID INT(11)
Indexes

ReturnTicket DECIMAL(8,2)
ChildTicket DECIMAL(8,2)
ChildReturnTicket DECIMAL(8,2)
ElderTicket DECIMAL(8,2)
ElderReturnTicket DECIMAL(8,2)
Indexes

station
ID TINYINT(4)
stationName VARCHAR(20)
Address VARCHAR(40)
ZIP CHAR(5)

routestation

City VARCHAR(30)

route_ID TINYINT(4)

Country VARCHAR(40)

stationID TINYINT(4)

latitude VARCHAR(20)

stationOrder TINYINT(4)
Indexes

longitude VARCHAR(20)
Indexes

Оценить