-- phpMyAdmin SQL Dump -- version 4.6.6 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 03, 2017 at 05:42 PM -- Server version: 5.7.16 -- PHP Version: 5.6.30 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: `cd_app` -- -- -------------------------------------------------------- -- -- Table structure for table `categories` -- CREATE TABLE `categories` ( `id` int(11) NOT NULL, `category` varchar(10) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `categories` -- INSERT INTO `categories` (`id`, `category`) VALUES (1, '洋楽'), (2, 'J-POP'), (3, '演歌'), (4, 'DANCE'); -- -------------------------------------------------------- -- -- Table structure for table `cds` -- CREATE TABLE `cds` ( `id` int(11) NOT NULL, `title` varchar(255) NOT NULL, `cat_id` int(11) DEFAULT NULL, `price` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `cds` -- INSERT INTO `cds` (`id`, `title`, `cat_id`, `price`) VALUES (1, 'PLEASE PLEASE ME', 1, 2800), (2, 'With the Beatles', 1, 2800), (3, 'A Hard Days Night', 1, 2800), (4, '17歳の地図', 2, 3200), (5, '回帰線', 2, 3200), (6, '壊れた扉から', 2, 3200), (7, '北の大地', 3, 3600), (8, '目蒲線物語', NULL, 1200); -- -- Indexes for dumped tables -- -- -- Indexes for table `categories` -- ALTER TABLE `categories` ADD PRIMARY KEY (`id`); -- -- Indexes for table `cds` -- ALTER TABLE `cds` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `categories` -- ALTER TABLE `categories` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `cds` -- ALTER TABLE `cds` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; /*!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 */;