-
Notifications
You must be signed in to change notification settings - Fork 1
/
rtms.sql
195 lines (160 loc) · 4.65 KB
/
rtms.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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
-- phpMyAdmin SQL Dump
-- version 4.5.4.1deb2ubuntu2.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Dec 04, 2019 at 06:16 PM
-- Server version: 5.7.28-0ubuntu0.16.04.2
-- PHP Version: 7.0.33-0ubuntu0.16.04.7
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: `rtms`
--
-- --------------------------------------------------------
--
-- Table structure for table `admin`
--
CREATE TABLE `admin` (
`id` int(11) NOT NULL,
`username` text NOT NULL,
`password` text NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `admin`
--
INSERT INTO `admin` (`id`, `username`, `password`) VALUES
(1, 'admin', '1234');
-- --------------------------------------------------------
--
-- Table structure for table `dashboard`
--
CREATE TABLE `dashboard` (
`username` text NOT NULL,
`train` text NOT NULL,
`sourse` text NOT NULL,
`destination` text NOT NULL,
`date` text NOT NULL,
`sit` text NOT NULL,
`cost` text NOT NULL,
`bank` text NOT NULL,
`ac` text NOT NULL,
`id` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `station`
--
CREATE TABLE `station` (
`id` int(11) NOT NULL,
`name` text NOT NULL,
`description` text NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `station`
--
INSERT INTO `station` (`id`, `name`, `description`) VALUES
(1, 'Dhaka', 'xoss'),
(2, 'Rajshahi', 'beautiful Station'),
(3, 'Khulna', 'beautiful Station'),
(5, 'Gazipur', 'beautiful Station'),
(9, 'Sylet', 'Awesome');
-- --------------------------------------------------------
--
-- Table structure for table `train`
--
CREATE TABLE `train` (
`id` int(11) NOT NULL,
`name` varchar(20) NOT NULL,
`place1` text NOT NULL,
`place2` text NOT NULL,
`route` text NOT NULL,
`time` text NOT NULL,
`vip` int(11) NOT NULL,
`normal` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `train`
--
INSERT INTO `train` (`id`, `name`, `place1`, `place2`, `route`, `time`, `vip`, `normal`) VALUES
(4, 'Sundorban Express', 'Khulna', 'Dhaka', 'Khulna-Kustia-Tangail-Dhaka', '7.00pm khulna to Dhaka 7.00am Dhaka to khulna', 999, 599),
(5, 'Mohanagar Goduli', 'Chittagong', 'Dhaka', 'Chittagong-Dhaka', '12.15pm Chittagong-Dhaka 12.15am Dhaka-Chittagong', 1599, 899),
(6, 'Upukol Express', 'Noakhali', 'Dhaka', 'Noakhali-Dhaka', '7am Noakhali-Dhaka 7pm Noakhali-Dhaka', 799, 499),
(7, 'Agnibina Express', 'Dhaka', 'Tarakandi', 'Dhaka-Tarakandi', '12.00pm Dhaka-Tarakandi 7.00 Tarakandi-Dhaka', 749, 449);
-- --------------------------------------------------------
--
-- Table structure for table `user_info`
--
CREATE TABLE `user_info` (
`fullname` text NOT NULL,
`username` varchar(20) NOT NULL,
`address` text NOT NULL,
`mobile` text NOT NULL,
`bankname` text NOT NULL,
`acn` text NOT NULL,
`password` text NOT NULL,
`email` text NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `user_info`
--
INSERT INTO `user_info` (`fullname`, `username`, `address`, `mobile`, `bankname`, `acn`, `password`, `email`) VALUES
('Amimul Ehshan', 'amims71', 'dhaka', '01752804620', 'DBBL', '123123', '123', 'amims71@gmail.com');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `admin`
--
ALTER TABLE `admin`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `dashboard`
--
ALTER TABLE `dashboard`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `station`
--
ALTER TABLE `station`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `train`
--
ALTER TABLE `train`
ADD PRIMARY KEY (`id`,`name`);
--
-- Indexes for table `user_info`
--
ALTER TABLE `user_info`
ADD PRIMARY KEY (`username`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `admin`
--
ALTER TABLE `admin`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `dashboard`
--
ALTER TABLE `dashboard`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `station`
--
ALTER TABLE `station`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `train`
--
ALTER TABLE `train`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
/*!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 */;