This repository has been archived by the owner on Jul 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadabtoco.sql
172 lines (139 loc) · 5.34 KB
/
adabtoco.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
-- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Aug 19, 2019 at 09:42 AM
-- Server version: 10.3.16-MariaDB
-- PHP Version: 7.3.6
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: `adabtoco`
--
-- --------------------------------------------------------
--
-- Table structure for table `courses_transaction`
--
CREATE TABLE `courses_transaction` (
`transaction_Id` int(11) NOT NULL,
`course_code` varchar(50) NOT NULL,
`class_code` varchar(5) CHARACTER SET utf8 NOT NULL,
`class_type` varchar(4) CHARACTER SET utf8 NOT NULL,
`class_icon` int(2) NOT NULL,
`session` varchar(5) NOT NULL,
`topic` varchar(250) NOT NULL,
`transaction_date` date NOT NULL,
`transaction_time` time NOT NULL,
`is_done` tinyint(4) NOT NULL,
`is_live` tinyint(4) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `courses_transaction`
--
INSERT INTO `courses_transaction` (`transaction_Id`, `course_code`, `class_code`, `class_type`, `class_icon`, `session`, `topic`, `transaction_date`, `transaction_time`, `is_done`, `is_live`) VALUES
(1, 'MOBI6002', 'LA03', 'LEC', 1, '1', 'Introduction to Java Programming', '2019-08-09', '11:20:00', 0, 0),
(2, 'MOBI6002', 'LA03', 'LEC', 2, '2', 'Basic Concept Object-Oriented Programming', '2019-08-16', '11:20:00', 0, 0),
(3, 'COMP6106', 'LZ26', 'LEC', 3, '1', 'Introduction to Refactoring', '2019-08-09', '13:20:00', 0, 0),
(4, 'COMP6106', 'LZ26', 'LEC', 4, '2', 'Introduction to Refactoring', '2019-08-09', '15:20:00', 0, 0);
-- --------------------------------------------------------
--
-- Table structure for table `lecture_transaction`
--
CREATE TABLE `lecture_transaction` (
`lecture_transaction_id` int(11) NOT NULL,
`transaction_id` int(11) NOT NULL,
`student_code` varchar(10) NOT NULL,
`lecturer_code` varchar(10) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `lecture_transaction`
--
INSERT INTO `lecture_transaction` (`lecture_transaction_id`, `transaction_id`, `student_code`, `lecturer_code`) VALUES
(1, 1, '1100061092', 'D4524'),
(2, 2, '1100061092', 'D4524'),
(3, 3, '2101656225', 'D3695'),
(4, 4, '2101656225', 'D3695');
-- --------------------------------------------------------
--
-- Table structure for table `master_course`
--
CREATE TABLE `master_course` (
`course_code` varchar(10) NOT NULL,
`course_name` varchar(100) NOT NULL,
`streaming` varchar(100) NOT NULL,
`language` varchar(5) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `master_course`
--
INSERT INTO `master_course` (`course_code`, `course_name`, `streaming`, `language`) VALUES
('COMP6106', 'Code Reengineering', 'Computer Science Program', 'EN'),
('MOBI6002', 'Mobile Object Oriented Programming', 'Mobile Application & Technology', 'ID');
-- --------------------------------------------------------
--
-- Table structure for table `master_user`
--
CREATE TABLE `master_user` (
`username` varchar(10) NOT NULL,
`name` varchar(50) NOT NULL,
`password` varchar(250) NOT NULL,
`department` varchar(100) CHARACTER SET utf8 NOT NULL,
`privilege` tinyint(2) NOT NULL,
`tokenid` varchar(20) NOT NULL,
`lastlogin` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `master_user`
--
INSERT INTO `master_user` (`username`, `name`, `password`, `department`, `privilege`, `tokenid`, `lastlogin`) VALUES
('D4524', 'Sonya Rapinta Manalu', 'c371a08b96ae6b5a1077215b92db4150', 'Mobile Application & Technology', 1, '', '2019-08-08 05:54:07'),
('1100061092', 'Sonya Rapinta Manalu', '4ff579ca7fae7a271e1f86cffb2ca5e8', 'Mobile Application & Technology', 2, 'gcvWaGPZiIbEQrLuoMTt', '2019-08-08 05:55:35'),
('D3695', 'Arthur Salomo Gultom', 'c371a08b96ae6b5a1077215b92db4150', 'Industrial Engineering', 1, '5AZ5PnOr0U4B2QgJrfCj', '2019-08-08 06:41:15'),
('2101656225', 'HANSEN DJUMARI', '4ff579ca7fae7a271e1f86cffb2ca5e8', 'Cyber Security', 2, 'lGdlATfJIvjjm9ZhXoP5', '2019-08-08 06:42:47');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `courses_transaction`
--
ALTER TABLE `courses_transaction`
ADD PRIMARY KEY (`transaction_Id`);
--
-- Indexes for table `lecture_transaction`
--
ALTER TABLE `lecture_transaction`
ADD PRIMARY KEY (`lecture_transaction_id`);
--
-- Indexes for table `master_course`
--
ALTER TABLE `master_course`
ADD PRIMARY KEY (`course_code`);
--
-- Indexes for table `master_user`
--
ALTER TABLE `master_user`
ADD PRIMARY KEY (`username`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `courses_transaction`
--
ALTER TABLE `courses_transaction`
MODIFY `transaction_Id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `lecture_transaction`
--
ALTER TABLE `lecture_transaction`
MODIFY `lecture_transaction_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
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 */;