-
Notifications
You must be signed in to change notification settings - Fork 1
/
thecoders.sql
193 lines (156 loc) · 4.84 KB
/
thecoders.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
-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1:3306
-- Generation Time: Apr 22, 2019 at 07:47 PM
-- Server version: 8.0.15
-- PHP Version: 7.2.15-0ubuntu0.18.04.2
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: `thecoders`
--
-- --------------------------------------------------------
--
-- Table structure for table `TASK`
--
CREATE TABLE `TASK` (
`TASKID` int(11) NOT NULL,
`NAME` varchar(100) DEFAULT NULL,
`CATEGORY` varchar(45) DEFAULT NULL,
`PRIORITY` int(11) DEFAULT NULL,
`DUEDATE` varchar(45) DEFAULT NULL,
`STATUS` varchar(45) DEFAULT NULL,
`ASSIGNTO` varchar(45) DEFAULT NULL,
`ASSIGNTEAM` varchar(45) DEFAULT NULL
);
--
-- Dumping data for table `TASK`
--
INSERT INTO `TASK` (`TASKID`, `NAME`, `CATEGORY`, `PRIORITY`, `DUEDATE`, `STATUS`, `ASSIGNTO`, `ASSIGNTEAM`) VALUES
(1, 'FrontEnd Task', 'work', 3, '05/09/2019', 'COMPLETED', '', 'team3'),
(2, 'Backend Task1', 'work', 1, '04/21/2019', 'COMPLETED', '10', ''),
(13, 'test1', 'work', 1, '04/22/2019', 'COMPLETED', '11', 'team2'),
(14, 'FrontEnd Task', 'work', 3, '05/03/2019', 'COMPLETED', '', 'team3');
-- --------------------------------------------------------
--
-- Table structure for table `TEAM`
--
CREATE TABLE `TEAM` (
`TeamID` int(10) UNSIGNED NOT NULL,
`NAME` varchar(45) DEFAULT NULL
) ;
-- --------------------------------------------------------
--
-- Table structure for table `TEAMS`
--
CREATE TABLE `TEAMS` (
`TEAMID` int(10) NOT NULL,
`TEAMNAME` varchar(500) DEFAULT NULL,
`DESCRIPTION` varchar(5000) DEFAULT NULL
) ;
--
-- Dumping data for table `TEAMS`
--
INSERT INTO `TEAMS` (`TEAMID`, `TEAMNAME`, `DESCRIPTION`) VALUES
(1, 'Team1', 'Team1 description '),
(2, 'Team1', 'Team1 description '),
(5, 'team4', 'team4 '),
(7, 'dfgdte', 'ryrtyrtyr '),
(9, 'erklweerjw', 'qqwrwlkrtjewrt '),
(11, 'Team 10', 'Team 10 ');
-- --------------------------------------------------------
--
-- Table structure for table `TEAMUSER`
--
CREATE TABLE `TEAMUSER` (
`TEAMID` int(11) NOT NULL,
`USERID` int(11) DEFAULT NULL
) ;
-- --------------------------------------------------------
--
-- Table structure for table `USER`
--
CREATE TABLE `USER` (
`USERID` int(11) NOT NULL,
`USERNAME` varchar(50) NOT NULL,
`PASSWORD` varchar(50) NOT NULL,
`FULLNAME` varchar(50) DEFAULT NULL,
`GENDER` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`STATE` varchar(50) DEFAULT NULL,
`CITY` varchar(50) DEFAULT NULL,
`STREET` varchar(50) DEFAULT NULL,
`ZIPCODE` int(11) DEFAULT NULL,
`BIRTHDATE` varchar(50) DEFAULT NULL,
`EMAIL` varchar(50) DEFAULT NULL,
`ROLE` varchar(10) NOT NULL
) ;
--
-- Dumping data for table `USER`
--
INSERT INTO `USER` (`USERID`, `USERNAME`, `PASSWORD`, `FULLNAME`, `GENDER`, `STATE`, `CITY`, `STREET`, `ZIPCODE`, `BIRTHDATE`, `EMAIL`, `ROLE`) VALUES
(2, 'test', '123', 'Viet Anh Phan', NULL, NULL, NULL, NULL, 0, NULL, '[email protected]', 'manager'),
(16, 'dlsdadsds', 'dlsdadsds', 'dsd', 'male', '', '', '', 0, NULL, '', 'developer'),
(18, 'admin', 'admin', 'admin', '', '', '', '', 0, NULL, '', 'admin');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `TASK`
--
ALTER TABLE `TASK`
ADD PRIMARY KEY (`TASKID`);
--
-- Indexes for table `TEAM`
--
ALTER TABLE `TEAM`
ADD PRIMARY KEY (`TeamID`);
--
-- Indexes for table `TEAMS`
--
ALTER TABLE `TEAMS`
ADD PRIMARY KEY (`TEAMID`);
--
-- Indexes for table `TEAMUSER`
--
ALTER TABLE `TEAMUSER`
ADD PRIMARY KEY (`TEAMID`);
--
-- Indexes for table `USER`
--
ALTER TABLE `USER`
ADD PRIMARY KEY (`USERID`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `TASK`
--
ALTER TABLE `TASK`
MODIFY `TASKID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;
--
-- AUTO_INCREMENT for table `TEAM`
--
ALTER TABLE `TEAM`
MODIFY `TeamID` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `TEAMS`
--
ALTER TABLE `TEAMS`
MODIFY `TEAMID` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
--
-- AUTO_INCREMENT for table `USER`
--
ALTER TABLE `USER`
MODIFY `USERID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;
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 */;