text: -- phpMyAdmin SQL Dump
  -- version 4.8.4
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1
  -- Generation Time: Aug 05, 2019 at 01:48 PM
  -- Server version: 10.1.37-MariaDB
  -- PHP Version: 7.3.0
  
  SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  SET AUTOCOMMIT = 0;
  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: `ewedding`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `catering`
  --
  
  CREATE TABLE `catering` (
    `id` int(11) NOT NULL,
    `nama` varchar(150) NOT NULL,
    `alamat` varchar(200) NOT NULL,
    `harga` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `todolist`
  --
  
  CREATE TABLE `todolist` (
    `id_todolist` int(11) NOT NULL,
    `id_user` int(11) NOT NULL,
    `list` varchar(255) NOT NULL,
    `tgl` date NOT NULL,
    `status` enum('0','1') NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `todolist`
  --
  
  INSERT INTO `todolist` (`id_todolist`, `id_user`, `list`, `tgl`, `status`) VALUES
  (63, 1, 'asd', '2019-07-01', '0'),
  (64, 1, 'Makan ayam', '2019-07-02', '0'),
  (65, 1, 'asd', '2019-07-03', '0'),
  (66, 1, 'dafsdfsd', '0000-00-00', '0'),
  (67, 1, 'asd', '0000-00-00', '0'),
  (68, 1, 'te dgn id 2', '0000-00-00', '0'),
  (69, 2, 'asd', '2019-07-03', '0');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `user`
  --
  
  CREATE TABLE `user` (
    `id` int(11) NOT NULL,
    `nama` varchar(100) NOT NULL,
    `email` varchar(100) NOT NULL,
    `password` varchar(100) NOT NULL,
    `nohp` varchar(100) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `user`
  --
  
  INSERT INTO `user` (`id`, `nama`, `email`, `password`, `nohp`) VALUES
  (1, 'Rahmita Ramadhanty', 'rahmita@gmail.com', 'mitamita', '081234678901'),
  (2, 'Rahmita', 'rahmita1@gmail.com', '$2y$10$NwHT7FpunwzJQKRcF8HQ.ehpfzOuXvXIG8t1ZMStA9DJwAYLX0qfi', '081234567890'),
  (3, 'Such', 'such@gmail.com', '$2y$10$J0pwFmBm8hR0gfSGRfzYuub14kWZqUBGCcmXVcQvQR0FBFQ3FYH6O', '0823');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `venue`
  --
  
  CREATE TABLE `venue` (
    `id` int(11) NOT NULL,
    `nama` varchar(100) NOT NULL,
    `alamat` varchar(200) NOT NULL,
    `harga` int(11) NOT NULL,
    `gambar` varchar(255) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `venue`
  --
  
  INSERT INTO `venue` (`id`, `nama`, `alamat`, `harga`, `gambar`) VALUES
  (1, 'Pesonna Hotel ', 'Jl. Jendral Sudirman No. 445', 20000000, '');
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `catering`
  --
  ALTER TABLE `catering`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `todolist`
  --
  ALTER TABLE `todolist`
    ADD PRIMARY KEY (`id_todolist`),
    ADD KEY `id_user` (`id_user`);
  
  --
  -- Indexes for table `user`
  --
  ALTER TABLE `user`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `venue`
  --
  ALTER TABLE `venue`
    ADD PRIMARY KEY (`id`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `catering`
  --
  ALTER TABLE `catering`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `todolist`
  --
  ALTER TABLE `todolist`
    MODIFY `id_todolist` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=70;
  
  --
  -- AUTO_INCREMENT for table `user`
  --
  ALTER TABLE `user`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
  
  --
  -- AUTO_INCREMENT for table `venue`
  --
  ALTER TABLE `venue`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
  
  --
  -- Constraints for dumped tables
  --
  
  --
  -- Constraints for table `todolist`
  --
  ALTER TABLE `todolist`
    ADD CONSTRAINT `todolist_ibfk_1` FOREIGN KEY (`id_user`) REFERENCES `user` (`id`);
  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 */;
  