Skip to content

Instantly share code, notes, and snippets.

@Swader

Swader/db.sql Secret

Created November 30, 2014 10:52
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 Swader/4268c7fadaabf4dea2b0 to your computer and use it in GitHub Desktop.
Save Swader/4268c7fadaabf4dea2b0 to your computer and use it in GitHub Desktop.
Example DB
-- phpMyAdmin SQL Dump
-- version 4.0.10deb1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Nov 23, 2014 at 09:13 PM
-- Server version: 5.5.40-0ubuntu0.14.04.1
-- PHP Version: 5.5.9-1ubuntu4.5
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 utf8 */;
--
-- Database: `pokemon`
--
-- --------------------------------------------------------
--
-- Table structure for table `pokemon`
--
CREATE TABLE IF NOT EXISTS `pokemon` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`trainer_id` int(11) NOT NULL,
`name` varchar(300) NOT NULL,
`type_id` int(11) NOT NULL,
`level` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `pokemon_moves`
--
CREATE TABLE IF NOT EXISTS `pokemon_moves` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`pokemon_id` int(11) NOT NULL,
`move_name` varchar(300) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `trainers`
--
CREATE TABLE IF NOT EXISTS `trainers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(160) NOT NULL,
`pokemon_count` int(11) NOT NULL,
`badges_count` int(11) NOT NULL,
`trainers_defeated` int(11) NOT NULL,
`region` varchar(160) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=13 ;
--
-- Dumping data for table `trainers`
--
INSERT INTO `trainers` (`id`, `name`, `pokemon_count`, `badges_count`, `trainers_defeated`, `region`) VALUES
(1, 'Brock', 6, 4, 35, 'Kanto'),
(2, 'Marshal', 8, 1, 10, 'Unova'),
(3, 'Iris', 5, 7, 80, 'Unova'),
(4, 'Roxie', 3, 12, 250, 'Unova'),
(5, 'Falkner', 10, 7, 170, 'Johto'),
(6, 'Jasmine', 25, 7, 180, 'Johto'),
(7, 'Chuck', 20, 1, 32, 'Johto'),
(8, 'Clair', 15, 4, 190, 'Johto'),
(9, 'Brawly', 12, 5, 80, 'Hoenn'),
(10, 'Winona', 12, 4, 80, 'Hoenn'),
(11, 'Clemont', 6, 12, 100, 'Kalos'),
(12, 'Olympia', 3, 10, 70, 'Kalos');
-- --------------------------------------------------------
--
-- Table structure for table `types`
--
CREATE TABLE IF NOT EXISTS `types` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(160) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=19 ;
--
-- Dumping data for table `types`
--
INSERT INTO `types` (`id`, `name`) VALUES
(1, 'Normal'),
(2, 'Fire'),
(3, 'Water'),
(4, 'Electric'),
(5, 'Grass'),
(6, 'Ice'),
(7, 'Fighting'),
(8, 'Poison'),
(9, 'Ground'),
(10, 'Flying'),
(11, 'Psychic'),
(12, 'Bug'),
(13, 'Rock'),
(14, 'Ghost'),
(15, 'Dragon'),
(16, 'Dark'),
(17, 'Steel'),
(18, 'Fairy');
/*!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