-- https://www.phpmyadmin.net/
--

START TRANSACTION;



--
-- Database: `lapakkita`
--

-- --------------------------------------------------------

--
-- Table structure for table `barang`
--

CREATE TABLE `barang` (
  `id` int(11) NOT NULL,
  `penjual_id` int(11) DEFAULT NULL,
  `nama_barang` varchar(100) DEFAULT NULL,
  `harga` int(11) DEFAULT NULL,
  `deskripsi` text DEFAULT NULL,
  `penjual_email` varchar(100) DEFAULT NULL,
  `gambar` varchar(255) DEFAULT NULL,
  `kategori` varchar(50) DEFAULT NULL,
  `penjual` varchar(255) DEFAULT NULL,
  `nomor_wa` varchar(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `barang`
--

INSERT INTO `barang` (`id`, `penjual_id`, `nama_barang`, `harga`, `deskripsi`, `penjual_email`, `gambar`, `kategori`, `penjual`, `nomor_wa`) VALUES
(105, NULL, 'sepatu', 500000, 'pemakain baru 2x', NULL, 'sepatu-adidas-murah2.jpg', 'Pakaian', 'Tidak Diketahui', NULL);

-- --------------------------------------------------------

--
-- Table structure for table `notifikasi_barang`
--

CREATE TABLE `notifikasi_barang` (
  `id` int(11) NOT NULL,
  `id_barang` int(11) DEFAULT NULL,
  `nama_barang` varchar(255) DEFAULT NULL,
  `waktu` datetime DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- --------------------------------------------------------

--
-- Table structure for table `pembeli`
--

CREATE TABLE `pembeli` (
  `id` int(11) NOT NULL,
  `nama` varchar(100) NOT NULL,
  `email` varchar(100) NOT NULL,
  `password` varchar(255) NOT NULL,
  `telepon` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `pembeli`
--

INSERT INTO `pembeli` (`id`, `nama`, `email`, `password`, `telepon`) VALUES
(5, 'aguan', 'aguan@gmail.com', '$2y$10$fyDNqA47HssAZhRjchjY6.HyILJtcTl9dAUGUjZqb04ChX/FllrJy', '082181576010'),
(6, 'kelvin', 'kelvin@gmail.com', '$2y$10$kDS7PdM.1VQ33A.VzOXw1ODqZWb/ayZODmi35JSpfqTubdvoii.ly', '085368893521'),
(7, 'guanguan', 'guanguan@gmail.com', '$2y$10$zCRFADJrbSA2wOVs9Y2ZFup0BlgWPHjYWb0.z2xzVO6XAEgA2eggG', '9876'),
(8, 'angel', 'angel@gmail.com', '$2y$10$yYtJbHi5wYZnaGDRZU4IeeCEFd.B677ptfPv07FMv0xRiWJGDPx3i', '9876'),
(9, 'vin', 'vin@gmail.com', '$2y$10$7wwNQYKmlIff7O69hUpbj.k8hQgpJj2b/XyADaiPWv80LxcCmKjqe', '082515473'),
(11, 'kelvin', 'kelvin1@gmail.com', '$2y$10$9UgoIISLJXIeaTUjrJPZvuwyuzHBcicO0pYH2wWNN9YUYQGB2PqKG', '082181576010');

-- --------------------------------------------------------

--
-- Table structure for table `penjual`
--

CREATE TABLE `penjual` (
  `id` int(11) NOT NULL,
  `nama` varchar(100) DEFAULT NULL,
  `email` varchar(100) DEFAULT NULL,
  `password` text DEFAULT NULL,
  `wa` varchar(20) DEFAULT NULL,
  `info` text DEFAULT NULL,
  `penjual_email` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `penjual`
--

INSERT INTO `penjual` (`id`, `nama`, `email`, `password`, `wa`, `info`, `penjual_email`) VALUES
(30, 'guan', 'guan@gmailcom', '12345', '12345', '1', NULL),
(33, 'guanguan', 'guanguan@gmail.com', '12345', '082181576010', 'mahasiswa teknik informatika', NULL),
(34, 'angel', 'angel@gmail.com', '12345', '0000000', 'siswa ti', NULL),
(35, 'Andi Pratama', 'andi@mail.com', 'password123', '081234567890', 'Menjual barang bekas berkualitas', 'andi@mail.com'),
(36, 'vin', 'vin@gmail.com', '12345', '08214567', 'ti', NULL),
(37, 'kelvin', 'kelvin@gmail.com', '12345', '082181576010', 'mahasiswa teknik informatika', NULL);

--
-- Indexes for dumped tables
--

--
-- Indexes for table `barang`
--
ALTER TABLE `barang`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `notifikasi_barang`
--
ALTER TABLE `notifikasi_barang`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `pembeli`
--
ALTER TABLE `pembeli`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `email` (`email`);

--
-- Indexes for table `penjual`
--
ALTER TABLE `penjual`
  ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `barang`
--
ALTER TABLE `barang`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=106;

--
-- AUTO_INCREMENT for table `notifikasi_barang`
--
ALTER TABLE `notifikasi_barang`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `pembeli`
--
ALTER TABLE `pembeli`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT for table `penjual`
--
ALTER TABLE `penjual`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=38;
COMMIT;

