-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Aditya <aditaykumar2012@gmail.com>
- Loading branch information
1 parent
47db825
commit f0f6ec3
Showing
2 changed files
with
114 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
-- phpMyAdmin SQL Dump | ||
-- version 4.8.5 | ||
-- https://www.phpmyadmin.net/ | ||
-- | ||
-- Host: 127.0.0.1 | ||
-- Generation Time: Sep 09, 2019 at 11:05 AM | ||
-- Server version: 10.1.38-MariaDB | ||
-- PHP Version: 7.3.2 | ||
|
||
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: `phprestcurd` | ||
-- | ||
|
||
-- -------------------------------------------------------- | ||
|
||
-- | ||
-- Table structure for table `categories` | ||
-- | ||
|
||
CREATE TABLE `categories` | ||
( | ||
`id` int(11) NOT NULL, | ||
`name` varchar(255) NOT NULL, | ||
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP | ||
) ENGINE = InnoDB | ||
DEFAULT CHARSET = utf8; | ||
|
||
-- | ||
-- Dumping data for table `categories` | ||
-- | ||
|
||
INSERT INTO `categories` (`id`, `name`, `created_at`) | ||
VALUES (1, 'Test Category', '2019-09-09 07:04:14'); | ||
|
||
-- -------------------------------------------------------- | ||
|
||
-- | ||
-- Table structure for table `posts` | ||
-- | ||
|
||
CREATE TABLE `posts` | ||
( | ||
`id` int(11) NOT NULL, | ||
`category_id` int(11) NOT NULL, | ||
`title` varchar(255) NOT NULL, | ||
`body` text NOT NULL, | ||
`author` varchar(100) NOT NULL, | ||
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP | ||
) ENGINE = InnoDB | ||
DEFAULT CHARSET = utf8; | ||
|
||
-- | ||
-- Dumping data for table `posts` | ||
-- | ||
|
||
INSERT INTO `posts` (`id`, `category_id`, `title`, `body`, `author`, `created_at`) | ||
VALUES (1, 1, 'Test', 'Test Body', 'Aditya', '2019-09-09 07:09:57'); | ||
|
||
-- | ||
-- Indexes for dumped tables | ||
-- | ||
|
||
-- | ||
-- Indexes for table `categories` | ||
-- | ||
ALTER TABLE `categories` | ||
ADD PRIMARY KEY (`id`); | ||
|
||
-- | ||
-- Indexes for table `posts` | ||
-- | ||
ALTER TABLE `posts` | ||
ADD PRIMARY KEY (`id`), | ||
ADD KEY `catergory_id` (`category_id`); | ||
|
||
-- | ||
-- AUTO_INCREMENT for dumped tables | ||
-- | ||
|
||
-- | ||
-- AUTO_INCREMENT for table `categories` | ||
-- | ||
ALTER TABLE `categories` | ||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, | ||
AUTO_INCREMENT = 2; | ||
|
||
-- | ||
-- AUTO_INCREMENT for table `posts` | ||
-- | ||
ALTER TABLE `posts` | ||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, | ||
AUTO_INCREMENT = 2; | ||
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 */; |