Skip to content

Instantly share code, notes, and snippets.

@anchetaWern
Created April 12, 2016 07:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anchetaWern/0901a8db5b595ec6d740ed050b5b3fdd to your computer and use it in GitHub Desktop.
Save anchetaWern/0901a8db5b595ec6d740ed050b5b3fdd to your computer and use it in GitHub Desktop.
sp store database
-- phpMyAdmin SQL Dump
-- version 4.4.13.1deb1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Apr 12, 2016 at 03:01 PM
-- Server version: 5.6.28-0ubuntu0.15.10.1
-- PHP Version: 5.6.11-1ubuntu3.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: `sp_store`
--
-- --------------------------------------------------------
--
-- Table structure for table `requests`
--
CREATE TABLE IF NOT EXISTS `requests` (
`id` int(11) NOT NULL,
`request_id` varchar(300) NOT NULL,
`request_type` varchar(60) NOT NULL,
`done` tinyint(1) NOT NULL,
`from_review` int(11) NOT NULL,
`to_review` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `reviews`
--
CREATE TABLE IF NOT EXISTS `reviews` (
`id` int(11) NOT NULL,
`product_id` int(11) NOT NULL,
`review` text NOT NULL,
`analyzed` tinyint(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `review_key_phrases`
--
CREATE TABLE IF NOT EXISTS `review_key_phrases` (
`id` int(11) NOT NULL,
`review_id` int(11) NOT NULL,
`key_phrases` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `review_sentiments`
--
CREATE TABLE IF NOT EXISTS `review_sentiments` (
`id` int(11) NOT NULL,
`review_id` int(11) NOT NULL,
`score` double NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `review_topics`
--
CREATE TABLE IF NOT EXISTS `review_topics` (
`id` int(11) NOT NULL,
`review_id` int(11) NOT NULL,
`topic_id` varchar(160) NOT NULL,
`distance` double NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `topics`
--
CREATE TABLE IF NOT EXISTS `topics` (
`id` int(11) NOT NULL,
`topic_id` varchar(160) NOT NULL,
`topic` varchar(300) NOT NULL,
`score` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `requests`
--
ALTER TABLE `requests`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `reviews`
--
ALTER TABLE `reviews`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `review_key_phrases`
--
ALTER TABLE `review_key_phrases`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `review_sentiments`
--
ALTER TABLE `review_sentiments`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `review_topics`
--
ALTER TABLE `review_topics`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `topics`
--
ALTER TABLE `topics`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `requests`
--
ALTER TABLE `requests`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `reviews`
--
ALTER TABLE `reviews`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `review_key_phrases`
--
ALTER TABLE `review_key_phrases`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `review_sentiments`
--
ALTER TABLE `review_sentiments`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `review_topics`
--
ALTER TABLE `review_topics`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `topics`
--
ALTER TABLE `topics`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
/*!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