text: -- phpMyAdmin SQL Dump
  -- version 4.9.1
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1
  -- Generation Time: Dec 26, 2020 at 03:25 PM
  -- Server version: 10.4.8-MariaDB
  -- PHP Version: 7.3.11
  
  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: `website_inthebox`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `comment`
  --
  
  CREATE TABLE `comment` (
    `comment_id` int(11) NOT NULL,
    `username` varchar(30) NOT NULL,
    `content` varchar(255) NOT NULL,
    `tanggal` date NOT NULL,
    `waktu` time NOT NULL,
    `forum_id` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  --
  -- Dumping data for table `comment`
  --
  
  INSERT INTO `comment` (`comment_id`, `username`, `content`, `tanggal`, `waktu`, `forum_id`) VALUES
  (1, 'drz', 'coba jawab 1 jam 8:33 PM', '2020-12-25', '20:33:18', 2),
  (2, 'drz', 'mau coba jawab ini skrng', '2020-12-25', '20:35:24', 1),
  (3, 'drz', 'coba ke 2', '2020-12-25', '20:36:27', 2),
  (4, 'drz', 'asda', '2020-12-25', '20:36:52', 2),
  (5, 'drz', 'mau jawab biar ga kosong', '2020-12-25', '22:51:21', 3);
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `comment`
  --
  ALTER TABLE `comment`
    ADD PRIMARY KEY (`comment_id`),
    ADD KEY `FK_FORUM_ID` (`forum_id`),
    ADD KEY `FK_USER_COMMENT` (`username`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `comment`
  --
  ALTER TABLE `comment`
    MODIFY `comment_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
  
  --
  -- Constraints for dumped tables
  --
  
  --
  -- Constraints for table `comment`
  --
  ALTER TABLE `comment`
    ADD CONSTRAINT `FK_COMMENT_USERNAME` FOREIGN KEY (`username`) REFERENCES `user` (`username`) ON DELETE CASCADE ON UPDATE CASCADE,
    ADD CONSTRAINT `FK_ID_FORUM` FOREIGN KEY (`forum_id`) REFERENCES `forum` (`forum_id`) ON DELETE CASCADE ON UPDATE CASCADE;
  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 */;
  