Skip to content
Snippets Groups Projects
Commit cd62a742 authored by junchh's avatar junchh
Browse files

add database

parent 3ae9299b
Branches
No related merge requests found
-- phpMyAdmin SQL Dump
-- version 4.9.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1:3306
-- Generation Time: Sep 21, 2020 at 02:06 PM
-- Server version: 8.0.18
-- PHP Version: 7.4.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: `w04_forum`
--
-- --------------------------------------------------------
--
-- Table structure for table `message`
--
CREATE TABLE `message` (
`id` int(8) NOT NULL,
`timestamp` timestamp NOT NULL,
`username` varchar(50) NOT NULL,
`message` text NOT NULL,
`id_parent` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `message`
--
INSERT INTO `message` (`id`, `timestamp`, `username`, `message`, `id_parent`) VALUES
(1, '2020-09-18 12:55:12', 'junho', 'hello friends my name is tushar', 0),
(2, '2020-09-18 13:01:24', 'junho', '', 0),
(3, '2020-09-18 13:01:39', 'junho', '', 0),
(4, '2020-09-18 13:02:30', 'junho', 'hello guys', 0),
(5, '2020-09-18 13:02:36', 'junho', 'hello guys', 0),
(6, '2020-09-18 13:03:07', 'junho', 'hello guys', 0),
(7, '2020-09-18 13:03:15', 'junho', 'hello guys', 0),
(8, '2020-09-18 13:04:22', 'junho', 'hello guys', 0),
(9, '2020-09-18 13:06:02', 'junho', 'hello guys', 0),
(10, '2020-09-18 13:06:26', 'junho', 'hello world', 0),
(11, '2020-09-18 13:18:51', 'junho', 'asdsasd', 0),
(12, '2020-09-18 13:26:07', 'junho', 'comment ke post 1', 1),
(13, '2020-09-18 13:39:46', 'junho', 'comment 2', 1),
(14, '2020-09-21 13:01:35', 'junho', 'test reply again', 13),
(15, '2020-09-21 13:03:18', 'junho', 'hello friends', 11);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `message`
--
ALTER TABLE `message`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `id` (`id`),
ADD KEY `id_2` (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `message`
--
ALTER TABLE `message`
MODIFY `id` int(8) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
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 */;
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment