From 9888da35021316afeda2d306521abfada7b1aaaa Mon Sep 17 00:00:00 2001 From: Rizqi Wijaya Date: Fri, 1 Jul 2022 22:30:28 +0700 Subject: [PATCH] Add Database and Finishing Release. --- sql/cleango.sql | 69 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 sql/cleango.sql diff --git a/sql/cleango.sql b/sql/cleango.sql new file mode 100644 index 0000000..23ef8ff --- /dev/null +++ b/sql/cleango.sql @@ -0,0 +1,69 @@ +-- phpMyAdmin SQL Dump +-- version 5.0.2 +-- https://www.phpmyadmin.net/ +-- +-- Host: 127.0.0.1 +-- Waktu pembuatan: 01 Jul 2022 pada 17.29 +-- Versi server: 10.4.14-MariaDB +-- Versi PHP: 7.2.33 + +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: `cleango` +-- + +-- -------------------------------------------------------- + +-- +-- Struktur dari tabel `products` +-- + +CREATE TABLE `products` ( + `id` int(11) NOT NULL, + `name` varchar(200) NOT NULL, + `amount` int(11) NOT NULL, + `price` int(11) NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; + +-- +-- Dumping data untuk tabel `products` +-- + +INSERT INTO `products` (`id`, `name`, `amount`, `price`) VALUES +(1, 'Book', 3, 45), +(2, 'Bolpoint', 2, 50), +(3, 'Headset', 3, 75); + +-- +-- Indexes for dumped tables +-- + +-- +-- Indeks untuk tabel `products` +-- +ALTER TABLE `products` + ADD PRIMARY KEY (`id`); + +-- +-- AUTO_INCREMENT untuk tabel yang dibuang +-- + +-- +-- AUTO_INCREMENT untuk tabel `products` +-- +ALTER TABLE `products` + MODIFY `id` int(11) 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 */;