Kai (3) .SQL
Kai (3) .SQL
-- version 5.2.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jan 26, 2023 at 07:24 AM
-- Server version: 10.4.27-MariaDB
-- PHP Version: 7.4.33
--
-- Database: `kai`
--
-- --------------------------------------------------------
--
-- Table structure for table `reservasibarang`
--
--
-- Dumping data for table `reservasibarang`
--
-- --------------------------------------------------------
--
-- Table structure for table `reservasitiket`
--
--
-- Dumping data for table `reservasitiket`
--
-- --------------------------------------------------------
--
-- Table structure for table `userbarang`
--
--
-- Dumping data for table `userbarang`
--
-- --------------------------------------------------------
--
-- Table structure for table `usertiket`
--
--
-- Dumping data for table `usertiket`
--
INSERT INTO `usertiket` (`id_pemesan`, `NIK`, `nama`, `email`, `password`, `level`)
VALUES
(11, 2147483647, 'Dwi Lutfi Taufiq Ihsani', '[email protected]',
'40bd001563085fc35165329ea1ff5c5ecbdbbeef', 0),
(12, 2147483647, 'admin', '[email protected]',
'd033e22ae348aeb5660fc2140aec35850c4da997', 1),
(13, 2147483647, 'karina', '[email protected]',
'40bd001563085fc35165329ea1ff5c5ecbdbbeef', 0),
(14, 23414144, 'Joko Alando', '[email protected]',
'40bd001563085fc35165329ea1ff5c5ecbdbbeef', 0);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `reservasibarang`
--
ALTER TABLE `reservasibarang`
ADD PRIMARY KEY (`id_barang`),
ADD UNIQUE KEY `id_barang` (`id_pemesanBarang`);
--
-- Indexes for table `reservasitiket`
--
ALTER TABLE `reservasitiket`
ADD PRIMARY KEY (`id_tiket`),
ADD KEY `reservasitiket_ibfk_1` (`id_pemesan`);
--
-- Indexes for table `userbarang`
--
ALTER TABLE `userbarang`
ADD PRIMARY KEY (`id_pemesanBarang`);
--
-- Indexes for table `usertiket`
--
ALTER TABLE `usertiket`
ADD PRIMARY KEY (`id_pemesan`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `reservasibarang`
--
ALTER TABLE `reservasibarang`
MODIFY `id_barang` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;
--
-- AUTO_INCREMENT for table `reservasitiket`
--
ALTER TABLE `reservasitiket`
MODIFY `id_tiket` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `userbarang`
--
ALTER TABLE `userbarang`
MODIFY `id_pemesanBarang` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `usertiket`
--
ALTER TABLE `usertiket`
MODIFY `id_pemesan` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `reservasibarang`
--
ALTER TABLE `reservasibarang`
ADD CONSTRAINT `reservasibarang_ibfk_1` FOREIGN KEY (`id_pemesanBarang`)
REFERENCES `userbarang` (`id_pemesanBarang`);
--
-- Constraints for table `reservasitiket`
--
ALTER TABLE `reservasitiket`
ADD CONSTRAINT `reservasitiket_ibfk_1` FOREIGN KEY (`id_pemesan`) REFERENCES
`usertiket` (`id_pemesan`);
COMMIT;