-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsampah.sql
140 lines (112 loc) · 3.27 KB
/
sampah.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
-- phpMyAdmin SQL Dump
-- version 5.2.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jun 15, 2023 at 08:10 AM
-- Server version: 10.4.25-MariaDB
-- PHP Version: 8.1.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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: `sampah`
--
-- --------------------------------------------------------
--
-- Table structure for table `foto_sampah`
--
CREATE TABLE `foto_sampah` (
`id` int(11) NOT NULL,
`jenis` varchar(15) DEFAULT NULL,
`foto_sampah` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `foto_sampah`
--
INSERT INTO `foto_sampah` (`id`, `jenis`, `foto_sampah`) VALUES
(1, 'Sampah Padat', 'IMG20230615041234.jpg'),
(3, '', ''),
(4, 'Sampah Basah', 'IMG20230615042227.jpg'),
(5, 'Sampah Basah', 'IMG20230615042246.jpg');
-- --------------------------------------------------------
--
-- Table structure for table `kategori`
--
CREATE TABLE `kategori` (
`id_kategori` int(11) NOT NULL,
`kategori` varchar(25) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `kategori`
--
INSERT INTO `kategori` (`id_kategori`, `kategori`) VALUES
(1, 'Plastik'),
(2, 'Logam'),
(3, 'Kertas'),
(4, 'Karet');
-- --------------------------------------------------------
--
-- Table structure for table `sampah`
--
CREATE TABLE `sampah` (
`id_sampah` int(11) NOT NULL,
`nama` varchar(50) DEFAULT NULL,
`kategori` varchar(25) DEFAULT NULL,
`berat` varchar(15) DEFAULT NULL,
`harga` varchar(15) DEFAULT NULL,
`tgl_penjemputan` date DEFAULT NULL,
`alamat` varchar(50) DEFAULT NULL,
`catatan` text DEFAULT NULL,
`status_bayar` varchar(15) DEFAULT NULL,
`bukti_bayar` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `sampah`
--
INSERT INTO `sampah` (`id_sampah`, `nama`, `kategori`, `berat`, `harga`, `tgl_penjemputan`, `alamat`, `catatan`, `status_bayar`, `bukti_bayar`) VALUES
(4, 'Minnn', 'Kertas', '5', '7500', '2023-06-16', 'Desa Pare Kec Pare Kediri', '', 'Sudah bayar', 'IMG_20230615012711.jpg');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `foto_sampah`
--
ALTER TABLE `foto_sampah`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `kategori`
--
ALTER TABLE `kategori`
ADD PRIMARY KEY (`id_kategori`);
--
-- Indexes for table `sampah`
--
ALTER TABLE `sampah`
ADD PRIMARY KEY (`id_sampah`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `foto_sampah`
--
ALTER TABLE `foto_sampah`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `kategori`
--
ALTER TABLE `kategori`
MODIFY `id_kategori` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `sampah`
--
ALTER TABLE `sampah`
MODIFY `id_sampah` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
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 */;