-- 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;

--
-- 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`);

--
-- 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;
COMMIT;

