-
Notifications
You must be signed in to change notification settings - Fork 0
/
PDOCRUD.sql
108 lines (87 loc) · 3 KB
/
PDOCRUD.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
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Dec 31, 2021 at 12:11 PM
-- Server version: 10.6.4-MariaDB
-- PHP Version: 8.0.11
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: `web-rizkon`
--
-- --------------------------------------------------------
--
-- Table structure for table `barang`
--
CREATE TABLE `barang` (
`id` int(255) NOT NULL,
`kode_barang` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`nama_barang` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`harga` int(255) NOT NULL,
`deskripsi` text COLLATE utf8mb4_unicode_ci NOT NULL,
`stok` int(255) NOT NULL,
`gambar` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `barang`
--
INSERT INTO `barang` (`id`, `kode_barang`, `nama_barang`, `harga`, `deskripsi`, `stok`, `gambar`) VALUES
(26, 'BAK001', 'Celana Jeans', 250000, 'Jeans Levis Murah Meriah', 20, 'android.png'),
(27, 'BAK002', 'Jaket Parka', 150000, 'Jaket Parka untuk musim hujan anti air', 200, 'android.png'),
(28, 'BAK003', 'Jam Tangan', 350000, 'Jam tangan mewah', 20, 'android.png'),
(29, 'BAK004', 'Kacamata', 150000, 'Kacamata fashion', 5, 'android.png'),
(30, 'BAK007', 'Keyboard RGB', 500000, 'Keyboard RGB menyala menyinari dunia', 4, 'android.png'),
(31, 'BAK005', 'Minuman Dingin', 5000, 'Minuman Segar', 100, 'Virtual Background Workshop UI UX.png'),
(40, 'BAK007', 'Sepatu', 123, 'asd213', 123, 'android.png');
-- --------------------------------------------------------
--
-- Table structure for table `login`
--
CREATE TABLE `login` (
`id` int(255) NOT NULL,
`username` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`status` char(1) COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `login`
--
INSERT INTO `login` (`id`, `username`, `password`, `status`) VALUES
(2, 'admin', '123', '0');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `barang`
--
ALTER TABLE `barang`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `login`
--
ALTER TABLE `login`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `barang`
--
ALTER TABLE `barang`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=42;
--
-- AUTO_INCREMENT for table `login`
--
ALTER TABLE `login`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
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 */;