Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4
Create Database transport DB
( Create table login ( LoginID int(11) primary key, Username char (20) not null, Userpassword char (50) not null );
Create table Admin (
ID int (11) primary key, Firstname varchar (50) not null, Lastname varchar (50) not null, Username varchar (50) not null, Password varchar (100) not null, Confirmpassword varchar (100) not null, Status varchar (20) not null, Foreign key(ID) references login(LoginID) );
Create table Employee (
EmployeeID int(11) Primary key, Username varchar (100) not null, Userpassword varchar (100) not null, Fullname varchar (50) not null, Phoneno varchar(20) not null, Section varchar (20) not null, Department varchar (50) not null, Bloodgroup varchar (20) not null, Email varchar (100) not null, Foreign key (EmployeeID) references login (LoginID) );
Create table vehicleinformation (
vehicleID int(11) primary key, vehicletype varchar(40) not null, AcnonAc varchar(50) not null, Vehicle_status varchar(25) not null, Geartype varchar(10) not null, Registrationno varchar (40) not null, Engineno varchar(42) not null, Chassisno varchar(42) not null, Manufacturer varchar(75) not null, Manufactureddate Date not null, Modelno varchar (55) not null, Noofseat int not null, Fuel varchar(55) not null, Tankcapacity varchar (15), Vehiclecolor varchar (15) not null, Batteryvalue varchar (50), Tyresize varchar (10), Purchasefrom varchar (50) not null, Price int not null, Dateofpurchase Date not null, Foreign key (vehicleID) references driver(driverID), Foreign key (vehicleID) references pumpstationinformation(stationID) );
Create table pumpstationinformation (
stationID int(11) primary key, Name varchar(50) not null, Address varchar(255) not null, Contactno varchar(100) not null );
Create table Driver (
DriverID int(11) primary key, Drivername varchar(50) not null, Licenceno varchar(50) not null, EmployDate Date not null, Driverdestination varchar(100) not null ); Create table Route ( RouteID int (50) primary key, Fair float not null, Start varchar (50) not null, Finish varchar (50) not null );
Create table Schedule (
ScheduleID int(11) primary key, Arrival Date not null, Departure Date not null, BusID int not null );
Create table stop (
LocationID int(11) primary key, Locationname varchar (40) not null, RouteID int not null, Foreign key (LocationID) references Driver (DriverID) );
Create table Passenger (
PassengerID int (100) primary key, fullname varchar (40) not null, phonen number not null, Nextofkingname varchar (50) not null, Nextofkingphonenumber number not null, Seatnumber number not null, Destination varchar (100) not null, Foreign key DriverID reference Driver (DriverID), Foreign key BusID reference Bus (BusID) );
Create table Booking (
BookingID int(11) primary key, Customername varchar (50) not null, phonenumber varchar(20) not null, Destination varchar (100) not null, Seatnumber varchar(10) not null, Amountpaid decimal (12,2) not null, Foreign key (BookingID) references admin(ID) );
Create table Taxinformation (
TaxID int not null, VehicleID int not null, RegistrationNo varchar(20) not null, Deposittype varchar(20) not null, Depositamount decimal (12,2) not null, Givendate Date not null, Depositdate Date not null, Expiredate Date not null, Confirmedby varchar(50) not null, Foreign key(TaxID) references admin(ID), Foreign key(VehicleID) references vehicleinformation(vehicleID), Primary Key(TaxID, VehicleID) );
Juan J. Linz - Alfred Stepan - Jaun J. Linz - Problems of Democratic Transition and Consolidation - Southern Europe, South America, and Post-Communist Europe-Johns Hopkins University Press (1996) PDF
Juan J. Linz - Alfred Stepan - Jaun J. Linz - Problems of Democratic Transition and Consolidation - Southern Europe, South America, and Post-Communist Europe-Johns Hopkins University Press (1996) PDF