-
Notifications
You must be signed in to change notification settings - Fork 12
/
un2016.sql
117 lines (94 loc) · 2.66 KB
/
un2016.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
-- phpMyAdmin SQL Dump
-- version 4.6.6deb4
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: May 12, 2019 at 11:40 PM
-- Server version: 10.1.37-MariaDB-0+deb9u1
-- PHP Version: 7.0.33-0+deb9u1
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: `un2016`
--
-- --------------------------------------------------------
--
-- Table structure for table `un_konfigurasi`
--
CREATE TABLE `un_konfigurasi` (
`id` int(11) NOT NULL,
`sekolah` varchar(255) NOT NULL,
`tahun` year(4) NOT NULL,
`tgl_pengumuman` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `un_konfigurasi`
--
INSERT INTO `un_konfigurasi` (`id`, `sekolah`, `tahun`, `tgl_pengumuman`) VALUES
(2, 'SMKN 1 Nganjuk', 2019, '2019-05-13 09:00:00');
-- --------------------------------------------------------
--
-- Table structure for table `un_siswa`
--
CREATE TABLE `un_siswa` (
`no_ujian` varchar(12) NOT NULL,
`nama` varchar(50) NOT NULL,
`komli` varchar(50) NOT NULL,
`n_bin` double NOT NULL,
`n_mat` double NOT NULL,
`n_big` double NOT NULL,
`n_kejuruan` double NOT NULL,
`status` tinyint(4) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `un_user`
--
CREATE TABLE `un_user` (
`UID` tinyint(4) NOT NULL,
`username` varchar(50) NOT NULL,
`password` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `un_user`
--
INSERT INTO `un_user` (`UID`, `username`, `password`) VALUES
(1, 'admin', '21232f297a57a5a743894a0e4a801fc3');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `un_konfigurasi`
--
ALTER TABLE `un_konfigurasi`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `un_siswa`
--
ALTER TABLE `un_siswa`
ADD PRIMARY KEY (`no_ujian`);
--
-- Indexes for table `un_user`
--
ALTER TABLE `un_user`
ADD PRIMARY KEY (`UID`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `un_konfigurasi`
--
ALTER TABLE `un_konfigurasi`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `un_user`
--
ALTER TABLE `un_user`
MODIFY `UID` tinyint(4) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
/*!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 */;