forked from divyamamgai/Naveta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnaveta.sql
146 lines (121 loc) · 4.84 KB
/
naveta.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
-- phpMyAdmin SQL Dump
-- version 4.4.14
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Mar 12, 2016 at 04:24 AM
-- Server version: 5.6.26
-- PHP Version: 5.6.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `naveta`
--
-- --------------------------------------------------------
--
-- Table structure for table `bus`
--
CREATE TABLE IF NOT EXISTS `bus` (
`BusID` smallint(6) NOT NULL,
`Direction` tinyint(1) NOT NULL DEFAULT '1',
`Stops` mediumtext NOT NULL,
`Type` enum('Government','Private') NOT NULL,
`Driver ID` smallint(6) NOT NULL,
`Conductor ID` smallint(6) NOT NULL,
`AvailableSeats` tinyint(4) NOT NULL,
`Capacity` tinyint(4) NOT NULL,
`CurrentStop` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `bus`
--
INSERT INTO `bus` (`BusID`, `Direction`, `Stops`, `Type`, `Driver ID`, `Conductor ID`, `AvailableSeats`, `Capacity`, `CurrentStop`) VALUES
(1, 0, 'Chandigarh|Ambala|Kurukshetra|Karnal|Panipat|Sonipat|Delhi|Gurgaon|Neemrana|Behrod|Kotputli|Jaipur', 'Government', 1001, 2001, 0, 60, 'Delhi'),
(2, 0, 'Delhi|Gurgaon|Rewari|Kotputli|Jaipur|Phulera|Kishangarh|Ajmer', 'Government', 1002, 2002, 0, 60, 'Gurgaon'),
(3, 0, 'Panipat|Sonipat|Delhi|Gurgaon|Narnaul|Jaipur|Ajmer|Falna|Gandhinagar|Ahemdabad', 'Government', 1003, 2003, 61, 60, ''),
(4, 0, 'Delhi|Ghaziabad|Aligarh|Hathras|Tundla|Firozabad|Kanpur', 'Government', 1004, 2004, 61, 60, ''),
(5, 0, 'Haridwar|Meerut|Ghaziabad|Delhi|Gurgaon|Rewari|Jaipur', 'Private', 1005, 2005, 41, 80, '');
-- --------------------------------------------------------
--
-- Table structure for table `employees`
--
CREATE TABLE IF NOT EXISTS `employees` (
`Name` varchar(255) NOT NULL,
`EmployeeID` smallint(6) NOT NULL,
`EmployeeType` enum('Driver','Conductor') NOT NULL,
`Password` tinytext NOT NULL,
`Phone` bigint(20) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=2006 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `employees`
--
INSERT INTO `employees` (`Name`, `EmployeeID`, `EmployeeType`, `Password`, `Phone`) VALUES
('Rohit', 1001, 'Driver', 'e2fc714c4727ee9395f324cd2e7f331f', 9728693608),
('Kaushik', 1002, 'Driver', 'e2fc714c4727ee9395f324cd2e7f331f', 9728431196),
('Divya', 1003, 'Driver', 'e2fc714c4727ee9395f324cd2e7f331f', 8930343246),
('Aman', 1004, 'Driver', 'e2fc714c4727ee9395f324cd2e7f331f', 9999988888),
('Himanshu', 1005, 'Driver', 'e2fc714c4727ee9395f324cd2e7f331f', 9728428164),
('Anshul', 2001, 'Conductor', 'e2fc714c4727ee9395f324cd2e7f331f', 9898989898),
('Vibhu', 2002, 'Conductor', 'e2fc714c4727ee9395f324cd2e7f331f', 8989898989),
('Dinesh', 2003, 'Conductor', 'e2fc714c4727ee9395f324cd2e7f331f', 7899879877),
('Arunabh', 2004, 'Conductor', 'e2fc714c4727ee9395f324cd2e7f331f', 9876543221),
('Vipin', 2005, 'Conductor', 'e2fc714c4727ee9395f324cd2e7f331f', 9874563210);
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE IF NOT EXISTS `users` (
`Name` varchar(255) NOT NULL,
`EMail` varchar(255) NOT NULL,
`Password` text NOT NULL,
`Phone` bigint(10) NOT NULL,
`User_ID` smallint(6) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=3009 DEFAULT CHARSET=latin1 COMMENT='To store user login details';
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`Name`, `EMail`, `Password`, `Phone`, `User_ID`) VALUES
('Divya Mamgai', '[email protected]', 'e2fc714c4727ee9395f324cd2e7f331f', 8930343246, 3004),
('Kaushik Sarma', '[email protected]', 'e2fc714c4727ee9395f324cd2e7f331f', 9999999999, 3005),
('Rohit Yadav', '[email protected]', 'e2fc714c4727ee9395f324cd2e7f331f', 8888888888, 3006),
('ABCD', '[email protected]', 'e2fc714c4727ee9395f324cd2e7f331f', 7777777777, 3007),
('BCDE', '[email protected]', 'e2fc714c4727ee9395f324cd2e7f331f', 6666666666, 3008);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `bus`
--
ALTER TABLE `bus`
ADD PRIMARY KEY (`BusID`);
--
-- Indexes for table `employees`
--
ALTER TABLE `employees`
ADD PRIMARY KEY (`EmployeeID`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`User_ID`),
ADD UNIQUE KEY `E-mail` (`EMail`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `employees`
--
ALTER TABLE `employees`
MODIFY `EmployeeID` smallint(6) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2006;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `User_ID` smallint(6) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3009;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;