forked from MTnes/Trovelnama_Web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
db.sql
226 lines (184 loc) · 5.8 KB
/
db.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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
-- phpMyAdmin SQL Dump
-- version 4.8.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Mar 22, 2019 at 10:46 AM
-- Server version: 10.1.34-MariaDB
-- PHP Version: 7.2.7
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
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: `trovelnama`
-- User: cringyuser
-- Pass: weirdpassword
--
-- --------------------------------------------------------
--
-- Table structure for table `historicdata`
--
CREATE TABLE `historicdata` (
`UID_Finder` int(5) DEFAULT NULL,
`UID_Provider` int(5) DEFAULT NULL,
`Title` varchar(50) NOT NULL,
`Location` varchar(30) NOT NULL,
`Date` date NOT NULL,
`Duration` int(3) NOT NULL,
`Description` varchar(200) NOT NULL,
`Experience` varchar(200) DEFAULT NULL,
`Status` int(1) NOT NULL,
`DatePosted` date NOT NULL,
`DateHired` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `job`
--
CREATE TABLE `job` (
`JID` int(5) NOT NULL,
`Title` varchar(50) NOT NULL,
`UID_Provider` int(5) NOT NULL,
`UID_Finder` int(5) DEFAULT NULL,
`Skills` varchar(50) NOT NULL,
`Location` varchar(30) NOT NULL,
`DateReq` date NOT NULL,
`Duration` int(3) NOT NULL,
`Description` varchar(200) DEFAULT NULL,
`Stipend` int(15) NOT NULL,
`Status` int(1) NOT NULL DEFAULT '0',
`DatePosted` date NOT NULL,
`DateHired` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `job`
--
INSERT INTO `job` (`JID`, `Title`, `UID_Provider`, `UID_Finder`, `Skills`, `Location`, `DateReq`, `Duration`, `Description`, `Stipend`, `Status`, `DatePosted`, `DateHired`) VALUES
(7000000, 'Test', 2, NULL, 'Test', 'Mumbai', '2019-03-22', 5, 'Test', 1000, 0, '2019-03-21', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `jobapplications`
--
CREATE TABLE `jobapplications` (
`JID` int(5) NOT NULL,
`UID` int(5) NOT NULL,
`Date` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `jobapplications`
--
INSERT INTO `jobapplications` (`JID`, `UID`, `Date`) VALUES
(7000000, 1, '2019-03-21');
-- --------------------------------------------------------
--
-- Table structure for table `profile`
--
CREATE TABLE `profile` (
`PID` int(5) NOT NULL,
`Title` varchar(30) NOT NULL,
`UID_Finder` int(5) NOT NULL,
`UID_Provider` int(5) DEFAULT NULL,
`Skills` varchar(100) NOT NULL,
`Location` varchar(30) NOT NULL,
`DateAvail` date NOT NULL,
`Duration` int(3) NOT NULL,
`Experience` int(3) NOT NULL,
`ExpDesc` varchar(200) DEFAULT NULL,
`Status` int(1) DEFAULT '0',
`DatePosted` date NOT NULL,
`DateHired` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `profile`
--
INSERT INTO `profile` (`PID`, `Title`, `UID_Finder`, `UID_Provider`, `Skills`, `Location`, `DateAvail`, `Duration`, `Experience`, `ExpDesc`, `Status`, `DatePosted`, `DateHired`) VALUES
(3000000, 'Test', 1, NULL, 'Test', 'Bangalore', '2019-03-22', 3, 5, NULL, 0, '2019-03-21', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `profileapplications`
--
CREATE TABLE `profileapplications` (
`PID` int(5) NOT NULL,
`UID` int(5) NOT NULL,
`Date` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `profileapplications`
--
INSERT INTO `profileapplications` (`PID`, `UID`, `Date`) VALUES
(3000000, 2, '2019-03-22');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`UID` int(5) NOT NULL,
`Fname` varchar(20) NOT NULL,
`Lname` varchar(20) DEFAULT NULL,
`Email` varchar(32) NOT NULL,
`Image` varchar(200) NOT NULL DEFAULT 'profilepic',
`Pass` varchar(32) NOT NULL,
`Addr` varchar(200) NOT NULL,
`Contact` int(10) NOT NULL,
`AltContact` int(10) DEFAULT NULL,
`DOB` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`UID`, `Fname`, `Lname`, `Email`, `Image`, `Pass`, `Addr`, `Contact`, `AltContact`, `DOB`) VALUES
(1, 'Deep', 'Mehta', '[email protected]', 'profilepic', 'test', 'B/204,Pooja Enclave, Ganesh Nagar', 2147483647, NULL, '1998-09-08'),
(2, 'Deep', 'Mehta', '[email protected]', 'profilepic', 'root', 'B/204,Pooja Enclave, Ganesh Nagar', 13, NULL, '2019-03-12'),
(3, 'Test', NULL, '[email protected]', 'profilepic', 'root', 'aasf', 124, NULL, '2019-03-19');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `job`
--
ALTER TABLE `job`
ADD PRIMARY KEY (`JID`);
--
-- Indexes for table `profile`
--
ALTER TABLE `profile`
ADD PRIMARY KEY (`PID`);
--
-- Indexes for table `profileapplications`
--
ALTER TABLE `profileapplications`
ADD PRIMARY KEY (`PID`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`UID`),
ADD UNIQUE KEY `Email` (`Email`),
ADD UNIQUE KEY `Contact` (`Contact`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `job`
--
ALTER TABLE `job`
MODIFY `JID` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7000001;
--
-- AUTO_INCREMENT for table `profile`
--
ALTER TABLE `profile`
MODIFY `PID` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3000001;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `UID` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
COMMIT;
/*!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 */;