-
Notifications
You must be signed in to change notification settings - Fork 1
/
pasartungging (1).sql
150 lines (120 loc) · 4.99 KB
/
pasartungging (1).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
-- phpMyAdmin SQL Dump
-- version 4.1.6
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Jun 14, 2015 at 04:14 PM
-- Server version: 5.6.16
-- PHP Version: 5.5.9
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 utf8 */;
--
-- Database: `pasartungging`
--
-- --------------------------------------------------------
--
-- Table structure for table `tb_kategori`
--
CREATE TABLE IF NOT EXISTS `tb_kategori` (
`id_kat` int(2) NOT NULL AUTO_INCREMENT,
`kategori` varchar(50) NOT NULL,
`tgl_input_kat` datetime NOT NULL,
PRIMARY KEY (`id_kat`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
--
-- Dumping data for table `tb_kategori`
--
INSERT INTO `tb_kategori` (`id_kat`, `kategori`, `tgl_input_kat`) VALUES
(1, 'SEPATU', '2015-06-13 09:20:34'),
(3, 'TAS', '2015-06-13 09:42:49');
-- --------------------------------------------------------
--
-- Table structure for table `tb_login`
--
CREATE TABLE IF NOT EXISTS `tb_login` (
`id_user` int(2) NOT NULL AUTO_INCREMENT,
`nama_user` varchar(30) NOT NULL,
`pass_user` varchar(30) NOT NULL,
`nama` varchar(100) NOT NULL,
`level` enum('1','2','3','4','5','6','7','8') NOT NULL,
`status` enum('1','0') NOT NULL,
PRIMARY KEY (`id_user`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `tb_login`
--
INSERT INTO `tb_login` (`id_user`, `nama_user`, `pass_user`, `nama`, `level`, `status`) VALUES
(1, 'ad', 'ad', 'Admin Olshop', '1', '1');
-- --------------------------------------------------------
--
-- Table structure for table `tb_merk`
--
CREATE TABLE IF NOT EXISTS `tb_merk` (
`id_merk` int(2) NOT NULL AUTO_INCREMENT,
`merk` varchar(50) NOT NULL,
`tgl_input_merk` datetime NOT NULL,
PRIMARY KEY (`id_merk`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--
-- Dumping data for table `tb_merk`
--
INSERT INTO `tb_merk` (`id_merk`, `merk`, `tgl_input_merk`) VALUES
(1, 'VANS', '2015-06-13 11:14:49'),
(2, 'EIGER', '2015-06-13 14:50:28');
-- --------------------------------------------------------
--
-- Table structure for table `tb_produk`
--
CREATE TABLE IF NOT EXISTS `tb_produk` (
`id_produk` int(2) NOT NULL AUTO_INCREMENT,
`judul` varchar(220) NOT NULL,
`harga` int(20) NOT NULL,
`jumlah` varchar(50) NOT NULL,
`kondisi` varchar(50) NOT NULL,
`id_merk` int(2) NOT NULL,
`id_kat` int(2) NOT NULL,
`ket` text NOT NULL,
`status` enum('publish','draft') NOT NULL,
`counter` int(5) NOT NULL,
`tgl_input_pro` datetime NOT NULL,
`foto` varchar(100) NOT NULL,
PRIMARY KEY (`id_produk`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=10 ;
--
-- Dumping data for table `tb_produk`
--
INSERT INTO `tb_produk` (`id_produk`, `judul`, `harga`, `jumlah`, `kondisi`, `id_merk`, `id_kat`, `ket`, `status`, `counter`, `tgl_input_pro`, `foto`) VALUES
(1, 'Baju Cewek', 6000009, '5', 'Baju Cewek', 2, 3, 'Barang bagus, mantap barang', 'publish', 0, '2015-06-13 13:48:35', 'blebeau.jpg'),
(2, 'Power Bank', 1200000, '10', 'Baru', 2, 3, 'Mantap lah pokoknya', 'publish', 0, '2015-06-13 15:10:57', 'banjar.jpg'),
(3, 'Celan Dalam', 1234555, '3', 'Bekas', 1, 1, 'Hahahaha', 'publish', 2, '2015-06-13 15:11:38', 'ungu.jpg'),
(4, 'Sapu Tangan', 3000000, '4', 'Baru', 1, 1, 'Bagus kok', 'publish', 1, '2015-06-13 15:12:16', '1922253_840651915960630_2004795134_n.jpg'),
(5, 'Tas Eigeer', 40000000, '3', 'Baru', 2, 3, 'Bolong dikit', 'publish', 1, '2015-06-13 15:12:57', 'super-cub_bagus.jpg'),
(6, 'iPhone 8', 2147483647, '1', 'iPhone 8', 1, 1, 'Ada akiknya looo', 'publish', 1, '2015-06-13 15:13:49', 'body-kiri.jpg'),
(7, 'HTC 5', 600000, '223', 'Baru', 1, 1, 'Batrai drop', 'draft', 0, '2015-06-13 15:14:23', 'yell.jpg'),
(8, 'Tas Consina', 400000, '33', 'Bekas', 1, 1, 'Bolong banya, sering di pake naik gunung ini mah', 'publish', 1, '2015-06-13 15:15:16', 'street-cub.jpg'),
(9, 'Helm GM', 453333330, '4', 'Bekas', 1, 1, 'Banyak ni numpuk', 'publish', 1, '2015-06-13 15:16:10', 'redgo.jpg');
-- --------------------------------------------------------
--
-- Table structure for table `tb_visitor`
--
CREATE TABLE IF NOT EXISTS `tb_visitor` (
`no` int(7) NOT NULL AUTO_INCREMENT,
`ip` varchar(40) DEFAULT NULL,
`os` varchar(40) DEFAULT NULL,
`browser` varchar(40) DEFAULT NULL,
`tanggal` datetime DEFAULT NULL,
PRIMARY KEY (`no`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=17 ;
--
-- Dumping data for table `tb_visitor`
--
INSERT INTO `tb_visitor` (`no`, `ip`, `os`, `browser`, `tanggal`) VALUES
(15, '::1', 'Unknown Windows OS', 'Chrome 43.0.2357.124', '2015-06-14 14:31:32'),
(16, '::1', 'Unknown Windows OS', 'Firefox 22.0', '2015-06-14 14:32:35');
/*!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 */;