Created
November 15, 2017 01:49
-
-
Save Cyberiaaxis/d47d4f7fd000971935c46a30dd65e0f2 to your computer and use it in GitHub Desktop.
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
-- phpMyAdmin SQL Dump | |
-- version 4.5.4.1deb2ubuntu2 | |
-- http://www.phpmyadmin.net | |
-- | |
-- Host: localhost | |
-- Generation Time: Nov 15, 2017 at 07:18 AM | |
-- Server version: 5.7.20-0ubuntu0.16.04.1 | |
-- PHP Version: 7.0.22-0ubuntu0.16.04.1 | |
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; | |
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: `quiz` | |
-- | |
-- -------------------------------------------------------- | |
-- | |
-- Table structure for table `questions_options` | |
-- | |
CREATE TABLE `questions_options` ( | |
`id` int(10) UNSIGNED NOT NULL, | |
`question_id` int(10) UNSIGNED DEFAULT NULL, | |
`answers` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, | |
`created_at` timestamp NULL DEFAULT NULL, | |
`updated_at` timestamp NULL DEFAULT NULL, | |
`deleted_at` timestamp NULL DEFAULT NULL | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; | |
-- | |
-- Indexes for dumped tables | |
-- | |
-- | |
-- Indexes for table `questions_options` | |
-- | |
ALTER TABLE `questions_options` | |
ADD PRIMARY KEY (`id`), | |
ADD KEY `fk_257_question_question_id_questions_option` (`question_id`), | |
ADD KEY `questions_options_deleted_at_index` (`deleted_at`); | |
-- | |
-- AUTO_INCREMENT for dumped tables | |
-- | |
-- | |
-- AUTO_INCREMENT for table `questions_options` | |
-- | |
ALTER TABLE `questions_options` | |
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=289; | |
-- | |
-- Constraints for dumped tables | |
-- | |
-- | |
-- Constraints for table `questions_options` | |
-- | |
ALTER TABLE `questions_options` | |
ADD CONSTRAINT `fk_257_question_question_id_questions_option` FOREIGN KEY (`question_id`) REFERENCES `questions` (`id`); | |
/*!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 */; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment