forked from hngi/Team_Asclepius_MinI_Class_Web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmini.sql
221 lines (181 loc) · 8.6 KB
/
mini.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
-- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1:3306
-- Generation Time: Sep 29, 2019 at 11:46 AM
-- Server version: 5.7.19
-- PHP Version: 5.6.31
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: `mini`
--
-- --------------------------------------------------------
--
-- Table structure for table `assignments`
--
DROP TABLE IF EXISTS `assignments`;
CREATE TABLE IF NOT EXISTS `assignments` (
`assignment_id` int(11) NOT NULL AUTO_INCREMENT,
`course_code` varchar(255) NOT NULL,
`assignment_title` varchar(255) NOT NULL,
`assignment_file` varchar(255) NOT NULL,
`id_number` varchar(30) NOT NULL,
`created_at` varchar(30) NOT NULL,
PRIMARY KEY (`assignment_id`)
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `assignments`
--
INSERT INTO `assignments` (`assignment_id`, `course_code`, `assignment_title`, `assignment_file`, `id_number`, `created_at`) VALUES
(1, 'CEG313', 'Assignment One', '', 'stu268174', '2019-12-11'),
(2, 'biology', 'the life of a frog', '../uploads/assignments/bala muazu, abuja.pdf', '123456', '2019-09-28'),
(3, 'biology', 'the life of a frog', '../uploads/assignments/bala muazu, abuja.pdf', '123456', '2019-09-28'),
(4, 'MEG413', 'Test Assignment', '../uploads/assignments/approval_1.pdf', 'lec204459', '2019-09-29'),
(5, 'MEG413', 'Another One', '../uploads/assignments/Health Insurance guide.pdf', 'lec204459', '2019-09-29');
-- --------------------------------------------------------
--
-- Table structure for table `courses`
--
DROP TABLE IF EXISTS `courses`;
CREATE TABLE IF NOT EXISTS `courses` (
`course_id` int(11) NOT NULL AUTO_INCREMENT,
`course_code` varchar(20) NOT NULL,
`course_title` varchar(255) NOT NULL,
`course_description` text NOT NULL,
`credit_unit` int(5) NOT NULL,
`dept_code` varchar(20) NOT NULL,
`faculty_code` varchar(20) NOT NULL,
`id_number` varchar(20) NOT NULL,
`created_at` text NOT NULL,
PRIMARY KEY (`course_id`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `courses`
--
INSERT INTO `courses` (`course_id`, `course_code`, `course_title`, `course_description`, `credit_unit`, `dept_code`, `faculty_code`, `id_number`, `created_at`) VALUES
(1, 'CEG313', 'strength of materials', 'dEscribing the stregnth of different materials in civil eng.', 4, 'CEG', 'ENG', 'lec204459', '2019-09-24'),
(2, 'MEG413', 'Mechanical Engineering Principles', 'The principles of mechanical engineering are studied indepth', 2, 'MEG', 'ENG', 'lec204459', ''),
(3, 'M001', 'Maths', 'lonzhBXHXJHHjxnnxbsshshs', 2, 'Statistic', 'Engineering ', 'lec204459', '2019-09-29');
-- --------------------------------------------------------
--
-- Table structure for table `departments`
--
DROP TABLE IF EXISTS `departments`;
CREATE TABLE IF NOT EXISTS `departments` (
`dept_id` int(11) NOT NULL AUTO_INCREMENT,
`dept_code` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
`department_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`faculty_code` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`dept_id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `departments`
--
INSERT INTO `departments` (`dept_id`, `dept_code`, `department_name`, `faculty_code`) VALUES
(1, 'CEG', 'Civil Engineering', 'ENG'),
(2, 'MEG', 'Mechanical Engineering', 'ENG'),
(3, 'PET', 'Petroleum Engineering', 'ENG'),
(4, 'SOC', 'Sociology', 'HUM');
-- --------------------------------------------------------
--
-- Table structure for table `faculties`
--
DROP TABLE IF EXISTS `faculties`;
CREATE TABLE IF NOT EXISTS `faculties` (
`faculty_id` int(11) NOT NULL AUTO_INCREMENT,
`faculty_code` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
`faculty_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`faculty_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `faculties`
--
INSERT INTO `faculties` (`faculty_id`, `faculty_code`, `faculty_name`) VALUES
(1, 'ENG', 'Engineering'),
(2, 'HUM', 'Humanities');
-- --------------------------------------------------------
--
-- Table structure for table `notes`
--
DROP TABLE IF EXISTS `notes`;
CREATE TABLE IF NOT EXISTS `notes` (
`note_id` int(11) NOT NULL AUTO_INCREMENT,
`course_code` varchar(20) NOT NULL,
`note_title` varchar(200) NOT NULL,
`note_file` varchar(255) NOT NULL,
`id_number` varchar(30) NOT NULL,
`created_at` varchar(30) NOT NULL,
PRIMARY KEY (`note_id`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `notes`
--
INSERT INTO `notes` (`note_id`, `course_code`, `note_title`, `note_file`, `id_number`, `created_at`) VALUES
(2, 'CEG313', 'strength of materials', '', 'lec123456', '2019-09-24'),
(3, 'Maths', 'Note number 2', '', 'stu268174', '2019-12-11');
-- --------------------------------------------------------
--
-- Table structure for table `submissions`
--
DROP TABLE IF EXISTS `submissions`;
CREATE TABLE IF NOT EXISTS `submissions` (
`submission_id` int(11) NOT NULL AUTO_INCREMENT,
`course_code` varchar(10) NOT NULL,
`assignment_title` varchar(255) NOT NULL,
`id_number` varchar(30) NOT NULL,
`submission_file` varchar(255) NOT NULL,
`created_at` varchar(30) NOT NULL,
`grade` varchar(10) NOT NULL,
`updated_at` varchar(30) NOT NULL,
PRIMARY KEY (`submission_id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `submissions`
--
INSERT INTO `submissions` (`submission_id`, `course_code`, `assignment_title`, `id_number`, `submission_file`, `created_at`, `grade`, `updated_at`) VALUES
(1, 'ENG301', 'First ass', '123456', '../uploads/assignments/submissions/Davis CV.pdf', '2019-09-27', '', ''),
(2, 'ENG301', 'Test Assignment', '123456', '../uploads/assignments/submissions/Health Insurance guide.pdf', '2019-09-28', '', '');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
DROP TABLE IF EXISTS `users`;
CREATE TABLE IF NOT EXISTS `users` (
`user_id` int(11) NOT NULL AUTO_INCREMENT,
`email` varchar(255) NOT NULL,
`fullname` varchar(255) NOT NULL,
`role` varchar(10) NOT NULL,
`id_number` varchar(30) NOT NULL,
`courses` varchar(255) NOT NULL,
`dept_code` varchar(30) NOT NULL,
`faculty_code` varchar(30) NOT NULL,
`password` varchar(255) NOT NULL,
`image` varchar(255) NOT NULL,
`hash` varchar(255) NOT NULL,
`created_at` varchar(30) NOT NULL,
`status` int(11) NOT NULL,
PRIMARY KEY (`user_id`)
) ENGINE=MyISAM AUTO_INCREMENT=9 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`user_id`, `email`, `fullname`, `role`, `id_number`, `courses`, `dept_code`, `faculty_code`, `password`, `image`, `hash`, `created_at`, `status`) VALUES
(2, '[email protected]', 'kenny', 'lecturer', 'lec146779', '', '', '', '$2y$10$TKEu94go0C5MFoXIiNu9fevUWUyUdXOdl6Lfece2CWgKMmaHM8E6q', '', '9a1158154dfa42caddbd0694a4e9bdc8', '2019-09-28', 1),
(3, '[email protected]', 'Agughalam', 'lecturer', 'lec204459', '', '', 'ENG', '$2y$10$BbBMeaAF9bvpOaQoFw1KQOmQnsJy3uBZtKzwV/QaxrAXWSWYhumgq', '', '1c1d4df596d01da60385f0bb17a4a9e0', '2019-09-28', 1),
(4, '[email protected]', 'ogube', 'student', 'stu148460', '[\"CEG313\",\"MEG413\"]', 'MEG', 'ENG', '$2y$10$jEe6K/XYM3JoMSZXyJipa.6X3Hjf1UsWw4rAEcB4xnoGJbaVwZoi.', '', '6512bd43d9caa6e02c990b0a82652dca', '2019-09-28', 1),
(5, '[email protected]', 'Ayeni kehinde', 'student', 'stu211003', '', '', '', '$2y$10$dlZemg/Y97QFYSOPoC1EtuYEbJQymWc88nMfPE.Vv2vzgo92Vwj0a', '', '5b8add2a5d98b1a652ea7fd72d942dac', '2019-09-28', 1),
(6, '[email protected]', 'John Ifog', 'lecturer', 'lec80532', '', '', '', '$2y$10$teJYaWF6dpsfgdoTew88HOqlMCw9n6unYdch6JOwNEgd2S5jj3D.W', '', '1e056d2b0ebd5c878c550da6ac5d3724', '2019-09-28', 1),
(7, '[email protected]', 'Ayeni kehinde', 'lecturer', 'lec176680', '', '', '', '$2y$10$Y0zeb4jJmbzK9E5Q.ekiteZsVGR7XxlTZE4lBNaM0R2j8VnCgOhNi', '', '9232fe81225bcaef853ae32870a2b0fe', '2019-09-28', 1),
(8, '[email protected]', 'mark', 'lecturer', 'lec282659', '', '', '', '$2y$10$0xc4pO1CRSsL7ANpcyuA1.N5TZ/NcpV6ePxg0D3lMtsP3HilR0F9K', '', '0ff8033cf9437c213ee13937b1c4c455', '2019-09-29', 1);
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 */;