-
Notifications
You must be signed in to change notification settings - Fork 2
/
sipuskom.sql
280 lines (231 loc) · 7.79 KB
/
sipuskom.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
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
-- phpMyAdmin SQL Dump
-- version 4.6.5.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Aug 21, 2017 at 05:51 PM
-- Server version: 10.1.21-MariaDB
-- PHP Version: 5.6.30
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: `sipuskom`
--
-- --------------------------------------------------------
--
-- Table structure for table `akun_sosial`
--
CREATE TABLE `akun_sosial` (
`id_akun` int(11) NOT NULL,
`email` varchar(100) NOT NULL,
`chat_id_telegram` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `akun_sosial`
--
INSERT INTO `akun_sosial` (`id_akun`, `email`, `chat_id_telegram`) VALUES
(1, '[email protected]', '293078439'),
(3, '[email protected]', '293078439');
-- --------------------------------------------------------
--
-- Table structure for table `kursus`
--
CREATE TABLE `kursus` (
`id` int(2) NOT NULL,
`nama_kursus` varchar(50) DEFAULT NULL,
`laboratorium` varchar(30) NOT NULL,
`harga` double(20,2) NOT NULL,
`periode` date NOT NULL,
`kuota` int(2) NOT NULL,
`status` int(1) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;
--
-- Dumping data for table `kursus`
--
INSERT INTO `kursus` (`id`, `nama_kursus`, `laboratorium`, `harga`, `periode`, `kuota`, `status`) VALUES
(1, 'Make an Easy Web With Framework CodeIgniter', 'Pengembangan Internet', 500000.00, '2016-07-24', 14, 0),
(2, 'PHP and MySQL for Web Application Development', 'Pengembangan Internet', 1000000.00, '2016-07-31', 18, 0),
(3, 'Microsoft Visual Basic .NET for Beginner', 'Aplikasi dan Pemrograman', 1500000.00, '2016-08-14', 16, 0),
(17, 'Code Igniter ', 'Pengembangan Internet', 1000000.00, '2016-06-15', 0, 1);
-- --------------------------------------------------------
--
-- Table structure for table `laboratorium`
--
CREATE TABLE `laboratorium` (
`id_lab` int(11) NOT NULL,
`nama_lab` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `laboratorium`
--
INSERT INTO `laboratorium` (`id_lab`, `nama_lab`) VALUES
(1, 'Software Engineering'),
(2, 'Jaringan Komputer');
-- --------------------------------------------------------
--
-- Table structure for table `pertanyaan`
--
CREATE TABLE `pertanyaan` (
`id_pertanyaan` int(11) NOT NULL,
`isi_pertanyaan` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `pertanyaan`
--
INSERT INTO `pertanyaan` (`id_pertanyaan`, `isi_pertanyaan`) VALUES
(1, 'Siapakah nama depan Ibu Anda'),
(2, 'Siapakah nama depan peliharaan Anda'),
(3, 'Siapakah nama depan sahabat Anda'),
(4, 'Apakah makanan favorit Anda'),
(5, 'Apakah hobi favorit Anda');
-- --------------------------------------------------------
--
-- Table structure for table `peserta`
--
CREATE TABLE `peserta` (
`id` int(11) NOT NULL,
`nama` varchar(50) NOT NULL,
`nm_kursus` varchar(50) NOT NULL,
`harga_pelatihan` double(20,2) NOT NULL,
`periode` date NOT NULL,
`kuota` int(2) NOT NULL,
`id_user` int(3) NOT NULL,
`id_kursus` int(2) NOT NULL,
`institusi` varchar(100) NOT NULL,
`alamat` varchar(300) NOT NULL,
`no_telp` varchar(20) NOT NULL,
`tempat_lahir` varchar(100) NOT NULL,
`tanggal_lahir` date NOT NULL,
`email` varchar(200) NOT NULL,
`chat_id` varchar(20) NOT NULL,
`custom` varchar(2) NOT NULL,
`id_pembayaran` varchar(50) NOT NULL,
`no_transaksi` varchar(50) NOT NULL,
`status` int(1) NOT NULL DEFAULT '0',
`tgl_pembuatan` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `peserta`
--
INSERT INTO `peserta` (`id`, `nama`, `nm_kursus`, `harga_pelatihan`, `periode`, `kuota`, `id_user`, `id_kursus`, `institusi`, `alamat`, `no_telp`, `tempat_lahir`, `tanggal_lahir`, `email`, `chat_id`, `custom`, `id_pembayaran`, `no_transaksi`, `status`, `tgl_pembuatan`) VALUES
(18, 'Yosua Alvin Adi Soetrisno', 'Pelatihan Python', 500000.00, '2017-08-30', 10, 14, 0, 'UNDIP', 'Jl. Anggrek VII/1 Semarang', '085742380797', 'Semarang', '1990-10-13', '[email protected]', '293078439', '1', 'edaf', '', 0, '2017-08-21 17:06:34'),
(17, 'Yosua Alvin Adi Soetrisno', 'Make an Easy Web With Framework CodeIgniter', 500000.00, '2017-08-30', 10, 14, 1, 'UNDIP', 'Jl. Anggrek VII/1 Semarang', '085742380797', 'Semarang', '1990-10-13', '[email protected]', '293078439', '0', '1eac', '1241213123124123', 1, '2017-08-21 11:26:36');
-- --------------------------------------------------------
--
-- Table structure for table `rekening`
--
CREATE TABLE `rekening` (
`id_akun` int(11) NOT NULL,
`no_rekening` varchar(20) NOT NULL,
`bank` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `rekening`
--
INSERT INTO `rekening` (`id_akun`, `no_rekening`, `bank`) VALUES
(2, '123129310231', 'Mandiri');
-- --------------------------------------------------------
--
-- Table structure for table `tb_pengguna`
--
CREATE TABLE `tb_pengguna` (
`id_user` int(3) NOT NULL,
`username` varchar(50) NOT NULL,
`password` varchar(32) NOT NULL,
`nama` varchar(100) DEFAULT NULL,
`npm` varchar(32) NOT NULL,
`level` int(1) NOT NULL,
`status` int(1) NOT NULL,
`id_pertanyaan` int(11) NOT NULL,
`jawaban_pertanyaan` varchar(100) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tb_pengguna`
--
INSERT INTO `tb_pengguna` (`id_user`, `username`, `password`, `nama`, `npm`, `level`, `status`, `id_pertanyaan`, `jawaban_pertanyaan`) VALUES
(14, '[email protected]', '01c4bf6ba816ef53c34e057af258f76f', 'Yosua Alvin Adi Soetrisno', 'semarang', 1, 1, 1, 'Esther'),
(1, 'admin', '21232f297a57a5a743894a0e4a801fc3', 'Administrator', '12345678', 2, 1, 0, '');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `akun_sosial`
--
ALTER TABLE `akun_sosial`
ADD PRIMARY KEY (`id_akun`);
--
-- Indexes for table `kursus`
--
ALTER TABLE `kursus`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `laboratorium`
--
ALTER TABLE `laboratorium`
ADD PRIMARY KEY (`id_lab`);
--
-- Indexes for table `pertanyaan`
--
ALTER TABLE `pertanyaan`
ADD PRIMARY KEY (`id_pertanyaan`);
--
-- Indexes for table `peserta`
--
ALTER TABLE `peserta`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `rekening`
--
ALTER TABLE `rekening`
ADD PRIMARY KEY (`id_akun`);
--
-- Indexes for table `tb_pengguna`
--
ALTER TABLE `tb_pengguna`
ADD PRIMARY KEY (`id_user`),
ADD UNIQUE KEY `username` (`username`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `akun_sosial`
--
ALTER TABLE `akun_sosial`
MODIFY `id_akun` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `kursus`
--
ALTER TABLE `kursus`
MODIFY `id` int(2) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;
--
-- AUTO_INCREMENT for table `laboratorium`
--
ALTER TABLE `laboratorium`
MODIFY `id_lab` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `pertanyaan`
--
ALTER TABLE `pertanyaan`
MODIFY `id_pertanyaan` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `peserta`
--
ALTER TABLE `peserta`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;
--
-- AUTO_INCREMENT for table `rekening`
--
ALTER TABLE `rekening`
MODIFY `id_akun` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `tb_pengguna`
--
ALTER TABLE `tb_pengguna`
MODIFY `id_user` int(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;
/*!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 */;