-
Notifications
You must be signed in to change notification settings - Fork 0
/
tobacco.sql
171 lines (140 loc) · 4.41 KB
/
tobacco.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
-- phpMyAdmin SQL Dump
-- version 4.7.9
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Waktu pembuatan: 06 Nov 2018 pada 08.49
-- Versi server: 10.1.31-MariaDB
-- Versi PHP: 7.2.3
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: `tobacco`
--
-- --------------------------------------------------------
--
-- Struktur dari tabel `admin`
--
CREATE TABLE `admin` (
`id_admin` int(11) NOT NULL,
`username` varchar(30) NOT NULL,
`password` varchar(40) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `admin`
--
INSERT INTO `admin` (`id_admin`, `username`, `password`) VALUES
(1, 'admin', '21232f297a57a5a743894a0e4a801fc3');
-- --------------------------------------------------------
--
-- Struktur dari tabel `mhs`
--
CREATE TABLE `mhs` (
`id_mhs` int(11) NOT NULL,
`password` varchar(35) NOT NULL,
`nama` varchar(65) NOT NULL,
`nim` varchar(10) NOT NULL,
`prodi` varchar(21) NOT NULL,
`angkatan` int(11) NOT NULL,
`th_masuk` int(11) NOT NULL,
`th_lulus` int(11) NOT NULL,
`jkel` varchar(1) NOT NULL,
`no_telp` varchar(15) NOT NULL,
`email` varchar(50) NOT NULL,
`foto` varchar(100) NOT NULL,
`pekerjaan` varchar(50) NOT NULL,
`jdl_TA` text NOT NULL,
`status` int(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Struktur dari tabel `petani`
--
CREATE TABLE `petani` (
`Id_Tani` int(11) NOT NULL,
`nama_petani` varchar(50) COLLATE armscii8_bin NOT NULL,
`email` varchar(50) COLLATE armscii8_bin NOT NULL,
`no_handphone` varchar(50) COLLATE armscii8_bin NOT NULL,
`class` varchar(50) COLLATE armscii8_bin NOT NULL,
`password` varchar(50) COLLATE armscii8_bin NOT NULL,
`retype_password` varchar(50) COLLATE armscii8_bin NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=armscii8 COLLATE=armscii8_bin;
-- --------------------------------------------------------
--
-- Struktur dari tabel `postingan`
--
CREATE TABLE `postingan` (
`id_postingan` int(11) NOT NULL,
`judul` varchar(50) NOT NULL,
`tgl_buat` date NOT NULL,
`tgl_update` date NOT NULL,
`gambar` varchar(100) NOT NULL,
`isi` text NOT NULL,
`kategori` varchar(20) NOT NULL,
`kunjungan` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `postingan`
--
INSERT INTO `postingan` (`id_postingan`, `judul`, `tgl_buat`, `tgl_update`, `gambar`, `isi`, `kategori`, `kunjungan`) VALUES
(7, 'IT_SKA', '2018-11-05', '2018-11-05', 'jadi2.png', '<p>ksgwhjaksjbscndbcdsvbdajbvdjv</p>\r\n', 'Informasi', 3),
(8, 'AAAAAAAAA', '2018-11-05', '2018-11-05', 'etiket_ska.gif', '<p>gaffhs,cjdsbcndkcdscnmsd</p>\r\n', 'informasi', 1),
(9, 'fvck', '2018-11-05', '2018-11-05', '4-2-i-alphabet-png-thumb.png', '<p>anjer</p>\r\n', 'Informasi', 0),
(10, 'kjg', '2018-11-05', '2018-11-05', '4-2-i-alphabet-png-thumb.png', '<p>qwertyuiop</p>\r\n', 'Informasi', 1),
(11, 'Percobaan 11', '2018-11-06', '2018-11-06', 'etiket_ska.gif', '<p>Percobaan 11</p>\r\n', 'Informasi', 0);
--
-- Indexes for dumped tables
--
--
-- Indeks untuk tabel `admin`
--
ALTER TABLE `admin`
ADD PRIMARY KEY (`id_admin`,`username`);
--
-- Indeks untuk tabel `mhs`
--
ALTER TABLE `mhs`
ADD PRIMARY KEY (`id_mhs`,`nim`);
--
-- Indeks untuk tabel `petani`
--
ALTER TABLE `petani`
ADD PRIMARY KEY (`Id_Tani`);
--
-- Indeks untuk tabel `postingan`
--
ALTER TABLE `postingan`
ADD PRIMARY KEY (`id_postingan`);
--
-- AUTO_INCREMENT untuk tabel yang dibuang
--
--
-- AUTO_INCREMENT untuk tabel `admin`
--
ALTER TABLE `admin`
MODIFY `id_admin` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT untuk tabel `mhs`
--
ALTER TABLE `mhs`
MODIFY `id_mhs` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT untuk tabel `petani`
--
ALTER TABLE `petani`
MODIFY `Id_Tani` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT untuk tabel `postingan`
--
ALTER TABLE `postingan`
MODIFY `id_postingan` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
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 */;